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