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