00c31410064a76f14d3f2deaa9fa106ba306364e
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5 Replace global variable declaration with compatibility macro.
6 (struct builtin_m2_type): New data type.
7 (builtin_m2_type): Add prototype.
8 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
9 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
10 Remove global variables.
11 (m2_language_arch_info): Use builtin_m2_type instead of variables.
12 (build_m2_types): New function.
13 (m2_type_data): New variable.
14 (builtin_m2_type): New function.
15 (_initialize_m2_language): Do not build data types. Register
16 m2_type_data per-gdbarch data.
17
18 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
19
20 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
21 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
22 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
23 builtin_type_f_real_s8, builtin_type_f_real_s16,
24 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
25 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
26 variable declaration with compatibility macro.
27 (struct builtin_f_type): New data type.
28 (builtin_f_type): Add prototype.
29 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
30 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
31 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
32 builtin_type_f_real_s8, builtin_type_f_real_s16,
33 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
34 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
35 (f_language_arch_info): Use builtin_f_type instead of variables.
36 (build_fortran_types): Build builtin_f_type structure instead of
37 setting global type variables.
38 (f_type_data): New variable.
39 (builtin_f_type): New function.
40 (_initialize_f_language): Do not call build_fortran_types. Do not
41 swap global type variables. Register f_type_data per-gdbarch data.
42
43 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
44
45 * f-lang.c (_initialize_f_language): Do not initialize or
46 swap builtin_type_string.
47
48 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
49
50 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
51 value_of_builtin_frame_reg): Remove.
52 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
53 inactive call to value_of_builtin_frame_reg.
54
55 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
56
57 * gdbarch.sh (bfd_vma_bit): Remove.
58 * gdbarch.c, gdbarch.h: Regenerate.
59
60 * gdbtypes.h (builtin_bfd_vma_type): Remove.
61 * gdbtypes.h (builtin_bfd_vma_type): Remove.
62 (build_gdbtypes): Do not initialize it.
63 (_initialize_gdbtypes): Do not swap it.
64
65 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
66
67 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
68 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
69 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
70 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
71 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
72 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
73 builtin_type_vec64, builtin_type_vec128): Remove.
74 (init_simd_type): Remove.
75 (init_vector_type): Make global.
76 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
77 (build_gdbtypes): Do not build vector types.
78 (_initialize_gdbtypes): Do not swap vector types.
79 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
80 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
81 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
82 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
83 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
84 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
85 builtin_type_vec64, builtin_type_vec128): Remove declarations.
86 (init_vector_type): Add prototype.
87
88 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
89 i386_sse_type members.
90 (i386_mmx_type, i386_sse_type): Change from variables to functions.
91 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
92 (i386_init_types): Do not build vector types.
93 (i386_mmx_type, i386_sse_type): New functions.
94 (i386_register_type): Call them instead of using global variables.
95 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
96 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
97 of using global variable.
98
99 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
100 and ppc_builtin_type_vec128 members.
101 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
102 (rs6000_builtin_type_vec128): Likewise.
103 (rs6000_register_type): Call them instead of using builtin_type_vec64
104 and builtin_type_vec128.
105 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
106
107 * spu-tdep.c (struct gdbarch_tdep): New data type.
108 (spu_builtin_type_vec128): Remove variable.
109 (spu_builtin_type_vec128): New function.
110 (spu_register_type): Call it instead of using global variable.
111 (spu_gdbarch_init): Allocate tdep structure.
112 (spu_init_vector_type): Remove function.
113 (_initialize_spu_tdep): Do not call it.
114
115 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
116
117 * amd64-tdep.c (struct amd64_register_info): Remove.
118 (amd64_register_info): Remove.
119 (amd64_register_names): New static variable.
120 (AMD64_NUM_REGS): Use amd64_register_names instead of
121 amd64_register_info.
122 (amd64_register_name): Likewise.
123 (amd64_register_type): Do not refer to amd64_register_info.
124
125 * s390-tdep.c (struct s390_register_info): Remove.
126 (s390_register_info): Remove.
127 (s390_register_name): Do not refer to s390_register_info.
128 (s390_register_type): Likewise.
129
130 * sparc64-tdep.c (struct sparc64_register_info): Remove.
131 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
132 (sparc64_register_names, sparc64_pseudo_register_names): New.
133 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
134 sparc64_register_names and sparc64_pseudo_register_names instead of
135 sparc64_register_info and sparc64_pseudo_register_info.
136 (sparc64_register_name): Likewise.
137 (sparc64_register_type): Do not refer to sparc64_register_info
138 and sparc64_pseudo_register_info.
139
140 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
141
142 * c-lang.c (cplus_builtin_types): Remove.
143 (enum cplus_primitive_types): New data type.
144 (cplus_language_arch_info): New function.
145 (cplus_language_defn): Set la_language_arch_info member. Do not set
146 la_builtin_type_vector and string_char_type members.
147
148 * f-lang.c (f_builtin_types): Remove.
149 (enum f_primitive_types): New data type.
150 (f_language_arch_info): New function.
151 (f_language_de): Set la_language_arch_info member. Do not set
152 la_builtin_type_vector and string_char_type members.
153
154 * m2-lang.c (m2_builtin_types): Remove.
155 (enum m2_primitive_types): New data type.
156 (m2_language_arch_info): New function.
157 (m2_language_defn): Set la_language_arch_info member. Do not set
158 la_builtin_type_vector and string_char_type members.
159
160 * objc-lang.c (objc_builtin_types): Remove.
161 (objc_language): Set la_language_arch_info member. Do not set
162 la_builtin_type_vector and string_char_type members.
163
164 * p-lang.c (pascal_builtin_types): Remove.
165 (enum pascal_primitive_types): New data type.
166 (pascal_language_arch_info): New function.
167 (pascal_language_defn): Set la_language_arch_info member. Do not set
168 la_builtin_type_vector and string_char_type members.
169
170 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
171
172 * regcache.c (struct regcache): Add ptid_t member.
173 (regcache_xmalloc): Initialize it.
174 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
175 (regcache_dup): Likewise.
176 (regcache_dup_no_passthrough): Likewise.
177 (current_regcache): Make static.
178 (registers_ptid): Remove variable.
179 (get_thread_regcache): New function.
180 (get_current_regcache): New function.
181 (registers_changed): Implement by freeing current regcache.
182 (regcache_raw_read): Do not refer to current_regcache. Set
183 inferior_ptid to regcache->ptid while calling target routines.
184 (regcache_raw_write): Likewise.
185 (regcache_raw_supply): Do not refer to current_regcache.
186 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
187 (write_pc_pid): Likewise.
188 (build_regcache): Remove.
189 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
190 or deprecated_register_gdbarch_swap. Do not initialize
191 registers_ptid.
192 * regcache.h (get_current_regcache): Add prototype.
193 (get_thread_regcache): Likewise.
194 (current_regcache): Remove declaration.
195
196 * corelow.c (core_open): Replace current_regcache by
197 get_current_regcache ().
198 * frame.c (frame_pop): Likewise.
199 (put_frame_register): Likewise.
200 (get_current_frame, create_new_frame): Likewise.
201 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
202 * stack.c (return_command): Likewise.
203 * infcall.c (call_function_by_hand): Likewise.
204 * infrun.c (resume): Likewise.
205 (save_inferior_status, restore_inferior_status): Likewise.
206 * linux-fork.c (fork_load_infrun_state): Likewise.
207 (fork_save_infrun_state): Likewise.
208 * win32-nat.c (win32_resume): Likewise.
209 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
210 * monitor.c (monitor_wait): Likewise.
211 * remote.c (remote_wait): Likewise.
212 * remote-mips.c (mips_wait): Likewise.
213
214 * bsd-kvm.c (bsd_kvm_open): Likewise
215 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
216 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
217 * i386-linux-nat.c (i386_linux_resume): Likewise.
218 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
219 (ia64_linux_stopped_data_address): Likewise.
220
221 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
222 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
223 * mep-tdep.c (current_me_module, current_options): Likewise.
224 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
225
226 * linux-nat.c (linux_nat_do_thread_registers): Use thread
227 regcache instead of current_regcache. Call target_fetch_registers.
228 (linux_nat_corefile_thread_callback): Update call site.
229 (linux_nat_do_registers): Likewise.
230 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
231 of current_regcache.
232 (procfs_make_note_section): Likewise.
233 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
234 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
235 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
236 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
237
238 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
239
240 * regcache.c (read_register, read_register_pid): Remove.
241 (write_register, write_register_pid): Likewise.
242 * regcache.h (read_register, read_register_pid): Remove prototype.
243 (write_register, write_register_pid): Likewise.
244
245 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
246
247 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
248 (write_pc): Likewise. Remove default implementation, add predicate.
249 * gdbarch.c, gdbarch.h: Regenerate.
250 * regcache.c (read_pc_pid): Use current regcache instead of calling
251 read_register_pid.
252 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
253 case inline.
254 (generic_target_write_pc): Remove.
255 * inferior.h (generic_target_write_pc): Remove.
256 * frv-tdep.c (frv_gdbarch_init): Do not install it.
257 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
258 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
259 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
260 * sh-tdep.c (sh_gdbarch_init): Likewise.
261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
262
263 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
264 argument. Use REGCACHE instead of calling read_register_pid.
265 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
266 * hppa-tdep.c (hppa_read_pc): Likewise.
267 * hppa-tdep.h (hppa_read_pc): Likewise.
268 * ia64-tdep.c (ia64_read_pc): Likewise.
269 * m32r-tdep.c (m32r_read_pc): Likewise.
270 * mep-tdep.c (mep_read_pc): Likewise.
271 * mn10300-tdep.c (mn10300_read_pc): Likewise.
272 * spu-tdep.c (spu_read_pc): Likewise.
273
274 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
275 argument. Use REGCACHE instead of calling write_register_pid.
276 * avr-tdep.c (avr_write_pc): Likewise.
277 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
278 * hppa-tdep.c (hppa_write_pc): Likewise.
279 * hppa-tdep.h (hppa_write_pc): Likewise.
280 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
281 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
282 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
283 * ia64-tdep.c (ia64_write_pc): Likewise.
284 * ia64-tdep.h (ia64_write_pc): Likewise.
285 * m32r-tdep.c (m32r_write_pc): Likewise.
286 * m88k-tdep.c (m88k_write_pc): Likewise.
287 * mep-tdep.c (mep_write_pc): Likewise.
288 * mips-tdep.c (mips_write_pc): Likewise.
289 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
290 * mn10300-tdep.c (mn10300_write_pc): Likewise.
291 * sparc-tdep.c (sparc_write_pc): Likewise.
292 * spu-tdep.c (spu_write_pc): Likewise.
293
294 * mips-tdep.c (read_signed_register): Remove.
295 (read_signed_register_pid): Likewise.
296 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
297 Use REGCACHE instead of calling read_signed_register_pid.
298
299 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
300
301 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
302 * gdbarch.c, gdbarch.h: Regenerate.
303 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
304 (push_dummy_code): Likewise. Pass it to callee.
305 (call_function_by_hand): Pass current regcache to push_dummy_code.
306
307 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
308 argument. Use it instead of current_regcache.
309
310 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
311 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
312
313 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
314
315 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
316 * gdbarch.c, gdbarch.h: Regenerate.
317 * infrun.c (handle_inferior_event): Pass current frame to
318 gdbarch_get_longjmp_target.
319
320 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
321 Read registers from FRAME instead of using read_register.
322 Use get_frame_arch instead of current_gdbarch.
323 * arm-tdep.c (arm_get_longjmp_target): Likewise.
324 * i386-tdep.c (i386_get_longjmp_target): Likewise.
325 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
326 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
327 (mips64_linux_get_longjmp_target): Likewise.
328 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
329
330 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
331
332 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
333 * gdbarch.c, gdbarch.h: Regenerate.
334 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
335 * arch-utils.h (generic_skip_trampoline_code): Likewise.
336 * infrun.c (handle_inferior_event): Pass current frame to
337 gdbarch_skip_trampoline_code and skip_language_trampoline.
338
339 * language.c (unk_lang_trampoline): Add FRAME argument.
340 (skip_language_trampoline): Add FRAME argument. Pass it to
341 skip_trampoline callback.
342 * language.h: Add forward declaration of struct frame_info.
343 (struct language_defn): Add FRAME argument to skip_trampoline.
344 (skip_language_trampoline): Add FRAME argument.
345 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
346 to skip_trampoline callback.
347 * cp-abi.h: Add forward declaration of struct frame_info.
348 (cplus_skip_trampoline): Add FRAME argument.
349 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
350 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
351 to gdbarch_skip_trampoline_code.
352 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
353 to gdbarch_skip_trampoline_code.
354
355 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
356 * symtab.h (find_solib_trampoline_target): Likewise.
357 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
358 find_solib_trampoline_target.
359
360 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
361 from FRAME instead of calling read_register.
362
363 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
364 argument. Read registers from FRAME instead of using read_register.
365 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
366 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
367
368 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
369 argument.
370
371 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
372
373 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
374 registers from FRAME instead of using read_signed_register.
375
376 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
377 argument.
378 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
379 instead of using read_register.
380 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
381 ppc64_standard_linkage_target.
382 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
383 Pass it to find_solib_trampoline_target. Read registers from FRAME
384 instead of using read_register.
385
386 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
387 argument.
388
389 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
390
391 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
392 FRAME argument.
393 * gdbarch.c, gdbarch.h: Regenerate.
394 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
395
396 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
397 registers from FRAME instead of using read_register.
398 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
399 to alpha_next_pc. Use get_frame_pc instead of read_pc.
400 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
401 argument by FRAME.
402
403 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
404 from FRAME instead of using read_register.
405 (thumb_get_next_pc): Likewise.
406 (arm_get_next_pc): Likewise.
407 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
408 to arm_get_next_pc. Use get_frame_pc instead of read_register.
409 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
410 argument by FRAME.
411
412 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
413 from FRAME instead of using read_register.
414 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
415 to find_step_target.
416
417 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
418 from FRAME instead of using read_register / read_signed_register.
419 (extended_mips16_next_pc): Likewise.
420 (mips16_next_pc): Likewise.
421 (mips_next_pc): Likewise.
422 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
423 to mips_next_pc. Use get_frame_pc instead of read_pc.
424 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
425 argument by FRAME.
426
427 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
428 of current frame. Read registers from FRAME.
429 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
430 branch_dest. Use get_frame_pc instead of read_pc.
431 (rs6000_software_single_step): Likewise.
432 (bl_to_blrl_insn_p): Do not call branch_dest.
433 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
434 argument by FRAME.
435
436 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
437 Read registers from FRAME instead of current regcache.
438 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
439 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
440 * sparc-tdep.c (sparc_address_from_register): Remove.
441 (sparc_analyze_control_transfer): Pass FRAME argument instead of
442 GDBARCH. Pass FRAME to step_trap callback.
443 (sparc_step_trap): Add FRAME argument.
444 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
445 to sparc_analyze_control_transfer. Read registers from FRAME instead
446 of calling sparc_address_from_register.
447 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
448 step_trap callback.
449 (sparc_address_from_register): Remove prototype.
450 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
451 (sparcnbsd_step_trap): Add FRAME argument.
452
453 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
454 by FRAME. Read registers from FRAME instead of REGCACHE.
455
456 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
457
458 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
459 instead of calling read_register.
460
461 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
462 calling write_register.
463
464 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
465 calling write_register.
466
467 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
468 instead of calling read_register.
469 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
470 instead of calling read_register and write_register.
471
472 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
473 instead of current_regcache.
474
475 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
476 of calling write_register.
477 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
478 parameter instead of current_regcache.
479
480 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
481 instead of calling read_register.
482 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
483 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
484 (mips_n32n64_push_dummy_call): Likewise.
485 (mips_o32_push_dummy_call): Likewise.
486 (mips_o64_push_dummy_call): Likewise.
487
488 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
489 parameter instead of current_regcache.
490
491 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
492 Use it instead of read_register and write_register.
493 (xtensa_register_read_masked): Likewise.
494 (xtensa_pseudo_register_read): Update call.
495 (xtensa_pseudo_register_write): Likewise.
496 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
497 instead of calling read_register.
498 (xtensa_push_dummy_call): Update comment.
499
500 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
501
502 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
503 by frame_unwind_register_signed calls.
504 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
505 frame allocations when called with NULL NEXT_FRAME parameter.
506 (read_next_frame_reg): Remove.
507
508 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
509 instead of reading the FPSCR register.
510 (sh_frame_cache): Pass unwound FPSCR register value to
511 sh_analyze_prologue.
512 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
513
514 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
515 instead of reading the CTBP register.
516 (v850_frame_cache): Pass unwound CTBP register value to
517 v850_analyze_prologue.
518
519 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
520
521 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
522 * sh-tdep.c (sh_show_regs): Likewise.
523 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
524 (sh_generic_show_regs): Add FRAME parameter. Use register
525 values from that frame instead of calling read_register.
526 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
527 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
528 sh_dsp_show_regs): Likewise.
529 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
530 sh64_show_regs): Likewise.
531
532 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
533
534 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
535 current regcache instead of calling read_register.
536
537 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
538
539 * mep-tdep.c (current_me_module): Read from current regcache
540 instead of calling read_register.
541 (current_options): Likewise.
542
543 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
544
545 * cris-tdep.c (cris_stopped_data_address): Read register values
546 from current frame instead of calling read_register.
547 * frv-tdep.c (frv_stopped_data_address): Likewise.
548
549 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
550
551 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
552 instead of write_register (PC_REGNUM, ...).
553
554 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
555
556 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
557 explaining why the PC adjustment code is necessary.
558
559 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
560
561 * m68k-tdep.h (enum m68k_flavour): New.
562 (struct gdbarch_tdep): New fields
563 float_return, flavour and fpregs_present.
564 * m68k-tdep.c (m68k_register_type): Use
565 fpregs_present and conditionalize floating
566 registers type on flavour.
567 (m68k_register_names): New.
568 (m68k_register_name): Use the above.
569 (m68k_convert_register_p): Consult fpregs_present.
570 (m68k_register_to_value, m68k_value_to_register):
571 Use register_type to obtain the type of floating
572 point registers.
573 (m68k_svr4_extract_return_value): Check tdep->float_return.
574 Use register_type to get the type of floating
575 point regiters.
576 (m68k_svr4_store_return_value): Likewise.
577 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
578 (m68k_analyze_register_saves): Likewise.
579 (m68k_gdbarch_init): Extract infromation
580 from XML description, if present. Guess coldfire by
581 looking at the file, if present. Conditionalize
582 setting of long double format. Set decr_pc_after_break
583 to 2 on coldfire and fido. Enable XML-driven
584 register description.
585 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
586 size of tdep->fpreg_type, as opposed to hardcoded value.
587 * Makefile.in (m68k-tdep.o): Update dependencies.
588
589 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
590
591 * NEWS: Mention "info spu" commands and qXfer:spu:read and
592 qXfer:spu:write remote packet types.
593
594 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
595
596 * xml-tdesc.c (tdesc_start_target): New.
597 (target_attributes): New.
598 (tdesc_elements): Use it.
599 * features/gdb-target.dtd: Add #FIXED version attribute for
600 <target>.
601
602 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
603
604 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
605
606 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
607
608 * fork-child.c (fork_inferior): Update comment.
609
610 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
611
612 * features/Makefile: Generate regformats for mips-linux and
613 mips64-linux.
614 * features/sort-regs.xsl: Correct typo.
615 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
616 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
617 files.
618
619 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
620
621 * config/mips/linux.mh (TDEP_XML): New.
622 * features/mips-linux.xml, features/mips64-linux.xml: New files.
623 * mips-linux-nat.c (mips_linux_register_addr): Handle
624 MIPS_RESTART_REGNUM.
625 (mips64_linux_register_addr): Likewise.
626 (super_xfer_partial, mips_linux_xfer_partial): New.
627 (_initialize_mips_linux_nat): Add them to the target_ops.
628 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
629 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
630 (mips_linux_o32_sigframe_init)
631 (mips_linux_n32n64_sigframe_init): Likewise.
632 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
633 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
634 "org.gnu.gdb.mips.linux" feature.
635 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
636 (mips_linux_restart_reg_p): New prototype.
637 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
638 initialization routine.
639 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
640
641 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
642
643 * Makefile.in (mips-tdep.o): Update.
644 * mips-tdep.c (struct register_alias, mips_o32_aliases)
645 (mips_n32_n64_aliases, mips_register_aliases): New.
646 (mips_register_name): Call tdesc_register_name.
647 (mips_tdesc_register_reggroup_p): New.
648 (mips_pseudo_register_type, value_of_mips_user_reg): New.
649 (mips_gdbarch_init): Add target-described register support.
650 Register aliases for register names.
651 * target-descriptions.c (tdesc_register_name): Make global.
652 (tdesc_register_in_reggroup_p): New function, broken out from
653 tdesc_register_reggroup_p.
654 (tdesc_register_reggroup_p): Use it.
655 * target-descriptions.h (tdesc_register_name)
656 (tdesc_register_in_reggroup_p): New prototypes.
657 * NEWS: Correct formatting. Mention MIPS register support.
658 * features/mips-cp0.xml, features/mips-fpu.xml,
659 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
660 features/mips64-cpu.xml: New files.
661
662 2007-06-13 Markus Deuling <deuling@de.ibm.com>
663
664 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
665 * valops.c (value_cast): Likewise.
666 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
667 * ui-out.c (ui_out_field_core_addr): Likewise.
668 * tracepoint.c (tracepoints_info): Likewise.
669 * symtab.c (print_msymbol_info): Likewise.
670 * solib-irix.c (irix_current_sos)
671 (irix_open_symbol_file_object): Likewise.
672 * remote.c (build_remote_gdbarch_data): Likewise.
673 * prologue-value.c (make_pv_area): Likewise.
674 * procfs.c (info_mappings_callback): Likewise.
675 * printcmd.c (print_scalar_formatted)
676 (deprecated_print_address_numeric): Likewise.
677 * memattr.c (mem_info_command): Likewise.
678 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
679 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
680 * exec.c (print_section_info): Likewise.
681 * dwarf2read.c (read_subrange_type): Likewise.
682 * dwarf2loc.c (find_location_expression): Likewise.
683 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
684 (signed_address_type, execute_stack_op): Likewise.
685 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
686 * gdbarch.c, gdbarch.h: Regenerate.
687
688 2007-06-13 Markus Deuling <deuling@de.ibm.com>
689
690 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
691 * arch-utils.c (show_architecture): Likewise.
692 * remote-mips.c (mips_open): Likewise
693 * nto-tdep.c (nto_find_and_open_solib)
694 (nto_init_solib_absolute_prefix): Likewise.
695 * nto-procfs (procfs_open): Likewise.
696 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
697 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
698 * gdbarch.c, gdbarch.h: Regenerate.
699
700 2007-06-13 Markus Deuling <deuling@de.ibm.com>
701
702 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
703 * gdbtypes.c (build_flt): Likewise.
704 * gdbarch.c, gdbarch.h: Regenerate.
705
706 2007-06-13 Markus Deuling <deuling@de.ibm.com>
707
708 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
709 gdbarch_breakpoint_from_pc.
710 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
711 * remote.c (remote_insert_breakpoint)
712 (remote_insert_hw_breakpoint): Likewise.
713 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
714 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
715 * breakpoint.h (bp_target_info): Likewise (comment).
716 * breakpoint.c (read_memory_nobpt): Likewise.
717 * mem-break.c (default_memory_insert_breakpoint): Likewise.
718 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
719 * gdbarch.c, gdbarch.h: Regenerate.
720
721 2007-06-13 Markus Deuling <deuling@de.ibm.com>
722
723 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
724 * solib-svr4.c (svr4_truncate_ptr): Likewise.
725 * solib-pa64.c (read_dynamic_info): Likewise.
726 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
727 * solib.c (info_sharedlibrary_command): Likewise.
728 * s390-nat.c (SUBOFF): Likewise.
729 * p-valprint.c (pascal_val_print): Likewise.
730 * procfs.c (info_proc_mappings): Likewise.
731 * printcmd.c (decode_format): Likewise.
732 * nto-tdep.c (nto_truncate_ptr): Likewise.
733 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
734 (mips64_linux_get_longjmp_target): Likewise.
735 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
736 * jv-valprint.c (java_value_print): Likewise.
737 * jv-lang.c (get_java_object_header_size): Likewise.
738 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
739 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
740 (hppa_hpux_unwind_adjust_stub): Likewise.
741 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
742 * gdbtypes.c (make_pointer_type, make_reference_type)
743 (smash_to_memberptr_type): Likewise.
744 * gdbarch.c, gdbarch.h: Regenerate.
745
746 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
747
748 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
749 (print_gp_register_row): Stop before printing a register bigger
750 than the ABI register size.
751 (mips_print_registers_info): Update call to mips_print_register.
752
753 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
754
755 * expression.h (enum exp_opcode): Document a register name for
756 OP_REGISTER.
757 * parse.c (write_dollar_variable): Write the register name for
758 OP_REGISTER.
759 (operator_length_standard): Expect the register name following
760 OP_REGISTER.
761 * ada-lang.c (resolve_subexp): Likewise.
762 * ax-gdb.c (gen_expr): Likewise.
763 * eval.c (evaluate_subexp_standard): Likewise.
764 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
765 Likewise.
766 * tracepoint.c (encode_actions): Likewise.
767
768 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
769
770 * utils.c (set_screen_size): Use INT_MAX for default columns.
771
772 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
773
774 * remote.c (remote_protocol_features): Add qXfer:spu:read and
775 qXfer:spu:write packet types.
776
777 2007-06-12 Markus Deuling <deuling@de.ibm.com>
778
779 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
780 * gdbarch.c, gdbarch.h: Regenerate.
781
782 2007-06-12 Markus Deuling <deuling@de.ibm.com>
783
784 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
785 gdbarch_stab_reg_to_regnum.
786 * stabsread.c (define_symbol): Likewise.
787 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
788 gdbarch_ecoff_reg_to_regnum.
789 * mdebugread.c (parse_symbol): Likewise.
790 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
791 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
792 gdbarch_dwarf_reg_to_regnum.
793 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
794 * coffread.c (process_coff_symbol): Likewise.
795 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
796 gdbarch_dwarf2_reg_to_regnum.
797 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
798 (locexpr_describe_location): Likewise.
799 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
800 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
801 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
802 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
803 * gdbarch.c, gdbarch.h: Regenerate.
804
805 2007-06-12 Markus Deuling <deuling@de.ibm.com>
806
807 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
808 gdbarch_smash_text_address.
809 * somread.c (som_symtab_read): Likewise.
810 * elfread.c (record_minimal_symbol): Likewise.
811 * dbxread.c (process_one_symbol): Likewise.
812 * coffread.c (coff_symtab_read): Likewise.
813 * gdbarch.c, gdbarch.h: Regenerate.
814
815 2007-06-12 Markus Deuling <deuling@de.ibm.com>
816
817 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
818 * findvar.c (value_from_register): Likewise.
819 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
820 * valops.c (value_assign): Likewise.
821 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
822 gdbarch_convert_register_p.
823 * findvar.c (value_from_register): Likewise.
824 * valops.c (value_assign): Likewise.
825 * gdbarch.c, gdbarch.h: Regenerate.
826
827 2007-06-12 Markus Deuling <deuling@de.ibm.com>
828
829 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
830 gdbarch_register_sim_regno.
831 * sim-regno.h (sim_regno): Likewise (comment).
832 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
833 * gdbarch.c, gdbarch.h: Regenerate.
834
835 2007-06-12 Markus Deuling <deuling@de.ibm.com>
836
837 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
838 gdbarch_virtual_frame_pointer.
839 * tracepoint.c (encode_actions): Likewise.
840 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
841 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
842 * gdbarch.c, gdbarch.h: Regenerate.
843
844 2007-06-12 Markus Deuling <deuling@de.ibm.com>
845
846 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
847 * p-lang.c (pascal_create_fundamental_type): Likewise.
848 * objc-lang.c (objc_create_fundamental_type): Likewise.
849 * mdebugread.c (_initialize_mdebugread): Likewise.
850 * m2-lang.c (m2_create_fundamental_type)
851 (_initialize_m2_language): Likewise.
852 * gdbtypes.c (build_gdbtypes): Likewise.
853 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
854 * doublest.c (floatformat_from_length): Likewise.
855 * c-lang.c (c_create_fundamental_type): Likewise.
856 * ada-lang.c (ada_create_fundamental_type)
857 (ada_language_arch_info): Likewise.
858 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
859 * value.c (unpack_double): Likewise (comment).
860 * gdbtypes.c (build_gdbtypes): Likewise.
861 * doublest.c (floatformat_from_length): Likewise.
862 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
863 * valarith.c (value_binop): Likewise.
864 * p-lang.c (pascal_create_fundamental_type): Likewise.
865 * objc-lang.c (objc_create_fundamental_type): Likewise.
866 * mdebugread.c (_initialize_mdebugread): Likewise.
867 * m2-lang.c (m2_create_fundamental_type): Likewise.
868 * gdbtypes.c (build_gdbtypes): Likewise.
869 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
870 * doublest.c (floatformat_from_length): Likewise.
871 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
872 * c-lang.c (c_create_fundamental_type): Likewise.
873 * ada-lex.l (processReal): Likewise.
874 * ada-lang.c (ada_create_fundamental_type)
875 (ada_language_arch_info): Likewise.
876 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
877 * value.c (unpack_double): Likewise (comment).
878 * gdbtypes.c (build_gdbtypes): Likewise.
879 * doublest.c (floatformat_from_length): Likewise.
880 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
881 gdbarch_long_double_bit.
882 * p-lang.c (pascal_create_fundamental_type): Likewise.
883 * objc-lang.c (objc_create_fundamental_type): Likewise.
884 * m2-lang.c (m2_create_fundamental_type): Likewise.
885 * gdbtypes.c (build_gdbtypes): Likewise.
886 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
887 * doublest.c (floatformat_from_length): Likewise.
888 * c-lang.c (c_create_fundamental_type): Likewise.
889 * ada-lex.l (processReal): Likewise.
890 * ada-lang.c (ada_create_fundamental_type)
891 (ada_language_arch_info): Likewise.
892 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
893 gdbarch_long_double_format.
894 * gdbtypes.c (build_gdbtypes): Likewise.
895 * doublest.c (floatformat_from_length): Likewise.
896 * gdbarch.c, gdbarch.h: Regenerate.
897
898 2007-06-12 Markus Deuling <deuling@de.ibm.com>
899
900 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
901 * ada-lang.c (ada_create_fundamental_type)
902 (ada_language_arch_info): Likewise.
903 * c-lang.c (c_create_fundamental_type): Likewise.
904 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
905 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
906 * m2-lang.c (m2_create_fundamental_type): Likewise.
907 * objc-lang.c (objc_create_fundamental_type): Likewise.
908 * p-lang.c (pascal_create_fundamental_type): Likewise.
909 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
910 * c-exp.y (parse_number): Likewise.
911 * objc-exp.y (parse_number): Likewise.
912 * ada-lex.l (processInt): Likewise.
913 * f-exp.y (parse_number): Likewise.
914 * p-exp.y (parse_number): Likewise.
915 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
916 (gdbtypes_post_init, build_gdbtypes): Likewise.
917 * p-lang.c (pascal_create_fundamental_type): Likewise.
918 * parse.c (build_parse): Likewise.
919 * xcoffread.c (_initialize_xcoffread): Likewise.
920 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
921 (read_range_type): Likewise.
922 * objc-lang.c (objc_create_fundamental_type): Likewise.
923 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
924 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
925 (m2_create_fundamental_type): Likewise.
926 * c-lang.c (c_create_fundamental_type): Likewise.
927 * coffread.c (coff_read_enum_type): Likewise.
928 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
929 * dwarf2read.c (new_symbol): Likewise.
930 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
931 * c-exp.y (parse_number): Likewise.
932 * objc-exp.y (parse_number): Likewise.
933 * ada-lex.l (processInt): Likewise.
934 * f-exp.y (parse_number): Likewise.
935 * p-exp.y (parse_number): Likewise.
936 * valarith.c (value_binop): Likewise.
937 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
938 * ada-lang.c (ada_create_fundamental_type)
939 (ada_language_arch_info): Likewise.
940 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
941 * symfile.c (TARGET_LONG_BYTES): Likewise.
942 * p-lang.c (pascal_create_fundamental_type): Likewise.
943 * objc-lang.c (objc_create_fundamental_type): Likewise.
944 * m2-lang.c (m2_create_fundamental_type): Likewise.
945 * f-lang.c (f_create_fundamental_type): Likewise.
946 * c-lang.c (c_create_fundamental_type): Likewise.
947 * coffread.c (decode_base_type): Likewise.
948 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
949 * c-exp.y (parse_number): Likewise.
950 * objc-exp.y (parse_number): Likewise.
951 * p-exp.y (parse_number): Likewise.
952 * ada-lang.c (ada_create_fundamental_type)
953 (ada_language_arch_info): Likewise.
954 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
955 * stabsread.c (read_range_type): Likewise.
956 * p-lang.c (pascal_create_fundamental_type): Likewise.
957 * objc-lang.c (objc_create_fundamental_type): Likewise.
958 * m2-lang.c (m2_create_fundamental_type): Likewise.
959 * f-lang.c (f_create_fundamental_type): Likewise.
960 * c-lang.c (c_create_fundamental_type): Likewise.
961 * gdbarch.c, gdbarch.h: Regenerate.
962
963 2007-06-12 Andreas Schwab <schwab@suse.de>
964
965 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
966 (struct frame_unwind): Add dealloc_cache.
967 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
968
969 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
970 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
971 (libunwind_frame_unwind): Set dealloc_cache.
972 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
973
974 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
975 Markus Deuling <deuling@de.ibm.com>
976
977 * remote.c (remote_write_qxfer): New function.
978 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
979 (remote_read_qxfer): Do not cache empty objects.
980 (_initialize_remote): Add PACKET_qXfer_spu_read and
981 PACKET_qXfer_spu_write.
982
983 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
984
985 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
986 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
987
988 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
989 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
990 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
991 * spu-tdep.c (infospucmdlist): New variable.
992 (spu_register_name): Handle additional pseudo registers.
993 (spu_register_type): Likewise.
994 (spu_pseudo_register_read): Likewise.
995 (spu_pseudo_register_write): Likewise.
996 (spu_pseudo_register_read_spu): New function.
997 (spu_pseudo_register_write_spu): Likewise.
998 (info_spu_event_command): New function.
999 (info_spu_signal_command): Likewise.
1000 (info_spu_mailbox_list): Likewise.
1001 (info_spu_mailbox_command): Likewise.
1002 (spu_mfc_get_bitfield): Likewise.
1003 (info_spu_dma_cmdlist): Likewise.
1004 (info_spu_dma_command): Likewise.
1005 (info_spu_proxydma_command): Likewise.
1006 (info_spu_command): Likewise.
1007 (_initialize_spu_tdep): Install "info spu" commands.
1008
1009 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1010
1011 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
1012 accessing non-seekable spufs files.
1013
1014 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1015
1016 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
1017 gdbarch_skip_trampoline_code.
1018 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1019 * objc-lang.c (objc_skip_trampoline)
1020 (objc_submethod_helper_data): Likewise.
1021 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
1022 * infrun.c (handle_inferior_event): Likewise.
1023 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
1024 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
1025 gdbarch_in_solib_return_trampoline.
1026 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1027 * infrun.c (handle_inferior_event): Likewise.
1028 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
1029 * gdbarch.c, gdbarch.h: Regenerate.
1030
1031 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1032
1033 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
1034 * symtab.c (find_function_start_sal, in_prologue): Likewise.
1035 * linespec.c (minsym_found): Likewise.
1036 * infrun.c (step_into_function): Likewise.
1037 * gdbarch.c, gdbarch.h: Regenerate.
1038
1039 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1040
1041 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
1042 * valops.c (value_allocate_space_in_inferior): Likewise.
1043 * gdbarch.c, gdbarch.h: Regenerate.
1044
1045 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1046
1047 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
1048 gdbarch_memory_insert_breakpoint.
1049 * mem-break.c (memory_insert_breakpoint): Likewise.
1050 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
1051 gdbarch_memory_remove_breakpoint.
1052 * mem-break.c (memory_remove_breakpoint): Likewise.
1053 * gdbarch.c, gdbarch.h: Regenerate.
1054
1055 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1056
1057 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
1058 gdbarch_fetch_tls_load_module_address.
1059 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
1060 gdbarch_fetch_tls_load_module_address_p.
1061 * gdbarch.c, gdbarch.h: Regenerate.
1062
1063 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1064
1065 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
1066 gdbarch_decr_pc_after_break.
1067 * tracepoint.c (trace_dump_command): Likewise.
1068 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
1069 * linux-thread-db.c (check_event): Likewise.
1070 * linux-nat.c (cancel_breakpoints_callback): Likewise.
1071 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
1072 * frame.h: Likewise (comment).
1073 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
1074 * aix-thread.c (aix_thread_wait): Likewise.
1075 * gdbarch.c, gdbarch.h: Regenerate.
1076
1077 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1078
1079 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
1080 gdbarch_address_class_type_flags.
1081 * dwarf2read.c (read_tag_pointer_type): Likewise.
1082 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
1083 gdbarch_address_class_type_flags_p.
1084 * dwarf2read.c (read_tag_pointer_type): Likewise.
1085 * gdbarch.c, gdbarch.h: Regenerate.
1086
1087 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1088
1089 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
1090 * value.c (value_as_address): Likewise (comment).
1091 * remote-mips.c (common_breakpoint): Likewise.
1092 * regcache.c (read_pc_pid): Likewise.
1093 * printcmd.c (do_one_display): Likewise.
1094 * monitor.c (monitor_write_memory, monitor_read_memory)
1095 (monitor_insert_breakpoint): Likewise.
1096 * mips-tdep.c (heuristic_proc_start): Likewise.
1097 * infrun.c (insert_step_resume_breakpoint_at_frame)
1098 (insert_step_resume_breakpoint_at_caller): Likewise.
1099 * buildsym.c (record_line): Likewise.
1100 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
1101 (arm_get_next_pc): Likewise.
1102 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1103 (store_regs): Likewise.
1104 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1105 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
1106 * gdbarch.c, gdbarch.h: Regenerate.
1107
1108 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1109
1110 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
1111 * tracepoint.c (scope_info): Likewise.
1112 * target.c (debug_print_register): Likewise.
1113 * stack.c (frame_info): Likewise.
1114 * sh-tdep.c (sh_register_reggroup_p): Likewise.
1115 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
1116 (sh64_media_print_registers_info)
1117 (sh64_compact_print_registers_info): Likewise.
1118 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
1119 * remote-sim.c (gdbsim_fetch_register): Likewise.
1120 * remote.c (packet_reg): Likewise (comment).
1121 * reggroups.c (default_register_reggroup_p): Likewise.
1122 * regcache.c (regcache_dump): Likewise.
1123 * printcmd.c (address_info): Likewise.
1124 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
1125 * mt-dep.c (mt_registers_info): Likewise.
1126 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
1127 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
1128 (mips_read_fp_register_double, mips_print_fp_register)
1129 (mips_print_register, print_gp_register_row, mips_print_registers_info)
1130 (mips_register_sim_regno): Likewise.
1131 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
1132 * inf-ptrace.c (inf_ptrace_fetch_register)
1133 (inf_ptrace_store_register): Likewise.
1134 * infcmd.c (default_print_registers_info): Likewise.
1135 * ia64-linux-nat.c (ia64_linux_fetch_register)
1136 (ia64_linux_store_register): Likewise.
1137 * i386-linux-nat.c (fetch_register, store_register): Likewise.
1138 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
1139 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
1140 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
1141 (hppa_hpux_store_register): Likewise.
1142 * findvar.c (locate_var_value): Likewise.
1143 * dwarf2loc.c (locexpr_describe_location): Likewise.
1144 * dwarf2-frame.c (execute_cfa_program): Likewise.
1145 * arm-tdep.c (arm_push_dummy_call): Likewise.
1146 * arch-utils.c (legacy_register_sim_regno): Likewise.
1147 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
1148 * alpha-nat.c (fetch_osf_core_registers): Likewise.
1149 * mi/mi-main.c (mi_cmd_data_list_register_names)
1150 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
1151 (mi_cmd_data_write_register_values): Likewise.
1152 * gdbarch.c, gdbarch.h: Regenerate.
1153
1154 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
1155
1156 * target-memory.c (blocks_to_erase): Correct off-by-one error.
1157
1158 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
1159
1160 * remote.c (process_g_packet): Don't check size.
1161 * gdbarch.sh: Remove register_bytes_ok.
1162 * gdbarch.c: Regenerated.
1163 * gdbarch.h: Regenerated.
1164 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
1165 (m68k_register_bytes_ok): Remove.
1166 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
1167
1168 2007-06-06 Andreas Schwab <schwab@suse.de>
1169
1170 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
1171 (destroy_addr_space_name): Define.
1172 (libunwind_load): Get address of destroy_addr_space function.
1173 (libunwind_frame_cache): Destroy unw_addr_space_t object before
1174 returning unsuccessfully.
1175 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
1176 returning.
1177 (libunwind_sigtramp_frame_sniffer): Likewise.
1178 (libunwind_get_reg_special): Likewise.
1179
1180 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1181
1182 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
1183 gdbarch_fetch_pointer_argument.
1184 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
1185 * gdbarch.c, gdbarch.h: Regenerate.
1186
1187 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1188
1189 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
1190 gdbarch_have_nonsteppable_watchpoint.
1191 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
1192 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
1193 gdbarch_cannot_step_breakpoint.
1194 * infrun.c (resume): Likewise.
1195 * gdbarch.c, gdbarch.h: Regenerate.
1196
1197 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1198
1199 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
1200 * stack.c (print_frame_args): Likewise.
1201 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
1202 * stack.c (print_args_stub, frame_info): Likewise.
1203 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
1204 * stack.c (print_args_stub, frame_info): Likewise.
1205 * gdbarch.c, gdbarch.h: Regenerate.
1206
1207 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1208
1209 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
1210 gdbarch_coff_make_msymbol_special.
1211 * coffread.c (coff_symtab_read): Likewise.
1212 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
1213 gdbarch_elf_make_msymbol_special.
1214 * elfread.c (elf_symtab_read): Likewise.
1215 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
1216 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
1217 * gdbarch.c, gdbarch.h: Regenerate.
1218
1219 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1220
1221 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
1222 gdbarch_frame_red_zone_size.
1223 * gdbarch.c, gdbarch.h: Regenerate.
1224
1225 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1226
1227 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
1228 * infcall.c (call_function_by_hand): Likewise.
1229 * gcore.c (derive_stack_segment): Likewise.
1230 * frame.c (frame_id_inner): Likewise.
1231 * arch-utils.c (core_addr_lessthan): Likewise (comment).
1232 * ada-lang.c (ensure_lval): Likewise.
1233 * gdbarch.c, gdbarch.h: Regenerate.
1234
1235 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1236
1237 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
1238 gdbarch_address_to_pointer.
1239 * findvar.c (store_typed_address): Likewise.
1240 * gdbtypes.c (make_pointer_type): Likewise (comment).
1241 * procfs.c (procfs_address_to_host_pointer): Likewise.
1242 * std-regs.c (value_of_builtin_frame_reg): Likewise.
1243 (value_of_builtin_frame_fp_reg): Likewise.
1244 (value_of_builtin_frame_pc_reg): Likewise.
1245 * utils.c (paddress): Likewise (comment).
1246 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
1247 gdbarch_pointer_to_address.
1248 * findvar.c (extract_typed_address): Likewise.
1249 * gdbtypes.c (make_pointer_type): Likewise (comment).
1250 * valops.c (value_cast): Likewise (comment).
1251 * gdbarch.c, gdbarch.h: Regenerate.
1252
1253 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1254
1255 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
1256 * infrun.c (handle_inferior_event): Likewise.
1257 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
1258 gdbarch_get_longjmp_target_p.
1259 * breakpoint.c (breakpoint_re_set): Likewise.
1260 * infrun.c (handle_inferior_event): Likewise.
1261 * gdbarch.c, gdbarch.h: Regenerate.
1262
1263 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1264
1265 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
1266 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
1267 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
1268 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
1269 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
1270 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
1271 find_stub_with_shl_get, cover_find_stub_with_shl_get,
1272 initialize_hp_cxx_exception_support, child_enable_exception_callback,
1273 current_ex_event, child_get_current_exception_event): Remove.
1274 (hppa_hpux_inferior_created): Remove.
1275 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
1276
1277 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
1278 (deprecated_exception_support_initialized): Remove.
1279 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
1280 (deprecated_exception_support_initialized): Remove.
1281 (breakpoint_init_inferior): Remove handling of non-zero
1282 deprecated_exception_catchpoints_are_fragile.
1283
1284 * symtab.h (deprecated_hp_som_som_object_present): Remove.
1285 * symtab.c (deprecated_hp_som_som_object_present): Remove.
1286 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
1287 deprecated_hp_som_som_object_present.
1288 * eval.c (evaluate_subexp_standard): Likewise.
1289 * valops.c (value_cast): Likewise.
1290
1291 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
1292 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
1293 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
1294
1295 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1296
1297 * objfiles.h (ImportEntry, ExportEntry): Remove types.
1298 (struct objfile): Remove import_list, import_list_size,
1299 export_list, export_list_size members.
1300 (is_in_import_list): Remove prototype.
1301 * objfiles.c (is_in_import_list): Remove.
1302 * somread.c (init_import_symbols, init_export_symbols): Remove.
1303 (som_symfile_read): Do not call init_import_symbols. Do not
1304 set objfile->export_list and objfile->export_list_size.
1305
1306 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1307
1308 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
1309 Use the original objfile if necessary.
1310
1311 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
1312
1313 * defs.h (ldirname): New prototype.
1314 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
1315 missing.
1316 * utils.c (ldirname): New function.
1317 * xml-tdesc.c (file_read_description_xml): Use ldirname.
1318
1319 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1320
1321 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
1322
1323 2007-06-01 Joel Brobecker <brobecker@adacore.com>
1324
1325 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
1326
1327 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1328
1329 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
1330
1331 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1332
1333 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
1334 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
1335 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
1336 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
1337 (ppc_linux_in_sigtramp, insn_is_sigreturn,
1338 ppc_linux_at_sigtramp_return_path): Remove.
1339
1340 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1341
1342 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
1343 (xtensa_register_write_masked, xtensa_register_read_masked)
1344 (xtensa_extract_return_value, xtensa_store_return_value
1345 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
1346 TARGET_BYTE_ORDER by gdbarch_byte_order.
1347 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
1348 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
1349 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
1350 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
1351 (sh64_push_dummy_call, sh64_extract_return_value)
1352 (sh64_store_return_value, sh64_register_convert_to_virtual)
1353 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
1354 (sh64_pseudo_register_write, sh64_do_fp_register)
1355 (sh64_frame_prev_register): Likewise.
1356 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
1357 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
1358 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
1359 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
1360 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
1361 * ppc-linux-nat.c (store_register): Likewise.
1362 * nto-tdep.c (nto_find_and_open_solib)
1363 (nto_init_solib_absolute_prefix): Likewise.
1364 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
1365 (mips_convert_register_p, mips_eabi_push_dummy_call)
1366 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1367 (mips_o32_push_dummy_call, mips_o32_return_value)
1368 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
1369 (mips_read_fp_register_single, mips_read_fp_register_double)
1370 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
1371 (mips_breakpoint_from_pc): Likewise.
1372 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
1373 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
1374 (mips_linux_o32_sigframe_init): Likewise.
1375 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1376 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
1377 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
1378 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
1379 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1380 * coffread.c (process_coff_symbol): Likewise.
1381 * arm-tdep.c (convert_from_extended, convert_to_extended)
1382 (gdb_print_insn_arm): Likewise.
1383
1384 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1385
1386 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
1387 * i386-tdep.c (i386_dbx_reg_to_regnum)
1388 (i386_svr4_reg_to_regnum): Likewise.
1389 * inf-ptrace.c (inf_ptrace_fetch_registers)
1390 (inf_ptrace_store_registers): Likewise.
1391 * corelow.c (get_core_registers): Likewise.
1392 * i386-linux-nat.c (supply_gregset, fill_gregset)
1393 (i386_linux_fetch_inferior_registers)
1394 (i386_linux_store_inferior_registers): Likewise.
1395 * remote.c (init_remote_state,packet_reg_from_regnum)
1396 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
1397 (remote_prepare_to_store,store_registers_using_G)
1398 (remote_store_registers,remote_arch_state): Likewise.
1399 * tracepoint.c (encode_actions): Likewise.
1400 * mi/mi-main.c (mi_cmd_data_list_register_names)
1401 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1402 (mi_cmd_data_write_register_values): Likewise.
1403 * tui/tui-regs.c (tui_show_register_group)
1404 (tui_show_register_group): Likewise.
1405 * xtensa-tdep.h (FP_ALIAS): Likewise.
1406 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
1407 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
1408 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
1409 * win32-nat.c (do_win32_fetch_inferior_registers)
1410 (do_win32_store_inferior_registers,fetch_elf_core_registers
1411 * user-regs.h: Likewise (comment).
1412 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1413 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1414 * target-descriptions.h: Likewise (comment).
1415 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
1416 * target.c (debug_print_register): Likewise.
1417 * stack.c (frame_info): Likewise.
1418 * stabsread.c (define_symbol): Likewise.
1419 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
1420 (sh64_media_print_registers_info)
1421 (sh64_compact_print_registers_info): Likewise.
1422 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1423 * rs6000-nat.c (fetch_register,store_register): Likewise.
1424 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
1425 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
1426 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
1427 * remote-m32r-sdi.c (m32r_fetch_registers)
1428 (m32r_store_registers): Likewise.
1429 * reggroups.c (default_register_reggroup_p): Likewise.
1430 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
1431 (regcache_restore,regcache_dump): Likewise.
1432 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
1433 * mips-tdep.c (mips_xfer_register,mips_register_name)
1434 (mips_register_reggroup_p,mips_pseudo_register_read)
1435 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
1436 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
1437 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
1438 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
1439 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
1440 (print_gp_register_row,mips_print_registers_info)
1441 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1442 (mips_register_sim_regno): Likewise.
1443 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1444 (mips_linux_n32n64_sigframe_init): Likewise.
1445 * mips-linux-nat.c (mips_linux_register_addr)
1446 (mips64_linux_register_addr): Likewise.
1447 * findvar.c (value_of_register): Likewise.
1448 * infcmd.c (default_print_registers_info,registers_info)
1449 (print_vector_info,print_float_info): Likewise.
1450 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
1451 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1452 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1453 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
1454 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1455 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
1456 (ia64_cannot_store_register,ia64_linux_fetch_registers)
1457 (ia64_linux_store_registers): Likewise.
1458 * hpux-thread.c (hpux_thread_fetch_registers)
1459 (hpux_thread_store_registers): Likewise.
1460 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
1461 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
1462 (h8300_register_type): Likewise.
1463 * dwarf2-frame.c (dwarf2_frame_cache)
1464 (dwarf2_frame_state_alloc_regs): Likewise.
1465 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
1466 (cris_cannot_store_register,crisv32_cannot_fetch_register)
1467 (crisv32_cannot_store_register,cris_register_name): Likewise.
1468 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1469 * arch-utils.c (legacy_register_sim_regno)
1470 (legacy_virtual_frame_pointer): Likewise.
1471 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
1472 * arm-tdep.h: Likewise (comment).
1473 * frv-tdep.c (frv_register_sim_regno): Likewise.
1474 * m68klinux-nat.c (old_fetch_inferior_registers)
1475 (old_store_inferior_registers): Likewise.
1476 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1477 * irix5-nat.c (fetch_core_registers): Likewise.
1478 * hppa-tdep.c (hppa_frame_cache): Likewise.
1479 * hppa-linux-nat.c (hppa_linux_register_addr)
1480 (hppa_linux_fetch_inferior_registers)
1481 (hppa_linux_store_inferior_registers): Likewise.
1482 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
1483 (hppa_hpux_store_inferior_registers): Likewise.
1484 * amd64-nat.c (amd64_native_gregset_reg_offset)
1485 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
1486 * dbug-rom.c (dbug_regname): Likewise.
1487 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
1488 (HARD_PAGE_REGNUM (comment)): Likewise.
1489 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
1490 * i386-tdep.c (i386_dbx_reg_to_regnum)
1491 (i386_svr4_reg_to_regnum): Likewise.
1492 * mi/mi-main.c (mi_cmd_data_list_register_names)
1493 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1494 (mi_cmd_data_write_register_values): Likewise.
1495 * gdbarch.c, gdbarch.h: Regenerate.
1496 * tui/tui-regs.c (tui_show_register_group): Likewise.
1497 * xtensa-tdep.h (FP_ALIAS): Likewise.
1498 * user-regs.h: Likewise (comment).
1499 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1500 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1501 * target-descriptions.h: Likewise (comment).
1502 * target.c (debug_print_register): Likewise.
1503 * stack.c (frame_info): Likewise.
1504 * stabsread.c (define_symbol): Likewise.
1505 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
1506 (sh64_compact_print_registers_info): Likewise.
1507 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1508 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
1509 (regcache_restore,regcache_dump): Likewise.
1510 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
1511 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1512 (mips_stab_reg_to_regnum): Likewise.
1513 * findvar.c (value_of_register): Likewise.
1514 * infcmd.c (default_print_registers_info,registers_info)
1515 (print_vector_info,print_float_info): Likewise.
1516 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1517 * h8300-tdep.c (h8300_register_type): Likewise.
1518 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1519 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
1520 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
1521 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
1522 * parse.c: Remove comment.
1523 * gdbarch.c, gdbarch.h: Regenerate
1524
1525 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1526
1527 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
1528 gdbarch_cannot_fetch_register.
1529 * alpha-nat.c (fetch_osf_core_registers): Likewise.
1530 * hppa-linux-nat.c (fetch_register): Likewise.
1531 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1532 * m68klinux-nat.c (fetch_register): Likewise.
1533 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
1534 Likewise.
1535 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
1536 gdbarch_cannot_store_register.
1537 * hppa-linux-nat.c (store_register): Likewise.
1538 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
1539 * regcache.c (regcache_raw_write): Likewise.
1540 * m68klinux-nat.c (store_register): Likewise.
1541 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
1542 * gdbarch.c, gdbarch.h: Regenerate.
1543
1544 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1545
1546 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
1547 * gdbarch.c, gdbarch.h: Regenerate.
1548
1549 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1550
1551 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
1552 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1553 * gdbarch.c, gdbarch.h: Regenerate.
1554
1555 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1556
1557 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
1558 * ax-gdb.c (gen_bitfield_ref): Likewise.
1559 * mi/mi-main.c (get_register): Likewise.
1560 * findvar.c (default_value_from_register, extract_signed_integer)
1561 (extract_unsigned_integer, extract_long_unsigned_integer)
1562 (store_signed_integer, store_unsigned_integer): Likewise.
1563 * regcache.c (regcache_dump): Likewise.
1564 * value.c (lookup_internalvar, value_of_internalvar)
1565 (set_internalvar): Likewise.
1566 * defs.h: Likewise.
1567 * valprint.c (print_binary_chars, print_octal_chars)
1568 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
1569 * infcmd.c (default_print_registers_info): Likewise.
1570 * arch-utils.c (selected_byte_order, show_endian): Likewise.
1571 * stabsread.c (define_symbol): Likewise.
1572 * doublest.c (floatformat_from_length, floatformat_from_type)
1573 (extract_typed_floating, store_typed_floating): Likewise.
1574 * gdbarch.c, gdbarch.h: Regenerate.
1575
1576 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1577
1578 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
1579 gdbarch_call_dummy_location.
1580 * infcall.c (call_function_by_hand): Likewise.
1581 * inferior.h: Change comment.
1582 * arch-utils.c: Change comment.
1583 * gdbarch.c, gdbarch.h: Regenerate.
1584
1585 2007-05-28 Joel Brobecker <brobecker@adacore.com>
1586
1587 * solib-aix5.c: Delete.
1588 * Makefile.in (solib-aix5.o): Delete rule.
1589
1590 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
1591
1592 * breakpoint.h (enum bpstat_what_main_action): Remove
1593 BPSTAT_WHAT_THROUGH_SIGTRAMP.
1594 * infrun.c (process_event_stop_test): Do not check for it.
1595
1596 2007-05-22 Chris Dearman <chris@mips.com>
1597 Maciej W. Rozycki <macro@mips.com>
1598
1599 * ser-unix.c (show_serial_hwflow): New function.
1600 (hardwire_raw): Add hardware flow control support.
1601 (_initialize_ser_hardwire): Add "set/show remoteflow".
1602 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
1603 * NEWS: Document the new command.
1604
1605 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1606
1607 * config/i386/tm-linux.h (sys_quotactl): Do not define.
1608 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
1609 define for i[[3456]]86-*-linux* native configurations.
1610 * config.in, configure: Regenerate.
1611
1612 2007-05-19 Joel Brobecker <brobecker@adacore.com>
1613
1614 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
1615 a core file. Add comment in the function description.
1616
1617 2007-05-18 Caroline Tice <ctice@apple.com>
1618
1619 * c-valprint.c (c_value_print): If the initialized field of the
1620 value struct is 0, print out "[uninitialized]" before the value.
1621 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
1622 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
1623 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
1624 ctx->initialized appropriately. Verify no location op follows
1625 DW_OP_GNU_uninit.
1626 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
1627 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
1628 set_value_initialized.
1629 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
1630 (decode_locdesc): Add case for DW_OP_GNU_uninit.
1631 * value.c (struct value): New field, initialized.
1632 (allocate_value): Initialize new field.
1633 (set_value_initialized): New function.
1634 (value_initialized): New function.
1635 * value.h (value_initialized): New extern declaration.
1636 (set_value_initialized): Likewise.
1637
1638 2007-05-18 Caroline Tice <ctice@apple.com>
1639
1640 * MAINTAINERS (Write After Approval): Add self.
1641
1642 2007-05-17 Joel Brobecker <brobecker@adacore.com>
1643
1644 * gdbtypes.c (make_reference_type): Preserve the type chain
1645 and set the length of all the variants of the pointer type.
1646
1647 2007-05-17 Joel Brobecker <brobecker@adacore.com>
1648
1649 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
1650 and set the length of all the variants of the pointer type.
1651
1652 2007-05-17 Maciej W. Rozycki <macro@mips.com>
1653
1654 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
1655 comment.
1656 (mips_o64_push_dummy_call): Reformat a comment.
1657
1658 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
1659
1660 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
1661 (score_prologue_frame_base_address): Return fp to keep gdb print
1662 local variables correctly when debugging information is stabs.
1663
1664 (score_analyze_prologue): For software watchpoint, fetch all the
1665 instructions from range [startaddr, pc] once and identify them locally
1666 to reduce memory access.
1667 (score_malloc_and_get_memblock, score_free_memblock)
1668 (score_adjust_memblock_ptr): New functions.
1669 (score_fetch_inst): Fetch single instruction or mutiple instructions.
1670
1671 (score_target_can_use_watch, score_stopped_by_watch)
1672 (score_target_insert_watchpoint, score_target_remove_watchpoint)
1673 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
1674 New functions for remote & local hw-watchpoint and hw-breakpoint.
1675
1676 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
1677
1678 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
1679 declarations as well.
1680
1681 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1682
1683 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
1684 * config/arm/tm-embed.h: Delete file.
1685
1686 * arm-tdep.h (arm_software_single_step): Declare.
1687 * arm-tdep.c (arm_software_single_step): Make global.
1688 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
1689 from here to ...
1690 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
1691 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
1692 * armobsd-tdep.c (armobsd_init_abi): ... here ...
1693 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
1694
1695 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
1696 allow defines to be overriden by TM file.
1697 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
1698 change default to {0xbe,0xbe}.
1699 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
1700 arm_obsd_thumb_be_breakpoint): New global variables.
1701 (armobsd_init_abi): Override tdep->thumb_breakpoint and
1702 tdep->thumb_breakpoint_size.
1703 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
1704 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
1705 tdep->thumb_breakpoint_size.
1706
1707 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
1708
1709 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
1710
1711 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
1712 saved-gpreg-size".
1713
1714 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
1715 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
1716 (mips_stack_argsize_string, mips_stack_argsize): Delete.
1717 (mips_abi_regsize): Simplify.
1718 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1719 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1720 (mips_o32_return_value, mips_o64_push_dummy_call)
1721 (mips_o64_return_value): Propogate constant register sizes. Use the
1722 ABI register size instead of mips_stack_argsize.
1723 (mips_dump_tdep): Don't print mips_stack_argsize.
1724 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
1725 settings.
1726
1727 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
1728
1729 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
1730 * config/mips/tm-linux.h: Delete.
1731 * mips-linux-tdep.c (mips_svr4_so_ops): New.
1732 (mips_linux_in_dynsym_resolve_code): Make static. Use
1733 svr4_in_dynsym_resolve_code.
1734 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
1735 set_solib_ops.
1736 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
1737 global.
1738 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
1739 * Makefile.in (mips-linux-tdep.o): Update.
1740 * solib.c (set_solib_ops): New.
1741 (current_target_so_ops): Update comment.
1742 * solib.h (set_solib_ops): New prototype.
1743
1744 2007-05-16 Chris Dearman <chris@mips.com>
1745
1746 * printcmd.c (do_examine): Fix typos in a comment.
1747
1748 2007-05-16 Richard Sandiford <richard@codesourcery.com>
1749
1750 * configure.ac: Allow sysroots to be relocated under $prefix as
1751 well as $exec_prefix.
1752 * configure: Regenerate.
1753
1754 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1755
1756 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
1757 (offsetof): Do not define.
1758 (find_stub_with_shl_get): Use numerical value 3 instead of
1759 symbolic value TYPE_PROCEDURE.
1760
1761 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1762
1763 * gdb_proc_service.h (paddr_t): Delete typedef.
1764 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
1765 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
1766 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
1767 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
1768 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
1769 * Makefile.in (proc-service.o): Update.
1770
1771 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1772
1773 * Makefile.in (mips-tdep.o): Update.
1774 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
1775 unwinder.
1776
1777 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1778
1779 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
1780 instead of store_typed_address.
1781 * value.c (pack_long): New.
1782 (value_from_longest): Use it.
1783 * value.h (pack_long): New prototype.
1784
1785 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1786
1787 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
1788 DW_EH_PE_signed if appropriate.
1789
1790 2007-05-14 Paul Brook <paul@codesourcery.com>
1791 Daniel Jacobowitz <dan@codesourcery.com>
1792
1793 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
1794 function.
1795 (dwarf_decode_lines): Check for line info without a file.
1796
1797 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1798
1799 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
1800 as hexadecimal.
1801
1802 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1803
1804 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
1805 STRUCTOP_STRUCT.
1806 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
1807 STRUCTOP_STRUCT.
1808 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
1809
1810 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1811
1812 * gdbarch.sh (read_sp): Remove.
1813 * gdbarch.c, gdbarch.h: Regenerate.
1814 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
1815
1816 * avr-tdep.c (avr_read_sp): Remove.
1817 (avr_unwind_sp): New function.
1818 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
1819 * mips-tdep.c (mips_read_sp): Remove.
1820 (mips_unwind_sp): New function.
1821 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
1822 * score-tdep.c (score_read_unsigned_register): Remove.
1823 (score_read_sp): Remove.
1824 (score_unwind_sp): New function.
1825 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
1826
1827 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
1828
1829 * buildsym.c (start_subfile): Handle absolute pathnames
1830 while comparing subfile names.
1831
1832 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1833
1834 * hppa-hpux-tdep.c: Include "regcache.h".
1835 * hppa-linux-tdep.c: Likewise.
1836 * hppa-tdep.c: Include "gdb_stdint.h".
1837 (find_unwind_entry): Cast host pointer to uintptr_t before passing
1838 it to paddr_nz.
1839 * Makefile.in: Update dependencies.
1840
1841 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1842
1843 * blockframe.c: Remove obsolete comments.
1844 * alpha-nat.c (fetch_osf_core_registers): Update comment.
1845 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
1846 * hppa-tdep.h (enum hppa_regnum): Likewise.
1847 * mips-tdep.h: Likewise.
1848 * m68hc11-tdep.c: Likewise.
1849
1850 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1851
1852 * inferior.h (read_sp): Remove prototype.
1853 * regcache.c (read_sp): Remove.
1854 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
1855 * infcall.c (call_function_by_hand): Likewise.
1856 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
1857 of calling read_sp.
1858 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1859
1860 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1861
1862 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
1863 instead of read_register and read_register_pid.
1864
1865 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
1866 argument instead of PTID. Use regcache functions instead of
1867 read_register_pid.
1868 (ia64_linux_insert_watchpoint): Update call.
1869 (ia64_linux_stopped_data_address): Use regcache functions
1870 instead of read_register_pid and write_register_pid.
1871
1872 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1873
1874 * libunwind-frame.h (struct regcache): Add forward declaration.
1875 (libunwind_get_reg_special): Add REGCACHE argument.
1876 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
1877 argument. Pass it to unw_init_remote_p.
1878
1879 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
1880 libunwind_get_reg_special.
1881 (ia64_access_reg): Remove "write" case.
1882 (ia64_access_fpreg): Likewise. Read from next_frame passed
1883 as callback argument instead of from current_regcache.
1884 (ia64_access_rse_reg): Remove "write" case. Read from regcache
1885 passed as callback argument instead of from current_regcache.
1886 (ia64_access_rse_fpreg): New function.
1887 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
1888
1889 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1890
1891 * NEWS: Mention SPU overlay support.
1892
1893 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1894
1895 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
1896
1897 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1898
1899 * breakpoint.c (remove_breakpoint): Do not remove software
1900 breakpoints in unmapped overlay sections.
1901
1902 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1903
1904 * spu-tdep.c: Include "observer.h".
1905 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
1906 (spu_overlay_data): New variable.
1907 (struct spu_overlay_table): New type.
1908 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
1909 spu_overlay_new_objfile): New functions.
1910 (spu_gdbarch_init): Install spu_overlay_update.
1911 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
1912 allocate spu_overlay_data objfile data.
1913
1914 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1915
1916 * gdbarch.sh (overlay_update): New gdbarch function.
1917 (struct obj_section): Add forward declaration.
1918 * gdbarch.c, gdbarch.h: Regenerate.
1919
1920 * symfile.c (simple_overlay_update): Make global.
1921 (target_overlay_update): Remove variable.
1922 (overlay_is_mapped): Call gdbarch_overlay_update instead of
1923 target_overlay_update.
1924 (overlay_load_command): Likewise.
1925 * symfile.h (struct obj_section): Add forward declaration.
1926 (simple_overlay_update): Add prototype.
1927
1928 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
1929
1930 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1931
1932 * observer.sh: Add "struct objfile" forward declaration.
1933 * target.h (deprecated_target_new_objfile_hook): Remove.
1934 * symfile.c (deprecated_target_new_objfile_hook): Remove.
1935 (clear_symtab_users): Call observer_notify_new_objfile.
1936 (symbol_file_add_with_addrs_or_offsets): Likewise.
1937 * rs6000-nat.c: Include "observer.h".
1938 (vmap_ldinfo): Call observer_notify_new_objfile.
1939 (xcoff_relocate_core): Likewise.
1940 * remote.c (remote_new_objfile_chain): Remove.
1941 (remote_new_objfile): Do not call remote_new_objfile_chain.
1942 (_initialize_remote): Use observer_attach_new_objfile.
1943 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
1944 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
1945 (_initialize_tui_hooks): Use observer_attach_new_objfile.
1946 * aix-thread.c: Include "observer.h".
1947 (target_new_objfile_chain): Remove.
1948 (new_objfile): Do not call target_new_objfile_chain.
1949 (_initialize_aix_thread): Use observer_attach_new_objfile.
1950 * hpux-thread.c: Include "observer.h"
1951 (target_new_objfile_chain): Remove.
1952 (hpux_thread_new_objfile): Make static. Do not call
1953 target_new_objfile_chain.
1954 (_initialize_hpux_thread): Use observer_attach_new_objfile.
1955 * linux-thread-db.c: Include "observer.h".
1956 (target_new_objfile_chain): Remove.
1957 (thread_db_new_objfile): Do not call target_new_objfile_chain.
1958 (_initialize_thread_db): Use observer_attach_new_objfile.
1959 * sol-thread.c: Include "observer.h".
1960 (target_new_objfile_chain): Remove.
1961 (sol_thread_new_objfile): Make static. Do not call
1962 target_new_objfile_chain.
1963 (_initialize_sol_thread): Use observer_attach_new_objfile.
1964 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
1965 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
1966 $(observer_h).
1967
1968 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1969
1970 * gdbarch.sh (remote_translate_xfer_address): Remove.
1971 * gdbarch.h, gdbarch.c: Regenerate.
1972 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
1973 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
1974 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
1975 call gdbarch_remote_translate_xfer_address.
1976 * frv-tdep.c (frv_gdbarch_init): Do not call
1977 set_gdbarch_remote_translate_xfer_address.
1978 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
1979 (ia64_gdbarch_init): Do not install it.
1980
1981 2007-05-11 Bob Wilson <bob.wilson@acm.org>
1982
1983 * NEWS: Mention change in handling the -tui option.
1984
1985 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
1986
1987 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
1988 typo.
1989
1990 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1991
1992 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
1993 (breakpoint_inserted_here_p): Call it.
1994 (software_breakpoint_inserted_here_p): Likewise.
1995
1996 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
1997
1998 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
1999 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
2000 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
2001 (inf_ptrace_store_register): Likewise.
2002 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
2003 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
2004
2005 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
2006
2007 * linux-nat.c (linux_trad_target): Adapt parameter list.
2008 * linux-nat.h (linux_trad_target): Likewise.
2009
2010 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
2011
2012 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
2013 (mips_linux_cannot_store_register): Likewise.
2014 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
2015 Return (CORE_ADDR) -1 for registers that cannot be fetched or
2016 stored via ptrace. Use GDBARCH instead of current_gdbarch.
2017 (mips64_linux_register_addr): Likewise.
2018 (mips_linux_register_u_offset): Adapt parameter list. Pass
2019 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
2020
2021 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2022 * config/mips/nm-linux.h: Delete file.
2023
2024 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
2025
2026 * remote.c (remote_detach): Error out if remote can't detach.
2027
2028 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
2029
2030 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
2031 instruction's opcode in the "opcode" variable and declares new
2032 variable "closing_insn".
2033
2034 2007-05-10 Chris Dearman <chris@mips.com>
2035 Maciej W. Rozycki <macro@mips.com>
2036
2037 * cli/cli-setshow.c (do_setshow_command): Remove trailing
2038 whitespace when setting a var_filename.
2039
2040 2007-05-09 Bob Wilson <bob.wilson@acm.org>
2041
2042 * main.c (captured_main): Recognize -tui option and print an error
2043 message when the TUI is not configured.
2044
2045 2007-05-09 Andreas Schwab <schwab@suse.de>
2046
2047 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
2048 set removed members.
2049 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2050
2051 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2052
2053 * gdbarch.sh (deprecated_store_struct_return): Remove.
2054 * gdbarch.c, gdbarch.h: Regenerate.
2055 * frv-tdep.c (frv_store_struct_return): Remove.
2056 (frv_gdbarch_init): Do not install it.
2057
2058 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2059
2060 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
2061 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
2062 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
2063
2064 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2065
2066 * spu-linux-nat.c: Include "gdb_stdint.h".
2067 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
2068 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
2069 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
2070 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
2071 (spu_child_wait): Mark up string for translation.
2072
2073 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
2074 Luis Machado <luisgpm@br.ibm.com>
2075
2076 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
2077 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
2078 BC_INSTRUCTION): Define.
2079 (deal_with_atomic_sequence): New function.
2080 (rs6000_software_single_step): Call deal_with_atomic_sequence.
2081 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
2082 gdbarch_software_single_step routine.
2083
2084 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
2085
2086 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
2087 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
2088 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
2089 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
2090 spu_child_post_attach, spu_fetch_inferior_registers,
2091 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
2092 memory addresses as ULONGEST, not CORE_ADDR.
2093
2094 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
2095
2096 * gdbarch.sh: Add skip_permanent_breakpoint callback.
2097 * gdbarch.h, gdbarch.c: Regenerate.
2098
2099 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
2100 (resume): Call gdbarch_skip_permanent_breakpoint instead of
2101 SKIP_PERMANENT_BREAKPOINT. Inline default case.
2102
2103 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
2104 Add REGCACHE argument. Use it instead of read/write_register.
2105 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
2106
2107 * config/pa/tm-hppah.h: Delete file.
2108 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
2109 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
2110
2111 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
2112
2113 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
2114 * NEWS: Mention improved C++ thunk support.
2115 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
2116 * cp-abi.c (cplus_skip_trampoline): New.
2117 * cp-abi.h (cplus_skip_trampoline): New prototype.
2118 (struct cp_abi_ops): Add skip_trampoline member.
2119 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
2120 (init_gnuv3_ops): Set skip_trampoline.
2121
2122 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
2123
2124 * rs6000-tdep.c (struct frame_extra_info): Delete.
2125
2126 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
2127
2128 * linux-thread-db.c: Update some FIXME comments.
2129 (thread_db_xfer_partial): Delete.
2130 (init_thread_db_ops): Do not set to_xfer_partial.
2131
2132 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2133
2134 * inftarg.c, infptrace.c: Remove files.
2135 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
2136 (inftarg.o, infptrace.o): Remove rules.
2137 * gdbcore.h (register_addr): Remove prototype.
2138 * inferior.h (kill_inferior, store_inferior_registers,
2139 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
2140 call_ptrace, pre_fork_inferior): Remove prototypes.
2141 * target.h (child_xfer_memory, child_pid_to_exec_file,
2142 child_core_file_to_sym_file, child_post_attach,
2143 child_post_startup_inferior, child_acknowledge_created_inferior,
2144 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
2145 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
2146 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
2147 child_follow_fork, child_reported_exec_events_per_exec_call,
2148 child_has_exited, child_thread_alive): Remove prototypes.
2149
2150 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2151
2152 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
2153 (sparc_store_inferior_registers): Likewise.
2154 * sparc-nat.c (fetch_inferior_registers): Rename to ...
2155 (sparc_fetch_inferior_registers): ... this.
2156 (store_inferior_registers): Rename to ...
2157 (sparc_store_inferior_registers): ... this.
2158 (sparc_target): Update callback names.
2159 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
2160 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
2161
2162 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2163
2164 * linux-nat.c (child_post_attach): Rename to ...
2165 (linux_child_post_attach): ... this. Make static.
2166 (child_follow_fork): Rename to ...
2167 (linux_child_follow_fork): ... this. Make static.
2168 (child_insert_fork_catchpoint): Rename to ...
2169 (linux_child_insert_fork_catchpoint): ... this. Make static.
2170 (child_insert_vfork_catchpoint): Rename to ...
2171 (linux_child_insert_vfork_catchpoint): ... this. Make static.
2172 (child_insert_exec_catchpoint): Rename to ...
2173 (linux_child_insert_exec_catchpoint): ... this. Make static.
2174 (child_pid_to_exec_file): Rename to ...
2175 (linux_child_pid_to_exec_file): ... this. Make static.
2176 Add prototype.
2177 (linux_handle_extended_wait): Update call.
2178 (linux_xfer_partial): Update callback routine names.
2179
2180 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2181
2182 * configure.host (alpha*-*-osf[12]*): Remove support.
2183 * NEWS: Mention removed configurations.
2184
2185 * config/alpha/alpha-osf1.mh: Delete file.
2186 * config/alpha/alpha-osf2.mh: Delete file.
2187 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
2188 and infptrace.o.
2189 * config/alpha/nm-osf.h: Delete file.
2190 * config/alpha/nm-osf2.h: Delete file.
2191 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
2192 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
2193 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
2194
2195 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
2196 (register_addr, kernel_u_size): Remove.
2197 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
2198
2199 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2200
2201 * regcache.c (regcache_invalidate): New function.
2202 (register_cached): Remove.
2203 (set_register_cached): Remove.
2204 (deprecated_registers_fetched): Remove.
2205 (registers_changed): Use regcache_invalidate instead
2206 of set_register_cached.
2207 (regcache_raw_read): Update comment.
2208
2209 * regcache.h (regcache_invalidate): Add prototype.
2210 (register_cached): Remove.
2211 (set_register_cached): Remove.
2212 (deprecated_registers_fetched): Remove.
2213
2214 * findvar.c (value_of_register): Do not call register_cached.
2215 * frame.c (frame_register): Likewise.
2216 * tui/tui-regs.c (tui_get_register): Likewise.
2217
2218 * remote.c (fetch_register_using_p): Do not call set_register_cached.
2219 (process_g_packet): Likewise.
2220 (remote_fetch_registers): Likewise.
2221 * remote-sim.c (gdbsim_fetch_register): Likewise.
2222 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
2223 by regcache_invalidate.
2224 (mt_pseudo_register_write): Likewise.
2225 * sh-tdep.c (sh_pseudo_register_write): Likewise.
2226
2227 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
2228 call by loop over regcache_raw_supply (..., NULL).
2229
2230 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2231
2232 * target.h (struct target_ops): Add REGCACHE parameter to
2233 to_prepare_to_store.
2234 (target_prepare_to_store): Likewise.
2235 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
2236 (update_current_target): Adapt prepare_to_store de_fault rule.
2237
2238 * regcache.c (regcache_raw_write): Pass regcache to
2239 target_prepare_to_store.
2240
2241 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
2242 Do not call CHILD_PREPARE_TO_STORE.
2243 * gnu-nat.c (gnu_prepare_to_store): Likewise.
2244 * procfs.c (procfs_prepare_to_store): Likewise.
2245
2246 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
2247 * go32-nat.c (go32_prepare_to_store): Likewise.
2248 * monitor.c (monitor_prepare_to_store): Likewise.
2249 * nto-procfs.c (procfs_prepare_to_store): Likewise.
2250 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
2251 * remote-mips.c (mips_prepare_to_store): Likewise.
2252 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
2253 * win32-nat.c (win32_prepare_to_store): Likewise.
2254
2255 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
2256 Use it instead of current_regcache.
2257
2258 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
2259 parameter. Pass it on to next target.
2260 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
2261
2262 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2263
2264 * target.h (struct regcache): Add forward declaration.
2265 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
2266 and to_store_registers target operations.
2267 (target_fetch_registers, target_store_registers): Update.
2268
2269 * regcache.c (regcache_raw_read): Replace register_cached by
2270 regcache_valid_p. Pass regcache to target_fetch_registers.
2271 (regcache_raw_write): Pass regcache to target_store_registers.
2272
2273 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
2274 store_regs, store_wmmx_regs): Replace register_cached by
2275 regcache_valid_p.
2276
2277 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
2278 to target_fetch_registers calls.
2279 * corelow.c (core_open): Likewise.
2280 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
2281 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2282 ps_lsetfpregs): Likewise.
2283 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2284 ps_lsetfpregs): Likewise.
2285 * win32-nat.c (win32_resume): Likewise.
2286 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
2287 to target_store_registers call.
2288 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2289
2290 * inferior.h (store_inferior_registers): Update prototype.
2291 (fetch_inferior_registers): Likewise.
2292 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
2293 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
2294 Update function pointer signatures.
2295
2296 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
2297 use it instead of current_regcache, update calls.
2298 (aix_thread_store_registers): Likewise.
2299 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2300 (alphabsd_store_inferior_registers): Likewise.
2301 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2302 (amd64bsd_store_inferior_registers): Likewise.
2303 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
2304 (amd64_linux_store_inferior_registers): Likewise.
2305 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
2306 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
2307 fetch_wmmx_regs, store_wmmx_regs): Likewise.
2308 (arm_linux_fetch_inferior_registers): Likewise.
2309 (arm_linux_store_inferior_registers): Likewise.
2310 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
2311 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
2312 (store_register, store_regs, store_fp_register, store_fp_regs,
2313 armnbsd_store_registers): Likewise.
2314 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
2315 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2316 (bsd_uthread_store_registers): Likewise.
2317 * corelow.c (get_core_registers): Likewise.
2318 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
2319 go32_store_registers): Likewise.
2320 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
2321 (hppabsd_store_registers): Likewise.
2322 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
2323 (hppa_hpux_fetch_inferior_registers): Likewise.
2324 (hppa_hpux_store_register): Likewise.
2325 (hppa_hpux_store_inferior_registers): Likewise.
2326 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2327 (hppa_linux_fetch_inferior_registers): Likewise.
2328 (hppa_linux_store_inferior_registers): Likewise.
2329 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
2330 (hpux_thread_store_registers): Likewise.
2331 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
2332 (i386bsd_store_inferior_registers): Likewise.
2333 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
2334 gnu_store_registers): Likewise.
2335 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
2336 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
2337 Likewise.
2338 (i386_linux_fetch_inferior_registers): Likewise.
2339 (i386_linux_store_inferior_registers): Likewise.
2340 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
2341 (ia64_linux_fetch_registers): Likewise.
2342 (ia64_linux_store_register): Likewise.
2343 (ia64_linux_store_registers): Likewise.
2344 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2345 (inf_child_store_inferior_registers): Likewise.
2346 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2347 (inf_ptrace_fetch_registers): Likewise.
2348 (inf_ptrace_store_register): Likewise.
2349 (inf_ptrace_store_registers): Likewise.
2350 * infptrace.c (fetch_register, store_register): Likewise.
2351 (fetch_inferior_registers, store_inferior_registers): Likewise.
2352 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
2353 (m32r_linux_fetch_inferior_registers): Likewise.
2354 (m32r_linux_store_inferior_registers): Likewise.
2355 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
2356 (m68kbsd_store_inferior_registers): Likewise.
2357 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
2358 store_register, old_store_inferior_registers, fetch_regs, store_regs,
2359 fetch_fpregs, store_fpregs): Likewise.
2360 (m68k_linux_fetch_inferior_registers): Likewise.
2361 (m68k_linux_store_inferior_registers): Likewise.
2362 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
2363 (m88kbsd_store_inferior_registers): Likewise.
2364 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
2365 (mips64obsd_store_inferior_registers): Likewise.
2366 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
2367 (mips64_linux_regsets_store_registers): Likewise.
2368 (mips64_linux_fetch_registers): Likewise.
2369 (mips64_linux_store_registers): Likewise.
2370 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
2371 (mipsnbsd_store_inferior_registers): Likewise.
2372 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
2373 (monitor_fetch_registers, monitor_store_registers): Likewise.
2374 * nto-procfs.c (procfs_fetch_registers): Likewise.
2375 (procfs_store_registers): Likewise.
2376 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
2377 fetch_register, supply_vrregset, fetch_altivec_registers,
2378 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
2379 (store_altivec_register, store_spe_register, store_register,
2380 fill_vrregset, store_altivec_registers, store_ppc_registers,
2381 ppc_linux_store_inferior_registers): Likewise.
2382 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
2383 (ppcnbsd_store_inferior_registers): Likewise.
2384 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
2385 (ppcobsd_store_registers): Likewise.
2386 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2387 * remote.c (fetch_register_using_p, process_g_packet,
2388 fetch_registers_using_g, remote_fetch_registers): Likewise.
2389 (store_register_using_P, store_registers_using_G,
2390 remote_store_registers): Likewise.
2391 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
2392 m32r_store_register, m32r_store_register): Likewise.
2393 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
2394 * remote-sim.c (gdbsim_fetch_register): Likewise.
2395 (gdbsim_store_register): Likewise.
2396 * rs6000-nat.c (fetch_register, store_register): Likewise.
2397 (rs6000_fetch_inferior_registers): Likewise.
2398 (rs6000_store_inferior_registers): Likewise.
2399 * s390-nat.c (fetch_regs, store_regs): Likewise.
2400 (fetch_fpregs, store_fpregs): Likewise.
2401 (s390_linux_fetch_inferior_registers): Likewise.
2402 (s390_linux_store_inferior_registers): Likewise.
2403 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
2404 (shnbsd_store_inferior_registers): Likewise.
2405 * sol-thread.c (sol_thread_fetch_registers): Likewise.
2406 (sol_thread_store_registers): Likewise.
2407 * sparc-nat.c (fetch_inferior_registers): Likewise.
2408 (store_inferior_registers): Likewise.
2409 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2410 (spu_store_inferior_registers): Likewise.
2411 * target.c (debug_print_register): Likewise.
2412 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
2413 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
2414 (vaxbsd_store_inferior_registers): Likewise.
2415 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
2416 (win32_fetch_inferior_registers): Likewise.
2417 (win32_store_inferior_registers): Likewise.
2418
2419 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2420
2421 * gdbcore.h (struct regcache): Add forward declaration.
2422 (struct core_fns): Add REGCACHE argument to core_read_registers
2423 callback.
2424 * corelow.c (get_core_register_section): Add REGCACHE argument,
2425 use it instead of current_regcache, pass it to core_read_registers
2426 callback.
2427 (get_core_registers): Add current_regcache as parameter to
2428 get_core_register_section calls.
2429
2430 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
2431 use it instead of current_regcache.
2432 * armnbsd-nat.c (fetch_core_registers): Likewise.
2433 (fetch_elfcore_registers): Likewise.
2434 * core-regset.c (fetch_core_registers): Likewise.
2435 * cris-tdep.c (fetch_core_registers): Likewise.
2436 * irix5-nat.c (fetch_core_registers): Likewise.
2437 * m68klinux-nat.c (fetch_core_registers): Likewise.
2438 * mips-linux-tdep.c (fetch_core_registers): Likewise.
2439 * win32-nat.c (fetch_elf_core_registers): Likewise.
2440
2441 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2442
2443 * gregset.h (struct regcache): Add forward declaration.
2444 (supply_gregset): Add REGCACHE parameter, make GREGS const.
2445 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
2446 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
2447 (fill_gregset): Add REGCACHE parameter.
2448 (fill_fpregset): Likewise.
2449 (fill_fpxregset): Likewise.
2450
2451 Update all definitions accordingly:
2452 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
2453 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
2454 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
2455 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
2456 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
2457 (supply_gregset): Add REGCACHE parameter, use it instead of
2458 current_regcache. Make GREGSETP parameter const, adapt casts.
2459 (supply_fpregset): Add REGCACHE parameter, use it instead of
2460 current_regcache. Make FPREGSETP parameter const, adapt casts.
2461 (fill_gregset): Add REGCACHE parameter, use it instead of
2462 current_regcache.
2463 (fill_fpregset): Likewise.
2464
2465 Update all callers to pass in current_regcache as the new argument:
2466 * core-regset.c: Include "regcache.h".
2467 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
2468 * procfs.c: Include "regcache.h".
2469 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
2470 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
2471 (procfs_do_thread_registers): Likewise.
2472 (procfs_make_note_section): Likewise.
2473 * proc-service.c: Include "regcache.h".
2474 (ps_lgetregs): Update fill_gregset call.
2475 (ps_lsetregs): Update supply_gregset call.
2476 (ps_lgetfpregs): Update fill_fpregset call.
2477 (ps_lsetfpregs): Update supply_fpregset call.
2478 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
2479 supply_fpregset calls.
2480 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
2481 (ps_lgetregs): Update fill_gregset call.
2482 (ps_lsetregs): Update supply_gregset call.
2483 (ps_lgetfpregs): Update fill_fpregset call.
2484 (ps_lsetfpregs): Update supply_fpregset call.
2485
2486 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
2487 fill_fpregset, and fill_fpxregset calls.
2488 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
2489 (store_regs): Update fill_gregset call.
2490 (fetch_fpregs): Update supply_fpregset call.
2491 (store_fpregs): Update fill_fpregset call.
2492 (fetch_fpxregs): Update supply_fpxregset call.
2493 (store_fpxregs): Update fill_fpxregset call.
2494 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
2495 (store_regs): Update fill_gregset call.
2496 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
2497 (store_regs): Update fill_gregset call.
2498 (fetch_fpregs): Update supply_fpregset call.
2499 (store_fpregs): Update fill_fpregset call.
2500 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
2501 * s390-nat.c (fetch_regs): Update supply_gregset call.
2502 (store_regs): Update fill_gregset call.
2503 (fetch_fpregs): Update supply_fpregset call.
2504 (store_fpregs): Update fill_fpregset call.
2505
2506 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
2507 dependencies.
2508
2509 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2510
2511 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
2512 it instead of current_regcache.
2513 (parse_register_dump): Add REGCACHE parameter, pass it to
2514 supply_register callback.
2515 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
2516 parse_register_dump.
2517 (monitor_dump_regs): Add REGCACHE parameter, pass it to
2518 parse_register_dump and dumpregs callback.
2519 (monitor_wait): Pass current_regcache to parse_register_dump and
2520 monitor_dump_regs.
2521 (monitor_fetch_register): Pass current_regcache to
2522 monitor_supply_register.
2523 (monitor_fetch_registers): Pass current_regcache to
2524 monitor_dump_regs.
2525 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
2526 supply_register and dumpregs callbacks.
2527 (monitor_supply_register, monitor_dump_reg_block): Update
2528 prototypes.
2529 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
2530 it to monitor_supply_register.
2531 * dink32-rom.c (dink32_supply_register): Likewise.
2532 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
2533 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
2534 instead of current_regcache.
2535
2536 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2537
2538 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
2539 Add REGCACHE parameter. Use it instead of current_regcache.
2540 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
2541 i386nto_supply_gregset and i386nto_supply_fpregset.
2542 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
2543 of current_regcache.
2544
2545 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
2546 nto_supply_ helper functions.
2547 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
2548
2549 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
2550
2551 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
2552 supply_greget, supply_fpregset, supply_altregset, supply_regset,
2553 and regset_fill member function pointers.
2554 (nto_dummy_supply_regset): Adapt prototype.
2555
2556 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2557
2558 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
2559 instead of current_regcache. Make REGS const.
2560 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
2561 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
2562 prototypes.
2563 * shnbsd-nat.c: Include "regcache.h".
2564 (shnbsd_fetch_inferior_registers): Pass current_regcache to
2565 shnbsd_supply_reg.
2566 (shnbsd_store_inferior_registers): Pass current_regcache to
2567 shnbsd_fill_reg.
2568 * Makefile.in (shbsd-nat.o): Update dependencies.
2569
2570 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2571
2572 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
2573 instead of current_regcache.
2574 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
2575 Make GREGSETP const, remove superfluous casts.
2576 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
2577 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
2578 superfluous casts.
2579 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
2580 (supply_64bit_reg): Likewise
2581 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
2582 Make GREGSETP const, adapt casts accordingly.
2583 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
2584 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
2585 casts accordingly.
2586 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
2587 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
2588 helper routines.
2589 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
2590 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
2591 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
2592 Adapt prototypes.
2593 * mips-linux-nat.c: Include "regcache.h".
2594 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
2595 current_regcache to mips{64}_(supply|fill)_ helper routines.
2596 (mips64_linux_regsets_fetch_registers): Likewise.
2597 (mips64_linux_regsets_store_registers): Likewise.
2598
2599 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
2600 REGCACHE argument; replace current_regcache. Make REGS const.
2601 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
2602 replace current_regcache.
2603 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
2604 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
2605 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
2606 mipsnbsd_store_inferior_registers): Pass current_regcache to
2607 mipsnbsd_(supply|fill)_... helper routines.
2608
2609 * Makefile.in (mips-linux-nat.o): Update dependencies.
2610
2611 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2612
2613 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
2614 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
2615 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
2616 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
2617 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
2618 * i386gnu-nat.c (store_fpregs): Likewise.
2619 * i386v4-nat.c (fill_fpregset): Likewise.
2620 * go32-nat.c (store_register, go32_store_registers): Likewise.
2621
2622 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2623
2624 * cris-tdep.c (supply_gregset): Rename to ...
2625 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
2626 instead of current_regcache.
2627 (fetch_core_registers): Update call. Pass current_regcache.
2628
2629 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2630
2631 * arnmnbsd-nat.c (supply_gregset): Rename to ...
2632 (arm_supply_gregset): ... this. Add REGCACHE parameter.
2633 Use it instead of current_regcache.
2634 (supply_fparegset): Rename to ...
2635 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
2636 Use it instead of current_regcache.
2637 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
2638 (fetch_core_registers, fetch_elfcore_registers): Likewise.
2639
2640 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2641
2642 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
2643 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
2644 use it instead of current_regcache.
2645 * alpha-tdep.h (struct regcache): Add forward declaration.
2646 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
2647 alpha_fill_fp_regs): Update prototypes.
2648
2649 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
2650 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
2651 * alpha-linux-nat.c: Include "regcache.h".
2652 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
2653 current_regcache to alpha_supply/fill_ routines.
2654
2655 * alphabsd-tdep.c: Include "regcache.h".
2656 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
2657 pass it to alpha_supply_ routines. Make REGS const.
2658 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
2659 pass it to alpha_fill_ routines.
2660 * alphabsd-tdep.h (struct regcache): Add forward declaration.
2661 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
2662 alphabsd_fill_fpreg): Update prototypes.
2663
2664 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
2665 fill_fpregset, alphabsd_fetch_inferior_registers,
2666 alphabsd_store_inferior_registers): Pass current_regcache to
2667 alphabsd_supply/fill_ routines.
2668
2669 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
2670 dependencies.
2671
2672 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2673
2674 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
2675 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
2676 instead of current_regcache.
2677 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
2678 REGCACHE parameter, pass it to supply_ routines.
2679 (aix_thread_fetch_registers): Pass current_regcache to
2680 fetch_regs_user_thread and fetch_regs_kernel_thread.
2681
2682 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
2683 Add REGCACHE parameter, use it instead of current_regcache.
2684 Call regcache_valid_p instead of register_cached.
2685 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
2686 Also, pass REGCACHE to fill_ routines.
2687 (aix_thread_store_registers): Pass current_regcache to
2688 store_regs_user_thread and store_regs_kernel_thread.
2689
2690 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2691
2692 * m32r-linux-nat.c (supply_gregset): Do not modify contents
2693 pointed to by GREGSETP.
2694
2695 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2696
2697 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
2698 of regcache_raw_read_signed.
2699 (fill_fpregset): Use regcache_raw_collect instead of
2700 regcache_raw_read.
2701
2702 2007-05-03 Kevin Buettner <kevinb@redhat.com>
2703
2704 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
2705 point arguments, test explicitly for use of the EABI32 ABI
2706 instead of inferring this condition from tests on register
2707 sizes.
2708
2709 2007-05-03 Kevin Buettner <kevinb@redhat.com>
2710
2711 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
2712 prior to allocating its location.
2713
2714 2007-05-02 Maciej W. Rozycki <macro@mips.com>
2715
2716 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
2717 based on mips_abi_regsize() whose result is known in advance.
2718 (mips_o64_push_dummy_call): Likewise.
2719
2720 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
2721
2722 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
2723 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
2724
2725 * mips-linux-nat.c: Include "gregset.h".
2726 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
2727 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
2728 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
2729 fill_fpregset): Move to mips-linux-nat.c.
2730
2731 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
2732
2733 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
2734
2735 * regcache.c (deprecated_read_register_gen): Remove, inline ...
2736 (read_register): ... here.
2737 (deprecated_write_register_gen): Remove, inline ...
2738 (write_register): ... here.
2739 * regcache.h (deprecated_read_register_gen): Remove prototype.
2740 (deprecated_write_register_gen): Likewise.
2741
2742 * remote-sim.c (gdbsim_store_register): Replace call to
2743 deprecated_read_register_gen with regcache_cooked_read.
2744 * target.c (debug_print_register): Replace calls to
2745 deprecated_read_register_gen and read_register with
2746 regcache_cooked_read.
2747
2748 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
2749
2750 * hpux-thread.c (hpux_thread_store_registers): Use
2751 regcache_raw_collect, not regcache_raw_read.
2752 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
2753 not regcache_raw_write.
2754
2755 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
2756
2757 * gdbarch.sh: Remove deprecated_register_byte.
2758 * gdbarch.c, gdbarch.h: Regenerate.
2759 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
2760 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
2761
2762 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
2763 * regcache.c (regcache_valid_p): Allow to query cooked registers in
2764 read-only register caches. Make REGCACHE parameter const.
2765 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
2766
2767 * mi/mi-main.c (old_regs): Remove.
2768 (mi_setup_architecture_data, _initialize_mi_main): Remove.
2769 (register_changed_p): Reimplement to compare two register caches.
2770 (mi_cmd_data_list_changed_registers): Update caller.
2771 * mi/mi-main.h (mi_setup_architecture_data): Remove.
2772 * mi/mi-interp.c (mi_interpreter_init): Do not call
2773 mi_setup_architecture_data.
2774
2775 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
2776
2777 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
2778 inline definition at the places the macros are used.
2779 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
2780
2781 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
2782
2783 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
2784 "gdb_string.h".
2785 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
2786 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
2787 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
2788 (rs6000_aix_regset_from_core_section): New function.
2789 (rs6000_aix_init_osabi): Register it.
2790 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
2791 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
2792 * rs6000-nat.c (CoreRegs): Do not define type.
2793 (fetch_core_registers, rs6000_core_fns): Remove.
2794 (_initialize_core_rs6000): Do not register it. Rename to ...
2795 (_initialize_rs6000_nat): ... this.
2796 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
2797
2798 2007-04-27 Kevin Buettner <kevinb@redhat.com>
2799
2800 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
2801 (dwarf2_read_address): Sign extend return address as required by
2802 target architecture.
2803
2804 2007-04-27 Kevin Buettner <kevinb@redhat.com>
2805
2806 * solib-frv.c (lm_base): Bail out if the main executable has
2807 not been relocated.
2808
2809 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2810
2811 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
2812 of FPCR register in fpregset.
2813
2814 2007-04-27 Maciej W. Rozycki <macro@mips.com>
2815
2816 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
2817 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
2818
2819 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2820
2821 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
2822 * rs6000-nat.c (rs6000_wait): New function.
2823 (_initialize_core_rs6000): Install it as to_wait target method.
2824 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
2825
2826 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2827
2828 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
2829 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
2830 * rs6000-nat.c (super_create_inferior): New variable.
2831 (rs6000_create_inferior): Make static. Adapt argument list. Call
2832 original version of create_inferior via super_create_inferior.
2833 (_initialize_core_rs6000): Install to_create_inferior target method.
2834
2835 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2836
2837 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
2838 (aix_thread_xfer_partial): ... this.
2839 (init_aix_thread_ops): Install to_xfer_partial instead
2840 of deprecated_xfer_memory target method.
2841
2842 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
2843 and inftarg.o, add inf-ptrace.o.
2844 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
2845 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
2846 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
2847 (fetch_inferior_registers): Rename to ...
2848 (rs6000_fetch_inferior_registers): ... this. Make static.
2849 (store_inferior_registers): Rename to ...
2850 (rs6000_store_inferior_registers): ... this. Make static.
2851 (read_word, child_xfer_memory): Remove.
2852 (rs6000_xfer_partial): New function.
2853 (kernel_u_size): Remove.
2854 (_initialize_core_rs6000): Add inf_ptrace-based target.
2855 * Makefile.in (rs6000-nat.o): Update dependencies.
2856
2857 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2858
2859 * inf-ptrace.c: Include "gdb_stdint.h".
2860 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
2861 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
2862 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
2863 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
2864 (inf_ptrace_store_register): Likewise.
2865 * Makefile.in (inf-ptrace.o): Update dependencies.
2866
2867 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2868
2869 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
2870 * configure.tgt (rs6000-*-*): Likewise.
2871 * config/rs6000/aix4.mh: Delete file.
2872 * config/rs6000/aix4.mt: Delete file.
2873 * config/rs6000/rs6000.mh: Delete file.
2874 * config/rs6000/rs6000.mt: Delete file.
2875
2876 * config/powerpc/nm-aix.h: Delete file.
2877 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
2878
2879 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2880
2881 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
2882 Remove obsolete part of comment.
2883 (store_regs_user_thread): Use uint32_t temporaries when calling
2884 fill_sprs32.
2885 (store_regs_kernel_thread): Likewise. Add assertion to verify
2886 correct size of struct ptsprs members.
2887 (aix_thread_xfer_memory): Fix type of myaddr.
2888 (aix_thread_extra_thread_info): Fix compiler warning.
2889 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
2890 (fetch_register, store_register): Adapt callers.
2891
2892 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2893
2894 * vec.h (vec_free): Rename to vec_free_. Adapt users.
2895
2896 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2897
2898 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
2899 and "regcache.h".
2900 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
2901 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
2902 (alpha_linux_regset_from_core_section): New function.
2903 (alpha_linux_init_abi): Install it.
2904 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
2905 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
2906 <sys/procfs.h>, and "gregset.h".
2907 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
2908 Move from config/alpha/nm-linux.h.
2909 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
2910 from alpha-nat.c.
2911 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
2912 * alpha-nat.c: Remove #ifdef __linux__ section.
2913 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
2914 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
2915 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
2916 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
2917 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
2918 (NATDEPFILES): Remove alpha-nat.o.
2919 * config/alpha/nm-linux.h: Delete file.
2920 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
2921 * Makefile.in (alpha-linux-nat.o): Update dependencies.
2922 (alpha-linux-tdep.o): Likewise.
2923
2924 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2925
2926 * mips-linux-nat.c: No longer include "gdbcore.h".
2927 (mips_linux_register_addr): Move from mips-linux-tdep.c.
2928 (mips64_linux_register_addr): Likewise.
2929 (mips_linux_register_u_offset): Call mips_linux_register_addr or
2930 mips64_linux_register_addr instead of register_addr.
2931 * mips-linux-tdep.c (mips_linux_register_addr,
2932 mips64_linux_register_addr): Move to mips-linux-nat.c.
2933 (register_addr): Remove.
2934 (register_addr_data, init_register_addr_data): Remove.
2935 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
2936 (set_mips_linux_register_addr): Remove.
2937 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
2938 * Makefile.in (mips-linux-nat.o): Update dependencies.
2939
2940 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2941
2942 * linux-nat.c (linux_register_u_offset): Remove.
2943 (linux_target_install_ops): New function.
2944 (linux_target): Use it.
2945 (linux_trad_target): New function.
2946 * linux-nat.h (linux_trad_target): Declare.
2947
2948 * alpha-linux-nat.c: Include "gdbcore.h".
2949 (alpha_linux_register_u_offset): New function.
2950 (_initialize_alpha_linux_nat): Use linux_trad_target.
2951
2952 * mips-linux-nat.c: Include "gdbcore.h".
2953 (mips_linux_register_u_offset): New function.
2954 (_initialize_mips_linux_nat): Use linux_trad_target.
2955
2956 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2957 * config/arm/nm-linux.h: Delete file.
2958
2959 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
2960 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
2961
2962 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2963 * config/ia64/nm-linux.h: Delete file.
2964
2965 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2966 * config/m32r/nm-linux.h: Delete file.
2967
2968 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2969 * config/m68k/nm-linux.h: Delete file.
2970
2971 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2972 * config/pa/nm-linux.h: Delete file.
2973
2974 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2975 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
2976 * config/powerpc/nm-linux.h: Delete file.
2977
2978 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
2979 * config/s390/nm-linux.h: Delete file.
2980
2981 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2982 * config/sparc/linux64.mh (NAT_FILE): Likewise.
2983 * config/sparc/nm-linux.h: Delete file.
2984
2985 * Makefile.in (alpha-linux-nat.o): Update dependencies.
2986 (mips-linux-nat.o): Likewise.
2987
2988 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2989
2990 * core-aout.c: Delete file.
2991 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
2992 (core-aout.o): Delete rule.
2993 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
2994
2995 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
2996
2997 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
2998 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
2999 KERNEL_U_ADDR): Remove.
3000
3001 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
3002 (cannot_fetch_register, cannot_store_register): Remove.
3003 (fetch_register): Inline cannot_fetch_register and register_addr.
3004 (store_register): Inline cannot_store_register and register_addr.
3005 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
3006 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3007 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
3008 Remove.
3009
3010 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
3011 (fetch_register): Inline register_addr.
3012 (store_register): Inline register_addr.
3013 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
3014 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3015 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
3016
3017 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
3018 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
3019 REGISTER_U_ADDR): Remove.
3020
3021 * hppa-linux-nat.c (register_addr): Rename to ...
3022 (hppa_linux_register_addr): ... this. Make static.
3023 (fetch_register, store_register): Adapt callers.
3024 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
3025
3026 * ppc-linux-nat.c (kernel_u_size): Remove.
3027 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
3028
3029 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
3030 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
3031 (NAT_FILE): Remove.
3032 * config/vax/nm-vax.h: Delete file.
3033
3034 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
3035
3036 * MAINTAINERS (Write After Approval): Add myself.
3037
3038 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
3039
3040 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
3041 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
3042 (m68k_linux_sigcontext_reg_offset): Fix typo.
3043 (target_is_uclinux): New.
3044 (m68k_linux_inferior_created): New.
3045 (m68k_linux_get_sigtramp_info): Check for uClinux or
3046 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
3047 uClinux.
3048 (_initialize_m68k_linux_tdep): Register
3049 m68k_linux_inferior_created.
3050
3051 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
3052
3053 * win32-nat.c (win32_detach): Remove delete_command call.
3054 Resume inferior with win32_resume instead of win32_continue.
3055
3056 2007-04-19 Jerome Guitton <guitton@adacore.com>
3057
3058 * ser-mingw.c (fd_is_file): New function.
3059 (file_select_thread): New function.
3060 (ser_console_wait_handle): Add special handling for files.
3061
3062 2007-04-18 Denis Pilat <denis.pilat@st.com>
3063
3064 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
3065 when missing from DW_TAG_subrange_type. Remove the handling of null
3066 return from die_type.
3067
3068 2007-04-18 Maciej W. Rozycki <macro@mips.com>
3069
3070 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
3071 change to rearrange some brackets.
3072 (mips_n32n64_push_dummy_call): Likewise.
3073 (mips_o32_push_dummy_call): Likewise.
3074 (mips_o64_push_dummy_call): Likewise.
3075
3076 2007-04-18 Denis Pilat <denis.pilat@st.com>
3077
3078 * infcmd.c (post_create_inferior): Start with a call to
3079 target_terminal_ours.
3080
3081 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3082
3083 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
3084 brackets.
3085 (mips_n32n64_push_dummy_call): Likewise. Reformat some
3086 expressions.
3087 (mips_o32_push_dummy_call): Likewise.
3088 (mips_o64_push_dummy_call): Likewise.
3089
3090 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3091
3092 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3093 comment.
3094
3095 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3096
3097 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3098 comment.
3099 (mips_o32_push_dummy_call): Likewise.
3100
3101 2007-04-17 Andreas Schwab <schwab@suse.de>
3102
3103 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
3104 sal to be bigger than the end of the function.
3105
3106 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3107 Nigel Stephens <nigel@mips.com>
3108
3109 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
3110 argument alignment requirements when calculating stack space
3111 required. When aligning an arg register to eight bytes
3112 boundary, align stack_offset too. Write floating-point
3113 arguments to the appropriate integer register if need go there.
3114 (mips_o64_push_dummy_call): Likewise.
3115
3116 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
3117
3118 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
3119 "sig" arguments, add "regcache" argument.
3120 * gdbarch.c, gdbarch.h: Regenerate.
3121
3122 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
3123 (handle_inferior_event): Call remove_single_step_breakpoints directly
3124 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
3125
3126 * alpha-tdep.c (alpha_software_single_step): Update argument list.
3127 Remove handling of !insert_breakpoints_p case.
3128 * arm-tdep.c (arm_software_single_step): Likewise.
3129 * cris-tdep.c (cris_software_single_step): Likewise.
3130 * mips-tdep.c (mips_software_single_step): Likewise.
3131 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3132 * sparc-tdep.c (sparc_software_single_step): Likewise.
3133 * spu-tdep.c (spu_software_single_step): Likewise.
3134
3135 * alpha-tdep.h (alpha_software_single_step): Update prototype.
3136 * mips-tdep.h (mips_software_single_step): Likewise.
3137 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3138 * sparc-tdep.h (sparc_software_single_step): Likewise.
3139
3140 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
3141
3142 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
3143 when removing single-step breakpoints.
3144
3145 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
3146
3147 * varobj.h (varobj_set_frozen): New
3148 (varobj_get_frozen): New.
3149 (varobj_update): New parameter explicit.
3150 * varobj.c (struct varobj): New fields frozen
3151 and not_fetched.
3152 (varobj_set_frozen, varobj_get_frozen): New.
3153 (install_new_value): Don't fetch values for
3154 frozen variable object, or children thereof. Allow
3155 a frozen variable object to have non-fetched value.
3156 (varobj_update): Allow updating child variables.
3157 Don't traverse frozen children.
3158 (new_variable): Initialize the frozen field.
3159 (c_value_of_variable): Return NULL for frozen
3160 variable without any value yet.
3161 * mi/mi-cmd-var.c (varobj_update_one): New parameter
3162 'explicit'.
3163 (mi_cmd_var_create): Output the 'frozen' field,
3164 as soon as testsuite is adjusted to expect that field.
3165 (mi_cmd_var_set_frozen): New.
3166 (mi_cmd_var_update): Pass the 'explicit' parameter to
3167 varobj_update_one.
3168 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
3169 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
3170
3171 2007-04-13 Paul Brook <paul@codesourcery.com>
3172
3173 * target-descriptions.c (tdesc_named_type): Add ieee_single and
3174 ieee_double.
3175 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
3176
3177 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3178
3179 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
3180 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
3181 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
3182 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
3183 * Makefile.in: Remove references to deleted files.
3184 * README: Do not mention deleted ROM monitor interfaces.
3185 * defs.h (enum language): Delete language_scm.
3186 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
3187 (dump_subexp_body_standard): Likewise.
3188 * parse.c (operator_length_standard): Likewise.
3189 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
3190 * remote-mips.c: Do not include remote-utils.h.
3191 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
3192 throughout.
3193 * value.c: Do not include scm-lang.h.
3194 (unpack_long): Delete scm_unpack call.
3195 * config/h8300/h8300.mt, config/mips/embed.mt,
3196 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
3197 config/sh/embed.mt, config/sh/linux.mt: Remove references to
3198 deleted files.
3199 * NEWS: Mention removed files.
3200
3201 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3202
3203 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
3204 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
3205
3206 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3207
3208 * NEWS: Mention removal of HP aCC support.
3209
3210 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3211
3212 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
3213 first entry for static executables.
3214 (breakpoint_addr): Delete unused variable.
3215 (elf_locate_base): Search for _r_debug in static executables.
3216 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
3217 also.
3218
3219 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3220
3221 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
3222 (bpstat_what, print_one_breakpoint, allocate_bp_location)
3223 (mention): Remove bp_through_sigtramp support.
3224 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
3225
3226 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3227
3228 * breakpoint.c (bpstat_what): Give step-resume higher priority than
3229 shlib events.
3230
3231 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3232
3233 * infrun.c: Doc fixes.
3234 (handle_inferior_event): Clarify debug message.
3235 (insert_step_resume_breakpoint_at_sal): Print a debug message.
3236
3237 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
3238
3239 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
3240
3241 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
3242
3243 * config/m68k/tm-monitor.h: Delete file.
3244 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
3245 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
3246 call moved to ...
3247 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
3248 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
3249
3250 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
3251
3252 * gdbarch.sh (software_single_step): Change the return type
3253 from void to int and reformatted some comments to <= 80
3254 columns.
3255 * gdbarch.c, gdbarch.h: Regenerated.
3256 * alpha-tdep.c (alpha_software_single_step): Likewise.
3257 * alpha-tdep.h (alpha_software_single_step): Likewise.
3258 * arm-tdep.c (arm_software_single_step): Likewise.
3259 * cris-tdep.c (cris_software_single_step): Likewise.
3260 * mips-tdep.c (mips_software_single_step): Likewise.
3261 * mips-tdep.h (mips_software_single_step): Likewise.
3262 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3263 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3264 * sparc-tdep.c (sparc_software_single_step): Likewise.
3265 * sparc-tdep.h (sparc_software_single_step): Likewise.
3266 * spu-tdep.c (spu_software_single_step): Likewise.
3267 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
3268 and act accordingly.
3269
3270 2007-04-11 Steve Ellcey <sje@cup.hp.com>
3271
3272 * configure.ac (build_warnings): Add -Wno-char-subscripts.
3273 * configure: Regenerate.
3274 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
3275
3276 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3277
3278 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
3279
3280 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3281
3282 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
3283 macros.
3284 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
3285 distinct on the TYPE_STUB_SUPPORTED debug targets.
3286 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
3287
3288 2007-04-11 Joel Brobecker <brobecker@adacore.com>
3289
3290 * sparc-tdep.c (X_RS2): New macro.
3291 (sparc_skip_stack_check): New function.
3292 (sparc_analyze_prologue): Adjust PC past stack probing
3293 sequence if necessary.
3294
3295 2007-04-10 Andreas Schwab <schwab@suse.de>
3296
3297 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
3298 register.
3299
3300 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3301
3302 * breakpoint.c (gdb_breakpoint_query): Really return an
3303 enum gdb_rc.
3304 (gdb_breakpoint): Likewise.
3305 * thread.c (gdb_list_thread_ids): Likewise.
3306 (gdb_thread_select): Likewise.
3307 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
3308 (mi_cmd_thread_list_ids): Remove bogus initialization.
3309
3310 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3311
3312 * Makefile.in (SFILES): Remove hpacc-abi.c.
3313 (COMMON_OBS): Remove hpacc-abi.o.
3314 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
3315 (hpacc-abi.o, hpread.o): Delete rules.
3316 * somread.c: Delete extern declarations from hpread.c.
3317 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
3318 (som_symfile_finish): Do not call hpread_symfile_finish.
3319 (som_symfile_init): Do not call hpread_symfile_init.
3320 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
3321 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
3322 * hpacc-abi.c, hpread.c: Deleted.
3323
3324 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3325
3326 * solib-svr4.c (enable_break): Simplify return value.
3327 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
3328
3329 2007-04-10 Andreas Schwab <schwab@suse.de>
3330
3331 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
3332 l_ld_size, l_next_size, l_prev_size, l_name_size.
3333
3334 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
3335 to extract addresses from link map.
3336 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
3337 (LM_NEXT): Likewise.
3338 (LM_NAME): Likewise.
3339 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
3340 (elf_locate_base): Likewise.
3341 (open_symbol_file_object): Likewise.
3342 (svr4_fetch_objfile_link_map): Likewise.
3343 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
3344 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
3345 l_ld_size.
3346 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
3347 (svr4_lp64_fetch_link_map_offsets): Likewise.
3348
3349 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
3350 removed members. Set l_ld_offset to -1 if not present.
3351
3352 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
3353
3354 Pass stderr of program run with "target remote |"
3355 via gdb_stderr.
3356 * serial.c (serial_open): Set error_fd to -1.
3357 * serial.h (struct serial): New field error_fd.
3358 (struct serial_opts): New field avail.
3359 * ser-pipe.c (pipe_open): Create another pair
3360 of sockets. Pass stderr to gdb.
3361 * ser-mingw.c (pipe_windows_open): Pass
3362 PEX_STDERR_TO_PIPE to pex_run. Initialize
3363 sd->error_fd.
3364 (pipe_avail): New.
3365 (_initialize_ser_windows): Hook pipe_avail.
3366 * ser-base.c (generic_readchar): Check if there's
3367 anything in stderr channel and route that to gdb_stderr.
3368
3369 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
3370
3371 * dbxread.c (read_ofile_symtab): Move current_objfile
3372 clearing to after end_stabs.
3373
3374 2007-04-01 Andreas Schwab <schwab@suse.de>
3375
3376 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
3377 gdbarch instead of current_gdbarch.
3378
3379 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
3380
3381 * varobj.c (varobj_create): Keep varobj value
3382 NULL when evaluating the type.
3383
3384 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
3385
3386 * NEWS: Mention new Windows CE support.
3387
3388 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
3389
3390 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
3391 the obsoletion stanza.
3392 * NEWS: Mention deleted targets.
3393
3394 * config/sh/tm-wince.h: Remove.
3395 * config/sh/wince.mt: Remove.
3396 * config/mips/tm-wince.h: Remove.
3397 * config/mips/wince.mt: Remove.
3398
3399 * wince.c: Remove.
3400 * wince-stub.c: Remove.
3401 * wince-stub.h: Remove.
3402 * Makefile.in (wince.o): Remove rule.
3403 (wince-stub.o): Likewise.
3404
3405 * mips-tdep.c (mips_next_pc): Make static.
3406 * mips-tdep.h (mips_next_pc): Remove declaration.
3407 * arm-tdep.c (arm_pc_is_thumb): Make static.
3408 (thumb_get_next_pc): Likewise.
3409 (arm_get_next_pc): Likewise.
3410 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
3411 (arm_pc_is_thumb): Likewise.
3412 (thumb_get_next_pc): Likewise.
3413 (arm_get_next_pc): Likewise.
3414
3415 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3416
3417 * MAINTAINERS: Remove d10v entry.
3418 * Makefile.in (SFILES): Remove dwarfread.c.
3419 (COMMON_OBS): Remove dwarfread.o.
3420 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
3421 (remote-est.o, rom68k-rom.o): Delete.
3422 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
3423 target est, target rom68k, and DWARF 1.
3424 * configure.tgt: Mark d10v as removed.
3425 * dwarf2read.c: Doc update.
3426 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
3427 and lnsize.
3428 (elf_locate_sections): Do not set them.
3429 (elf_symfile_read): Do not call dwarf_build_psymtabs.
3430 * symfile.h (dwarf_build_psymtabs): Delete prototype.
3431 * config/m68k/monitor.mt (TDEPFILES): Prune.
3432 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
3433 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
3434
3435 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3436
3437 * doublest.c (convert_floatformat_to_doublest): Use
3438 floatformat_classify.
3439 (floatformat_is_nan): Rename to...
3440 (floatformat_classify): ...this. Return more information.
3441 * doublest.h (enum float_kind): New.
3442 (floatformat_is_nan): Replace prototype...
3443 (floatformat_classify): ...with this one.
3444 * valprint.c (print_floating): Use floatformat_classify. Handle
3445 infinity.
3446
3447 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3448
3449 * README: Mention ISO C library requirement.
3450
3451 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3452
3453 * Makefile.in (SFILES): Remove nlmread.c.
3454 (COMMON_OBS): Remove nlmread.o.
3455 (nlmread.o): Delete rule.
3456 * README: Delete reference to remote-st.c.
3457 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
3458 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
3459 GDB_OSABI_LYNXOS.
3460 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
3461 (_initialize_i386_tdep): Do not reference them.
3462 * nlmread.c: Delete file.
3463 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
3464 * target.c: Doc update.
3465 * thread.c: Delete commented include.
3466 * config/alpha/tm-alpha.h: Doc update.
3467
3468 2007-03-30 Chris Dearman <chris@mips.com>
3469
3470 * utils.c (string_to_core_addr): Comment typo.
3471
3472 2007-03-30 Chris Dearman <chris@mips.com>
3473
3474 * mips-tdep.c: Comment typo.
3475
3476 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
3477
3478 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
3479 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
3480 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
3481 * config/powerpc/nm-ppc64-linux.h: Remove file.
3482 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
3483 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
3484 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
3485 * infptrace.c (call_ptrace): Likewise.
3486 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
3487 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
3488 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
3489 (store_register): Likewise.
3490
3491 2007-03-29 Joel Brobecker <brobecker@adacore.com>
3492
3493 * Makefile.in (varobj.o): Add missing dependency.
3494
3495 2007-03-29 Michael Snyder <msnyder@access-company.com>
3496
3497 * MAINTAINERS: Update my email address.
3498
3499 2007-03-29 Joel Brobecker <brobecker@adacore.com>
3500
3501 Add support for exception handling with multiple versions of
3502 the Ada runtime:
3503 * ada-lang.c: Update general comments on how Ada exception catchpoints
3504 are implemented.
3505 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
3506 (__gnat_raise_nodefer_with_msg): Delete.
3507 (ada_unhandled_exception_name_addr_ftype): New type.
3508 (exception_support_info): New type.
3509 (ada_unhandled_exception_name_addr): Add forward declaration.
3510 (ada_unhandled_exception_name_addr_from_raise): Likewise.
3511 (default_exception_support_info): New constant.
3512 (exception_support_info_fallback): Likewise.
3513 (exception_info): New global variable.
3514 (ada_exception_support_info_sniffer): New function.
3515 (ada_executable_changed_observer): Likewise.
3516 (ada_unhandled_exception_name_addr_from_raise): Renamed from
3517 ada_unhandled_exception_name_addr.
3518 (ada_unhandled_exception_name_addr): Reimplement to match the
3519 latest Ada runtime implementation.
3520 (error_breakpoint_runtime_sym_not_found): Delete.
3521 (ada_exception_sym_name): Get the exception sym name from
3522 exception_info rather than hardcoding it.
3523 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
3524 Update error handling.
3525 * Makefile.in (ada-lang.o): Add dependency on observer.h.
3526
3527 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
3528
3529 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
3530 (remote-st.o, uw-thread.o): Delete.
3531 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
3532 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
3533 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
3534 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
3535 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
3536 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
3537 rs6000-*-lynxos* to an obsoletion stanza.
3538 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
3539 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
3540 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
3541 i[34567]86-*-netware*.
3542 * NEWS: Mention deleted targets.
3543
3544 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
3545 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
3546 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
3547 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
3548 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
3549 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
3550 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
3551 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
3552 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
3553 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
3554 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
3555 config/rs6000/tm-rs6000ly.h: Delete files.
3556
3557 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
3558
3559 * defs.h (deprecated_registers_changed_hook): Delete declaration.
3560 * interps.c (clear_interpreter_hooks): Do not clear
3561 deprecated_registers_changed_hook.
3562 * regcache.c (registers_changed): Do not call it.
3563 * top.c (deprecated_registers_changed_hook): Do not define it.
3564 * mi/mi-interp.c (mi_command_loop): Do not clear it.
3565 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
3566 (tui_remove_hooks): Do not remove it.
3567 (tui_selected_frame_level_changed_hook): Check for negative level.
3568 Use get_selected_frame.
3569 (tui_registers_changed_hook): Deleted.
3570
3571 2007-03-29 Joel Brobecker <brobecker@adacore.com>
3572
3573 * stabsread.c (add_undefined_type): Add extra parameter.
3574 Now handles nameless types separately.
3575 (struct nat): New type.
3576 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
3577 New static variables.
3578 (read_type): Update calls to add_undefined_type.
3579 (add_undefined_type_noname): New function.
3580 (add_undefined_type_1): Renames from add_undefined_type.
3581 (cleanup_undefined_types_noname): New function.
3582 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
3583 (cleanup_undefined_types): New handles nameless types separately.
3584 (_initialize_stabsread): Initialize our new static constants.
3585
3586 2007-03-29 Denis Pilat <denis.pilat@st.com>
3587
3588 * configure.ac: Test for signal.h.
3589 * configure, config.in: Regenerate.
3590
3591 2007-03-29 Denis Pilat <denis.pilat@st.com>
3592
3593 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
3594 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
3595
3596 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
3597
3598 * arm-wince-tdep.c: New.
3599 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
3600 (MT_CFLAGS): Delete.
3601 (TM_CLIBS): Delete.
3602 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
3603 solib-legacy.o, solib-svr4.o, and remove wince.o.
3604 * configure.tgt (arm*-*-mingw32ce*): Add.
3605 * signals/signals.c [HAVE_SIGNAL_H]: Check.
3606 (do_target_signal_to_host): Silence 'not used' warning.
3607 * config/arm/tm-wince.h: Remove.
3608
3609 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
3610
3611 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
3612 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
3613
3614 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
3615 * config/ia64/tm-linux.h: Remove file.
3616 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
3617 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
3618 legacy_pc_in_sigtramp.
3619 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
3620 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
3621 Remove func_name argument.
3622 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
3623
3624 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
3625 * target.c (update_current_target): Add to_have_steppable_watchpoint.
3626 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
3627 (HAVE_STEPPABLE_WATCHPOINT): Define.
3628
3629 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
3630 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
3631 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
3632 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
3633 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
3634 target_insert_watchpoint, target_remove_watchpoint): Remove.
3635 (FETCH_INFERIOR_REGISTERS): Define.
3636 * ia64-linux-nat.c (ia64_register_addr): Make static.
3637 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
3638 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
3639 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
3640 (ia64_linux_stopped_data_address): Make static. Add target_ops.
3641 (ia64_linux_stopped_by_watchpoint): Make static.
3642 (ia64_linux_can_use_hw_breakpoint): New function.
3643 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
3644 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
3645 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
3646
3647 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
3648
3649 * linespec.c: Include language.h.
3650 (find_methods): Add language parameter. Call
3651 lookup_symbol_in_language. Pass language down.
3652 (add_matching_methods): Likewise. Call
3653 lookup_symbol_in_language.
3654 (add_constructors): Likewise.
3655 (find_method): Pass sym_class to collect_methods.
3656 (collect_methods): Add sym_class parameter. Pass language
3657 down.
3658 * symtab.c (lookup_symbol): Rename to ...
3659 (lookup_symbol_in_language): ... this. Add language
3660 parameter. Use passed language instead of current_language.
3661 (lookup_symbol): New as wrapper around
3662 lookup_symbol_in_language.
3663 (lookup_symbol_aux): Add language parameter. Use passed
3664 language instead of current_language.
3665 (search_symbols): Indent.
3666 * symtab.h (enum language): Forward declare.
3667 (lookup_symbol_in_language): Declare.
3668 (lookup_symbol): Update description.
3669 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
3670 * ada-lang.c (restore_language): Remove.
3671 (lookup_symbol_in_language): Remove.
3672
3673 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
3674
3675 * breakpoint.c (bpstat_num): Add int *num parameter.
3676 * breakpoint.h (bpstat_num): Likewise.
3677 * infcmd.c (continue_command): Adjust to new bpstat_num
3678 interface.
3679 (program_info): Likewise.
3680
3681 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
3682
3683 * config/sh/tm-sh.h: Remove file.
3684 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
3685 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
3686 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3687 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
3688
3689 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
3690
3691 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
3692 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
3693 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
3694 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
3695 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
3696 sequence if target_shortname is "remote".
3697
3698 2007-03-27 Anton Blanchard <anton@samba.org>
3699
3700 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
3701 instead of wordsize when looking for the LR in a stack frame.
3702
3703 2007-03-27 Andreas Schwab <schwab@suse.de>
3704 Daniel Jacobowitz <dan@codesourcery.com>
3705
3706 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
3707 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
3708 argument. Update all callers.
3709 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
3710 (dwarf2_frame_set_eh_frame_regnum): Rename to...
3711 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
3712 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
3713 (dwarf2_frame_set_adjust_regnum): ...this.
3714 (dwarf2_frame_eh_frame_regnum): Delete prototype.
3715 * rs6000-tdep.c: Include "dwarf2-frame.h".
3716 (rs6000_adjust_frame_regnum): Define.
3717 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
3718 Register rs6000_adjust_frame_regnum.
3719
3720 * Makefile.in (rs6000-tdep.o): Update dependencies.
3721
3722 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
3723
3724 * Makefile.in: Add support for a "pdf" target.
3725
3726 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
3727
3728 * amd64-tdep.c (amd64_init_frame_cache): New function.
3729 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
3730
3731 2007-03-26 Nigel Stephens <nigel@mips.com>
3732 Maciej W. Rozycki <macro@mips.com>
3733
3734 * ui-out.c (ui_out_field_core_addr): Truncate address to
3735 TARGET_ADDR_BIT size before printing.
3736
3737 2007-03-22 Nigel Stephens <nigel@mips.com>
3738 Maciej W. Rozycki <macro@mips.com>
3739
3740 * remote-mips.c (mips_xfer_memory): Update prototype.
3741
3742 2007-03-22 Joel Brobecker <brobecker@adacore.com>
3743
3744 * symfile.h: #include "symtab.h"
3745
3746 2007-03-22 Denis Pilat <denis.pilat@st.com>
3747
3748 * utils.c (pagination_on_command, pagination_off_command):
3749 Remove useless prototypes.
3750
3751 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
3752
3753 Fix PR pascal/2232.
3754 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
3755 instead of TYPE_NAME for object base class name.
3756
3757
3758 2007-03-19 Kevin Buettner <kevinb@redhat.com>
3759
3760 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
3761 Specify frame type in calls to frame_func_unwind().
3762
3763 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
3764
3765 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
3766 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
3767 (refine_prologue_limit): Delete.
3768 (skip_prologue): Don't call it. Use extract_unsigned_integer.
3769 Assume lim_pc is set. Correct check for incomplete prologues.
3770 Do not skip clobbers of the frame pointer.
3771 * symtab.c (skip_prologue_using_sal): Fail if there is only one
3772 sal.
3773
3774 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
3775
3776 * frame.c (frame_pop): Check to see whether there's a frame to
3777 which we can pop first.
3778
3779 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
3780
3781 * MAINTAINERS (Write After Approval): Add myself.
3782
3783 2007-03-09 Markus Deuling <deuling@de.ibm.com>
3784
3785 * infrun.c (breakpoints_failed): Remove unnecessary variable.
3786 (handle_inferior_event): Remove unnecessary braces.
3787 * breakpoint.c (bpstat_what): Remove wrong comment.
3788
3789 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
3790
3791 * spu-tdep.c (spu_in_function_epilogue_p): New function.
3792 (spu_gdbarch_init): Install it.
3793
3794 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
3795
3796 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
3797 object types, not 0.
3798
3799 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
3800
3801 * spu-tdep.c (spu_frame_align): New function.
3802 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
3803
3804 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
3805
3806 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
3807 (spu_software_single_step): Likewise.
3808 (spu_read_pc, spu_write_pc): New functions.
3809 (spu_gdbarch_init): Install them.
3810
3811 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
3812
3813 * cli/cli-dump.c (struct callback_data): load_offset needs to
3814 have signed long type.
3815
3816 2007-03-07 Joel Brobecker <brobecker@adacore.com>
3817
3818 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
3819 Revert the previous change that had some unexpected side-effects
3820 on mips32.
3821 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
3822 function to get the address of the calling instruction.
3823
3824 2007-03-07 Denis Pilat <denis.pilat@st.com>
3825
3826 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
3827 get_selected_frame by deprecated_safe_get_selected_frame.
3828
3829 2007-03-02 Mark Kettenis <kettenis@gnu.org>
3830
3831 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
3832 "gdb_string.h". Don't include "nbsd-tdep.h".
3833 (SIZEOF_STRUCT_REG): Remove.
3834 (SHNBSD_SIZEOF_GREGS): New.
3835 (shnbsd_supply_gregset, shnbsd_collect_gregset)
3836 (shnbsd_regset_from_core_section): New functions.
3837 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
3838 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
3839 shnbsd_supply_gregset, shnbsd_collect_gregset.
3840 (shnbsd_gregset): New variable.
3841 (shnbsd_init_abi): Set regset_from_core_section.
3842 (GDB_OSABI_NETBSD_CORE): New define.
3843 (shnbsd_core_osabi_sniffer): New function.
3844 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
3845 * Makefile.in (shnbsd-tdep.o): Update dependencies.
3846 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
3847 nbsd-tdep.o.
3848 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
3849
3850 2007-02-28 Joel Brobecker <brobecker@adacore.com>
3851
3852 * gdbtypes.c (replace_type): Fix typo that caused us to not update
3853 length of the types referenced by the new type CV ring.
3854
3855 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
3856
3857 * frame.c (frame_pop, frame_observer_target_changed): Call
3858 reinit_frame_cache.
3859 (flush_cached_frames): Rename to reinit_frame_cache and delete
3860 old implementation.
3861 * frame.h (flush_cached_frames): Delete prototype and update comment.
3862
3863 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
3864 reinit_frame_cache instead of flush_cached_frames. Do not call
3865 select_frame after reinit_frame_cache.
3866 * corelow.c (core_open): Likewise.
3867 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
3868 * infrun.c (prepare_to_proceed, context_switch)
3869 (handle_inferior_event): Likewise.
3870 * linux-fork.c (fork_load_infrun_state): Likewise.
3871 * ocd.c (ocd_start_remote): Likewise.
3872 * remote-e7000.c (e7000_start_remote): Likewise.
3873 * remote-mips.c (device): Likewise.
3874 * thread.c (switch_to_thread): Likewise.
3875 * tracepoint.c (finish_tfind_command): Likewise.
3876 * gdbarch.c: Regenerated.
3877
3878 2007-02-28 Jerome Guitton <guitton@adacore.com>
3879 Joel Brobecker <brobecker@adacore.com>
3880
3881 * gdbtypes.c (check_typedef): Do not replace stub type if
3882 the resolved type is not defined in the same objfile.
3883
3884 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
3885
3886 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
3887
3888 2007-02-28 Joel Brobecker <brobecker@adacore.com>
3889
3890 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
3891 symbol for Ada units when the symbol is defined using 't' rather
3892 than 'Tt' as symbol descriptor.
3893
3894 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3895
3896 * config/mips/tm-nbsd.h: Delete file.
3897 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3898 * config/sh/tm-nbsd.h: Delete file.
3899 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
3900
3901 2007-02-28 Joel Brobecker <brobecker@adacore.com>
3902
3903 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
3904 unused WRONG_PARAM value since it was recently deleted.
3905
3906 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
3907
3908 * varobj.c (varobj_update): Free temporary vectors.
3909
3910 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3911
3912 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
3913 * config/powerpc/tm-linux.h: Delete file.
3914 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
3915 (PROCESS_LINENUMBER_HOOK): Do not undefine.
3916 (TEXT_SEGMENT_BASE): Do not redefine.
3917 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
3918 from config/rs6000/tm-rs6000.h.
3919 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
3920 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
3921 (TEXT_SEGMENT_BASE): Remove.
3922 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
3923 (rs6000_in_solib_return_trampoline): Remove.
3924 (SKIP_TRAMPOLINE_CODE): Remove.
3925 (rs6000_skip_trampoline_code): Remove.
3926 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
3927 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
3928 (FP0_REGNUM): Remove.
3929 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
3930 (rs6000_set_host_arch_hook): Remove.
3931 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
3932 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
3933 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
3934 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
3935 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
3936 * rs6000-nat.c: Include "rs6000-tdep.h".
3937 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
3938 (set_host_arch): Rename to ...
3939 (rs6000_create_inferior): ... this. Make public.
3940 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
3941 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
3942 (rs6000_create_inferior): Remove.
3943 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
3944 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
3945 set_gdbarch_in_solib_return_trampoline, and
3946 set_gdbarch_skip_trampoline_code.
3947 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
3948 from config/rs6000/tm-rs6000.h.
3949
3950 2007-02-27 Joel Brobecker <brobecker@adacore.com>
3951
3952 * buildsym.c (record_producer): Do nothing if no producer is provided.
3953
3954 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
3955
3956 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
3957 to check changelist is non-NULL. Call error if the frontend tries
3958 to update a non-root variable.
3959
3960 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
3961
3962 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
3963
3964 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
3965 (dwarf2_frame_sniffer): Update.
3966 (dwarf2_signal_frame_this_id): New function.
3967 (dwarf2_signal_frame_unwind): Use it.
3968 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
3969 * frame.c (frame_func_unwind): Add this_type argument.
3970 (get_frame_func): Update.
3971 (frame_unwind_address_in_block): Add this_type argument and check it.
3972 Fix a typo.
3973 (get_frame_address_in_block): Update.
3974 * frame.h (enum frame_type): Move higher in the file.
3975 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
3976 argument.
3977
3978 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
3979 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
3980 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
3981 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
3982 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
3983 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
3984 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
3985 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
3986 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
3987 frame_func_unwind and frame_unwind_address_in_block to specify
3988 the frame type. Use frame_unwind_address_in_block instead of
3989 frame_pc_unwind in sniffers.
3990
3991 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
3992
3993 * frame.c (deprecated_selected_frame): Rename to...
3994 (selected_frame): ...this. Make static.
3995 (get_selected_frame, select_frame): Update.
3996 * frame.h (deprected_select_frame): Delete.
3997 (deprecated_safe_get_selected_frame): Update comments.
3998
3999 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
4000 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
4001 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
4002 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
4003 tui/tui.c: Replace references to deprecated_selected_frame.
4004
4005 2007-02-27 Fred Fish <fnf@specifix.com>
4006
4007 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
4008 directly decrement the stack pointer, accumulate their operand into
4009 the stack offset, and mark the function as not being frameless.
4010
4011 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4012
4013 * arch-utils.c (selected_byte_order): New.
4014 * arch-utils.h (selected_byte_order): New prototype.
4015 * remote-sim.c (gdbsim_open): Use selected_byte_order.
4016
4017 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4018
4019 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
4020 (default_symfile_offsets): Check VMA here. Update section VMAs.
4021
4022 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4023
4024 * remote.c (init_remote_state): Add special handling for placeholder
4025 registers.
4026
4027 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4028
4029 * Makefile.in (XMLFILES): Include $(TDEP_XML).
4030 (filenames_h): New variable.
4031 (clean): Clean up xml-builtin.c and stamp-xml.
4032 (arm-linux-nat.o): Update.
4033 * config/arm/linux.mh (TDEP_XML): Define.
4034 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
4035 (arm_linux_has_wmmx_registers): New.
4036 (GET_THREAD_ID): Fix typo.
4037 (IWMMXT_REGS_SIZE): Define.
4038 (fetch_wmmx_regs, store_wmmx_regs): New.
4039 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
4040 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
4041 (super_xfer_partial, arm_linux_xfer_partial): New.
4042 (_initialize_arm_linux_nat): Use them.
4043 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
4044 (xml_builtin_xfer_partial): New function.
4045 * xml-support.h (xml_builtin_xfer_partial): New prototype.
4046 * NEWS: Update mention of iWMMXt support.
4047
4048 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4049
4050 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
4051 if there are no FPA registers.
4052 (arm_dwarf_reg_to_regnum): New function.
4053 (arm_register_type, arm_register_name): Return minimal values for
4054 unsupported registers.
4055 (arm_register_sim_regno): Handle iWMMXt registers.
4056 (arm_gdbarch_init): Record missing FPA registers if indicated by
4057 a target description. Recognize iWMMXt registers. Only register
4058 "info float" for FPA. Use ARM_NUM_REGS. Register
4059 arm_dwarf_reg_to_regnum.
4060 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
4061 constants.
4062 (struct gdbarch_tdep): Add have_fpa_registers.
4063 * features/xscale-iwmmxt.xml: Update capitalization.
4064 * regformats/arm-with-iwmmxt.dat: Regenerated.
4065
4066 2007-02-24 Kevin Buettner <kevinb@redhat.com>
4067
4068 * NEWS (New targets): Add entry for the Toshiba Media Processor.
4069
4070 2007-02-23 Kevin Buettner <kevinb@redhat.com>
4071
4072 * MAINTAINERS (mep): New target.
4073
4074 2007-02-23 Kevin Buettner <kevinb@redhat.com>
4075
4076 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
4077 Richard Sandiford:
4078 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
4079 (mep-tdep.o): New rule.
4080 * configure.tgt (mep-*-*): New target.
4081 * mep-tdep.c: New file.
4082 * config/mep/mep.mt: New file.
4083
4084 2007-02-22 Markus Deuling <deuling@de.ibm.com>
4085
4086 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
4087 BREAKPOINT_HIT and STOP_UNKNOWN.
4088
4089 2007-02-22 Markus Deuling <deuling@de.ibm.com>
4090
4091 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
4092
4093 2007-02-20 Joel Brobecker <brobecker@adacore.com>
4094
4095 * gdb_expat.h (XMLCALL): Define if not already defined.
4096
4097 2007-02-20 Andreas Schwab <schwab@suse.de>
4098
4099 * Makefile.in (symfile.o): Update dependencies.
4100
4101 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
4102
4103 * MAINTAINERS: Disable -Werror for cris simulator. Build
4104 sparc64-solaris2.10 instead of the broken sparc-elf.
4105 * solib-frv.c: Include "solib.h".
4106 * Makefile.in (solib-frv.o): Update.
4107 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
4108 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
4109 (xtensa_frame_this_id, xtensa_frame_prev_register)
4110 (xtensa_push_dummy_call): Use %p.
4111
4112 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4113
4114 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4115 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
4116 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4117 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
4118 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
4119 (sparc-linux-tdep.o): Update.
4120
4121 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
4122
4123 * xtensa-tdep.h (xtensa_reg_mask_t): New.
4124 (xtensa_mask_t): Change mask field to be a separate array.
4125 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
4126 (xtensa_pseudo_register_write, xtensa_unwind_pc)
4127 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
4128 (xtensa_breakpoint_from_pc): Remove implicit type casting.
4129 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
4130 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
4131 (mask14, mask15): Rename to
4132 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
4133 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
4134 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
4135 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
4136 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
4137 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
4138 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
4139 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
4140 (xtensa_submask14, xtensa_submask15): New.
4141 (rmap): Follow strict aliasing rules doing static initialization.
4142
4143 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
4144
4145 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
4146 handling from here...
4147 (tdesc_register_type): ...to here.
4148 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
4149 * features/arm-core.xml: Use code_ptr and data_ptr.
4150
4151 2007-02-13 Denis Pilat <denis.pilat@st.com>
4152
4153 * varobj.h (enum varobj_update_error): New enum.
4154 * varobj.c (struct varobj_root): Add is_valid member.
4155 (varobj_get_type): Check for invalid varobj.
4156 (varobj_get_attributes): Likewise.
4157 (variable_editable):Likewise.
4158 (varobj_update): Likewise. Use varobj_update_error.
4159 (new_root_variable): Set root varobj as valid by default.
4160 (varobj_invalidate): New function.
4161 * symfile.c (clear_symtab_users): Use varobj_invalidate.
4162 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
4163 Use varobj_update_error.
4164
4165 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
4166
4167 Fix PR pascal/2223.
4168 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
4169 Pascal language marker.
4170 * dwarf2read.c (set_cu_language): Likewise.
4171
4172 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
4173
4174 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
4175 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
4176 instead of target_terminal_init since inferior_ptid isn't set yet.
4177
4178 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
4179
4180 * MAINTAINERS (Write After Approval): Add myself.
4181
4182 2007-02-09 Fred Fish <fnf@specifix.com>
4183
4184 Based on work by Apple Computer, Inc.
4185 * event-top.c (async_request_quit): Call quit() whenever either
4186 quit_flag is set or immediate_quit is set.
4187
4188 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
4189
4190 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
4191 type to a pointer to const struct block.
4192 (ada_lookup_symbol_list): Don't cast away constness when calling
4193 remove_out_of_scope_renamings.
4194
4195 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
4196
4197 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
4198 address of 'filename'; it is always non null.
4199
4200 2007-02-09 Joel Brobecker <brobecker@adacore.com>
4201
4202 * exec.c (add_to_section_table): Do not discard empty sections.
4203
4204 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4205
4206 * features/Makefile, features/arm-with-iwmmxt.xml,
4207 features/gdbserver-regs.xsl, features/number-regs.xsl,
4208 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
4209 * regformats/arm-with-iwmmxt.dat: Generate.
4210 * NEWS: Mention iWMMXt.
4211
4212 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4213
4214 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
4215 (xml-tdesc.o): Update.
4216 * xml-support.c: Add a comment.
4217 (gdb_xml_enums_boolean): New variable.
4218 (gdb_xml_parse_attr_enum): Use strcasecmp.
4219 * xml-support.h (gdb_xml_enums_boolean): Declare.
4220 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
4221 next_regnum, and current_union.
4222 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
4223 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
4224 (field_attributes, union_children, reg_attributes, union_attributes)
4225 (vector_attributes, feature_attributes, feature_children): New.
4226 (target_children): Make static. Add <feature>.
4227 (tdesc_elements): Make static.
4228 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
4229 (struct tdesc_feature, tdesc_feature_p): New types.
4230 (struct target_desc): Add features member.
4231 (struct tdesc_arch_data, tdesc_data): New.
4232 (target_find_description): Clarify error message. Warn about
4233 ignored register descriptions.
4234 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4235 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
4236 (tdesc_data_cleanup, tdesc_numbered_register)
4237 (tdesc_numbered_register_choices, tdesc_find_register)
4238 (tdesc_register_name, tdesc_register_type)
4239 (tdesc_remote_register_number, tdesc_register_reggroup_p)
4240 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
4241 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
4242 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
4243 (tdesc_create_feature, tdesc_record_type): New.
4244 (free_target_description): Free features.
4245 (_initialize_target_descriptions): Initialize tdesc_data.
4246 * arch-utils.c (default_remote_register_number): New.
4247 * arch-utils.h (default_remote_register_number): New prototype.
4248 * target-descriptions.h (set_tdesc_pseudo_register_name)
4249 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
4250 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
4251 (tdesc_numbered_register, tdesc_numbered_register_choices)
4252 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4253 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
4254 (tdesc_create_reg): Declare.
4255 * gdbarch.sh (remote_register_number): New entry.
4256 * gdbarch.c, gdbarch.h: Regenerate.
4257 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
4258 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
4259
4260 * arm-tdep.c (arm_register_aliases): New.
4261 (arm_register_name_strings): Rename to...
4262 (arm_register_names): ...this. Make const. Delete the old version.
4263 (current_option, arm_register_byte): Delete.
4264 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
4265 (value_of_arm_user_reg): New.
4266 (arm_gdbarch_init): Verify any described registers. Call
4267 tdesc_use_registers. Don't use arm_register_byte. Create aliases
4268 for standard register names.
4269 (_initialize_arm_tdep): Do not adjust arm_register_names.
4270 * user-regs.c (struct user_reg): Add baton member.
4271 (append_user_reg, user_reg_add_builtin, user_regs_init)
4272 (user_reg_add, value_of_user_reg): Use a baton for user
4273 register functions.
4274 * std-regs.c: Update.
4275 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
4276 (user_reg_add): Add baton argument.
4277 * NEWS: Mention target description register support.
4278 * features/arm-core.xml, features/arm-fpa.xml: New.
4279 * eval.c (evaluate_subexp_standard): Allow ptype $register
4280 when the program is not running.
4281
4282 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
4283
4284 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
4285
4286 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
4287
4288 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
4289 info->disassembler_options to "any".
4290
4291 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4292
4293 * varobj.c (install_new_value): Only call value_get_print_value
4294 if changeable.
4295
4296 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4297
4298 Reported by timeless@gmail.com:
4299 * gdb/target.c (target_flash_erase): Do not return void value.
4300 (target_flash_done): Likewise.
4301 * gdb/cli/cli-cmds.c (source_command): Likewise.
4302
4303 2007-02-08 Fred Fish <fnf@specifix.com>
4304
4305 Based on work by Apple Computer, Inc.
4306 * event-top.c (handle_sigint): Set quit_flag.
4307 (async_request_quit): Don't set quit_flag. Avoid calling quit()
4308 if quit_flag has already been reset.
4309
4310 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4311
4312 * ser-mingw.c (pipe_windows_close): Move variable initialization back
4313 up.
4314
4315 2007-02-08 Fred Fish <fnf@specifix.com>
4316
4317 * defs.h (request_quit): Remove declaration.
4318 * utils.c (request_quit): Remove definition.
4319
4320 2007-02-08 Joel Brobecker <brobecker@gnat.com>
4321 Jan Kratochvil <jan.kratochvil@redhat.com>
4322 Daniel Jacobowitz <dan@codesourcery.com>
4323
4324 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
4325 (skip_prologue): Allow bl->blrl used by PIC code.
4326
4327 2007-02-08 Mark Kettenis <kettenis@gnu.org>
4328 Daniel Jacobowitz <dan@codesourcery.com>
4329
4330 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
4331 initialize tmp_obstack.
4332 * p-valprint.c (pascal_object_print_value_fields)
4333 (pascal_object_print_value): Likewise.
4334
4335 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4336
4337 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
4338
4339 2007-02-08 Mark Kettenis <kettenis@gnu.org>
4340
4341 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4342 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
4343
4344 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4345
4346 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
4347 (xml_cache): New.
4348 (tdesc_parse_xml): Cache expanded descriptions.
4349
4350 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4351
4352 * Makefile.in (XMLFILES): New.
4353 (COMMON_OBS): Add xml-builtin.o.
4354 (xml-builtin.c, stamp-xml): New rules.
4355 (xml-tdesc.o): Update.
4356 * features/feature_to_c.sh: New file.
4357 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
4358 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
4359 (gdb_xml_start_element): Initialize scope after possibly reallocating
4360 scopes. Move cleanup later. Handle the XInclude description
4361 specially.
4362 (gdb_xml_end_element): Only parse the body if there is a current element.
4363 Call XML_DefaultCurrent if there is no element.
4364 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
4365 (struct xinclude_parsing_data, xinclude_start_include)
4366 (xinclude_end_include, xml_xinclude_default)
4367 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
4368 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
4369 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
4370 * xml-support.h (xml_fetch_another, xml_process_xincludes)
4371 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
4372 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
4373 XInclude directives. Use the compiled in DTD.
4374 (fetch_xml_from_file): Add baton argument. Treat it as a containing
4375 directory name. Do not warn here.
4376 (file_read_description_xml): Update call. Warn here instead. Pass
4377 a dirname as baton.
4378 (fetch_available_features_from_target): New.
4379 (target_read_description_xml): Use it.
4380 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
4381 to handle XInclude.
4382 * features/xinclude.dtd: New file.
4383
4384 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
4385
4386 * linux-thread-db.c (check_for_thread_db): Return early if we have
4387 no libthread_db support.
4388
4389 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
4390
4391 * mi/mi-parse.h: Include <sys/time.h>.
4392
4393 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
4394
4395 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
4396 instead of print_variable_value to print values.
4397
4398 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
4399
4400 * mi/mi-main.c: Numerous formatting changes.
4401 (mi_cmd_data_write_register_values): Replace clause inadvertantly
4402 removed in my previous change.
4403
4404 2007-02-03 Eli Zaretskii <eliz@gnu.org>
4405
4406 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
4407 Use 1000000L instead of 1000000.
4408
4409 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
4410
4411 Based on work by Apple Computer, Inc.
4412
4413 * configure.ac: Test for sys/resource.h and getrusage.
4414 * configure, config.in: Regenerate.
4415
4416 * mi/mi-main.c: Include <sys/resource.h> if present.
4417 (rusage): Declare if HAVE_GETRUSAGE.
4418 (current_command_ts, do_timings): New static variables.
4419 (timestamp, print_diff_now, print_diff, timeval_diff):
4420 New static timing functions.
4421 (mi_cmd_enable_timings): New function for new MI command.
4422 (captured_mi_execute_command, mi_execute_async_cli_command):
4423 Call timing functions.
4424
4425 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
4426 -enable-timings.
4427
4428 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
4429
4430 * mi/mi-parse.h: (mi_timestamp): New structure.
4431 (mi_parse): Add mi_timestamp* member.
4432
4433 2007-02-02 Denis Pilat <denis.pilat@st.com>
4434
4435 * thread.c (make_cleanup_restore_current_thread): New function.
4436 (info_threads_command): Use of make_cleanup_restore_current_thread
4437 to restore the current thread and the selected frame.
4438 (restore_selected_frame): New function.
4439 (struct current_thread_cleanup): Add frame_id field.
4440 (do_restore_current_thread_cleanup): Add restoring of the selected
4441 frame.
4442 (make_cleanup_restore_current_thread): Likewise.
4443 (thread_apply_all_command): backup the selected frame while
4444 entering the function and restore it at exit.
4445 (thread_apply_command): Likewise.
4446
4447 2007-02-02 Denis Pilat <denis.pilat@st.com>
4448
4449 * MAINTAINERS (Write After Approval): Add myself to the list.
4450
4451 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4452
4453 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
4454 (m32r_store_register): Ditto.
4455
4456 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
4457
4458 * ser-mingw.c (pipe_windows_open)
4459 (pipe_windows_read, pipe_windows_write): Declare
4460 variables at the top of the function.
4461
4462 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4463
4464 * doublest.c (floatformat_from_length): Use the right element from
4465 gdbarch floatformats.
4466 (floatformat_from_type, extract_typed_floating)
4467 (store_typed_floating): Likewise.
4468 * doublest.h: Remove declarations for undefined floatformat arrays.
4469 * gdbarch.sh (float_format, double_format, long_double_format): Change
4470 to pairs.
4471 (pformat): Update for pairs.
4472 * gdbarch.c, gdbarch.h: Regenerated.
4473 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
4474 (floatformats_ieee_double_littlebyte_bigword)
4475 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
4476 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
4477 (floatformats_vax_d): New variables.
4478 (builtin_type_ieee_single, builtin_type_ieee_double)
4479 (builtin_type_arm_ext, builtin_type_ia64_spill)
4480 (builtin_type_ia64_quad): Replace arrays with individual types.
4481 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
4482 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
4483 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
4484 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
4485 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
4486 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
4487 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
4488 unused and endian-specific types.
4489 (recursive_dump_type): Update for floatformat pairs.
4490 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
4491 (build_gdbtypes): Use build_flt.
4492 (_initialize_gdbtypes): Update set of initialized types.
4493 * gdbtypes.h: Update declarations to match gdbtypes.c.
4494 (struct main_type): Store a pointer to two floatformats.
4495 * arch-utils.c (default_float_format, default_double_format): Delete.
4496 * arch-utils.h (default_float_format, default_double_format): Delete.
4497
4498 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4499 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
4500 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
4501 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
4502 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
4503
4504 2007-01-29 Joel Brobecker <brobecker@adacore.com>
4505
4506 * target.c (maintenance_print_target_stack): New function.
4507 (initialize_targets): Add new "maintenance print target-stack"
4508 command.
4509
4510 2007-01-28 Mark Kettenis <kettenis@gnu.org>
4511
4512 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
4513
4514 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
4515
4516 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
4517 (struct dwarf2_loclist_baton): Likewise.
4518
4519 2007-01-27 Eli Zaretskii <eliz@gnu.org>
4520
4521 * cli/cli-script.c: Include breakpoint.h.
4522 (build_command_line): Require arguments only for if and while
4523 commands.
4524 (get_command_line, execute_user_command, execute_control_command):
4525 Fix wording of warning messages.
4526 (print_command_lines): Print breakpoint commands.
4527 (execute_control_command): Call commands_from_control_command to
4528 handle the `commands' command inside a body of a flow-control
4529 command.
4530 (read_next_line): Recognize the `commands' command and build a
4531 command line structure for it.
4532 (recurse_read_control_structure, read_command_lines): Handle
4533 `commands' similarly to `if' and `while'.
4534
4535 * breakpoint.c (get_number_trailer): Document the special meaning
4536 of NULL as the first argument PP.
4537 (commands_from_control_command): New function.
4538
4539 * breakpoint.h (commands_from_control_command): Add prototype.
4540
4541 * defs.h (commands_control): New enumerated value for enum
4542 command_control_type.
4543
4544 2007-01-26 Joel Brobecker <brobecker@adacore.com>
4545
4546 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
4547 (ada_exception_sal): Update accordingly.
4548
4549 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4550
4551 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
4552 * NEWS: Describe CHAR array vs. string identifcation rules.
4553
4554 2007-01-25 Paul Brook <paul@codesourcery.com>
4555
4556 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
4557
4558 2007-01-24 Jim Blandy <jimb@codesourcery.com>
4559
4560 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
4561 expression is empty, bother to return the 'optimized out' value we
4562 construct. (Thanks to Carl Burch.)
4563
4564 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
4565
4566 * varobj.c (c_value_of_root, c_value_of_child)
4567 (cplus_describe_child): Don't call release_value.
4568
4569 2007-01-24 Thiemo Seufer <ths@mips.com>
4570
4571 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
4572 initialization.
4573
4574 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
4575
4576 Refactor getting children name, value and type access
4577 for varobjs in C++.
4578 * varobj.c (get_type_deref): Remove.
4579 (adjust_value_for_child_access): New.
4580 (c_number_of_children): Use the above.
4581 (c_describe_child): Likewise.
4582 (enum accessibility): New.
4583 (match_accessibility): New function.
4584 (cplus_describe_child): New function.
4585 (cplus_name_of_child, cplus_value_of_child)
4586 (cplus_type_of_child): Reimplement in terms
4587 of cplus_describe_child.
4588 (cplus_number_of_children): Use
4589 adjust_value_for_child_access.
4590
4591 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
4592
4593 Fix computation of the 'editable' attribute and
4594 value changeability for for references.
4595 * varobj.c (get_value_type): New function.
4596 (c_variable_editable): Use get_value_type.
4597 (varobj_value_is_changeable): Likewise.
4598
4599 2007-01-24 Joel Brobecker <brobecker@adacore.com>
4600
4601 * source.c (find_and_open_source): Try rewriting the source
4602 path inside filename if dirname is NULL.
4603
4604 2007-01-24 Joel Brobecker <brobecker@adacore.com>
4605
4606 * dwarf2read.c (add_partial_symbol): Create an extra partial
4607 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
4608 (new_symbol): Likewise for symbols.
4609
4610 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
4611
4612 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
4613
4614 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
4615
4616 * value.c (value_primitive_field): Copy the full 'location'
4617 contents, instead of assuming that copying ADDRESS will
4618 bring over everything in the union. Remove obsolete comment.
4619
4620 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
4621
4622 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
4623 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
4624 (m32c_m16c_pointer_to_address): Separate code from declarations.
4625
4626 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
4627
4628 * target.c (update_current_target): Correct typo.
4629
4630 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
4631
4632 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
4633 declaration.
4634
4635 2007-01-11 Andrew Cagney <cagney@redhat.com>
4636 Daniel Jacobowitz <dan@codesourcery.com>
4637 Jan Kratochvil <jan.kratochvil@redhat.com>
4638
4639 * dwarf2-frame.c (execute_cfa_program): New support of
4640 `DW_CFA_GNU_negative_offset_extended'.
4641
4642 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
4643
4644 * NEWS: Mention flash support for "load" and new remote packets.
4645
4646 2007-01-21 Markus Deuling <deuling@de.ibm.com>
4647
4648 * breakpoint.c (delete_command): Skip redundant loop iterations.
4649
4650 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
4651
4652 * gdbarch.sh (register_type): Update comment.
4653 * gdbarch.h: Regenerated.
4654 * arch-utils.c (generic_register_size): Call register_type.
4655 * ia64-tdep.c (ia64_extract_return_value): Likewise.
4656 * m32c-tdep.c (check_for_saved): Likewise.
4657 * mips-tdep.c (mips_print_register, print_gp_register_row)
4658 (mips_print_registers_info): Likewise.
4659 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
4660 Likewise.
4661 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
4662 (sh64_do_register, sh64_print_register)
4663 (sh64_media_print_registers_info): Likewise.
4664 * tui/tui-regs.c (tui_register_format): Likewise.
4665
4666 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
4667
4668 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
4669
4670 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
4671 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
4672 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
4673 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4674 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
4675 (make_symbol_completion_list): Likewise.
4676
4677 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4678 Daniel Jacobowitz <dan@codesourcery.com>
4679
4680 * buildsym.c (end_symtab): Use preallocated symtab if available.
4681 Fill in SYMBOL_SYMTAB.
4682 * buildsym.h (struct subfile): Add symtab member.
4683 * dwarf2read.c (struct dwarf2_cu): Add line_header.
4684 (struct file_entry): Add symtab.
4685 (free_cu_line_header): New function.
4686 (read_file_scope): Use it. Save line_header in the cu. Process
4687 lines before DIEs.
4688 (add_file_name): Initialize new symtab member.
4689 (dwarf_decode_lines): Create symtabs for included files.
4690 (new_symbol): Set SYMBOL_SYMTAB.
4691 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
4692 (search_symbols): Likewise.
4693 * symtab.h (struct symbol): Add symtab member.
4694 (SYMBOL_SYMTAB): Define.
4695
4696 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
4697
4698 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
4699
4700 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
4701
4702 * arch-utils.c (show_endian): Correct reversed condition.
4703
4704 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4705
4706 * MAINTAINERS (Write After Approval): Add myself.
4707
4708 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
4709 Vladimir Prus <vladimir@codesourcery.com>
4710
4711 Fix 'selected frame' varobjs.
4712 * varobj.c (struct varobj): Remove the error field.
4713 (varobj_set_value): Don't check var->error.
4714 (install_new_value): Don't set var->error.
4715 (varobj_update): Always pass the new value
4716 of the root via install_new_value.
4717 (create_child): Don't set error field.
4718 (new_variable): Likewise.
4719 (c_value_of_root): Always reevaluate the value
4720 of selected frame varobjs in the selected frame.
4721 Don't call reinit_frame_cache.
4722
4723 2007-01-15 Joel Brobecker <brobecker@adacore.com>
4724
4725 * source.c (_initialize_source): Improve the help text of
4726 the substitute-path commands.
4727
4728 2007-01-14 Mark Kettenis <kettenis@gnu.org>
4729
4730 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
4731 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
4732 (frv_skip_prologue): Remove prototypes.
4733 (frv_adjust_breakpoint_address): Renamed from
4734 frv_gdbarch_adjust_breakpoint_address.
4735 (frv_gdbarch_init): Adjust.
4736
4737 2007-01-13 Mark Kettenis <kettenis@gnu.org>
4738
4739 * gdbarch.sh (deprecated_extract_return_value)
4740 (deprecated_store_return_value): Remove.
4741 (extract_return_value, store_return_value): Remove default values.
4742 * gdbarch.c, gdbarch.h: Regenerate.
4743 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
4744 (legacy_store_return_value): Remove.
4745 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
4746 Remove.
4747
4748 * mi/mi-main.c: Remove obsolete comment.
4749
4750 * regcache.c, regcache.h (deprecated_register_bytes)
4751 (deprecated_read_register_bytes)
4752 (deprecated_write_register_bytes): Remove.
4753
4754 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
4755 Don't forget to move destination pointer.
4756
4757 2007-01-01 Mark Kettenis <kettenis@gnu.org>
4758
4759 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
4760
4761 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
4762
4763 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
4764 past entry function with recent newlib.
4765
4766 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
4767
4768 * gdb.texinfo (GDB/MI Variable Objects): Improve the
4769 introduction. Specify -var-update more exactly.
4770
4771 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
4772
4773 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
4774
4775 2007-01-10 Jim Blandy <jimb@codesourcery.com>
4776
4777 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
4778 the Global Maintainers' invitation to be a global maintainer.
4779
4780 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
4781
4782 * infrun.c (singlestep_pc): New variable.
4783 (resume): Set singlestep_pc.
4784 (context_switch): Add a debugging message. Flush the frame cache.
4785 (handle_inferior_event): Add debugging messages. Handle thread
4786 hops when a software single step has completed. Let context_switch
4787 handle flushing the frame cache.
4788
4789 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4790
4791 * NEWS: Mention target descriptions, "set tdesc filename",
4792 "unset tdesc filename", "show tdesc filename", and
4793 qXfer:features:read.
4794 * arch-utils.c (choose_architecture_for_target): New function.
4795 (gdbarch_info_fill): Call it.
4796 * target-descriptions.c (struct property): Make members non-const.
4797 (struct target_desc): Add arch member.
4798 (target_description_filename): New variable.
4799 (target_find_description): Try via XML first.
4800 (tdesc_architecture): New.
4801 (free_target_description, make_cleanup_free_target_description): New.
4802 (set_tdesc_property): Call xstrdup.
4803 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
4804 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
4805 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
4806 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
4807 * target-descriptions.h (tdesc_architecture)
4808 (make_cleanup_free_target_description, set_tdesc_architecture): New
4809 prototypes.
4810 * Makefile.in (SFILES): Add xml-tdesc.c.
4811 (COMMON_OBS): Add xml-tdesc.o.
4812 (target-descriptions.o): Update.
4813 (xml-tdesc.o): New rule.
4814 * xml-tdesc.c, xml-tdesc.h: New files.
4815 * remote.c (PACKET_qXfer_features): New enum.
4816 (remote_protocol_features): Add qXfer:features:read.
4817 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
4818 (_initialize_remote): Register qXfer:features:read.
4819 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
4820 * features/gdb-target.dtd: New file.
4821
4822 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4823
4824 * copyright.sh: Clarify error.
4825
4826 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4827
4828 * symtab.c (matching_bfd_sections): Fix VMA matching for
4829 prelinked objects.
4830
4831 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4832
4833 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
4834 nested symbols.
4835
4836 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4837
4838 Updated copyright notices for most files.
4839
4840 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4841
4842 * copyright.sh (prunes): Add step-line.inp and step-line.c.
4843
4844 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4845
4846 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
4847 exec_prefix.
4848 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
4849 '${prefix}'.
4850 * configure, config.in: Regenerate.
4851 * defs.h (debug_file_directory): Declare.
4852 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
4853 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
4854 relocate it if DEBUGDIR_RELOCATABLE.
4855 * symfile.c (debug_file_directory): Make non-static.
4856 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
4857 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
4858 (_initialize_symfile): Don't initialize debug_file_directory here.
4859
4860 2007-01-09 Jim Blandy <jimb@codesourcery.com>
4861
4862 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
4863 statements.
4864
4865 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4866
4867 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
4868 frame_unwind_register to recurse.
4869 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
4870 (alpha_heuristic_frame_prev_register): Likewise.
4871 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
4872 * m32c-tdep.c (m32c_prev_register): Likewise.
4873 * frame.c (frame_register_unwind_location): Remove FIXME.
4874
4875 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4876 Eli Zaretskii <eliz@gnu.org>
4877
4878 * copyright.sh: New file.
4879
4880 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4881
4882 * configure.ac: Check for XML_StopParser.
4883 * xml-support.c (gdb_xml_body_text): Check for an error.
4884 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
4885 (gdb_xml_end_element_wrapper): Likewise.
4886 * config.in, configure: Regenerated.
4887
4888 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
4889
4890 * varobj.c (install_new_value): Always update print_value.
4891 (value_get_print_value): Immediately return NULL for missing
4892 values.
4893
4894 2007-01-08 Jim Blandy <jimb@codesourcery.com>
4895
4896 * configure.ac: Tighten pattern for extracting value of
4897 DEPRECATED_TM_FILE from the target makefile fragment.
4898 * configure: Regenerated.
4899
4900 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
4901
4902 * linux-nat.c (struct simple_pid_list): Add status.
4903 (add_to_pid_list): Record the PID's status.
4904 (linux_record_stopped_pid): Likewise. Make static.
4905 (pull_pid_from_list): Return the saved status.
4906 (linux_nat_handle_extended): Deleted.
4907 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
4908 Make static. Handle non-SIGSTOP for a new thread's first signal.
4909 (flush_callback): Handle unexpected pending signals.
4910 (linux_nat_wait): Update calls to changed functions.
4911 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
4912 Remove prototypes for newly static functions.
4913
4914 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4915
4916 * gdbarch.sh (value_from_register): New gdbarch function.
4917 * gdbarch.c, gdbarch.h: Regenerate.
4918 * findvar.c (default_value_from_register): New function.
4919 (value_from_register): Use gdbarch_value_from_register.
4920 * value.h (default_value_from_register): Declare.
4921 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
4922 spu_value_to_register): Remove.
4923 (spu_value_from_register): New function.
4924 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
4925 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
4926 Call set_gdbarch_value_from_register.
4927 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
4928 s390_value_to_register): Remove.
4929 (s390_value_from_register): New function.
4930 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
4931 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
4932 Call set_gdbarch_value_from_register.
4933
4934 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
4935
4936 * NEWS: Add "set sysroot" and "show sysroot".
4937 * solib.c (solib_absolute_prefix): Delete. Replace
4938 all uses with gdb_sysroot.
4939 (_initialize_solib): Add "set sysroot" and "show sysroot".
4940 Make "solib-absolute-prefix" an alias to it.
4941
4942 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4943
4944 * frame.c (get_frame_register_bytes): New function.
4945 (put_frame_register_bytes): Likewise.
4946 * frame.h (get_frame_register_bytes): Declare.
4947 (put_frame_register_bytes): Likewise.
4948 * findvar.c (value_from_register): Always construct lval_register
4949 values. Use get_frame_register_bytes.
4950 * valops.c (value_assign): Use get_frame_register_bytes and
4951 put_frame_register_bytes.
4952
4953 2007-01-08 Jim Blandy <jimb@codesourcery.com>
4954
4955 * MAINTAINERS: Update Stan Shebs' email address.
4956
4957 2007-01-07 Joel Brobecker <brobecker@adacore.com>
4958
4959 * ada-lang.c (is_known_support_routine): Improve the implementation.
4960
4961 2007-01-06 Joel Brobecker <brobecker@adacore.com>
4962
4963 * ada-lang.c: Add include of source.h.
4964 (is_known_support_routine): Improve the check verifying that the file
4965 associated to this frame exists.
4966 * Makefile.in (ada-lang.o): Add dependency on source.h.
4967
4968 2007-01-07 Jim Blandy <jimb@codesourcery.com>
4969
4970 * ax-general.c (ax_const_l): Select proper opcode for the given
4971 value.
4972
4973 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
4974
4975 * varobj.c (c_value_of_root): Don't select frame if variable
4976 object is out of scope.
4977
4978 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
4979
4980 * varobj.c (struct varobj): New member print_value.
4981 (install_new_value): Compare last printed value with current one
4982 instead of contents.
4983 (new_variable): Initialize var->print_value to NULL.
4984 (free_variable): Free var->print_value.
4985 (value_get_print_value): New function derived from
4986 c_value_of_variable.
4987 (c_value_of_variable): Use value_get_print_value.
4988
4989 2007-01-05 Joel Brobecker <brobecker@adacore.com>
4990
4991 * i386-tdep.c (i386_analyze_stack_align): Add comment.
4992
4993 2007-01-05 Joel Brobecker <brobecker@adacore.com>
4994
4995 * NEWS: Add entries for new catch commands.
4996
4997 2007-01-05 Joel Brobecker <brobecker@adacore.com>
4998
4999 * dwarf2read.c (partial_die_info): Add field has_byte_size.
5000 (add_partial_symbol): Correct identification of external references.
5001 (process_structure_scope): Likewise.
5002 (read_partial_die): Handle DW_AT_byte_size attribute.
5003
5004 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
5005
5006 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
5007
5008 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
5009
5010 * varobj.c (get_type_deref): Fix variable objects for references to
5011 pointers.
5012
5013 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5014
5015 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
5016 with no symbols.
5017
5018 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5019
5020 * memory-map.c (struct_memory_map_parsing_data): Remove most
5021 members. Make property_name an array.
5022 (free_memory_map_parsing_data, memory_map_start_element)
5023 (memory_map_end_element, memory_map_character_data): Delete.
5024 (memory_map_start_memory, memory_map_end_memory)
5025 (memory_map_start_property, memory_map_end_property): New functions.
5026 (property_attributes, memory_children, memory_type_enum)
5027 (memory_attributes, memory_map_children, memory_map_elements): New.
5028 (parse_memory_map): Rewrite.
5029 * xml-support.c (debug_xml): New.
5030 (xml_get_required_attribute, xml_get_integer_attribute)
5031 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
5032 Delete.
5033 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
5034 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
5035 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
5036 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
5037 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
5038 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
5039 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
5040 New.
5041 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
5042 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
5043 (enum gdb_xml_element_flag, struct gdb_xml_element)
5044 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
5045 (struct gdb_xml_enum): New.
5046 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
5047 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
5048 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
5049 (xml_get_required_attribute, xml_get_integer_attribute)
5050 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
5051 * Makefile.in (xml_support_h, xml-support.o): Update.
5052
5053 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5054
5055 * Makefile.in (eval.o): Update dependencies.
5056 * eval.c: Include "ui-out.h" and "exceptions.h".
5057 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
5058 Use value_zero if an error occurs when avoiding side effects.
5059 * varobj.c (c_value_of_root): Initialize new_val.
5060
5061 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5062
5063 * varobj.c (varobj_list_children): Stop if the number of children is
5064 unknown.
5065 (c_number_of_children):
5066
5067 2007-01-04 Mark Kettenis <kettenis@gnu.org>
5068
5069 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
5070 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
5071 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
5072 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
5073 sizeof, instead of hardcoded constants.
5074
5075 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5076
5077 * CONTRIBUTE: Use sourceware.org.
5078
5079 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5080
5081 * buildsym.c (start_subfile): Handle producer.
5082 (record_producer): New function.
5083 * buildsym.h (struct subfile): Include producer.
5084 (record_producer): New prototype.
5085 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
5086 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
5087 armcc_cfa_offsets_reversed.
5088 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
5089 (dwarf2_frame_find_quirks): New function.
5090 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
5091 (decode_frame_entry_1): Record the CIE version. Record the
5092 augmentation. Skip armcc augmentations.
5093 * dwarf2read.c (read_file_scope): Save the producer.
5094 * symtab.h (struct symtab): Rename unused version member to
5095 producer.
5096
5097 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5098
5099 * configure.ac (build_warnings): Use -Wall and
5100 -Wdeclaration-after-statement.
5101 * configure: Regenerated.
5102
5103 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5104
5105 Simplify access to variours properties of child
5106 variable objects in C.
5107 * varobj.c (value_struct_element_index): New function.
5108 (c_describe_child): New function.
5109 (c_name_of_child, c_value_of_child)
5110 (c_type_of_child): Rewrite to use c_describe_child.
5111
5112 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5113
5114 gdb/
5115 * varobj.c: Include "vec.h".
5116 (varobj_p): New typedef, declare vector of those.
5117 (struct varobj): Use vector for the 'children' member.
5118 (child_exists): Remove.
5119 (save_child_in_parent): Remove.
5120 (remove_child_from_parent): Remove.
5121 (struct varobj_child): Remove.
5122 (struct vstack): Remove.
5123 (vpush, vpop): Remove.
5124 (varobj_list_children): Adjust to work work vector.
5125 (varobj_update): Likewise. Use vectors for
5126 working stack and result.
5127 (delete_variable_1): Likewise.
5128 * Makefile.in (varobj.o): Update dependencies.
5129
5130 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5131
5132 Port from Apple's version.
5133 gdb/
5134 * varobj.c (type_changeable): Rename to...
5135 (varobj_value_is_changeable_p): ...this. Adjust all callers.
5136 (is_root_p): New function. Use it everywhere.
5137
5138 2007-01-04 Jim Blandy <jimb@codesourcery.com>
5139
5140 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
5141 then plain 'fixup'.
5142
5143 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5144
5145 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
5146
5147 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5148
5149 * hpread.c (hpread_type_lookup): Fix compilation failure.
5150
5151 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
5152
5153 * NEWS: New port to S+core.
5154 * MAINTAINERS (Write After Approval, Responsible Maintainers):
5155 Add myself.
5156
5157 * Makefile.in: Add dependencies for S+core files.
5158 * configure.tgt (score*, score-*-*): Add S+core target.
5159 * config/score/embed.mt: New file.
5160 * score-tdep.c: New file.
5161 * score-tdep.h: New file.
5162
5163 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5164
5165 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
5166 the appropriate type rather than a bogus void type.
5167
5168 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5169
5170 * ada-lang.h (ada_find_printable_frame): Remove.
5171 (ada_exception_catchpoint_p, ada_decode_exception_location)
5172 (ada_decode_assert_location): Add declaration.
5173 * ada-lang.c: Add include of annotate.h and valprint.h.
5174 (exception_catchpoint_kind): New enum.
5175 (function_name_from_pc, is_known_support_routine)
5176 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
5177 (ada_exception_name_addr_1, ada_exception_name_addr)
5178 (print_it_exception, print_one_exception, print_mention_exception)
5179 (print_it_catch_exception, print_one_catch_exception)
5180 (print_mention_catch_exception, catch_exception_breakpoint_ops)
5181 (print_it_catch_exception_unhandled)
5182 (print_one_catch_exception_unhandled)
5183 (print_mention_catch_exception_unhandled, print_it_catch_assert)
5184 (print_one_catch_assert, print_mention_catch_assert)
5185 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
5186 (ada_get_next_arg, catch_ada_exception_command_split)
5187 (ada_exception_sym_name, ada_exception_sym_name)
5188 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
5189 (ada_parse_catchpoint_condition, ada_exception_sal)
5190 (ada_decode_exception_location)
5191 (ada_decode_assert_location): New function.
5192 (catch_exception_unhandled_breakpoint_ops): New global variable.
5193 (catch_assert_breakpoint_ops): New global variable.
5194 * breakpoint.c: Add include of ada-lang.h.
5195 (print_one_breakpoint): Do not print the condition for Ada
5196 exception catchpoints.
5197 (create_ada_exception_breakpoint): New function.
5198 (catch_ada_exception_command, catch_assert_command): New function.
5199 (catch_command_1): Add support for the new "catch exception" and
5200 "catch assert" commands.
5201 (_initialize_breakpoint): Add help description for the new catch
5202 commands.
5203 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
5204 valprint.h.
5205 (breakpoint.o): Add dependency on ada-lang.h.
5206
5207 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
5208
5209 * coffread.c (cs_to_section): If bfd_section is found, always
5210 return its section index.
5211 (coff_symtab_read): Determine the minimal_symbol_type using the
5212 bfd_section flags.
5213
5214 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5215 Daniel Jacobowitz <dan@codesourcery.com>
5216
5217 * Makefile.in (top.o): Update.
5218 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
5219 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
5220 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
5221 New.
5222 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
5223
5224 2007-01-03 Mark Kettenis <kettenis@gnu.org>
5225
5226 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
5227 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
5228
5229 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
5230
5231 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
5232 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
5233 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
5234 greater than or equal to zero.
5235 * m2-typeprint.c (m2_array): Likewise.
5236 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5237 * gdbtypes.c (copy_type_recursive): Correct == typo.
5238 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
5239 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
5240 greater than zero.
5241 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
5242 (default_macro_scope): Remove unused variable.
5243 * prologue-value.h (pv_area_find_reg): Don't name an argument
5244 "register".
5245 * remote-fileio.c (remote_fio_func_map): Add missing braces.
5246 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
5247 type.
5248 (cleanup_sigint_signal_handler): Remove casts.
5249 * valprint.c (val_print): Use a volatile local for the modified
5250 argument.
5251 * varobj.c (languages): Remove extra array dimension.
5252 (varobj_create): Correct access to languages array.
5253 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
5254 missing braces.
5255 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
5256 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
5257 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
5258 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
5259 (mi_cmd_data_write_memory): Likewise.
5260 * signals/signals.c (target_signal_to_string): Cast to int before
5261 comparing.
5262 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
5263 Update all callers.
5264
5265 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
5266
5267 * NEWS: Mention pointer to member improvements.
5268 * Makefile.in (gnu-v3-abi.o): Delete special rule.
5269 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
5270 * ada-valprint.c (ada_print_scalar): Update for new type codes.
5271 * c-typeprint.c (c_print_type): Update for new type codes.
5272 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
5273 (c_type_print_base): Likewise.
5274 (c_type_print_args): Rewrite.
5275 * c-valprint.c (c_val_print): Update for new type codes. Remove
5276 support for references to members. Treat methods like functions.
5277 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
5278 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
5279 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
5280 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
5281 (struct cp_abi_ops): Add corresponding members.
5282 * cp-valprint.c (cp_print_class_method): Delete.
5283 (cp_find_class_member): New function.
5284 (cp_print_class_member): Use it. Simplify support for bogus
5285 member pointers.
5286 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
5287 lookup_methodptr_type.
5288 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
5289 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
5290 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
5291 pointer support.
5292 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
5293 references returned by user defined operators.
5294 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
5295 (f_type_print_varspec_suffix): Remove support for member pointers.
5296 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
5297 and adjusted.
5298 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
5299 (lookup_methodptr_type): New.
5300 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
5301 (recursive_dump_type): Update for new types.
5302 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
5303 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
5304 (lookup_memberptr_type, lookup_methodptr_type)
5305 (smash_to_memberptr_type): New prototypes.
5306 (smash_to_method_type): Formatting fix.
5307 (lookup_member_type, smash_to_member_type): Delete prototypes.
5308 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
5309 Do not rely on debug information for the vptr or the method's
5310 enclosing type. Handle function descriptors for IA64.
5311 (gnuv3_virtual_fn_field): Rewrite using the new functions.
5312 (gnuv3_find_method_in, gnuv3_print_method_ptr)
5313 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
5314 (gnuv3_method_ptr_to_value): New.
5315 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
5316 * hpread.c (hpread_type_lookup): Update for new types.
5317 * infcall.c (value_arg_coerce): Likewise.
5318 * m2-typeprint.c (m2_print_type): Remove explicit support
5319 for member pointers.
5320 * m2-valprint.c (m2_val_print): Likewise.
5321 * p-typeprint.c (pascal_type_print_varspec_prefix)
5322 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
5323 * p-valprint.c (pascal_val_print): Likewise.
5324 (pascal_object_print_class_method, pascal_object_print_class_member):
5325 Delete.
5326 * p-lang.h (pascal_object_print_class_method)
5327 (pascal_object_print_class_member): Delete prototypes.
5328 * stabsread.c (read_type): Update for new types.
5329 * typeprint.c (print_type_scalar): Likewise.
5330 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
5331 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
5332 argument. Construct a pointer to member if the address of a
5333 function or data member is requested.
5334 (value_cast_pointers): Don't modify the input value.
5335 (value_cast): Adjust pointer to member handling for new types.
5336 Allow null pointer to member constants. Don't modify the input
5337 value.
5338 (value_ind): Remove pointer to member check. Handle function
5339 descriptors for function pointers.
5340 (value_struct_elt, value_find_oload_method_list, check_field):
5341 Remove pointer to member checks.
5342 * value.c (unpack_long): Allow pointers to data members.
5343 (value_from_longest): Allow member pointers.
5344 * value.h (value_aggregate_elt): Add want_address.
5345 * varobj.c (c_variable_editable): Remove check for members.
5346 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
5347 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
5348 in virtual tables.
5349 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
5350 * c-lang.h (cp_print_class_method): Delete prototype.
5351 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
5352 * mips-tdep.c (mips_gdbarch_init): Likewise.
5353 * gdbarch.c, gdbarch.h: Regenerated.
5354
5355 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5356
5357 * rs6000-tdep.c (rs6000_use_struct_convention)
5358 (rs6000_extract_return_value, rs6000_store_return_value)
5359 (rs6000_extract_struct_value_address): Remove.
5360 (rs6000_return_value): New function.
5361 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
5362 store_return_value, deprecated_extract_struct_value_address and
5363 deprecated_use_struct_convention. Use rs6000_return_value
5364 instead.
5365
5366 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
5367
5368 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
5369 -display-disable, -display-enable, -display-insert and
5370 -display-list.
5371
5372 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5373
5374 * breakpoint.c (remove_breakpoint): Remove dead code.
5375
5376 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
5377
5378 * varobj.c: Include block.h.
5379 (c_value_of_root): Check scope within nested statements.
5380
5381 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5382
5383 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
5384 regcache_cooked_write_signed instead of
5385 deprecated_write_register_bytes.
5386
5387 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5388
5389 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
5390
5391 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5392
5393 Followed the Start of New Year Procedure:
5394 * ChangeLog-2006: New file, containing all the entries for 2006.
5395 * ChangeLog: Removed all 2006 entries, and changed the reference
5396 to the previous ChangeLog to point to ChangeLog 2006.
5397 * top.c (print_gdb_version): Update copyright year.
5398
5399 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5400
5401 * Makefile.in (remote-sds.o): Remove.
5402 * remote-sds.c: Delete.
5403
5404 For older changes see ChangeLog-2006.
5405 \f
5406 Local Variables:
5407 mode: change-log
5408 left-margin: 8
5409 fill-column: 74
5410 version-control: never
5411 End:
This page took 0.158291 seconds and 3 git commands to generate.