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