1 2003-11-07 Andrew Cagney <cagney@redhat.com>
3 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
4 * bcache.c (struct bstring): Make "length" an unsigned short, add
6 (struct bcache): Add "half_hash_error_count".
7 (bcache): Compute and save the "half_hash". Compare the
8 "half_hash" before comparing the length. Update
11 2003-11-07 Andrew Cagney <cagney@redhat.com>
13 * inftarg.c (child_xfer_partial): New function
14 (init_child_ops): Set "to_xfer_partial".
16 2003-11-07 Andrew Cagney <cagney@redhat.com>
18 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
19 set "return_value" instead of "use_struct_convention".
20 (ppc_linux_use_struct_convention): Delete function.
21 (ppc_linux_return_value): New function.
22 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
23 (ppc_sysv_abi_broken_return_value): New function.
24 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
25 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
27 (ppc_sysv_abi_extract_return_value): Delete function.
28 (ppc_sysv_abi_broken_extract_return_value): Delete function.
29 (ppc_sysv_abi_store_return_value): Delete function.
30 (ppc_sysv_abi_broken_store_return_value): Delete function.
31 (ppc_sysv_abi_use_struct_convention): Delete function.
32 (ppc64_sysv_abi_use_struct_convention): Delete function.
33 (ppc64_sysv_abi_extract_return_value): Delete function.
34 (ppc64_sysv_abi_store_return_value): Delete function.
35 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
36 (ppcnbsd_init_abi): Set "return_value", instead of
37 "use_struct_convention", "extract_return_value", and
39 (ppcnbsd_use_struct_convention): Delete function.
40 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
41 (ppc_sysv_abi_return_value): Declare.
42 (ppc_sysv_abi_broken_return_value): Declare.
43 (ppc_sysv_abi_use_struct_convention): Delete.
44 (ppc_sysv_abi_store_return_value): Delete.
45 (ppc_sysv_abi_extract_return_value): Delete.
46 (ppc_sysv_abi_broken_store_return_value): Delete.
47 (ppc_sysv_abi_broken_extract_return_value): Delete.
48 (ppc64_sysv_abi_use_struct_convention): Delete.
49 (ppc64_sysv_abi_extract_return_value): Delete.
50 (ppc64_sysv_abi_store_return_value): Delete.
51 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
52 set "return_value" instead of "extract_return_value",
53 "store_return_value", and "use_struct_convention".
55 2003-11-07 Mark Kettenis <kettenis@gnu.org>
57 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
59 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
62 2003-11-07 Mark Kettenis <kettenis@gnu.org>
64 * fbsd-proc.c: Fix formatting.
66 2003-11-06 Kevin Buettner <kevinb@redhat.com>
68 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
70 (new_variant): Set name for iacc0_regnum.
71 (frv_register_name): Accommodate pseudo-registers.
72 (frv_register_type): Add case for iacc0_regnum.
73 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
74 (frv_gdbarch_init): Set number of pseudo registers. Establish
75 pseudo-register read/write methods.
77 2003-11-06 Andrew Cagney <cagney@redhat.com>
79 * valops.c (destructor_name_p): Replace STREQN with strncmp.
80 * top.c (command_line_input): Ditto.
81 * objc-exp.y (yylex): Ditto.
82 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
83 * jv-exp.y (yylex): Ditto.
84 * f-exp.y (yylex): Ditto.
85 * event-top.c (command_line_handler): Ditto.
86 * environ.c (get_in_environ): Ditto.
87 (set_in_environ): Ditto.
88 * dwarfread.c (handle_producer): Ditto.
89 * dbxread.c (process_one_symbol): Ditto.
90 * c-typeprint.c (c_type_print_base): Ditto.
91 * c-exp.y (yylex): Ditto.
93 2003-11-06 Andrew Cagney <cagney@redhat.com>
94 Jeff Johnston <jjohnstn@redhat.com>
96 * target.c (add_target): Only set "to_xfer_partial" when NULL.
97 (init_dummy_target): Set "to_xfer_partial".
99 2003-11-06 Andrew Cagney <cagney@redhat.com>
101 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
104 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
106 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
109 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
111 * breakpoint.c (remove_breakpoint): Take an bp_location
112 instead of a breakpoint argument. Check the bp_location's type.
113 Fix a reversed condition for hardware breakpoints.
115 (insert_bp_location): Update call to remove_breakpoint.
116 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
117 (remove_hw_watchpoints): Likewise.
118 (reattach_breakpoints): Likewise.
119 (detach_breakpoints): Likewise.
120 (delete_breakpoint): Likewise.
122 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
124 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
125 (beakpoint_init_inferior): Likewise.
126 (breakpoint_here_p): Likewise. Only check addresses for software
127 or hardware breakpoints.
128 (breakpoint_inserted_here_p): Likewise.
129 (breakpoint_thread_match): Likewise. Correct comment.
130 (bpstat_have_active_hw_watchpoints): Likewise.
131 (check_duplicates): Likewise.
133 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
135 * breakpoints.c (insert_bp_location): New function, broken out
136 from insert_breakpoints. Work on an bp_location instead of a
138 (insert_breakpoints): Use it.
140 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
142 * breakpoint.h (struct bp_location): Add section.
143 (struct breakpoint): Remove section.
144 * breakpoint.c (insert_breakpoints, remove_breakpoint)
145 (breakpoint_here_p, breakpoint_inserted_here_p)
146 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
147 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
148 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
151 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
153 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
154 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
156 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
158 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
159 arguments. Initialize owner and type for the new breakpoint
161 (set_raw_breakpoint): Update call to allocate_bp_location.
163 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
165 * breakpoint.h (struct bp_location): Add a chain pointer.
166 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
168 (bp_location_chain): New variable.
169 (allocate_bp_location): New function.
170 (set_raw_breakpoint): Use it.
171 (delete_breakpoint): Remove ->loc from the bp_location_chain.
173 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
175 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
176 (struct breakpoint): Remove address, shadow_contents, inserted,
177 requested_address, and duplicate. Add a struct bp_location.
178 * breakpoint.c (condition_command, read_memory_nobpt)
179 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
180 (reattach_breakpoints, update_breakpoints_after_exec)
181 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
182 (breakpoint_init_inferior, breakpoint_here_p)
183 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
184 (breakpoint_thread_match, bpstat_stop_status)
185 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
186 (describe_other_breakpoints, check_duplicates)
187 (make_breakpoint_permanent, create_thread_event_breakpoint)
188 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
189 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
190 (watch_command_1, print_one_exception_catchpoint)
191 (clear_command, breakpoint_re_set_one): Adjust member accesses to
192 use the breakpoint's ->loc.
193 (set_raw_breakpoint): Likewise. Initialize ->loc.
194 (delete_breakpoint): Likewise. Free ->loc.
196 2003-11-05 Andrew Cagney <cagney@redhat.com>
198 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
200 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
201 * config/i386/tm-cygwin.h
202 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
203 * config/powerpc/tm-linux.h
204 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
205 (at_subroutine_call_instruction_target): Delete declaration.
206 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
207 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
208 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
210 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
211 "struct bfd_section" and "struct bfd".
212 * target.h (struct section_table): Ditto.
213 * rs6000-nat.c (xcoff_relocate_core): Ditto.
214 * solib-svr4.c (elf_locate_base): Ditto.
215 * pa64solib.c (dld_cache_t): Ditto.
216 * objfiles.h (struct obj_section): Ditto.
217 * objfiles.c (add_to_objfile_sections): Ditto.
218 * exec.c (bfdsec_to_vmap): Ditto.
219 (add_to_section_table): Ditto.
220 (build_section_table): Ditto.
221 * corelow.c (get_core_register_section): Ditto.
222 * coffread.c (find_linenos): Ditto.
223 * elfread.c (elf_interpreter): Delete #if0'd function.
225 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
226 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
227 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
228 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
230 * arch-utils.h (generic_cannot_extract_struct_value_address):
232 * wince.c (_initialize_wince): Fix multi-line string.
233 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
235 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
237 * top.c (execute_command): Fix broken logic for command execution
238 while inferior is running in async mode.
240 2003-11-06 Mark Kettenis <kettenis@gnu.org>
242 * dwarf2-frame.c (execute_cfa_program): Mark register as
243 REG_SAVED_REG for DW_CFA_register opcode.
245 2003-11-05 Mark Kettenis <kettenis@gnu.org>
247 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
248 %rsp, %rip and %eflags to match ABI-change.
250 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
252 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
253 (ia64_gdbarch_init): Don't bother calculating the os.
254 Instead use the gdbarch_info struct and look at the osabi field.
255 Also use gdbarch_list_lookup_by_info() to look for a
258 2003-11-05 Kevin Buettner <kevinb@redhat.com>
260 * frv-tdep.c (frv_register_byte): Delete.
261 (frv_extract_return_value, frv_store_return_value)
262 (frv_extract_struct_value_address): Don't call frv_register_byte().
263 Convert to non-deprecated form.
264 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
265 Convert calls to set_gdbarch_deprecated_extract_return_value(),
266 set_gdbarch_deprecated_store_return_value(), and
267 set_gdbarch_deprecated_extract_struct_value_address() into
268 non-deprecated forms.
270 2003-11-05 Andrew Cagney <cagney@redhat.com>
272 * mips-tdep.c (mips_dump_tdep): Do not print
273 PRINT_EXTRA_FRAME_INFO.
274 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
275 Rename PRINT_EXTRA_FRAME_INFO.
276 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
277 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
278 (mips_print_extra_frame_info): Delete declaration.
279 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
281 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
283 * coffread.c (coff_symtab_read): Remove passing of info parameter
284 to prim_record_minimal_symbol_and_info.
286 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
288 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
289 (decode_base_type): Delete ifdeffed out code.
291 2003-11-04 Andrew Cagney <cagney@redhat.com>
293 * symtab.c (find_active_alias): Delete function.
294 (lookup_block_symbol): Delete alias code.
295 * stabsread.c (resolve_live_range): Delete function.
296 (add_live_range): Delete function.
297 (resolve_symbol_reference): Delete function.
298 (define_symbol): Delete live range and alias code.
299 (scan_file_globals): Delete alias code.
300 * symtab.h (SYMBOL_RANGES): Delete macro.
301 (struct range_list): Delete structure.
302 (struct symbol): Delete field "ranges".
303 (SYMBOL_ALIASES): Delete macro.
304 (struct alias_list): Delete structure.
305 (struct symbol): Delete field "aliases".
307 2003-11-04 Michael Snyder <msnyder@redhat.com>
309 * MAINTAINERS: Remove myself as owner of breakpoints and
312 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
314 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
315 (sh_sh4al_dsp_register_name): Ditto.
316 (sh4_nofpu_show_regs): Ditto.
317 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
318 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
320 2003-11-03 Andrew Cagney <cagney@redhat.com>
322 * bcache.c: Include "gdb_assert.h".
323 (struct bcache): Add fields "expand_count" and
325 (expand_hash_table): Update the expand counts.
326 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
327 on object sizes and hashes.
328 * Makefile.in (bcache.o): Update dependencies.
330 2003-11-03 Andrew Cagney <cagney@redhat.com>
332 * exec.c (xfer_memory): Eliminate xfer_fn.
334 2003-10-31 Kevin Buettner <kevinb@redhat.com>
336 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
337 (opcodes/frv-desc.h): Include.
338 (iacc0h_regnum, iacc0l_regnum): Define.
339 (last_spr_regnum, frv_num_regs): Update.
340 (new_variant): Don't supply default names for holes in the SPRs.
341 Supply names for iacc0h_regnum and iacc0l_regnum.
342 (frv_register_type): Use symbolic constants first_fpr_regnum and
343 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
344 builtin_type_int instead of builtin_type_int32.
345 (frv_register_sim_regno): New function.
346 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
347 * Makefile.in (gdb_sim_frv_h): Define.
348 (frv-tdep.o): Update dependencies.
350 2003-10-31 Andrew Cagney <cagney@redhat.com>
352 * avr-tdep.c (avr_frame_this_id): Do not call
353 deprecated_inside_entry_file.
354 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
355 * m32r-tdep.c (m32r_frame_this_id): Ditto.
356 * d10v-tdep.c (d10v_frame_this_id): Ditto.
357 * arm-tdep.c (arm_prologue_this_id): Ditto.
358 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
360 2003-10-31 Jim Blandy <jimb@redhat.com>
362 * elfread.c (elf_symtab_read): Allocate correct number of tail
363 elements to sectinfo structure. (Fix from Woody LaRue.)
365 2003-10-31 Andrew Cagney <cagney@redhat.com>
367 * stack.c (return_command): Use get_frame_type, instead of
368 CALL_DUMMY_HAS_COMPLETED.
369 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
370 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
372 2003-10-31 Mark Kettenis <kettenis@gnu.org>
374 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
375 explicitly specify size of array.
376 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
379 2003-10-31 Andrew Cagney <cagney@redhat.com>
381 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
383 (s390_gdbarch_init): Set extract_struct_value_address.
384 * arch-utils.c (generic_cannot_extract_struct_value_address):
386 * arch-utils.h (generic_cannot_extract_struct_value_address):
389 2003-10-31 Mark Kettenis <kettenis@gnu.org>
391 * i386-linux-nat.c (fetch_core_registers): Remove.
392 (linux_elf_core_fns): Remove.
393 (_initialize_i386_linux_nat): Remove.
395 2003-10-31 Andrew Cagney <cagney@redhat.com>
397 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
399 (exec_entry_point): New function.
400 (enable_break): Create a "tmp_bfd_target", use that and
401 entry_point_address when computing the relocation offset.
402 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
403 * Makefile.in (solib-svr4.o): Update dependencies.
405 2003-10-31 Andrew Cagney <cagney@redhat.com>
407 * defs.h (XZALLOC): Define.
408 * target.h (struct target_ops): Add "to_data";
409 * bfd-target.h, bfd-target.c: New files.
410 * Makefile.in (SFILES): Add "bfd-target.c".
411 (COMMON_OBS): Add "bfd-target.o".
412 (bfd-target.o): Specify dependencies.
413 (bfd_target_h): Define.
414 * defs.h (XZALLOC): Define.
416 2003-10-31 Andrew Cagney <cagney@redhat.com>
418 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
419 adjust_breakpoint_address.
420 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
421 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
422 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
423 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
425 2003-10-31 Andrew Cagney <cagney@redhat.com>
427 * target.h (struct target_ops): Replace "to_read_partial" and
428 "to_write_partial" with "to_xfer_partial". Update comments.
429 * target.c (debug_to_write_partial): Delete function.
430 (debug_to_xfer_partial): Replace debug_to_read_partial.
431 (add_target, update_current_target, setup_target_debug): Set
432 "to_xfer_partial" instead of "to_read_partial" and
434 (default_xfer_partial): Replace "default_write_partial".
435 (default_read_partial): Delete.
436 (target_read_partial, target_write_partial): Call
438 * remote.c (init_remote_ops): Set "to_xfer_partial".
439 (init_remote_async_ops): Ditto.
440 (remote_xfer_partial): Replace "remote_read_partial".
442 2003-10-31 Mark Kettenis <kettenis@gnu.org>
444 * i386-tdep.c (i386_supply_fpregset): Support floating-point
445 registers in `fxsave' format.
446 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
448 2003-10-30 Mark Kettenis <kettenis@gnu.org>
450 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
451 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
452 TDEP->gregset_num_regs and tdep->sizeof_gregset.
454 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
455 specify size of array.
456 (i386_linux_init_abi): Remove initialization of
457 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
458 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
460 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
461 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
464 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
467 2003-10-29 Mark Kettenis <kettenis@gnu.org>
469 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
470 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
473 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
475 * corelow.c: Include "arch-utils.h", "regset.h" and
477 (core_gdbarch): New variable.
478 (sniff_core_bfd): Don't sniff if we have support for register sets
480 (core_close): Reset CORE_GDBARCH.
481 (core_open): Initialize CORE_GDBARCH.
482 (get_core_register_section): Use register sets if they are
483 supported by CORE_GDBARCH.
484 (get_core_registers): Don't print error message if we have support
485 for register sets in CORE_GDBARCH.
487 2003-10-29 Andrew Cagney <cagney@redhat.com>
489 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
490 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
492 2003-10-29 Mark Kettenis <kettenis@gnu.org>
494 * objfiles.h (clear_objfile_data): New prototype.
495 * objfiles.c (clear_objfile_data): New function.
496 * symfile.c (reread_symbols): Clear per-objfile data.
498 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
500 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
501 printf_unfiltered instead of printf_filtered for output messages.
502 (add_symbol_file_command): Ditto.
503 (reread_symbols): Ditto.
504 (overlay_auto_command): Ditto.
505 (overlay_manual_command): Ditto.
506 (overlay_off_command): Ditto.
508 2003-10-27 Mark Kettenis <kettenis@gnu.org>
510 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
511 (gdbarch_from_bfd): New function.
512 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
513 deprecated_select_gdbarch_hack.
514 * arch-utils.h (gdbarch_from_bfd): New prototype.
516 2003-10-27 Andrew Cagney <cagney@redhat.com>
518 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
519 arch_info. Use warning instead of fprintf_filtered. Do not use
520 deprecated bfd_printable_arch_mach.
522 2003-10-26 Kevin Buettner <kevinb@redhat.com>
524 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
526 (frv_register_type): Rename from frv_register_virtual_type. Add
527 ``struct gdbarch *'' parameter.
528 (frv_gdbarch_init): Delete calls to the following functions:
529 set_gdbarch_deprecated_size(),
530 set_gdbarch_deprecated_register_bytes(),
531 set_gdbarch_deprecated_register_raw_size(),
532 set_gdbarch_deprecated_max_register_raw_size(),
533 set_gdbarch_deprecated_register_virtual_size(),
534 set_gdbarch_deprecated_max_register_virtual_size(),
535 set_gdbarch_deprecated_register_virtual_size(),
536 set_gdbarch_deprecated_register_virtual_type().
537 Add call to function set_gdbarch_register_type().
539 2003-10-26 Mark Kettenis <kettenis@gnu.org>
541 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
542 FDOFF_REGNUM): Remove defines.
543 * win32-nat.c (do_child_fetch_inferior_registers): Include
545 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
546 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
547 undefine I387_ST0_REGNUM.
549 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
550 * x86-64-tdep.c (x86_64_store_return_value): Use
551 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
553 Change register numbers to enumartion values.
554 * i386-tdep.h (enum i386_regnum): New.
555 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
556 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
557 I386_ST0_REGNUM): Remove defines.
558 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
559 I386_EDI_REGNUM): Remove defines.
561 2003-10-24 Andrew Cagney <cagney@redhat.com>
563 * target.c: Include "gdbcore.h".
564 (get_target_memory, get_target_memory_unsigned): New functions.
565 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
566 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
567 Use get_target_memory_unsigned.
568 * Makefile.in (target.o): Update dependencies.
570 2003-10-24 Andrew Cagney <cagney@redhat.com>
572 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
573 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
574 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
575 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
576 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
578 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
579 (can_run_code_for): Use the OO term "singleton".
581 2003-10-23 Andrew Cagney <cagney@redhat.com>
583 * Makefile.in (stack.o): Add $(regcache_h).
584 * stack.c: Include "regcache.h"
585 (return_command): Rewrite. Use get_frame_id and
586 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
587 about unhandled return-values.
588 * value.h (set_return_value): Delete declaration.
589 * values.c (set_return_value): Delete function.
591 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
593 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
594 (pseudo_regs): Add comment regarding register stack registers.
595 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
596 (floatformat_valid): New static routine.
597 (floatformat_ia64_ext): Add name field and set up is_valid routine
598 to floatformat_valid().
599 (examine_prologue): For the previous cfm, use
600 frame_unwind_register()
601 if the cfm is not stored in a register-stack register. Save the
602 previous cfm value in the prev_cfm field. Add debug output.
603 (ia64_frame_this_id): Use frame_id_build_special() to also register
604 the bsp. Add debug output.
605 (ia64_sigtramp_frame_this_id): Ditto.
606 (ia64_frame_prev_register): Look at cache saved_regs for a few more
607 registers and also add some checks for framelessness before accepting
608 current register values for fields such as return address. For cfm,
609 use the cached prev_cfm field if available. Add comment to explain
610 PSR logic. Add debug output.
611 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
612 as part of initialization.
613 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
614 calculated. Cache the bsp and cfm values.
615 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
616 instead of using ia64_frame_prev_register() which doesn't expect most
617 registers to be saved. The saved values for bsp and sp
618 can be taken from the cache. Add debug output.
619 (ia64_push_dummy_call): Use frame_id_build_special() to also register
622 2003-10-23 Jim Blandy <jimb@redhat.com>
624 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
625 architecture the current arch can run code for --- but not if it's
627 (can_run_code_for): New function.
629 2003-10-22 James E Wilson <wilson@specifixinc.com>
631 * MAINTAINERS: Move myself from paper trail section back to write
632 after approval section.
634 2003-10-22 Andrew Cagney <cagney@redhat.com>
637 * win32-nat.c: Include "exec.h".
638 * solib.c: Include "exec.h".
639 * target.h (build_section_table): Delete declaration.
640 * somsolib.c: Include "exec.h".
641 (exec_ops): Delete extern declaration.
642 * rs6000-nat.c: Update copyright. Include "exec.h".
643 (exec_ops): Delete extern declaration.
644 * pa64solib.c: Update copyright. Include "exec.h".
645 (exec_ops): Delete extern declaration.
646 * exec.c: Update copyright. Include "exec.h".
647 * corelow.c: Update dependencies. Include "exec.h".
648 * Makefile.in (exec_h): Define.
649 (exec.o, somsolib.o): Update dependencies.
650 (pa64solib.o, corelow.o): Update dependencies.
652 2003-10-22 Andrew Cagney <cagney@redhat.com>
654 * target.c: Include "gdb_assert.h" (target_read): Call
655 "target_read_partial", not "target_write_partial".
656 (default_read_partial, default_write_partial): New function.
657 (target_read_partial, target_write_partial): Simplify, assume that
658 there is always a read/write method.
659 (update_current_target, add_target): Always set "to_read_partial"
660 and "to_write_partial".
661 (target_write, target_read): Fail on a zero byte transfer.
662 * Makefile.in (target.o): Update dependencies.
663 * target.h: Update copyright date.
664 (target_object): Fix typo.
666 2003-10-22 Andrew Cagney <cagney@redhat.com>
668 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
669 multi-arch method, add "targ" parameter.
670 (struct target_ops): Declare.
671 * gdbarch.h, gdbarch.c: Re-generate.
672 * Makefile.in (c-valprint.o): Update dependencies.
673 * arch-utils.h: Update copyright.
674 (convert_from_func_ptr_addr_identity): Declare.
675 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
676 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
677 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
678 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
679 * infcall.c (find_function_addr, call_function_by_hand): Update.
680 * c-valprint.c: Include "target.h".
681 (print_function_pointer_address): Update.
683 2003-10-22 Andrew Cagney <cagney@redhat.com>
685 * target.c (target_close): New function.
686 (debug_to_close): Use "target_close".
687 (push_target): Use "target_close".
688 (unpush_target): Use "target_close".
689 (pop_target): Use "target_close".
690 * target.h (struct target_ops): Add "to_xclose".
691 (target_open): Delete macro. Move comment to "to_open".
692 (target_close): Replace macro with function that takes a target.
693 * top.c (quit_target): Pass "current_target" to "target_close".
695 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
697 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
698 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
699 * symtab.h (lookup_minimal_symbol_text): Update.
700 * breakpoint.c (create_overlay_event_breakpoint,
701 create_longjmp_breakpoint): Update callers.
702 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
703 * symtab.c (find_pc_sect_line): Ditto.
705 2003-10-21 Andrew Cagney <cagney@redhat.com>
707 * target.c (errno): Delete extern declaration.
709 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
711 * ia64-tdep.c: Change all occurrences of
712 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
713 (ia64_frame_prev_register): Minor whitespace change.
715 2003-10-20 Michael Chastain <mec@shout.net>
717 * config/djgpp/fnchange.lst: Add lines for:
718 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
719 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
720 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
721 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
722 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
723 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
724 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
726 2003-10-20 Andrew Cagney <cagney@redhat.com>
728 * values.c (register_value_being_returned): Update comments. Use
729 "gdbarch_return_value" when available.
730 (using_struct_return): Ditto.
731 (set_return_value): Ditto. Use "gdbarch_return_value" when
732 available.. Print a warning, and not an error, when an unhandled
733 return type is encountered.
734 * infcmd.c: Include "gdb_assert.h".
735 (print_return_value): When gdbarch_return_value_p, and using
736 struct return, assume that the value is not available.
737 * defs.h (return_value_convention): Define.
738 * gdbarch.sh (gdbarch_return_value): New predicate method.
739 * gdbarch.h, gdbarch.c: Re-generate
740 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
742 2003-10-20 Andrew Cagney <cagney@redhat.com>
744 * symtab.c: Replace "struct sec" with "struct bfd_section".
745 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
747 2003-10-19 Michael Chastain <mec@shout.net>
749 * config/djgpp/fnchange.lst: Add lines for:
750 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
751 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
752 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
754 2003-10-19 Mark Kettenis <kettenis@gnu.org>
756 * amd64fbsd-nat.c (fetch_inferior_registers,
757 store_inferior_registers): Remove functions.
758 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
760 2003-10-18 Mark Kettenis <kettenis@gnu.org>
762 Add NetBSD/amd64 native configuration:
763 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
764 * amd64nbsd-tdep.c: New file.
765 * amd64nbsd-nat.c: New file.
766 * amd64bsd-nat.c: New file.
767 * config/i386/nbsd64.mh: New file.
768 * config/i386/nbsd64.mt: New file.
769 * configure.host: Add x86_64-*-netbsd*.
770 * configure.tgt: Add x86_64-*-netbsd*.
771 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
773 * NEWS (New native configurations): Mention NetBSD/amd64.
775 2003-10-17 Michael Chastain <mec@shout.net>
777 * config/djgpp/fnchange.lst: Remove dead lines for:
778 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
779 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
780 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
781 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
782 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
783 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
784 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
785 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
786 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
787 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
788 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
789 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
790 gdb/config/sparc/tm-sparclite.h,
791 gdb/gdbtk/generic/ChangeLog-2001,
792 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
793 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
794 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
795 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
796 gdb/testsuite/gdb.mi/mi0-var-block.exp,
797 gdb/testsuite/gdb.mi/mi0-var-child.exp,
798 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
799 gdb/testsuite/gdb.mi/mi0-var-display.exp,
800 itcl/iwidgets3.0.0/demos/extfileselectionbox,
801 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
802 itcl/iwidgets3.0.0/demos/fileselectionbox,
803 itcl/iwidgets3.0.0/demos/fileselectiondialog,
804 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
805 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
806 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
807 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
808 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
809 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
810 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
811 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
812 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
813 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
814 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
815 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
816 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
817 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
818 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
819 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
820 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
821 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
822 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
823 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
824 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
825 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
826 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
827 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
828 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
829 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
830 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
831 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
832 itcl/iwidgets3.0.0/demos/html/shell.n.html,
833 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
834 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
835 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
836 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
837 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
838 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
839 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
840 itcl/iwidgets3.0.0/demos/scrolledcanvas,
841 itcl/iwidgets3.0.0/demos/scrolledframe,
842 itcl/iwidgets3.0.0/demos/scrolledhtml,
843 itcl/iwidgets3.0.0/demos/scrolledlistbox,
844 itcl/iwidgets3.0.0/demos/scrolledtext,
845 itcl/iwidgets3.0.0/demos/selectionbox,
846 itcl/iwidgets3.0.0/demos/selectiondialog,
847 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
848 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
849 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
850 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
851 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
852 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
853 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
854 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
855 itcl/iwidgets3.0.0/doc/scrolledframe.n,
856 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
857 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
858 itcl/iwidgets3.0.0/doc/scrolledtext.n,
859 itcl/iwidgets3.0.0/doc/selectionbox.n,
860 itcl/iwidgets3.0.0/doc/selectiondialog.n,
861 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
862 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
863 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
864 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
865 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
866 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
867 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
868 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
869 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
870 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
871 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
872 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
873 itcl/iwidgets3.0.0/generic/selectionbox.itk,
874 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
875 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
876 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
877 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
878 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
879 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
880 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
881 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
882 itcl/iwidgets3.0.0/tests/scrolledframe.test,
883 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
884 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
885 itcl/iwidgets3.0.0/tests/scrolledtext.test,
886 itcl/iwidgets3.0.0/tests/selectionbox.test,
887 itcl/iwidgets3.0.0/tests/selectiondialog.test,
888 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
889 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
890 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
891 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
892 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
893 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
894 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
895 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
896 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
897 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
898 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
899 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
900 tk/mac/tkMacProjects.sit.hqx.
902 2003-10-17 Andrew Cagney <cagney@redhat.com>
904 * target.c (target_section_by_addr): New function.
905 (do_xfer_memory): Use "target_section_by_addr".
906 * target.h (target_section_by_addr): Declare.
908 * target.h (struct target_ops): Add "to_read_partial" and
909 "to_write_partial", delete "to_query".
910 (target_read_partial, target_write_partial): Declare.
911 (target_read, target_write): Declare.
912 (target_query): Delete macro.
913 * target.c (target_read_partial): New function.
914 (target_write_partial, target_read, target_write): New function.
915 (update_current_target): Delete inheritance of "to_query". Add
916 comments about "to_read_partial" and "to_write_partial".
917 (debug_to_partial_read, debug_to_partial_write): New functions.
918 (debug_to_query): Delete function.
919 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
920 instead of "to_query".
921 * remote.c (remote_read_partial): Replace "remote_query".
922 (init_remote_ops): Set "to_read_partial" instead of "to_query".
923 (init_remote_async_ops): Ditto.
924 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
925 "target_read_partial" instead of "target_query".
926 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
927 Use "target_read_partial" instead of "target_query".
929 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
931 * frame.h (struct frame_id): Add new field: special_addr.
932 (frame_id_build_special): New prototype.
933 * frame.c (frame_id_build_special): New function.
934 (frame_id_build): Change to call frame_id_build_special().
935 (frame_id_eq): Change to also test special_addr field.
936 (frame_id_inner): Update comment.
938 2003-10-17 Andrew Cagney <cagney@redhat.com>
940 * target.c (update_current_target): Perform the target cleanup.
941 Put the target stack beneath the squashed "current_target".
942 (add_target): Delete disabled call to "cleanup_target".
943 (cleanup_target): Delete function.
944 (push_target, unpush_target): Do not call "cleanup_target".
946 2003-10-17 Andrew Cagney <cagney@redhat.com>
948 * target.c (target_stack): Change to a static target_ops.
949 (update_current_target): Walk the "struct target_ops" stack.
950 (pop_target, do_xfer_memory, target_info): Ditto.
951 (find_target_beneath): Ditto.
952 (push_target): Rewrite to use the "struct target_ops" stack.
953 (unpush_target): Ditto.
954 * target.h (struct target_stack_item): Delete definition.
955 (target_stack): Delete declaration.
956 (struct target_ops): Add field "beneath".
958 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
960 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
962 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
963 (h8300_examine_prologue): Use h8300_normal_mode flag
964 (h8300_gdbarch_init): Set architecture info for normal mode
966 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
968 * remote.c (remote_protocol_vcont): New variable.
969 (set_remote_protocol_vcont_packet_cmd): New function.
970 (show_remote_protocol_vcont_packet_cmd): New function.
971 (init_all_packet_configs): Handle remote_protocol_vcont.
972 (remote_vcont_probe): New function.
973 (remote_vcont_resume): New function.
974 (remote_resume): Use it.
975 (remote_async_resume): Call remote_resume.
976 (_initialize_remote): Add verbose-resume packet commands.
978 2003-10-16 Andrew Cagney <cagney@redhat.com>
980 * infrun.c (handle_inferior_event): Add comment about
981 "frame_id_inner" being too weak.
983 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
985 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
986 second parameter, which is always null. Remove
987 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
988 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
990 * somsolib.c (som_solib_create_inferior_hook,
991 som_solib_desire_dynamic_linker_symbols): Update callers.
992 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
994 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
996 * remote-m32r-sdi.c : New file, interface to m32r on-chip
997 debug interface, SDI (Scalable Debug Interface).
998 * NEWS: Mention m32r SDI protocol was supported.
999 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1000 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1002 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1004 * ia64-linux-tdep.c: Include gdbcore.h.
1005 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1006 (ia64_linux_sigcontext_register_addr): Find the address of the
1007 sigcontext area stored in the sigframe instead of using
1008 a magic offset constant.
1010 2003-10-15 Andrew Cagney <cagney@redhat.com>
1012 * remote.c (remote_search): Delete function.
1013 * target.h (target_search): Delete disabled macro.
1014 (struct target_ops): Delete disabled field "to_search".
1016 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1018 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1019 instead of deprecated_inside_entry_file().
1021 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1023 * sh-tdep.c: Fix copy/paste hangover in comment.
1024 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1026 (sh3e_sh4_extract_return_value): Ditto.
1028 2003-10-13 Richard Henderson <rth@redhat.com>
1030 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1031 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1032 match c_val_print a bit closer.
1034 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1036 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1037 (frv_gdbarch_adjust_breakpoint_address): New function.
1038 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1041 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1043 * breakpoint.h (struct breakpoint): Add new member
1044 ``requested_address''.
1045 * breakpoint.c (breakpoint_adjustment_warning)
1046 (adjust_breakpoint_address): New static functions.
1047 (print_it_typical): Issue warning if breakpoint's address is different
1048 from its requested address.
1049 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1050 (breakpoint_re_set_one): Set breakpoint's
1051 ``requested_address'' field. Set ``address'' field to the
1052 result of calling adjust_breakpoint_address() on the requested
1055 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1057 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1058 * gdbarch.h, gdbarch.c: Regenerate.
1060 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1062 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1065 * i386fbsd-tdep.c: New file.
1066 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1067 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1068 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1070 (_initialize_i386fbsd_tdep): New function.
1071 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1072 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1073 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1074 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1076 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1077 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1078 to initialize TDEP->sc_num_regs.
1079 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1080 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1081 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1082 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1083 FreeBSD ELF OS/ABI's here.
1084 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1085 (i386fbsd-tdep.o): New target.
1086 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1087 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1089 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1090 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1091 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1092 in initialization of TDEP->sc_num_regs.
1094 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1095 (x86_64_init_abi): Initialize regset_from_core_section if
1098 * i386-tdep.c (i386_regset_from_core_section): New function.
1099 (i386_gdbarch_init): Initialize regset_from_core_section if
1101 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1103 * i386-tdep.h (struct regset): Declare opaque.
1105 * gdbarch.sh (regset_from_core_section): New method.
1106 (struct regset): Declare opaque.
1107 * gdbarch.c, gdbarch.h: Regenerated.
1109 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1111 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1112 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1113 Correct test for pc within section.
1115 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1117 * gdbarch.sh: Remove trailing whitepsace from comments.
1119 2003-10-08 Roland McGrath <roland@redhat.com>
1121 * gcore.c (make_mem_sec): Function removed, folded into ...
1122 (gcore_create_callback): ... here. To omit a section, clear its
1123 SEC_LOAD bit rather than zeroing its size.
1124 Omit read-only sections only if they correspond to a known disk file.
1125 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1127 2003-10-10 Michael Snyder <msnyder@redhat.com>
1129 * d10v-tdep.c: Fix typo in comment.
1131 2003-10-10 Andrew Cagney <cagney@redhat.com>
1133 * rs6000-tdep.c (e500_store_return_value): Delete function.
1134 (e500_extract_return_value): Delete function.
1135 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1136 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1137 "ppc_sysv_abi_restore_return_value" where applicable.
1138 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1139 (ppc_sysv_abi_extract_return_value): Declare.
1140 (ppc_sysv_abi_broken_store_return_value): Declare.
1141 (ppc_sysv_abi_broken_extract_return_value): Declare.
1142 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1143 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1145 (do_ppc_sysv_return_value): New function.
1146 (ppc_sysv_abi_extract_return_value): New function.
1147 (ppc_sysv_abi_store_return_value): New function.
1148 (ppc_sysv_abi_broken_extract_return_value): New function.
1149 (ppc_sysv_abi_broken_store_return_value): New function.
1150 (ppc_sysv_abi_use_struct_convention): Call
1151 do_ppc_sysv_return_value.
1153 2003-10-10 J. Brobecker <brobecker@gnat.com>
1155 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1156 to lookup the main function symbol.
1158 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1160 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1162 (sh_push_dummy_call_fpu): Fix argument passing rules.
1163 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1165 (sh3e_sh4_store_return_value): Ditto.
1167 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1169 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1172 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1174 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1175 more readable code. Accomodate passing of bitfields.
1177 2003-10-10 Andrew Cagney <cagney@redhat.com>
1179 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1180 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1181 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1182 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1183 (ppc64_sysv_abi_push_dummy_call): New function.
1184 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1185 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1186 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1188 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1190 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1192 * d10v-tdep.c: Ditto.
1193 * h8300-tdep.c: Ditto.
1194 * remote-e7000.c: Ditto.
1195 * remote-hms.c: Ditto.
1196 * ser-e7kpc.c: Ditto.
1201 * sh64-tdep.c: Ditto.
1204 * config/d10v/d10v.mt: Ditto.
1205 * config/sh/embed.mt: Ditto.
1206 * config/sh/linux.mt: Ditto.
1207 * config/sh/tm-linux.h: Ditto.
1208 * config/sh/tm-sh.h: Ditto.
1209 * config/sh/wince.mt: Ditto.
1211 2003-10-09 Andrew Cagney <cagney@redhat.com>
1213 * ppc-tdep.h (struct type): Declare opaque.
1214 * x86-64-tdep.h (struct regcache): Declare opaque.
1215 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1218 2003-10-09 Andrew Cagney <cagney@redhat.com>
1220 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1221 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1222 (SOFTWARE_SINGLE_STEP_P): Ditto.
1223 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1224 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1225 (SOFTWARE_SINGLE_STEP_P): Ditto.
1226 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1227 software_single_step to rs6000_software_single_step.
1229 2003-10-09 Andrew Cagney <cagney@redhat.com>
1231 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1233 2003-10-09 Michael Snyder <msnyder@redhat.com>
1235 * frame.h: Fix typo in comment.
1236 * dummy-frame.c: Fix typo in comment.
1237 * d10v-tdep.c: Random whitespace/comment tweaks.
1239 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1241 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1242 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1245 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1246 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1249 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1251 * remote-mips.c (mips_initialize): Remove unneeded call to
1252 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1254 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1256 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1259 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1261 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1262 for any lwp we resume.
1263 (running_callback): Add lwps that have pending status events
1264 against them to be considered running.
1266 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1268 * m32r-tdep.c : Include "dis-asm.h".
1269 * Makefile.in (m32r-tdep.o): Update dependencies.
1271 2003-10-06 J. Brobecker <brobecker@gnat.com>
1273 * completer.h (get_gdb_completer_word_break_characters): Delete.
1274 * completer.c: include language.h.
1275 (gdb_completer_word_break_characters): Delete.
1276 (get_gdb_completer_word_break_characters): Delete.
1277 (location_completer): Use the word break characters of the current
1279 (complete_line): Likewise.
1280 (line_completion_function): Likewise.
1281 (skip_quoted_chars): Likewise.
1282 * Makefile.in (completer.o): Add dependency on language.h.
1283 * top.c (init_main): Set the readline word break characters
1284 to GDB's default word break characters.
1286 2003-10-06 J. Brobecker <brobecker@gnat.com>
1288 * language.h (language_defn): new field, la_word_break_characters.
1289 * language.c (unknown_language_defn): Set new field to
1290 default_word_break_characters.
1291 (auto_language_defn): Likewise.
1292 (local_language_defn): Likewise.
1293 * ada-lang.c (ada_language_defn): Likewise.
1294 * c-lang.c (c_language_defn): Likewise.
1295 (cplus_language_defn): Likewise.
1296 (asm_language_defn): Likewise.
1297 (minimal_language_defn): Likewise.
1298 * f-lang.c (f_language_defn): Likewise.
1299 * jv-lang.c (java_language_defn): Likewise.
1300 * m2-lang.c (m2_language_defn): Likewise.
1301 * objc-lang.c (objc_language_defn): Likewise.
1302 * p-lang.c (pascal_language_defn): Likewise.
1303 * scm-lang.c (scm_language_defn): Likewise.
1305 2003-10-06 Andrew Cagney <cagney@redhat.com>
1307 * ppc-sysv-tdep.c: Re-indent.
1309 2003-10-06 J. Brobecker <brobecker@gnat.com>
1311 * language.h (default_word_break_characters): Add prototype.
1312 * language.c (default_word_break_characters): New function.
1314 2003-10-06 Andreas Schwab <schwab@suse.de>
1316 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1319 2003-10-06 Andrew Cagney <cagney@redhat.com>
1321 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1323 (z8k-tdep.o): Delete custom build rule.
1325 2003-10-06 Andrew Cagney <cagney@redhat.com>
1327 * Makefile.in: Update all dependencies.
1329 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1330 No longer list PA as as obsolete candidate. List m32r as
1331 broken instead of obsolete.
1333 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1334 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1335 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1336 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1337 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1338 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1339 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1340 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1341 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1342 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1343 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1344 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1345 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1346 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1347 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1348 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1349 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1350 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1351 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1352 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1353 * config/z8k/z8k.mt: Ditto.
1355 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1356 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1357 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1358 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1359 sparclite were removed.
1360 * configure.host, configure.tgt: Remove corresponding tuples.
1362 * breakpoint.c, breakpoint.h: Remove obsolete code.
1363 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1364 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1365 * stabsread.h, xcoffread.c: Ditto.
1367 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1368 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1369 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1370 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1372 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1374 * f-valprint.c: Reformatting
1376 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1378 * x86-64-tdep.c: Remove duplicate comment.
1380 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1381 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1382 names for return values. This fixes a bug since we looked at %rbx
1385 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1387 * x86-64-tdep.c: Include "regset.h".
1389 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1390 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1392 * i386-tdep.c: Include "regset.h".
1393 (i386_supply_gregset): New function.
1394 (i386_supply_fpregset): New function.
1395 (i386_gdbarch_init): Initialze register set-related members of
1397 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1398 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1400 2003-10-03 Andrew Cagney <cagney@redhat.com>
1402 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1403 set extract_return_value, store_return_value and
1404 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1405 ppc64_sysv_abi_store_return_value and
1406 ppc64_sysv_abi_use_struct_convention.
1407 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1408 (ppc64_sysv_abi_store_return_value): Declare.
1409 (ppc64_sysv_abi_use_struct_convention): Declare.
1410 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1411 (ppc64_sysv_abi_extract_return_value): New function.
1412 (ppc64_sysv_abi_store_return_value): New function.
1413 (ppc64_sysv_abi_use_struct_convention): New function.
1414 (ppc64_sysv_abi_return_value): New function.
1416 2003-10-03 Andrew Cagney <cagney@redhat.com>
1418 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1419 convert a descriptor to a function when it's in the ".opd"
1422 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1424 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1425 reg_size to keep GCC silent.
1427 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1429 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1430 base for DW_EH_PE_textrel encodings.
1431 (read_encoded_value): Add a DW_EH_PE_textrel case.
1432 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1435 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1437 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1439 2003-10-02 Andrew Cagney <cagney@redhat.com>
1441 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1443 * gdbarch.h, gdbarch.c: Re-generate.
1444 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1445 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1446 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1447 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1448 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1449 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1450 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1451 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1452 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1453 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1454 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1455 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1456 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1457 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1458 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1459 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1461 2003-10-02 Jim Blandy <jimb@redhat.com>
1463 * dwarf2read.c (struct die_info): Doc fix.
1465 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1467 * sh-tdep.c: Running thru gdb_indent.sh.
1469 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1471 * sh-tdep.c (sh_justify_value_in_reg): New function.
1472 (sh_stack_allocsize): Ditto.
1473 (flt_argreg_array): New array used for floating point argument
1475 (sh_init_flt_argreg): New function.
1476 (sh_next_flt_argreg): Ditto.
1477 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1478 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1479 Fix argument passing strategy.
1480 (sh_push_dummy_call_nofpu): Ditto.
1482 2003-10-01 Andrew Cagney <cagney@redhat.com>
1484 * value.h (register_value_being_returned): Declare. Replace
1485 "value_being_returned".
1486 * infcall.c (call_function_by_hand): Use
1487 register_value_being_returned.
1488 * infcmd.c (print_return_value): Call
1489 "register_value_being_returned", handle struct return locally.
1490 * values.c (register_value_being_returned): New function. Replace
1491 "value_being_returned".
1493 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1495 * linux-proc.c (linux_do_registers): New function.
1496 (linux_make_note_section): Use linux_do_registers in case of
1497 single threaded inferior programs.
1499 2003-10-01 Andrew Cagney <cagney@redhat.com>
1501 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1502 use STRUCT_ADDR. When not using "struct return convention", pass
1503 "0" to "value_being_returned". Add FIXMEs.
1504 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1505 value_being_returned. Add comments.
1506 * values.c (value_being_returned): Add fixme.
1507 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1508 (hppa_value_returned_from_stack): Add FIXME.
1510 2003-09-30 David Carlton <carlton@kealia.com>
1512 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1513 'has_children' and 'next' by 'child' and 'sibling'.
1514 (read_comp_unit): Rework algorithm, breaking body into
1515 read_die_and_children and read_die_and_siblings.
1516 (read_die_and_children, read_die_and_siblings): New.
1517 (read_full_die): Add 'has_children' argument; set it instead of
1518 the die's 'has_children' field. Minor formatting cleanup.
1519 (free_die_list): Use die->child and die->sibling instead of
1521 (dump_die_list): Ditto.
1522 (sibling_die): Use die->sibling.
1523 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1524 'has_children' and 'next' fields.
1525 (process_die, read_file_scope, read_func_scope)
1526 (read_lexical_block_scope, read_structure_scope)
1527 (read_enumeration, read_array_type, read_common_block)
1528 (read_namespace, read_subroutine_type, dump_die): Ditto.
1530 2003-09-30 Andrew Cagney <cagney@redhat.com>
1532 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1535 2003-09-30 Andrew Cagney <cagney@redhat.com>
1537 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1538 REGISTER_VIRTUAL_SIZE.
1539 * gdbarch.h, gdbarch.c: Regenerate.
1540 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1541 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1542 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1544 2003-09-29 Andrew Cagney <cagney@redhat.com>
1546 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1547 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1548 * gdbarch.h, gdbarch.c: Regenerate.
1549 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1550 * sh64-tdep.c, sparc-tdep.c: Update.
1552 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1553 * remote-vxmips.c (vx_read_register): Ditto.
1554 * remote-vx68.c (vx_read_register): Ditto.
1555 * gnu-nat.c (inf_validate_procs): Ditto.
1557 2003-09-29 J. Brobecker <brobecker@gnat.com>
1559 * infcall.c (call_function_by_hand): Fix build failure
1560 introduced in the previous change to this file.
1562 2003-09-29 Andrew Cagney <cagney@redhat.com>
1564 * NEWS: Mention Objective-C.
1566 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1568 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1569 test if the register has been saved on the stack.
1570 (arm_scan_prologue_cache): When analysing the instruction
1571 "str lr, [sp, #-4]", save the address where lr has been stored.
1573 2003-09-28 Andrew Cagney <cagney@redhat.com>
1575 * frame.c (frame_read_unsigned_register): Delete function.
1576 * frame.h (frame_read_unsigned_register): Delete declaration.
1577 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1578 get_frame_register_unsigned.
1579 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1580 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1581 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1583 * frame.h (frame_read_register): Delete declaration.
1584 * frame.c (frame_read_register): Delete function.
1585 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1586 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1587 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1588 * mips-tdep.c (mips_register_to_value): Ditto.
1589 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1590 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1592 * frame.c (frame_read_signed_register): Delete function.
1593 (frame_read_unsigned_register): Update comments.
1594 * frame.h (frame_read_signed_register): Delete declaration.
1595 * h8300-tdep.c (h8300_print_register): Use
1596 get_frame_register_signed.
1597 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1599 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1600 Rename VALUE_RETURNED_FROM_STACK.
1601 * infcmd.c (print_return_value): Update.
1602 * infcall.c (call_function_by_hand): Update.
1604 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1606 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1607 regcache argument and reverse the order of the other two
1608 arguments. Remove local regcache variable. Determine
1609 architecture from REGCACHE. Update comments.
1610 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1611 reverse the order of the other two arguments. Remove local
1612 regcache variable. Determine architecture from REGCACHE. Update
1614 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1615 prototypes. Update comments.
1616 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1618 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1620 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1621 * i386-interix-nat.c (supply_fpregset): Update.
1622 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1623 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1624 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1625 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1626 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1628 * i386obsd-tdep.c (fetch_core_registers): Update.
1629 * i386v4-nat.c (supply_fpregset): Update.
1630 * x86-64-linux-nat.c (supply_fpregset): Update.
1631 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1633 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1635 * i386-tdep.h: Put opaque declarations in alphabetical
1636 order. Remove spurious whitespace.
1637 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1638 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1639 * i386-tdep.c (MM0_REGNUM): Remove define.
1640 (i386_mmx_regnum_p): Add gdbarch argument.
1641 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1642 Rewrite using new macro definitions for FPU/SSE registers.
1643 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1644 definitions from i387-tdep.h.
1645 (i386_register_name): Update.
1646 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1647 new macro definitions for FPU/SSE registers.
1648 (i386_extract_return_value): Determine whether floating-point
1649 registers are present by examining REGCACHE's architecture.
1650 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1651 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1653 (i386_register_type): Update.
1654 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1655 definitions for FPU registers. Use REGCACHE's architecture to
1656 determine the appropriate register numbers.
1657 (i386_pseudo_register_read, i386_pseudo_register_write,
1658 i386_register_reggroup_p): Update.
1659 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1661 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1662 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1663 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1664 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1665 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1666 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1668 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1669 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1670 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1671 definitions for FPU/SSE registers.
1672 (FXSAVE_MXCSR_ADDR): New define.
1673 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1675 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1676 (I387_ST0_REGNUM): Define.
1678 * regcache.h (get_regcache_arch): New prototype.
1679 * regcache.c (get_regcache_arch): New function.
1681 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1684 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1685 Initialize using ARRAY_SIZE.
1687 2003-09-27 Andrew Cagney <cagney@redhat.com>
1689 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1690 "init_frame_pc_default".
1691 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1693 * vax-tdep.c (vax_gdbarch_init): Update.
1694 * v850-tdep.c (v850_gdbarch_init): Update.
1695 * sh64-tdep.c (sh64_gdbarch_init): Update.
1696 * s390-tdep.c (s390_gdbarch_init): Update.
1697 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1698 * mcore-tdep.c (mcore_gdbarch_init): Update.
1699 * h8300-tdep.c (h8300_gdbarch_init): Update.
1700 * cris-tdep.c (cris_gdbarch_init): Update.
1701 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1703 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1705 * regset.h: New file.
1706 * Makefile.in (regset_h): Add.
1708 2003-09-25 Andrew Cagney <cagney@redhat.com>
1710 * frame.h (deprecated_frame_saved_regs): Rename
1711 get_frame_saved_regs.
1712 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1713 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1714 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1715 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1716 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1718 2003-09-25 Andrew Cagney <cagney@redhat.com>
1720 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1721 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1723 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1724 arm*-*-* do not use the new frame code.
1726 2003-09-25 David Carlton <carlton@kealia.com>
1728 * c-exp.y: Remove 'register' declarations.
1729 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1731 2003-09-25 David Carlton <carlton@kealia.com>
1733 * c-exp.y: Include cp-support.h. Add qualified_type.
1734 (yylex): Delete nested type hack; add comments.
1735 * cp-namespace.c (cp_lookup_nested_type): New function.
1736 * cp-support.h: Declare cp_lookup_nested_type.
1737 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1738 instead of value_struct_elt_for_reference.
1739 * valops.c: Include cp-support.h.
1740 (value_aggregate_elt): New function.
1741 (value_namespace_elt): Ditto.
1742 (value_struct_elt_for_reference): Make static.
1743 * value.h: Delete declaration of value_struct_elt_for_reference;
1744 add declaration for value_aggregate_elt.
1745 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1748 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1750 * stack.c: Include "reggroups.h".
1751 (frame_info): Only display registers in all_reggroup.
1752 * Makefile.in (stack.o): Update dependencies.
1754 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1756 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1757 "add ip, sp #n" in the prologue.
1758 (arm_scan_prologue): Ditto.
1760 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1762 * MAINTAINERS (write after approval): Add myself.
1764 2003-09-25 Andreas Schwab <schwab@suse.de>
1766 * m68k-tdep.c: Include "dwarf2-frame.h".
1767 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1768 * Makefile.in (m68k-tdep.o): Update dependencies.
1770 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1772 * sh-tdep.c (struct frame_extra_info): Remove.
1773 (struct sh_frame_cache): New structure.
1774 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1775 (GET_TARGET_REG): Ditto but target register.
1776 (GET_PUSHED_REG): Remove.
1777 (IS_MOV_ARG_TO_REG): New macro.
1778 (IS_MOV_ARG_TO_IND_R14): New macro.
1779 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1780 (IS_MOVW_PCREL_TO_REG): New macro.
1781 (IS_MOVL_PCREL_TO_REG): New macro.
1782 (IS_SUB_REG_FROM_SP): New macro.
1783 (IS_ARG_MOV): Remove.
1784 (IS_MOV_TO_R14): Remove.
1785 (IS_RESTORE_FP): New macro.
1786 (IS_RTS): New macro.
1787 (IS_LDS): New macro.
1788 (IS_MOV_FP_SP): New macro.
1789 (IS_ADD_REG_TO_FP): New macro.
1790 (IS_ADD_IMM_FP): New macro.
1791 (sh_skip_prologue_hard_way): Remove.
1792 (sh_saved_pc_after_call): Remove.
1793 (sh_frame_chain): Remove.
1794 (sh_find_callers_reg): Remove.
1795 (sh_nofp_frame_init_saved_regs): Remove.
1796 (sh_fp_frame_init_saved_regs): Remove.
1797 (sh_init_extra_frame_info): Remove.
1798 (sh_analyze_prologue): New function.
1799 (sh_skip_prologue): Remove deprecated code. Rely on new function
1800 sh_analyze_prologue when after_prologue fails.
1801 (sh_frame_saved_pc): Remove.
1802 (sh_alloc_frame_cache): New function.
1803 (sh_frame_cache): Ditto.
1804 (sh_frame_prev_register): Ditto.
1805 (sh_frame_this_id): Ditto.
1806 (sh_frame_unwind): New structure defining the heuristic frame
1808 (sh_frame_sniffer): New function.
1809 (sh_unwind_sp): Ditto.
1810 (sh_unwind_pc): Ditto.
1811 (sh_unwind_dummy_id): Ditto.
1812 (sh_frame_base_address): Ditto.
1813 (sh_frame_base): New structure defining new frame base code.
1814 (sh_in_function_epilogue_p): New function.
1815 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1816 code and to call all new code instead. Initialize dwarf2 and
1817 heuristic frame sniffer.
1819 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1821 * parser-defs.h (struct exp_descriptor): New definition, containing
1822 language-specific info for printing, prefixifying, dumping, and
1823 evaluating expressions.
1824 (exp_descriptor_standard): Declare new variable.
1825 (print_subexp): Make global and declare here (from expprint.c).
1826 (dump_subexp): Ditto.
1827 (dump_subexp_body_standard): Declare.
1828 (operator_length_standard): Declare.
1829 (op_name_standard): Declare.
1830 (print_subexp): Declare.
1831 (print_subexp_standard): Declare.
1833 * language.h (struct language_defn): Add la_exp_desc field to hold
1834 pointer to table for language-specific operators.
1835 Remove evaluate_exp field, which is now in struct exp_descriptor.
1837 * parse.c (operator_length): Move most code to new
1838 operator_length_standard function. Use language-specific information.
1839 (operator_length_standard): New function taking most code from
1841 (exp_descriptor_standard): New constant.
1843 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1844 and OP_EXTENDED_LAST.
1846 * expprint.c (print_subexp): Use language-specific print_subexp.
1847 Make global; remove static declaration.
1848 Move most code to print_subexp_standard.
1849 (print_subexp_standard): New function, containing code formerly in
1851 (op_name): Add expression to argument signature.
1852 Use langauge-specific op_name.
1853 Move most code to op_name_standard.
1854 (op_name_standard): New function, containing code formerly in op_name.
1855 (dump_subexp): Use new version of op_name function.
1856 Use language-specific dump_subexp_body, and move most existing code to
1857 dump_subexp_body_standard.
1858 (dump_raw_expression): Use new op_name interface.
1859 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1860 (dump_subexp_body_standard): New function, containing code formerly
1861 in dump_subexp_body.
1863 * language.c (unknown_language): Add default la_exp_desc field and
1864 remove evaluate_exp field.
1865 (auto_language): Ditto.
1866 (local_language): Ditto.
1867 * f-lang.c (f_language_defn): Ditto.
1868 * c-lang.c (c_language_defn): Ditto.
1869 (cplus_language_defn): Ditto.
1870 (asm_language_defn): Ditto.
1871 (minimal_language_defn): Ditto.
1872 * p-lang.c (pascal_language_defn): Ditto.
1873 * m2-lang.c (m2_language_defn): Ditto.
1874 * objc-lang.c (objc_language_defn): Ditto.
1876 * jv-lang.c (exp_descriptor_java): New variable, containing
1877 Java-specific expression evaluator.
1878 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1880 * scm-lang.c (exp_descriptor_scm): New variable, containing
1881 Scheme-specific expression evaluator.
1882 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1884 * objc-lang.c (print_object_command): Take evaluate_exp from the
1887 * Makefile.in (eval.o): Add dependency on parser-defs.h.
1889 * eval.c: Include parser-defs.h for the full declaration of
1891 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1893 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1895 * parser-defs.h (operator_length): Declare.
1897 * parse.c (length_of_subexp): Use operator_length to get operator
1898 lengths and arities for operators.
1899 Move most code to new operator_length function.
1900 (operator_length): New function absorbing most code from
1902 (prefixify_subexp): Remove large case and use operator_length instead.
1903 (parse_exp_1): Use renamings:
1904 dump_prefix_expression => dump_raw_expression and
1905 dump_postfix_expression => dump_prefix_expression.
1907 * expression.h (dump_prefix_expression): Rename to ...
1908 (dump_raw_expression): New name.
1909 (dump_postfix_expression): Rename to ...
1910 (dump_prefix_expression): New name.
1912 * expprint.c (dump_subexp): Make global. Add comment.
1913 Move most existing code to dump_subexp_body.
1914 (dump_subexp_body): New function.
1915 (dump_prefix_expression): Rename to dump_raw_expression.
1916 Remove attempt to print the expression via print_expression: it can't
1917 work before the expression is prefixified.
1918 (dump_raw_expression): Renamed from dump_prefix_expression.
1919 (dump_postfix_expression): Rename to dump_prefix_expression, since
1920 that's what it does.
1921 Remove 'note' parameter, since this routine must be used on
1922 prefixified expression.
1923 (dump_prefix_expression): Renamed from dump_postfix_expression.
1925 2003-09-22 Jim Blandy <jimb@redhat.com>
1927 * dwarf2read.c (read_array_type): When building the type for an
1928 array of unspecified length, make sure to choose the upper bound
1929 so that the array's total length comes out to be zero --- that's
1930 how we represent such arrays.
1932 2003-09-22 Michael Chastain <mec@shout.net>
1934 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1936 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1938 * top.c (quit_force): Fix indirect call to quit_target so
1939 a struct qt_args pointer is passed.
1941 2003-09-22 Andrew Cagney <cagney@redhat.com>
1943 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1944 * arch-utils.c (init_frame_pc_noop): Delete function.
1945 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1947 * mips-tdep.c (mips_gdbarch_init): Ditto.
1948 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1949 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1951 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1952 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1954 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1956 2003-09-22 Anthony Green <green@redhat.com>
1958 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1961 2003-09-20 Andrew Cagney <cagney@redhat.com>
1963 * breakpoint.c: Eliminate ARGSUSED.
1964 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1965 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1966 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1967 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1968 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1969 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1970 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1971 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1972 * wince.c, remote-vx.c: Ditto.
1974 * cli/cli-script.c: Remove "register" attributes.
1975 * config/pa/tm-hppa.h: Ditto.
1976 * cli/cli-decode.c: Ditto.
1977 * cli/cli-cmds.c: Ditto.
1979 2003-09-19 Andrew Cagney <cagney@redhat.com>
1981 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1982 DEPRECATED_NPC_REGNUM.
1983 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1985 2003-09-19 Christopher Faylor <cgf@redhat.com>
1987 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1989 2003-09-19 Jim Blandy <jimb@redhat.com>
1991 * macrotab.c (macro_include): Use the correct comparison to find
1992 the appropriate place for this inclusion in the list.
1994 2003-09-19 Andrew Cagney <cagney@redhat.com>
1996 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1997 (DEPRECATED_HPUX_TEXT_END): Define.
1998 (deprecated_hpux_text_end): Declare.
1999 (struct target_ops): Declare opaque.
2000 * hppah-nat.c (text_end): Make static.
2001 (deprecated_hpux_text_end): New function.
2002 * exec.c (text_end): Delete global variable.
2003 (NEED_TEXT_START_END): Do not define.
2004 (exec_file_attach): Replace code computing "text_end" code with
2005 call to DEPRECATED_HPUX_TEXT_END.
2007 2003-09-19 Andrew Cagney <cagney@redhat.com>
2009 * utils.c (align_up, align_down): New functions.
2010 * defs.h (align_up, align_down): Declare.
2011 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2012 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2014 (round_up, round_down): Delete functions.
2015 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2017 (ROUND_DOWN, ROUND_UP): Delete macros.
2018 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2019 * h8300-tdep.c: Replace "round_up" and "round_down" with
2020 "align_up" and "align_down".
2021 (round_up, round_down): Delete macros.
2022 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2024 (ROUND_UP, ROUND_DOWN): Delete macros.
2026 2003-09-18 J. Brobecker <brobecker@gnat.com>
2028 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2029 hard-coded constant. Use the proper machine name instead.
2031 2003-09-17 Andrew Cagney <cagney@redhat.com>
2033 * sparc-tdep.c (legacy_register_name): Delete function.
2034 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2035 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2036 * infcmd.c (gdb_register_name): Delete variable.
2037 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2038 REGISTER_NAME and "tm.h".
2039 * gdbarch.h, gdbarch.c: Regenerate.
2040 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2041 REGISTER_NAMES in comments.
2042 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2043 * m68klinux-nat.c (regmap): Ditto.
2045 2003-09-17 Jim Blandy <jimb@redhat.com>
2047 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2049 2003-09-17 Andrew Cagney <cagney@redhat.com>
2051 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2052 (ppcnbsd_init_abi): Set "use_struct_convention" to
2053 "ppcnbsd_use_struct_convention".
2055 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2057 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2058 * gdbarch.h, gdbarch.c: Regenerate.
2059 (stabs_argument_has_addr): New architecture method.
2060 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2061 * arch-utils.c: Include "buildsym.h".
2062 (default_stabs_argument_has_addr): New function.
2063 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2064 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2066 2003-09-17 Andrew Cagney <cagney@redhat.com>
2068 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2069 * gdbarch.h, gdbarch.c: Regenerate.
2070 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2071 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2072 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2073 * sparcnbsd-tdep.c: Update.
2075 2003-09-17 Andrew Cagney <cagney@redhat.com>
2077 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2078 * gdbarch.h, gdbarch.c: Regenerate.
2079 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2080 * d10v-tdep.c, frame.c: Update.
2081 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2082 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2083 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2084 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2085 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2086 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2087 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2088 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2089 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2090 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2091 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2092 * config/pa/nm-hppah.h: Update.
2094 2003-09-16 Andrew Cagney <cagney@redhat.com>
2096 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2097 "use_struct_convention" to "ppc_linux_use_struct_convention".
2098 (ppc_linux_use_struct_convention): New function.
2099 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2100 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2101 "rs6000_use_struct_convention".
2102 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2104 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2107 2003-09-16 Andrew Cagney <cagney@redhat.com>
2109 * buildsym.c: Remove more occurances of "register".
2110 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2111 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2112 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2113 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2114 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2115 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2116 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2117 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2119 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2121 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2122 numbers to enumeration values.
2123 * sh-tdep.c: Accomodate above change.
2124 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2125 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2126 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2127 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2128 (IS_FPUSH): Rename from IS_FMOV.
2129 (sh_extract_struct_value_address): Remove useless comment.
2130 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2131 instead of own local values.
2132 (sh_dump_tdep): Remove.
2133 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2134 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2136 2003-09-15 Andrew Cagney <cagney@redhat.com>
2138 * doublest.c (convert_floatformat_to_doublest): No longer need to
2139 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2141 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2143 * values.c (unpack_double): Call floatformat_is_valid.
2145 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2147 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2148 ps_strings into a long.
2150 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2151 _initialize_am64fbsd_nat.
2153 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2155 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2156 associated with DW_AT_ranges attribute is out of bounds.
2158 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2160 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2162 2003-09-14 Michael Chastain <mec@shout.net>
2164 * config/m68k/nm-apollo68v.h: Delete.
2165 * config/m68k/xm-apollo68v.h: Delete.
2167 2003-09-14 Andrew Cagney <cagney@redhat.com>
2169 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2170 * dcache.c: Update copyrights and descriptions.
2171 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2173 2003-09-14 Andrew Cagney <cagney@redhat.com>
2175 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2176 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2178 2003-09-14 Andrew Cagney <cagney@redhat.com>
2180 * alpha-nat.c: Remove some occurances of "register".
2181 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2182 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2183 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2184 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2185 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2186 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2187 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2188 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2189 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2190 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2191 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2192 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2193 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2194 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2195 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2196 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2197 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2198 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2199 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2200 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2201 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2202 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2204 2003-09-13 Andrew Cagney <cagney@redhat.com>
2206 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2207 * ppc-tdep.h (struct regcache): Declare opaque.
2208 * objfiles.h (struct objfile_data): Declare opaque.
2209 * cp-support.h (struct objfile): Declare opaque.
2210 * linux-nat.h (target_waitstatus): Declare opaque.
2212 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2214 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2215 (stabs_argument_has_addr): New architecture method.
2216 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2217 * arch-utils.c: Include "buildsym.h".
2218 (default_stabs_argument_has_addr): New function.
2219 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2220 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2222 * cris-tdep.c (cris_gdbarch_init): Set
2223 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2224 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2225 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2226 * mips-tdep.c (mips_gdbarch_init): Likewise.
2227 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2228 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2230 2003-09-13 Andrew Cagney <cagney@redhat.com>
2232 * values.c (using_struct_return): Delete "function" and "funcaddr"
2234 * value.h (using_struct_return): Update declaration.
2235 * infcmd.c (finish_command_continuation): Update.
2236 (finish_command): Update.
2237 * infcall.c (call_function_by_hand): Update.
2238 * eval.c (evaluate_subexp_standard): Update.
2240 2003-09-13 Christopher Faylor <cgf@redhat.com>
2242 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2243 SSE registers since gdb will not operate correctly without this.
2244 Restore include file ordering munged in previous change.
2245 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2247 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2249 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2250 REG_STRUCT_HAS_ADDR.
2251 * gdbarch.c, gdbarch.h: Updated.
2252 * infcall.c (call_function_by_hand): Update.
2253 * stabsread.c (define_symbol): Updated.
2255 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2257 2003-09-12 Christopher Faylor <cgf@redhat.com>
2259 * win32-nat.c: Reorganize so that defines used by target headers are
2260 actually defined by the system headers.
2261 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2262 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2264 2003-09-12 Jim Blandy <jimb@redhat.com>
2266 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2267 the file has no .data, .bss, or .rodata sections. Instead wait
2268 until we see a variable alleged to live in one of those sections.
2270 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2271 .bss section, presume that any variables we find live in the
2274 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2275 offsets for global and static variables.
2277 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2278 symbol types are, by definition, in the .data section, so it is
2279 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2280 If there is no .data section, there should be no N_DATA or N_DATA
2283 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2285 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2286 (amd64fbsd_sigcontext_addr): Rewrite.
2287 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2288 with correct values.
2289 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2290 (amd64fbsd_init_abi): Fix typo.
2292 2003-09-12 Andrew Cagney <cagney@redhat.com>
2294 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2295 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2297 2003-09-12 Andrew Cagney <cagney@redhat.com>
2299 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2300 "entry_file_highpc". Update comments.
2301 * defs.h (deprecated_inside_entry_file): Rename
2302 "inside_entry_file".
2303 * blockframe.c (deprecated_inside_entry_file): Rename
2304 "inside_entry_file".
2305 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2306 * vax-tdep.c (vax_frame_chain): Update.
2307 * sh64-tdep.c (sh64_frame_chain): Update.
2308 * sh-tdep.c (sh_frame_chain): Update.
2309 * rs6000-tdep.c (rs6000_frame_chain): Update.
2310 * ns32k-tdep.c (ns32k_frame_chain): Update.
2311 * mips-tdep.c (mips_frame_chain): Update.
2312 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2313 * m32r-tdep.c (m32r_frame_this_id): Update.
2314 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2315 * frv-tdep.c (frv_frame_this_id): Update.
2316 * d10v-tdep.c (d10v_frame_this_id): Update.
2317 * cris-tdep.c (cris_frame_chain): Update.
2318 * blockframe.c (legacy_frame_chain_valid): Update.
2319 * avr-tdep.c (avr_frame_this_id): Update.
2320 * arm-tdep.c (arm_prologue_this_id): Update.
2321 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2322 * objfiles.c (objfile_relocate): Update.
2323 * mipsread.c (mipscoff_symfile_read): Update.
2324 (mipscoff_symfile_read): Update.
2325 * mdebugread.c (parse_partial_symbols): Update.
2326 * dwarfread.c (read_file_scope): Update.
2327 * dwarf2read.c (read_file_scope): Update.
2328 * dbxread.c (read_dbx_symtab): Update.
2329 (read_dbx_symtab): Update.
2330 * coffread.c (complete_symtab): Update.
2332 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2334 * top.c (quit_target): New static helper function.
2335 (quit_force): Moved code to quit_target(). Call quit_target()
2336 via catch_errors() to catch errors during quit.
2338 2003-09-11 David Carlton <carlton@kealia.com>
2340 * buildsym.c (finish_block): Use allocate_block to allocate the
2342 * mdebugread.c (new_block): Add FIXME.
2344 2003-09-11 David Carlton <carlton@kealia.com>
2346 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2347 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2348 (recursive_dump_type): Ditto.
2349 * printcmd.c (print_formatted): Ditto.
2350 * typeprint.c (print_type_scalar): Ditto.
2351 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2352 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2353 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2354 maint_cplus_cmd_list.
2355 * cp-support.c: Make maint_cplus_cmd_list extern.
2356 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2358 (lookup_symbol_file): Look in possible namespace blocks when
2360 (initialize_namespace_symtab): New.
2361 (get_possible_namespace_block, free_namespace_block)
2362 (check_possible_namespace_symbols)
2363 (check_possible_namespace_symbols_loop)
2364 (check_one_possible_namespace_symbol)
2365 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2366 (_initialize_cp_namespace): Ditto.
2367 * block.h: Declare allocate_block.
2368 * block.c (allocate_block): New.
2369 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2371 * symfile.h: Update declaration of add_psymbol_to_list.
2372 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2374 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2375 scan_partial_symbols_call.
2376 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2378 (add_partial_symbol): If necessary, scan mangled names for names
2380 (add_partial_namespace): Add NAMESPACE argument; generate partial
2381 symbols associated to namespaces.
2382 (add_partial_enumeration): Add NAMESPACE argument.
2383 (new_symbol): Allow namespace syms.
2384 (read_namespace): Generate namespace syms.
2385 * objfiles.h: Add opaque declaration of struct symtab.
2386 (struct objfile): Add cp_namespace_symtab member.
2387 * objfiles.c (allocate_objfile): Set
2388 objfile->cp_namespace_symtab.
2389 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2390 dictionary_h, command_h.
2392 2003-09-11 Andrew Cagney <cagney@redhat.com>
2394 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2395 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2396 near the function's end.
2397 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2398 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2399 regcache_raw_write_signed to set SP_REGNUM.
2401 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2403 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2404 orig_addrs is set up properly.
2406 2003-09-11 Andrew Cagney <cagney@redhat.com>
2408 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2409 * gdbarch.h, gdbarch.c: Re-generate.
2410 * infcall.c (call_function_by_hand): Update.
2411 * hppa-tdep.c (hppa_push_arguments): Update.
2412 * ada-lang.c (place_on_stack): Update.
2413 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2414 * sparc-tdep.c (sparc_gdbarch_init): Update.
2415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2416 * hppa-tdep.c (hppa_gdbarch_init): Update.
2417 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2420 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2422 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2423 register do need a frame.
2425 2003-09-11 Andrew Cagney <cagney@redhat.com>
2427 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2428 buildable since GDB 5.0.
2429 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2430 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2431 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2432 * irix4-nat.c: Delete file.
2433 * config/mips/irix4.mh: Delete file.
2434 * config/mips/irix3.mh: Delete file.
2435 * config/mips/irix3.mt: Delete file.
2436 * config/mips/tm-irix3.h: Delete file.
2437 * config/mips/nm-irix3.h: Delete file.
2438 * config/mips/xm-irix3.h: Delete file.
2439 * config/mips/nm-irix4.h: Delete file.
2440 * config/mips/xm-irix4.h: Delete file.
2441 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2443 2003-09-10 J. Brobecker <brobecker@gnat.com>
2445 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2446 * Makefile.in (hppa-tdep.o): Update dependencies.
2448 2003-09-10 James E Wilson <wilson@specifixinc.com>
2450 * MAINTAINERS: Change my e-mail address. Move to paper trail
2453 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2455 * MAINTAINERS (frv): New ISA entry.
2457 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2459 * frv-tdep.c (dis-asm.h): Include.
2460 * Makefile.in (frv-tdep.o): Update dependencies.
2462 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2464 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2465 Fix typo for high range of floating registers.
2467 2003-09-09 David Carlton <carlton@kealia.com>
2469 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2470 highpc initialization here out of scan_partial_symbols.
2471 (scan_partial_symbols): Restructure into a recursive version,
2472 calling add_partial_namespace and add_partial_enumeration when
2474 (add_partial_namespace): New.
2475 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2477 2003-09-09 Andrew Cagney <cagney@redhat.com>
2479 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2480 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2481 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2482 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2484 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2485 (rs6000_push_dummy_call): Set the "TOC" register.
2487 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2488 methods "max_register_raw_size", "max_register_virtual_size" or
2489 "register_virtual_size".
2491 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2493 * MAINTAINERS: Update my e-mail address.
2495 2003-09-09 Andrew Cagney <cagney@redhat.com>
2497 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2498 (rs6000_push_dummy_call): Store the struct return address.
2499 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2501 2003-09-09 Andrew Cagney <cagney@redhat.com>
2503 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2504 "ppc_sysv_abi_push_arguments".
2505 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2506 "ppc_sysv_abi_push_arguments".
2507 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2508 instead of "push_arguments".
2509 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2511 2003-09-09 Andrew Cagney <cagney@redhat.com>
2513 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2514 instead of CALL_DUMMY_ADDRESS.
2516 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2518 * p-lang.c: Eliminate "register".
2520 * expprint.c: Ditto.
2523 * language.c: Ditto.
2526 * scm-lang.c: Ditto.
2527 * objc-lang.c: Ditto.
2529 2003-09-09 Nick Clifton <nickc@redhat.com>
2531 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2533 2003-09-04 Andrew Cagney <cagney@redhat.com>
2535 * avr-tdep.c: Include "dis-asm.h".
2536 * cris-tdep.c: Include "dis-asm.h".
2537 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2538 instead of corresponding typedef.
2539 * h8300-tdep.c: Include "dis-asm.h".
2540 * ia64-tdep.c: Include "dis-asm.h".
2541 * i386-tdep.c: Include "dis-asm.h".
2542 (i386_print_insn): Use "struct disassemble_info" instead of
2543 corresponding typedef.
2544 * m68k-tdep.c: Include "dis-asm.h".
2545 * mcore-tdep.c: Include "dis-asm.h".
2546 * mips-tdep.c: Include "dis-asm.h".
2547 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2548 instead of corresponding typedef.
2549 * ns32k-tdep.c: Include "dis-asm.h".
2550 * s390-tdep.c: Include "dis-asm.h".
2551 * sparc-tdep.c: Include "dis-asm.h".
2552 * vax-tdep.c: Include "dis-asm.h".
2553 * v850-tdep.c: Include "dis-asm.h".
2554 * mn10300-tdep.c: Include "dis-asm.h".
2555 * rs6000-tdep.c: Include "dis-asm.h".
2556 * xstormy16-tdep.c: Include "dis-asm.h".
2557 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2558 print_insn_xstormy16.
2559 * Makefile.in (v850-tdep.o): Update dependencies.
2560 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2561 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2562 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2563 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2564 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2565 (gdbarch_h): Remove $(dis_asm_h).
2566 * disasm.c: Include "dis-asm.h".
2567 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2568 corresponding typedef.
2569 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2570 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2571 * gdbarch.sh: Do not include "dis-asm.h".
2572 (struct disassemble_info): Declare opaque.
2573 (TARGET_PRINT_INSN): Update declaration.
2574 * gdbarch.h, gdbarch.c: Re-generate.
2576 2003-09-08 Andrew Cagney <cagney@redhat.com>
2578 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2579 CALL_DUMMY_ADDRESS, change to a predicate.
2580 * gdbarch.h, gdbarch.c: Re-generate.
2581 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2582 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2583 * infcall.c (call_function_by_hand): Ditto.
2584 * sparc-tdep.c (sparc_push_return_address): Ditto.
2585 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2586 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2587 CALL_DUMMY_ADDRESS with entry_point_address.
2588 * v850-tdep.c (v850_push_return_address): Ditto.
2589 * s390-tdep.c (s390_push_return_address): Ditto.
2590 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2591 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2592 * mcore-tdep.c (mcore_push_return_address): Ditto.
2593 * cris-tdep.c (cris_push_return_address): Ditto.
2594 * arm-tdep.c (arm_push_return_address): Ditto.
2596 2003-09-08 Andrew Cagney <cagney@redhat.com>
2598 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2599 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2600 and REG_UNMODIFIED to REG_SAME_VALUE.
2601 (execute_cfa_program): Update.
2602 (dwarf2_frame_cache): Update. Initialize table to
2603 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2605 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2607 2003-09-08 Andrew Cagney <cagney@redhat.com>
2609 * gnu-nat.c: Remove "inline" function attribute.
2610 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2612 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2614 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2617 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2619 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2620 (frame_extra_info): Rename this struct to frv_unwind_cache.
2621 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2622 Add fields ``prev_sp'' and ``base''.
2623 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2624 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2625 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2627 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2628 Revise all callers. Fill in the unwind cache argument and make
2629 other adjustments to account for new frame mechanisms.
2630 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2631 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2632 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2633 (frv_frame_unwind, frv_frame_base): New structs.
2634 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2635 additional arguments expected by this method and adjust function
2637 (frv_gdbarch_init): Remove calls to the following functions:
2638 set_gdbarch_deprecated_init_frame_pc(),
2639 set_gdbarch_deprecated_saved_pc_after_call(),
2640 set_gdbarch_deprecated_frame_chain(),
2641 set_gdbarch_deprecated_frame_saved_pc(),
2642 set_gdbarch_deprecated_frame_init_saved_regs(),
2643 set_gdbarch_deprecated_push_arguments(),
2644 set_gdbarch_deprecated_push_return_address(),
2645 set_gdbarch_deprecated_pop_frame(),
2646 set_gdbarch_deprecated_call_dummy_words(),
2647 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2648 set_gdbarch_deprecated_init_extra_frame_info(),
2649 set_gdbarch_deprecated_dummy_write_sp(), and
2650 set_gdbarch_deprecated_pc_in_call_dummy().
2651 Add calls to the following functions:
2652 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2653 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2654 frame_base_set_default().
2655 * Makefile.in (frv-tdep.o): Update dependencies.
2657 2003-09-09 Mark Kettenis <kettenis@gnu.org>
2659 * dwarf2-frame.c (read_encoded_value): Add support for
2660 DW_EH_PE_aligned encoding.
2662 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2664 * infrun.c (normal_stop): Don't print a message if the inferior
2667 2003-09-08 Jim Blandy <jimb@redhat.com>
2669 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2670 * dbxread.c: #include "gdb_assert.h".
2671 (read_dbx_symtab): If the objfile has no .data section, use the
2672 section index for the .bss section instead.
2674 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2676 * frame.c (deprecated_safe_get_selected_frame): New function.
2677 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2678 * findvar.c (read_var_value): Call it.
2680 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2682 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2683 (sh64-tdep.o): Add dependencies.
2684 * configure.tgt: Add FIXME to sh-*-linux*.
2685 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2686 (sh_gdbarch_init): Always set correct sh_show_regs function
2687 pointer. Call sh64_gdbarch_init() if machine type is sh5.
2688 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2689 * sh64-tdep.c: New file, containing all sh64 related code from
2691 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2692 * config/sh/linux.mt (TDEPFILES): Ditto.
2693 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2694 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2695 * config/sh/wince.mt (TDEPFILES): Ditto.
2697 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2699 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2700 (stop_wait_callback): Handle !lp->signalled also.
2701 (lin_lwp_has_pending, flush_callback): New functions.
2702 (lin_lwp_wait): Call flush_callback.
2703 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2704 (linux_proc_pending_signals): New function.
2705 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2707 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2709 From Nick Kelsey <nickk@ubicom.com>:
2710 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2711 when the stop PC is at the beginning of a function also.
2713 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2715 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2716 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2718 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2720 * sol-thread.c: Include "gdb_string.h".
2722 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2724 * gcore.c: Reorder include files in alphabetical order. Include
2725 "gdb_assert.h". Various coding style fixes.
2726 (derive_stack_segment, derive_heap_segment): Replace check for
2727 non-null BOTTOM and TOP with gdb_assert.
2728 (derive_heap_segment): Replace check for successful creation of
2729 ZERO with gdb_assert.
2730 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2732 2003-09-04 Andrew Cagney <cagney@redhat.com>
2734 * thread-db.c (verbose_dlsym): New function.
2735 (thread_db_load): Use verbose_dlsym
2736 (thread_db_new_objfile): Print that libthread_db was loaded, and
2737 that thread debugging was enabled.
2739 2003-09-04 Andrew Cagney <cagney@redhat.com>
2741 * configure.tgt: Add "mips64*-*-*" target. Delete
2742 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2743 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2744 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2745 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2746 mips*-sony-*, and mips64*-*-elf* targets.
2747 * config/mips/embedl.mt: Delete file.
2748 * config/mips/embedl64.mt: Delete file.
2749 * config/mips/mips.mt: Delete file.
2750 * config/mips/mips64.mt: Delete file.
2751 * config/mips/tm-embed.h: Delete file.
2752 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2753 * config/mips/embed64.mt: Delete out-of-date comment.
2755 2003-09-04 Andrew Cagney <cagney@redhat.com>
2757 * hppa-tdep.c (hppa_gdbarch_init): Set
2758 "have_nonsteppable_watchpoint".
2759 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2760 * mips-tdep.c (mips_dump_tdep): Do not print
2761 HAVE_NONSTEPPABLE_WATCHPOINT.
2762 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2763 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2764 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2765 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2767 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2769 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2770 unused code. Add comment.
2772 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2774 * breakpoint.c (watchpoint_check): Check for pc being in an
2775 epilogue if watchpoint frame couldn't be found.
2777 2003-09-04 Andrew Cagney <cagney@redhat.com>
2779 * Makefile.in: Re-generate all dependencies.
2781 2003-09-03 Andrew Cagney <cagney@redhat.com>
2783 * arch-utils.h (legacy_print_insn): Delete declaration.
2784 * arch-utils.c (legacy_print_insn): Delete function.
2785 * disasm.c (deprecated_tm_print_insn_info): Delete.
2786 (_initialize_disasm): Delete function, contained code initializing
2787 deprecated_tm_print_insn_info.
2788 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2789 (deprecated_tm_print_insn_info): Delete.
2790 (TARGET_PRINT_INSN): Do not provide a default.
2791 * gdbarch.h, gdbarch.c: Re-generate.
2793 2003-09-03 Andrew Cagney <cagney@redhat.com>
2795 * disasm.c (fprintf_disasm): New function.
2796 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2797 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2798 reverts 2003-08-14 change.
2799 (_initialize_disasm): Call "init_disassemble_info", instead of
2800 INIT_DISASSEMBLE_INFO_NO_ARCH.
2802 2003-09-03 Michael Snyder <msnyder@redhat.com>
2804 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2806 2003-09-03 Andrew Cagney <cagney@redhat.com>
2808 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2809 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2810 * symfile.c (syms_from_objfile): Update.
2811 (reread_symbols): `Update
2812 * exec.c (exec_file_attach): Update.
2813 (exec_file_attach): Update.
2814 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2816 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2818 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2820 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2822 (arm_get_cache): Delete macro.
2823 (struct arm_prologue_cache): Update comments. Make saved_regs into
2824 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2826 (thumb_scan_prologue): Update for cache changes. Don't call
2827 DEPRECATED_PC_IN_CALL_DUMMY.
2828 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2829 argument and use it in desperation search for our prologue. Do not
2830 search past the specified PC.
2831 (arm_make_prologue_cache): Simplify.
2833 (arm_prologue_this_id, arm_prologue_prev_register)
2834 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2835 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2836 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2837 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2838 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2840 (arm_frame_chain_valid, arm_find_callers_reg)
2841 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2842 (arm_pop_frame): Delete obsolete methods.
2843 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2845 (arm_gdbarch_init): Update for new frame methods. Register prologue
2846 and sigtramp unwinders. Set the default frame base method.
2848 * Makefile.in (arm-tdep.o): Update dependencies.
2849 * varobj.c (find_frame_addr_in_frame_chain): Call
2850 get_frame_base_address.
2851 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2853 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2855 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2856 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2857 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2858 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2859 Take NEXT_FRAME and CACHE arguments. Call
2860 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2861 Set unwound_pc in CACHE instead of modifying the frame argument.
2862 Don't bother checking the frame type when looking for sigtramp
2864 (arm_make_prologue_cache, arm_frame_chain)
2865 (arm_init_extra_frame_info): New functions.
2867 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2869 * arm-tdep.c (arm_get_cache): Define.
2870 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2871 unwound_sp, unwound_pc, and saved_regs.
2872 (thumb_scan_prologue): Take a cache instead of the frame.
2873 (arm_scan_prologue): Likewise.
2874 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2875 instead of a temporary frame.
2876 (arm_init_extra_frame_info): Allocate and use a cache.
2877 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2879 2003-09-03 Andrew Cagney <cagney@redhat.com>
2881 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2882 * config/mips/wince.mt (TM_CLIBS): Ditto.
2883 * config/sh/wince.mt (TM_CLIBS): Ditto.
2884 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2885 * config/sparc/sp64.mt (CC): Delete.
2887 2003-09-03 Andrew Cagney <cagney@redhat.com>
2889 * defs.h: Do not include "arch-utils.h".
2890 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2891 GDB_MULTI_ARCH_PURE.
2892 * configure.in (GDB_MULTI_ARCH): Do not define.
2893 * configure, config.in: Regenerate.
2894 * configure.tgt: Do not set variable "gdb_multi_arch".
2895 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2896 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2897 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2898 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2899 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2900 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2901 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2902 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2903 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2904 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2905 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2906 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2907 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2908 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2909 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2910 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2911 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2912 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2914 2003-08-30 Michael Chastain <mec@shout.net>
2916 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2917 * config/m68k/nm-hp300hpux.h: Delete.
2918 * config/m68k/tm-hp300hpux.h: Delete.
2919 * config/m68k/xm-hp300hpux.h: Delete.
2920 * config/m68k/xm-hp300bsd.h: Delete.
2921 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2922 tm-hp300hpux.h, xm-hp300hpux.h.
2923 * somsolib.c: Remove comment about hp300 shared libraries.
2925 2003-08-31 Mark Kettenis <kettenis@gnu.org>
2927 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2928 Only define PTRACE_GET_THREAD_AREA is not already defined.
2929 Various style fixes in code and comments and some additional
2930 spelling fixes in comments. Move after functions dealing with
2932 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2935 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2936 frame_unwind_register_unsigned instead of
2937 frame_unwind_unsigned_register.
2939 2003-08-30 Mark Kettenis <kettenis@gnu.org>
2941 * configure.in: Search for gethostbyname in libnsl.
2942 * configure: Regenerated.
2944 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2946 * configure.in: Remove redundant AC_MSG_RESULT in check for
2947 uintptr_t in stdint.h.
2948 * configure: Regenerated.
2950 * amd64-nat.h (struct regcache): Add opaque declaration.
2952 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2953 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2954 Change "register array" to "register cache" in comments.
2955 (x86_64_linux_gregset64_reg_offset): New variable.
2956 (GETREGS_SUPPLIES): Remove macro.
2957 (supply_gregset): Call amd64_supply_native_gregset instead of
2958 x86_64_linux_supply_gregset.
2959 (fill_gregset): Rename `regno' to `regnum'. Call
2960 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2961 (store_regs): Rename `regno' to `regnum'.
2962 (store_fpregs): Rename `regno' to `regnum'.
2963 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2964 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2965 Reorganize function a bit.
2966 (store_inferior_registers): Rename `regno' to `regnum'. Use
2967 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2968 Reorganize function a bit.
2969 (_initialize_x86_64_linux_nat): New function.
2970 * config/i386/x86-64linux.mh.
2972 2003-08-29 Andrew Cagney <cagney@redhat.com>
2974 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2975 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2976 (target_remove_watchpoint): Delete macro.
2977 (target_insert_watchpoint): Delete macro.
2978 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2979 (remote_mips_stopped_by_watchpoint): Delete declaration.
2980 (remote_mips_remove_watchpoint): Delete declaration.
2981 (remote_mips_set_watchpoint): Delete declaration.
2982 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2983 * remote-mips.c (_initialize_remote_mips): Set
2984 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2985 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2986 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2987 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2988 (mips_stopped_by_watchpoint): Rename
2989 remote_mips_stopped_by_watchpoint.
2990 (mips_can_hardware_watchpoint): Rename
2991 remote_mips_can_use_hardware_watchpoint, update function
2994 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2996 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2997 USER_DS. We haven't given them a register number yet.
2999 * amd64-nat.h: New file.
3000 * amd64-nat.c: New file.
3001 * amd64fbsd-nat.c: Include "amd64-nat.h".
3002 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3003 (amd64fbsd32_r_reg_offset): New variable.
3004 (supply_gregset): Simply call amd64_supply_native_gregset.
3005 (fill_gregset): Rename `regno' to `regnum'. Simply call
3006 amd64_collect_native_gregset.
3007 (fill_fpregset): Rename `regno' to `regnum'.
3008 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3009 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3010 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3011 `fpregset_t'. Call amd64_supply_native_gregset instead of
3012 supply_gregset. Call x86_64_supply_fxsave instead of
3014 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3015 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3016 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3017 `fpregset_t'. Call amd64_collect_native_gregset instead of
3018 fill_gregset. Call x86_64_collect_fxsave instead of
3020 (_initialize_am64fbsd_nat): Initialize
3021 amd64_native_gregset32_reg_offset and
3022 amd64_native_gregset64_reg_offset.
3023 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3025 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3026 null pointer. Fix typo in comment.
3028 * regcache.c (supply_register): Reimplement to call
3029 regcache_raw_supply.
3030 (regcache_collect): Reimplement by calling regcache_raw_collect.
3032 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3034 * regcache.c (register_buffer): Consitify first argument.
3035 (regcache_raw_supply, regcache_raw_collect): New
3038 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3040 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3041 by Nathan J. Williams.
3043 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3045 * lin-lwp.c (wait_lwp): New function, copied from
3046 stop_wait_callback. Clean up.
3047 (stop_wait_callback): Use wait_lwp.
3049 2003-08-28 Andrew Cagney <cagney@redhat.com>
3051 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3052 flavour and disassembler options.
3053 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3054 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3055 deprecated_tm_print_insn_info.
3057 2003-08-27 Andrew Cagney <cagney@redhat.com>
3059 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3060 Use target_read_memory.
3061 (s390_get_frame_info): Update. Do not reference
3062 deprecated_tm_print_insn_info.
3063 (s390_check_function_end, s390_is_sigreturn): Ditto.
3065 2003-08-27 Andrew Cagney <cagney@redhat.com>
3067 * Makefile.in (cris-tdep.o): Update dependencies.
3068 * cris-tdep.c: Include "gdb_assert.h".
3069 (cris_gdbarch_init): Set print_insn.
3070 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3071 (cris_delayed_get_disassembler): Simplify, directly call the
3072 disassembler returned by cris_get_disassembler.
3073 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3074 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3075 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3076 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3077 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3078 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3079 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3080 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3081 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3082 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3083 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3084 (gdb_print_insn_sparc): Delete function.
3085 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3086 deprecated_tm_print_insn_info.
3087 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3088 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3089 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3090 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3091 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3092 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3093 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3094 (s390_gdbarch_init): Set print_insn.
3096 2003-08-27 Andrew Cagney <cagney@redhat.com>
3098 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3099 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3100 * infcall.c (call_function_by_hand): Convert the entry point
3101 address into a code address.
3103 2003-08-27 Andrew Cagney <cagney@redhat.com>
3105 * dsrec.c: Include "gdb_string.h".
3106 * Makefile.in (dsrec.o): Update dependencies.
3108 2003-08-27 Michael Chastain <mec@shout.net>
3110 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3112 2003-08-27 Andrew Cagney <cagney@redhat.com>
3114 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3115 (alpha_osf1_init_abi): Do not set call_dummy_address.
3117 2003-08-27 David Carlton <carlton@kealia.com>
3119 From Randolph Chung <tausq@debian.org>:
3120 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3121 compiles with -Wformat-nonliteral -Werror.
3123 2003-08-26 Jim Blandy <jimb@redhat.com>
3125 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3126 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3127 bfd_lookup_symbol, since we only want symbols in code sections.
3128 (look_for_base): Pass zero as the SECT_FLAGS argument to
3129 bfd_lookup_symbol, since we're not concerned about which section
3132 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3134 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3135 we are frameless or the return address register is already known.
3137 2003-08-26 Andrew Cagney <cagney@redhat.com>
3139 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3140 in size. Add comments.
3142 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3144 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3145 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3147 2003-08-26 Jason Merrill <jason@redhat.com>
3149 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3150 case out of #ifdef MIPS block.
3152 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3155 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3156 available before calling SECT_OFF_TEXT.
3157 * PROBLEMS: Remove description of java/1322.
3159 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3161 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3162 bof, and nat0-nat127 as pseudo-registers.
3163 (ia64_frame_cache): New struct used to cache frame info.
3164 (ia64_register_reggroup_p): New routine used to override default
3165 register grouping so registers without names are still saved and
3167 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3169 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3170 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3171 (ia64_alloc_frame_cache): New routine to create a new
3173 (examine_prologue): Change prototype to add next_frame pointer.
3174 Assume frameless until otherwise proven. Verify that the cfm for
3175 current frame matches the cfm that should occur for the prologues
3176 alloc insn and if equal, mark as not frameless. At end of routine,
3177 if not frameless, calculate registers for the previous frame and store
3178 in the cache, if a cache is provided.
3179 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3180 and pass 0 for next_frame.
3181 (ia64_store_return_value): Change to use convert_typed_floating()
3182 instead of calling ia64_convert_to_raw().
3183 (ia64_extract_return_value): Change to use convert_typed_floating()
3184 instead of calling ia64_convert_to_virtual().
3185 (ia64_frame_cache): New routine to support new frame model.
3186 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3187 (ia64_frame_sniffer): Ditto.
3188 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3189 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3190 (ia64_sigtramp_frame_prev_register): Ditto.
3191 (ia64_sigtramp_frame_sniffer): Ditto.
3192 (ia64_frame_base_address): Ditto.
3193 (ia64_extract_struct_value_address): Change to issue error message.
3194 (ia64_frame_align): New routine to align sp.
3195 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3196 (ia64_push_arguments): Removed. Logic moved to
3197 ia64_push_dummy_call().
3198 (ia64_push_return_address): Ditto.
3199 (ia64_unwind_dummy_id): New function.
3200 (ia64_unwind_pc): Ditto.
3201 (ia64_convert_register_p): Ditto.
3202 (ia64_register_to_value): Ditto.
3203 (ia64_value_to_register): Ditto.
3204 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3205 (ia64_register_byte, ia64_register_raw_size): Ditto.
3206 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3207 (ia64_saved_pc_after_call): Ditto.
3208 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3209 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3210 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3211 (ia64_register_convert_to_raw): Ditto.
3212 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3213 (ia64_init_extra_frame_info): Ditto.
3214 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3215 (ia64_gdbarch_init): Remove registering of deprecated functions that
3216 are no longer used. Add registration of new gdbarch functions.
3217 Remove registering deprecated_write_sp. Replace
3218 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3219 Delete set_gdbarch_deprecated_register_convertible(),
3220 set_gdbarch_deprecated_register_convert_to_virtual(), and
3221 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3222 set_gdbarch_deprecated_register_size(),
3223 set_gdbarch_deprecated_register_bytes(),
3224 set_gdbarch_pcregnum(),
3225 set_gdbarch_deprecated_register_byte(),
3226 set_gdbarch_deprecated_register_raw_size(),
3227 set_gdbarch_deprecated_max_register_raw_size(),
3228 set_gdbarch_deprecated_register_virtual_size(),
3229 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3230 Replace set_gdbarch_deprecated_extract_return_value() with
3231 set_gdbarch_extract_return_value(). Remove calls to:
3232 set_gdbarch_deprecated_saved_pc_after_call();
3233 set_gdbarch_deprecated_frame_chain(),
3234 set_gdbarch_deprecated_frame_saved_pc(),
3235 set_gdbarch_deprecated_frame_init_saved_regs(),
3236 set_gdbarch_deprecated_get_saved_register(),
3237 set_gdbarch_deprecated_call_dummy_words(),
3238 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3239 set_gdbarch_deprecated_init_extra_frame_info(),
3240 set_gdbarch_deprecated_frame_args_address(),
3241 set_gdbarch_deprecated_frame_locals_address(),
3242 and set_gdbarch_deprecated_dummy_write_sp().
3243 Add set_gdbarch_convert_register_p(),
3244 set_gdbarch_register_to_value(),
3245 set_gdbarch_value_to_register(),
3246 set_gdbarch_push_dummy_call(),
3247 set_gdbarch_frame_align(),
3248 set_gdbarch_unwind_dummy_id(),
3249 set_gdbarch_unwind_pc(),
3250 frame_unwind_append_sniffer(),
3251 frame_unwind_append_sniffer(),
3252 and frame_base_set_default().
3254 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3256 * configure.tgt: Document need for special "mipsisa64" handling.
3257 (mipsisa64*-*-linux64): Handle as target linux64.
3258 (mipsisa64*-*-*): Handle as target embed64.
3260 2003-08-18 Michael Chastain <mec@shout.net>
3262 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3265 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3267 * i387-tdep.h: Update copyright date.
3268 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3270 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3271 CFLAGS games to reflect reality.
3273 2003-08-24 Andrew Cagney <cagney@redhat.com>
3275 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3276 GDB_MULTI_ARCH is always non-zero.
3277 * osabi.c (_initialize_gdb_osabi): Ditto.
3278 (gdbarch_init_osabi): Ditto.
3279 * sparc-tdep.c: Ditto for #if code.
3281 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3283 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3285 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3287 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3288 x86_64_supply_fxsave.
3289 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3290 x86_64_supply_fxsave.
3291 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3292 x86_64_supply_fxsave.
3294 2003-08-23 Andreas Jaeger <aj@suse.de>
3296 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3299 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3301 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3302 i387_supply_register.
3303 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3304 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3306 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3308 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3310 * i386bsd-nat.c (supply_fpregset): Adjust call to
3312 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3313 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3315 (store_inferior_registers): Remove extraneous whitespace. Call
3316 i387_fill_fsave instead of fill_fpregset.
3317 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3318 (supply_fpregset): Likewise.
3319 * i386v4-nat.c (supply_fpregset): Adjust call to
3321 * i386-interix-nat.c (supply_fpregset): Adjust call to
3323 * i386-linux-nat.c (supply_fpregset): Adjust call to
3325 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3326 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3327 i387supply_fsave and i387_supply_fxsave.
3328 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3329 Incorporate code from `i387_supply_register.
3330 (i387_supply_register): Remove.
3331 (i387_supply_fxsave): Add `regnum' argument.
3333 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3335 (i387_supply_register): remove prototype.
3338 2003-08-22 Michael Chastain <mec@shout.net>
3340 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3341 Add lines for files in gdb/testsuite/gdb.cp/* that are
3342 still not 8.3 unique.
3344 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3346 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3347 TYPE_VPTR_FIELDNO is valid.
3349 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3351 * utils.c (set_width_command): Remove prototypes.
3352 (set_screen_size): New prototype.
3353 (init_page_info): Simplify by fetching the screen size from
3354 Readline. Call set_screen_size.
3355 (set_screen_size): New function.
3356 (set_width): Add missing whitespace in comment.
3357 (set_width_command): Call set_screen_size.
3358 (set_height_command): New function.
3359 (initialize_utils): Fix formatting. Make "set height" command
3360 call set_height_command. Remove redundant code that turns off
3361 pagination if output isn't a terminal. Remove redundant call to
3364 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3366 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3367 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3368 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3369 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3371 (sparc64_register_info): Give the reister with number
3372 SPARC64_STATE_REGNUM a name.
3373 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3375 (sparc64_push_dummy_call): Take BIAS into account when checking
3377 (sparc_software_single_step): Remove assertions that check whether
3378 NPC and NNPC were zero.
3379 (sparc_supply_rwindow): Make public. Merge functionality with
3380 sparc64_supply_rwindow.
3381 (sparc_fill_rwindow): Make public. Merge functionality with
3382 sparc64_fill_rwindow.
3383 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3384 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3385 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3386 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3387 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3389 * reggroups.c: Add whitespace after declarations of local
3390 variables in functions.
3392 2003-08-21 Michael Chastain <mec@shout.net>
3394 * gdbtypes.h: Change array bound type from an int to enum.
3396 2003-08-21 Andrew Cagney <cagney@redhat.com>
3398 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3399 * config/sparc/tm-sparc.h: Ditto.
3400 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3402 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3404 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3406 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3407 (register_objfile_data, set_objfile_data, objfile_data): New
3409 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3411 (allocate_objfile): Call objfile_alloc_data.
3412 (free_objfile): Call objfile_free_data.
3413 (struct objfile_data): New.
3414 (struct objfile_data_registration): New.
3415 (struct objfile_data_registry): New.
3416 (objfile_data_registry): New variable.
3417 (register_objfile_data): New function.
3418 (objfile_alloc_data, objfile_free_data): New functions.
3419 (set_objfile_data, objfile_data): New functions.
3420 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3421 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3422 (_initialize_dwarf2_frame): New function and prototype.
3424 2003-08-21 Andrew Cagney <cagney@redhat.com>
3426 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3427 a specific architecture.
3428 * arch-utils.h (set_architecture_from_arch_mach): Delete
3430 (target_architecture_hook): Delete declaration.
3431 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3432 (default_float_format): Assume GDB_MULTI_ARCH.
3433 (default_double_format): Assume GDB_MULTI_ARCH.
3434 (set_endian_from_file): Delete function.
3435 (arch_ok): Delete function.
3436 (set_arch): Delete function.
3437 (set_architecture_from_arch_mach): Delete function.
3438 (set_architecture_from_file): Delete function.
3439 (set_architecture): Assume GDB_MULTI_ARCH.
3440 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3442 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3444 Rewrite FreeBSD/sparc64 native configuration.
3445 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3446 * sparc64fbsd-nat.c: New file.
3447 * sparc64fbsd-tdep.c: New file.
3448 * sparc64-tdep.c sparc64-tdep.h: New files.
3449 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3450 sparc64fbsd-tdep.o): New dependencies.
3451 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3452 and sparc64fbsd-tdep.c.
3453 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3454 * config/sparc/fbsd.mh: Remove copyright notice.
3455 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3457 * config/sparc/fbsd.mt: Remove copyright notice.
3458 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3459 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3460 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3461 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3462 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3463 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3464 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3465 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3467 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3468 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3470 2003-08-21 Michael Chastain <mec@shout.net>
3472 * symtab.h: Add doco on the space critical structures and
3473 some measurements of space usage.
3475 2003-08-21 Michael Snyder <msnyder@redhat.com>
3477 * tracepoint.c (trace_dump_command): Trace break address
3478 is subject to DECR_PC_AFTER_BREAK.
3479 (set_traceframe_context): Make "trace_line" an int.
3480 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3482 2003-08-20 Michael Snyder <msnyder@redhat.com>
3484 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3485 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3486 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3488 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3489 functions, replace sh_push_dummy_call.
3490 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3492 2003-08-20 Michael Chastain <mec@shout.net>
3494 * gdbtypes.h (struct main_type): Rearrange to save space.
3496 2003-08-20 Michael Snyder <msnyder@redhat.com>
3498 * trad-frame.c: Comment typo fix.
3500 2003-08-20 Michael Snyder <msnyder@redhat.com>
3501 Kevin Buettner <kevinb@redhat.com>
3503 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3504 (frv_frame_init_saved_regs): Add declaration.
3505 (frame_extra_info): Add new field ``saved_regs''.
3506 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3507 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3508 Update frame related code.
3509 (frv_extract_struct_value_address): Adjust formatting.
3510 * Makefile.in (frv-tdep.o): Update dependencies.
3511 * config/frv/tm-frv.h (target_insert_watchpoint)
3512 (target_remove_watchpoint, target_insert_hw_breakpoint)
3513 (target_remove_hw_breakpoint): Delete these macros.
3514 (remote_insert_watchpoint, remote_remove_watchpoint)
3515 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3518 2003-08-20 Michael Chastain <mec@shout.net>
3520 * defs.h (ENUM_BITFIELD): New macro.
3521 * symtab.h (ENUM_BITFIELD): Use it.
3522 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3524 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3526 * MAINTAINERS (write after approval): Add myself.
3528 2003-08-18 Andrew Cagney <cagney@redhat.com>
3530 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3531 * gdbarch.h, gdbarch.c: Re-generate.
3532 * infcall.c (call_function_by_hand): Adjust the SP by
3533 frame_red_zone_size before allocating any stack space.
3534 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3535 * x86-64-tdep.c (x86_64_frame_align): New function.
3536 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3538 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3539 Remove code adjusting SP so that it skips over the Red Zone.
3541 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3543 * NEWS (New native configurations): Mention FreeBSD/amd64.
3545 2003-08-18 Andrew Cagney <cagney@redhat.com>
3547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3548 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3550 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3552 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3554 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3556 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3558 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3560 * i386-linux-nat.c: Include "linux-nat.h".
3561 (child_post_startup_inferior): New function.
3563 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3565 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3566 at the start of a frameless function. This probably fixes PR
3569 2003-08-17 Michael Chastain <mec@shout.net>
3571 * symfile.c (find_sym_fns): Remove special case for apollo target.
3573 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3575 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3576 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3577 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3578 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3579 (linux_supports_tracevforkdone): New function.
3580 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3582 (child_follow_fork): Handle vfork.
3583 (linux_handle_extended_wait): Likewise. Also handle exec.
3584 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3585 * NEWS: Mention fork tracing.
3587 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3589 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3591 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3593 * Makefile.in (i386-linux-nat.o): Update dependencies.
3594 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3595 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3596 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3597 * i386-linux-nat.c: Include "linux-nat.h".
3598 (child_post_startup_inferior): New function.
3599 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3600 * infptrace.c (kill_inferior): Wrap in #ifdef.
3601 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3602 attaching to each LWP.
3603 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3604 (init_lin_lwp_ops): Fill in some more operations.
3605 * linux-nat.h (linux_enable_event_reporting)
3606 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3608 * linux-nat.c (linux_enable_event_reporting): New function.
3609 (child_post_attach, linux_child_post_startup_inferior)
3610 (child_post_startup_inferior, child_follow_fork)
3611 (linux_handle_extended_wait, kill_inferior): New functions.
3613 2003-08-16 Andrew Cagney <cagney@redhat.com>
3615 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3616 * gdbarch.h, gdbarch.c: Re-generate.
3618 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3620 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3622 2003-08-16 Andrew Cagney <cagney@redhat.com>
3624 * NEWS: Mention that "set prompt-escape-char" was deleted.
3625 * top.c (get_prompt_1): Delete function.
3626 (gdb_prompt_escape):
3627 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3628 prompt-escape-char" command.
3629 (MAX_PROMPT_SIZE): Delete macro.
3630 (get_prompt): Simplify, do not call get_prompt_1.
3632 2003-08-16 Andrew Cagney <cagney@redhat.com>
3634 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3635 -Werror. -Wformat-nonliteral problems.
3637 2003-08-15 J. Brobecker <brobecker@gnat.com>
3639 Further multiarching work mostly for hppa64-*-hpux11:
3640 * hppa-tdep.h: New file.
3641 * hppa-tdep.c: #include hppa-tdep.c.
3642 (hppa32_num_regs): Renamed from hppa_num_regs.
3643 (hppa64_num_regs): New constant.
3644 (hppa64_call_dummy_breakpoint_offset): New constant.
3645 (hppa32_call_dummy_length): New constant.
3646 (hppa64_call_dummy_length): New constant.
3647 (hppa32_stack_align): Make name 32bit explicit.
3648 (hppa32_register_virtual_type): Likewise.
3649 (hppa32_extract_return_value): Likewise.
3650 (hppa32_use_struct_convention): Likewise.
3651 (hppa32_store_return_value): Likewise.
3652 (hppa64_register_virtual_type): New function.
3653 (hppa64_extract_return_value): New function.
3654 (hppa64_use_struct_convention): New function.
3655 (hppa64_store_return_value): New function.
3656 (hppa_frame_locals_address): Remove declaration, function does
3658 (hppa_register_byte): Add support for PA64 ABI.
3659 (hppa_gdbarch_init): Add support for PA64 ABI.
3660 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3661 Make name 32bit explicit.
3662 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3663 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3664 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3665 (hppa64_hpux_frame_base_before_sigtramp): New function.
3666 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3667 * config/pa/tm-hppa64.h: Remove macros that are no longer
3668 necessary now that the gdbarch vector is properly setup.
3669 Transform some macros into function calls. Some minor cleanup.
3670 * config/pa/tm-hppah.h: Update function calls in macros
3671 following the function renaming in hppa-hpux-tdep.c.
3672 * Makefile.in (hppa_tdep_h): New variable.
3673 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3675 2003-08-14 Michael Snyder <msnyder@redhat.com>
3677 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3679 2003-08-13 J. Brobecker <brobecker@gnat.com>
3681 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3682 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3685 2003-08-13 Michael Snyder <msnyder@redhat.com>
3687 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3688 (frv_saved_pc_after_call): Use deprecated ftype.
3689 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3690 (frv_remote_translate_xfer_address): Remove.
3691 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3693 2003-08-13 J. Brobecker <brobecker@gnat.com>
3695 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3696 initialization after the common gdbarch initialization, not before.
3698 2003-08-13 J. Brobecker <brobecker@gnat.com>
3700 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3701 (ADDR_BITS_REMOVE): Remove, redundant.
3703 2003-08-13 J. Brobecker <brobecker@gnat.com>
3705 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3706 gdbarch method to clear the 2 low bits of text addresses.
3708 2003-08-12 Andrew Cagney <cagney@redhat.com>
3710 * Makefile.in (dsrec.o): Update dependencies.
3711 * dsrec.c: Include "gdb_assert.h".
3712 (make_srec): Use snprintf instead of sprintf, use a literal format
3715 2003-08-12 Andrew Cagney <cagney@redhat.com>
3717 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3718 FRAME_OBSTACK_ZALLOC.
3720 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3722 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3725 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3727 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3728 amd64fbsd_sc_reg_offset): Add extern declarations.
3729 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3732 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3734 * MAINTAINERS (write after approval): Update my mail address.
3736 2003-08-10 Andrew Cagney <cagney@redhat.com>
3738 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3740 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3742 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3743 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3744 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3745 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3746 i386bsd_sc_reg_offset): Add extern declarations.
3747 * i386obsd-nat.c: Include "i386-tdep.h"
3748 (_initialize_i386obsd_nat): Remove extern declarations.
3749 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3751 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3754 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3755 instead of frame_read_register.
3756 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3757 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3759 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3760 instead of frame_unwind_unsigned_register. Use
3761 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3762 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3763 instead of read_register. Use builtin_type_void_data_ptr instead
3764 of builtin_type_void_func_ptr when extracting the address of the
3766 (i386_extract_return_value, i386_store_return_value,
3767 i386_pseudo_register_read, i386_pseudo_register_write): Use
3768 register_size instead REGISTER_RAW_SIZE.
3770 2003-08-10 Andrew Cagney <cagney@redhat.com>
3772 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3773 sprintf. Make "name" constant.
3775 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3777 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3778 instead of frame_read_register.
3779 (i387_print_float_info): Use get_frame_register and
3780 get_frame_register_unsigned instead of frame_register_read.
3782 * i386fbsd-nat.c: Include "i386-tdep.h".
3783 (child_resume): Make `eflags' an ULONGEST. Use
3784 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3785 instead of register_read and register_write.
3787 * i386bsd-nat.c (fetch_inferior_registers,
3788 store_inferior_registers): Don't use && at the end of a line.
3789 (_initialize_i386bsd_nat): Fix typo.
3791 * frame.c (_initialize_frame): Add missing backslash.
3793 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3794 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3795 and supply_register instead of manipulating the register buffer
3798 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3799 * config/i386/nm-i386sol2.h
3800 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3802 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3803 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3804 instructions that GCC likes to mingle into the prologue. Fixes
3805 gdb/1253 and gdb/1255.
3807 2003-08-09 Andrew Cagney <cagney@redhat.com>
3810 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3811 * command.h (add_setshow_uinteger_cmd): Declare.
3812 * frame.c (set_backtrace_cmd): New function.
3813 (show_backtrace_cmd): New function.
3814 * frame.c (_initialize_frame): Replace "set/show
3815 backtrace-below-main" with "set/show backtrace past-main". Add
3816 command "set/show backtrace limit".
3817 (backtrace_past_main): Rename "backtrace_below_main".
3818 (backtrace_limit): New variable.
3819 (get_prev_frame): Update. Check the backtrace_limit.
3821 2003-08-09 Andrew Cagney <cagney@redhat.com>
3823 * defs.h (xstrprintf): Declare.
3824 * utils.c (xstrprintf): New function.
3825 * breakpoint.c (insert_breakpoints): Replace sprintf and
3826 non-literal format strings, with xstrprintf and cleanups.
3827 (delete_breakpoint,breakpoint_re_set): Ditto.
3828 (commands_command, insert_breakpoints): Ditto.
3829 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3830 (break_at_finish_command_1): Ditto.
3832 2003-08-09 Andrew Cagney <cagney@redhat.com>
3834 * MAINTAINERS (language support): List Adam Fedor as Objective C
3837 2003-08-08 J. Brobecker <brobecker@gnat.com>
3839 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3840 are now multiarched.
3842 2003-08-08 J. Brobecker <brobecker@gnat.com>
3844 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3845 longer necessary now that hppa64 is partially multiarch'ed.
3847 2003-08-08 Andrew Cagney <cagney@redhat.com>
3849 * interps.c (interp_set): Check for a NULL "old_interp".
3851 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3853 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3854 (install-only): Support DESTDIR.
3855 (uninstall): Likewise.
3856 (install-gdbtk): Likewise.
3858 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
3860 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3861 contains something meaningful at all times.
3863 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
3865 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3867 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3869 * MAINTAINERS (write after approval): Added self.
3871 2003-08-07 Andrew Cagney <cagney@redhat.com>
3873 * inferior.h (AT_SYMBOL): Define.
3874 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3875 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3876 * mips-tdep.c (mips_call_dummy_address): Delete function.
3877 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3878 set call_dummy_address.
3880 2003-08-07 Andrew Cagney <cagney@redhat.com>
3882 * language.c (op_error): Delete function.
3883 (binop_type_check): Delete function.
3884 * language.h (type_op_error, range_op_error): Delete macros.
3885 (op_error): Delete declaration.
3887 2003-08-07 Andrew Cagney <cagney@redhat.com>
3889 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3891 2003-08-07 Michal Ludvig <mludvig@suse.cz>
3893 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3894 (x86_64_push_arguments): Skip the red zone.
3896 2003-08-05 Andrew Cagney <cagney@redhat.com>
3898 * reggroups.c (reggroup_next): Check for the final entry.
3900 2003-08-04 Andrew Cagney <cagney@redhat.com>
3902 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3903 * cli/cli-script.c (define_command): Call query directly, instead
3904 of passing it a buffer.
3905 * ocd.c (ocd_error): Pass error a constant format string.
3906 * remote-mips.c (mips_error): Use fputs_filtered.
3908 * solib-svr4.c (_initialize_svr4_solib): Update
3909 register_gdbarch_data call.
3910 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3912 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3913 (register_gdbarch_data): Delete "free" parameter. Update
3915 * gdbarch.h, gdbarch.c: Re-generate.
3916 * reggroups.c (_initialize_reggroup): Update.
3917 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3918 * frame-base.c (_initialize_frame_base): Update.
3919 * frame-unwind.c (_initialize_frame_unwind): Update.
3920 * user-regs.c (_initialize_user_regs): Update.
3921 * remote.c (_initialize_remote): Update.
3922 * regcache.c (_initialize_regcache): Update.
3924 * regcache.c (xfree_regcache_descr): Delete function.
3925 (_initialize_regcache): Update call to register_gdbarch_data.
3926 (init_regcache_descr, init_legacy_regcache_descr): Use
3927 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3929 * remote.c (free_remote_state): Delete function.
3930 (_initialize_remote): Update register_gdbarch_data.
3931 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3932 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3934 2003-08-04 Andrew Cagney <cagney@redhat.com>
3936 * reggroups.c (struct reggroup_el): Define.
3937 (struct reggroups): Delete field "nr_group". Replace array
3938 "group" with a "first" to "last" linked list.
3939 (reggroups_init): Update. Allocate using gdbarch's obstack.
3940 (reggroups_free): Delete function.
3941 (add_group): Update. Add "el" parameter.
3942 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3943 (default_groups): Update.
3944 (reggroup_next): Replace reggroups.
3945 (reggroups_dump): Update.
3946 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3947 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3948 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3950 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
3952 * Makefile.in (tui-interp.o): Update dependencies.
3954 2003-08-04 David Carlton <carlton@kealia.com>
3956 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3957 to internal_error call.
3958 * source.c (forward_search_command): Add "%s" format argument.
3959 (reverse_search_command): Ditto.
3960 * top.c (quit_confirm): Ditto.
3961 * cli/cli-setshow.c (do_setshow_command): Ditto.
3962 * cp-valprint.c (cp_print_class_method): Replace
3963 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3964 (cp_print_class_member): Ditto.
3965 * event-top.c (command_line_handler): Ditto.
3966 * linux-proc.c (linux_info_proc_cmd): Ditto.
3967 * p-typeprint.c (pascal_type_print_base): Ditto.
3968 * p-valprint.c (pascal_object_print_class_method): Ditto.
3969 (pascal_object_print_class_member): Ditto.
3970 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3971 * remote.c (remote_cisco_section_offsets): Ditto.
3972 * top.c (command_line_input): Ditto.
3973 * utils.c (vwarning,error_stream,quit): Ditto.
3974 * valprint.c (print_floating,print_binary_chars)
3975 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3977 2003-08-04 Andrew Cagney <cagney@redhat.com>
3979 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3981 2003-08-02 Andrew Cagney <cagney@redhat.com>
3983 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3984 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3987 2003-08-02 Andrew Cagney <cagney@redhat.com>
3989 * Makefile.in: Update all dependencies and definitions.
3991 2003-08-02 Adam Fedor <fedor@gnu.org>
3993 * linespec.c (is_objc_method_format): New function
3994 (decode_line_1, locate_first_half): Use it.
3997 2003-08-01 Andrew Cagney <cagney@redhat.com>
3999 * NEWS: Mention that m32r is multi-arch.
4000 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4001 * configure.tgt: Recognize m32r-*-*.
4002 * config/m32r/tm-m32r.h: Delete file.
4003 * config/m32r/m32r.mt: New file.
4004 * m32r-rom.c (m32r_upload_command): Use hostent only when
4005 gethostname succeeds, in order to avoid a compilation
4007 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4010 2003-08-01 Michael Snyder <msnyder@redhat.com>
4012 * sh-tdep.c (sh_frame_align): New gdbarch method.
4013 (sh_gdbarch_init): Set up frame_align method.
4015 2003-07-31 Michael Snyder <msnyder@redhat.com>
4017 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4018 which is already covered by the new frames infrastructure.
4020 2003-07-31 Andrew Cagney <cagney@redhat.com>
4022 * user-regs.c (struct user_reg): Add "next" link.
4023 (struct user_regs): Replace "user" with "first" and "last" links.
4024 (append_user_reg): Add pre-allocated "reg" parameter.
4025 (builtin_user_regs): Provide initial value for "last".
4026 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4027 (user_regs_init): Allocate memory from the gdbarch obstack.
4028 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4029 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4031 (usernum_to_user_reg): New function.
4032 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4033 (value_of_user_reg): Use usernum_to_user_reg.
4034 (user_regs_free): Delete function.
4035 (_initialize_user_regs): Update register_gdbarch_data call.
4037 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4039 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4041 2003-07-30 Michael Snyder <msnyder@redhat.com>
4043 * value.h (value_being_returned): Add a struct_addr argument.
4044 * infcall.c (call_function_by_hand): Pass struct_addr to
4045 value_being_returned.
4046 * infcmd.c (print_return_value): Pass zero as struct_addr.
4047 * values.c (value_being_returned): If struct_addr is passed,
4048 use it instead of trying to recover it from the inferior.
4050 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4052 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4053 the prologue analyzer won't need to attempt to extract the pc
4054 value from the woefully incomplete dummy frame.
4055 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4056 possible. Disable code which modifies the frame.
4058 2003-07-28 Andrew Cagney <cagney@redhat.com>
4060 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4062 (annotate_breakpoints_table, annotate_record): Ditto.
4063 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4064 (annotate_field_name_end, annotate_field_value): Ditto.
4065 (annotate_field_end, annotate_frame_source_begin): Ditto.
4066 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4067 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4068 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4069 (annotate_frame_address_end, annotate_frame_address): Ditto.
4070 (annotate_frame_args, annotate_frame_end): Ditto.
4071 (annotate_frame_where, annotate_arg_begin): Ditto.
4072 (annotate_arg_name_end, annotate_arg_value): Ditto.
4073 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4074 (annotate_function_call, annotate_signal_name): Ditto.
4075 (annotate_signal_string, annotate_signal_name_end): Ditto.
4076 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4077 (annotate_value_begin, annotate_value_history_value): Ditto.
4078 (annotate_value_history_end, annotate_value_end): Ditto.
4079 (annotate_display_begin, annotate_display_number_end): Ditto.
4080 (annotate_display_format, annotate_display_expression): Ditto.
4081 (annotate_display_expression_end, annotate_display_value): Ditto.
4082 (annotate_display_end, annotate_array_section_begin): Ditto.
4083 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4084 (annotate_elt, annotate_array_section_end): Ditto.
4086 2003-07-28 Andrew Cagney <cagney@redhat.com>
4088 * regcache.c (struct regcache_descr): Update comments on
4090 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4091 sizeof_raw_register_valid_p.
4092 (init_regcache_descr): Set nr_raw_registers and
4093 sizeof_raw_register_valid_p before calling
4094 init_legacy_regcache_descr.
4096 2003-07-28 Andrew Cagney <cagney@redhat.com>
4098 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4101 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4103 * thread.c (info_threads_command): Use get_selected_frame ().
4104 Check that there is at least one non-sentinel frame.
4106 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4108 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4109 (m68hc11_pop_frame): Remove.
4110 (m68hc11_frame_saved_pc): Remove.
4111 (m68hc11_frame_chain): Remove.
4112 (m68hc11_frame_init_saved_regs): Remove.
4113 (m68hc11_init_extra_frame_info): Remove.
4114 (m68hc11_store_struct_return): Remove.
4115 (m68hc11_saved_pc_after_call): Remove.
4117 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4119 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4120 frame unwind information.
4121 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4122 and adapted for frame unwinding.
4123 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4124 (m68hc11_unwind_pc): New function.
4125 (m68hc11_frame_unwind_cache): New function to analyze frames.
4126 (m68hc11_frame_this_id): New function to create new frame struct.
4127 (m68hc11_frame_prev_register): New function to unwind a register from
4129 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4130 (m68hc11_frame_p): New function for the above.
4131 (m68hc11_frame_base_address): New function to return fp of frame.
4132 (m68hc11_frame_args_address): Update for frame.
4133 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4134 (m68hc11_unwind_sp): New function.
4135 (m68hc11_unwind_dummy_id): New function.
4136 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4139 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4141 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4142 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4143 when we are beyond the current pc.
4145 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4147 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4148 from m68hc11_push_arguments.
4149 (m68hc11_push_arguments): Remove.
4150 (m68hc11_push_return_address): Remove.
4151 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4152 handlers; remove deprecated_extra_stack_alignment_needed.
4154 2003-07-27 Andrew Cagney <cagney@redhat.com>
4156 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4157 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4158 REAL_PC and not the pointer.
4159 * hppa-hpux-tdep.c: Include frame.h
4161 2003-07-27 Andrew Cagney <cagney@redhat.com>
4163 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4164 GDB_MULTI_ACH_PARTIAL.
4166 2003-07-27 Andrew Cagney <cagney@redhat.com>
4168 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4169 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4170 operator at start and not end of line.
4171 (decode_prologue): Ditto.
4172 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4173 frame_unwind_register_unsigned instead of
4174 frame_unwind_unsigned_register.
4175 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4177 (m32r_push_dummy_call): Use register_size instead of
4179 (m32r_frame_sniffer): Replace m32r_frame_p.
4180 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4181 * m32r-rom.c (report_transfer_performance): Delete extern
4183 (m32r_load, m32r_upload_command): Use print_transfer_performance
4184 instead of report_transfer_performance.
4185 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4186 / add_show_from_set.
4188 2003-07-26 Andrew Cagney <cagney@redhat.com>
4190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4191 store_return_value and extract_struct_value_address.
4193 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4196 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4197 NULL, default to the section containing PC.
4199 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4201 * NEWS: Mention "regs" deprecated for m68hc11 too.
4203 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4204 (m68hc11_print_register): New function to print out one register.
4205 (m68hc11_print_registers_info): New function to print registers.
4206 (show_regs): Deprecate and use the above.
4207 (m68hc11_gdbarch_init): Install the print_registers_info.
4209 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4211 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4212 that we have a SIGTRAP before returning non-zero.
4214 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4215 Elena Zannoni <ezannoni@redhat.com>
4217 * linespec.c (decode_line_2): Avoid crash if
4218 find_function_start_sal() returns empty record.
4220 2003-07-23 Andreas Schwab <schwab@suse.de>
4222 * ia64-tdep.c (ia64_print_insn): New function.
4223 (ia64_gdbarch_init): Set print_insn to it.
4224 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4225 deprecated_tm_print_insn_info.
4227 2003-07-22 Michael Snyder <msnyder@redhat.com>
4229 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4230 handle 8-bit returns (long long).
4231 (h8300h_extract_return_value): Ditto.
4232 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4234 2003-07-22 Andrew Cagney <cagney@redhat.com>
4236 * gdbarch.c Include "gdb_obstack.h".
4237 (struct gdbarch): Add an "obstack".
4238 (alloc_gdbarch_data): Allocate the gdbarch data using
4239 GDBARCH_OBSTACK_CALLOC.
4240 (free_gdbarch_data): Delete function.
4241 (gdbarch_obstack_zalloc): New function.
4242 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4243 Assert that the architecture is not initialized.
4244 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4245 vector from the obstack.
4246 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4247 architecture obstack.
4248 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4249 (set_gdbarch_data): Assert that the data is not initialized.
4250 (struct gdbarch_data): Delete member "free".
4251 (register_gdbarch_data): Do not initialize "free".
4252 * gdbarch.h, gdbarch.c: Re-generate.
4254 2003-07-22 Andrew Cagney <cagney@redhat.com>
4256 * configure.in (build_warnings): Add -Wformat-nonliteral.
4257 * configure: Re-generate.
4259 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4261 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4263 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4265 * findvar.c (read_var_value): Remove case for thread local storage
4266 variables. It is now entirely handled by the dwarf2 location
4268 * printcmd.c (address_info): Ditto.
4269 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4271 (struct symbol): Remove objfile field, which was used by
4272 LOC_THREAD_LOCAL_STATIC only.
4273 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4274 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4275 usage of objfile pointer.
4276 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4277 thread local variables.
4278 Add include of objfiles.h.
4279 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4281 * Makefile.in (dwarf2loc.o): Update dependencies.
4283 2003-07-22 Andrew Cagney <cagney@redhat.com>
4285 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4287 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4288 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4289 (struct value): Add opaque declaration.
4290 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4292 2003-07-21 Andrew Cagney <cagney@redhat.com>
4294 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4295 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4297 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4299 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4300 regcache_cooked_read_unsigned instead of read_register.
4301 (m68hc11_saved_pc_after_call): Likewise.
4302 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4303 instead of write_register.
4304 (m68hc11_register_type): New function.
4305 (m68hc11_register_virtual_type): Remove.
4306 (m68hc11_store_return_value): Convert to use the regcache.
4307 (m68hc11_extract_struct_value_address): Likewise.
4308 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4309 m68hc11_register_type; undeprecate store_return_value and
4310 extract_struct_value_address.
4312 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4314 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4315 and translate to use regcache.
4316 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4318 2003-07-18 Andrew Cagney <cagney@redhat.com>
4320 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4321 * gdbarch.h, gdbarch.c: Re-generate.
4322 * i386-tdep.c (i386_gdbarch_init): Do not set
4323 DWARF2_BUILD_FRAME_INFO.
4324 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4326 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4327 DWARF2_BUILD_FRAME_INFO.
4329 2003-07-18 Andrew Cagney <cagney@redhat.com>
4331 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4332 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4334 2003-07-18 Andrew Cagney <cagney@redhat.com>
4336 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4337 frame_unwind_address_in_block, instead of frame_pc_unwind.
4338 (dwarf2_frame_cache): Ditto.
4340 2003-07-18 Andrew Cagney <cagney@redhat.com>
4342 * user-regs.h (struct gdbarch): Declare opaque.
4343 * ui-out.h (struct ui_file): Declare opaque.
4344 * dwarf2-frame.h (struct frame_info): Declare opaque.
4346 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4348 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4350 (procfs_meminfo): Change strerror to safe_strerror.
4351 (procfs_can_run): Remove K&R badness.
4353 2003-07-17 Michael Snyder <msnyder@redhat.com>
4355 * remote-sim.c: Comment typo fix.
4357 2003-07-17 Andrew Cagney <cagney@redhat.com>
4359 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4361 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4362 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4363 GDB_MULTI_ARCH_PARTIAL.
4365 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4367 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4368 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4369 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4371 2003-07-16 Theodore A. Roth <troth@openavr.org>
4373 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4375 (avr_frame_unwind_cache): Don't unwind FP for main.
4377 Save the computed prev_sp.
4378 (avr_saved_regs_unwinder): Remove function.
4379 (avr_frame_prev_register): Use PC unwind logic from
4380 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4382 2003-07-16 Andrew Cagney <cagney@redhat.com>
4384 * frame-base.h (frame_base_p_ftype): Delete definition.
4385 (frame_base_append_predicate): Delete declaration.
4386 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4387 (frame_unwind_append_predicate): Delete declaration.
4388 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4389 (append_predicate): Delete parameter "p".
4390 (frame_unwind_append_predicate): Delete function.
4391 (frame_unwind_append_sniffer): Update call to append_predicate.
4392 (frame_unwind_free): Delete function.
4393 (_initialize_frame_unwind): Pass NULL as "free" to
4394 register_gdbarch_data.
4395 (frame_unwind_init): Append the dummy_frame_sniffer.
4396 (frame_unwind_find_by_frame): Simplify.
4397 * frame-base.c (struct frame_base_table): Delete field "p".
4398 (append_predicate): Delete parameter "p".
4399 (frame_base_append_predicate): Delete function.
4400 (frame_base_append_sniffer): Update call to append_predicate.
4401 (frame_base_free): Delete function.
4402 (frame_base_find_by_frame): Simplify.
4403 (_initialize_frame_base): Pass NULL as "free" to
4404 register_gdbarch_data.
4405 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4406 (x86_64_sigtramp_frame_sniffer): Replace
4407 "x86_64_sigtramp_frame_p".
4408 (x86_64_init_abi): Set the frame unwind sniffers.
4409 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4410 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4411 (m68k_gdbarch_init): Set the frame unwind sniffers.
4412 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4413 "i386_sigtramp_frame_p".
4414 (i386_frame_sniffer): Replace "i386_frame_p".
4415 (i386_gdbarch_init): Set the frame unwind sniffers.
4416 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4417 (avr_gdbarch_init): Set the frame unwind sniffers.
4418 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4419 "alpha_sigtramp_frame_p"
4420 (alpha_heuristic_frame_sniffer): Replace
4421 "alpha_heuristic_frame_p".
4422 (alpha_gdbarch_init): Set the frame unwind sniffers.
4423 (alpha_dwarf2_init_abi): Ditto.
4424 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4425 "alpha_debug_frame_p".
4426 (alpha_mdebug_frame_base_sniffer): Replace
4427 "alpha_mdebug_frame_base_p".
4428 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4429 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4430 (d10v_gdbarch_init): Set the frame unwind sniffer.
4431 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4432 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4433 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4434 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4435 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4436 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4438 2003-07-16 Michael Snyder <msnyder@redhat.com>
4440 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4441 should go thru sh_dsp_register_sim_regno, else the dsp regs
4442 will not get the right values.
4444 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4446 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4447 deprecated_store_floating by call to store_typed_floating.
4448 (sh_sh4_register_convert_to_raw): Substitute call to
4449 deprecated_extract_floating by call to extract_typed_floating.
4451 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4453 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4455 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4457 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4458 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4459 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4461 (do_pseudo_register): Remove.
4462 (sh_push_dummy_code): New function.
4463 (sh64_store_struct_return): Rename from sh_store_struct_return.
4464 Only called for sh64 now.
4465 (sh_extract_struct_value_address): Regcache'ify.
4466 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4467 and accomodate new tasks.
4468 (sh64_push_return_address): Rename from sh_push_return_address.
4469 Only called for sh64 now.
4470 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4472 (sh3e_sh4_extract_return_value): Regcache'ify.
4473 (sh_default_store_return_value): Ditto.
4474 (sh3e_sh4_store_return_value): Ditto.
4475 (sh_default_register_byte): Remove.
4476 (sh_sh4_register_byte): Remove.
4477 (sh_default_register_raw_size): Remove.
4478 (sh_sh4_register_raw_size): Remove.
4479 (sh_register_virtual_size): Remove.
4480 (sh_sh3e_register_virtual_type): Remove.
4481 (sh_sh3e_register_type): New function.
4482 (sh_sh4_register_virtual_type): Remove.
4483 (sh_sh4_register_type): New function.
4484 (sh_default_register_virtual_type): Remove.
4485 (sh_default_register_type): New function.
4486 (do_fv_register_info): Add parameters to accomodate call from
4487 sh_print_registers_info.
4488 (do_dr_register_info): Ditto.
4489 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4490 Add parameters to accomodate call from sh_print_registers_info.
4491 (sh_do_fp_register): Ditto.
4492 (sh64_do_pseudo_register): Call do_dr_register_info,
4493 do_fv_register_info and sh_do_fp_register with default parameters.
4494 (sh_do_register): Add parameters to accomodate call from
4495 sh_print_registers_info.
4496 (sh_print_register): Ditto.
4497 (sh_print_registers_info): Rename from sh_do_registers_info.
4498 Add parameters to be used as gdbarch_print_registers_info
4499 implementation. Accomodate removed do_pseudo_register function
4501 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4502 function pointer. Call sh_print_register with default parameters.
4503 (sh64_do_registers_info): Call sh_print_registers_info instead of
4504 sh_do_registers_info.
4505 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4506 detection of deprecated vs. non-deprecated functionality.
4507 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4508 function pointer assignments by direct function calls.
4510 2003-07-15 Andrew Cagney <cagney@redhat.com>
4512 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4513 (frame_register_unwind, create_new_frame): Ditto.
4514 (legacy_get_prev_frame, get_frame_type): Ditto.
4515 (get_frame_base_address): Use frame_base_find_by_frame.
4516 (get_frame_locals_address): Use frame_base_find_by_frame.
4517 (get_frame_args_address): Use frame_base_find_by_frame.
4518 * frame-base.h (frame_base_sniffer_ftype): Declare.
4519 (frame_base_append_sniffer): Declare.
4520 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4521 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4522 (frame_base_append_sniffer): New function.
4523 (frame_base_append_predicate): Add a NULL sniffer.
4524 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4525 (struct frame_base_table): Add "sniffer".
4526 (frame_base_free): Free the "sniffer" table.
4527 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4528 (frame_unwind_append_sniffer): Declare.
4529 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4530 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4531 (struct frame_unwind_table): Add "sniffer", delete "middle".
4532 (append_predicate): Add "sniffer" parameter, append the sniffer.
4533 (frame_unwind_init): Update append_predicate call.
4534 (frame_unwind_append_sniffer): New function.
4535 (frame_unwind_append_predicate): Update append_predicate call.
4536 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4538 2003-07-15 Andrew Cagney <cagney@redhat.com>
4540 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4541 before code inhibiting repeated unwind attempts. Add to
4542 commentary on that test's problems.
4543 * blockframe.c (inside_main_func): Look for "main" in the minimal
4545 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4548 2003-07-15 Andrew Cagney <cagney@redhat.com>
4550 * complaints.c (struct explanation): Define.
4551 (struct complaints): Change type of "explanation" to "struct
4553 (symfile_explanations): Convert to a "struct explanation" table.
4554 (vcomplaint): Update.
4556 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4558 * x86-64-linux-nat.c (regmap): Removed.
4559 (supply_gregset, fill_gregset): Call
4560 x86_64_linux_(fill,supply)_gregset functions.
4561 * x86-64-linux-tdep.c (USER_*): New defines.
4562 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4563 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4565 (fetch_core_registers): Ditto.
4566 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4567 * x86-64-linux-tdep.h: New file.
4568 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4570 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4572 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4574 * x86-64-tdep.c (x86_64_store_return_value): Use
4575 regcache_cooked_write_part instead of regcache_cooked_write.
4577 * configure.host: Add x86_64-*-freebsd*.
4578 * configure.tgt: Add x86_64-*-freebsd*.
4579 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4580 * amd64fbsd-nat.c: New file.
4581 * amd64fbsd-tdep.c: New file.
4582 * config/i386/nm-fbsd64.h: New file.
4583 * config/i386/fbsd64.mh: New file.
4584 * config/i386/fbsd64.mt: New file.
4586 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4588 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4589 `sc_regs_offset' and `sc_fpregs_offset'.
4590 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4591 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4592 (alpha_sigtramp_register_address): Rewrite to use new members of
4593 `struct gdbarch_tdep'.
4594 (alpha_gdbarch_init): Initialize new members of struct
4596 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4597 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4598 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4599 (alphafbsd_pc_in_sigtramp): Implement.
4600 (alphafbsd_sigtramp_offset): New function.
4601 (alphafbsd_sigcontext_addr): New function.
4602 (alphafbsd_init_abi): Initialize signal trampoline related members
4603 of `struct gdbarch_tdep'.
4604 (_initialize_alphafbsd_tdep): Add prototype.
4606 2003-07-11 Theodore A. Roth <troth@openavr.org>
4608 * Makefile.in (install-only): Quote sed expression when generating
4611 2003-07-11 Richard Henderson <rth@redhat.com>
4613 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4614 * dwarf2-frame.c: Include complaints.h.
4615 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4616 variable initialization; return NULL on error.
4617 (decode_frame_entry): New.
4619 2003-07-11 Andrew Cagney <cagney@redhat.com>
4621 * frame.h (frame_address_in_block): Delete declaration.
4622 * blockframe.c (frame_address_in_block): Delete function.
4623 (get_frame_block): Use get_frame_address_in_block.
4624 (block_innermost_frame): Ditto.
4625 * stack.c (print_frame, backtrace_command_1): Ditto.
4627 * frame.h (get_frame_address_in_block): Declare.
4628 (frame_unwind_address_in_block): Declare.
4629 * frame.c (frame_unwind_address_in_block): New function.
4630 (get_frame_address_in_block): New function.
4632 2003-07-10 Andrew Cagney <cagney@redhat.com>
4634 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4635 pre-default. Note: re-generate has no effect.
4637 2003-07-10 Andrew Cagney <cagney@redhat.com>
4639 * gdbarch.sh: When a variable, but not a function, compare against
4640 0. Fix problem in previous patch.
4641 * gdbarch.c: Re-generate.
4643 2003-07-10 Andrew Cagney <cagney@redhat.com>
4645 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4646 functions against NULL, not 0.
4647 * gdbarch.c: Re-generate.
4649 2003-07-10 Fred Fish <fnf@ninemoons.com>
4651 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4652 null string instead of a null pointer.
4653 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4655 2003-07-09 Michael Snyder <msnyder@redhat.com>
4657 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4659 2003-07-09 Mark Kettenis <kettenis@gnu.org>
4661 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4662 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4663 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4664 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4665 * x86-64-tdep.c: ... from here.
4667 2003-07-09 Andreas Schwab <schwab@suse.de>
4669 * m68k-tdep.h (enum struct_return): Define.
4670 (struct gdbarch_tdep): Add struct_return.
4671 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4672 bytes are padded to the right, not to the left. Pass struct value
4673 address in register %a1, not on stack.
4674 (m68k_use_struct_convention): New function.
4675 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4676 struct_return in tdep to pcc_struct_return.
4677 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4680 2003-07-09 Joel Brobecker <brobecker@gnat.com>
4682 * somread.c (som_symfile_offsets): Fix compilation error.
4684 2003-07-09 Andrew Cagney <cagney@redhat.com>
4686 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4687 Add comments about the checks.
4689 2003-07-08 Andrew Cagney <cagney@redhat.com>
4691 * Makefile.in: Make dependency section headers consistent.
4692 (config_h): Move to $BUILD headers section.
4693 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4694 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4695 (ada-exp.tab.c): Move to YACC/LEX section.
4696 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4697 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4699 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4701 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4702 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4703 of strerror with safe_strerror, use ISO C function definitions,
4704 and replace instances of sprintf with snprintf.
4706 2003-07-07 Andrew Cagney <cagney@redhat.com>
4708 * frame.c (get_prev_frame): Enable check for identical frames.
4709 Update comments. Update error messages.
4711 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4713 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4715 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4717 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4718 sort_symtab_syms, no longer necessary.
4720 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4722 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4724 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4726 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4727 (mips_register_byte): Likewise.
4729 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4731 * Makefile.in (sparc_tdep_h): New.
4732 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4733 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4734 * sparc-linux-nat.c: Include "sparc-tdep.h".
4735 * sparc-nat.c: Likewise.
4736 * sparc-tdep.c: Likewise.
4737 * sparc64nbsd-nat.c: Likewise.
4738 * sparcnbsd-nat.c: Likewise.
4739 * sparcnbsd-tdep.c: Likewise.
4740 * sparc-tdep.h: New file.
4741 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4742 and sparc_npc_regnum.
4744 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4746 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4747 (mips_linux_cannot_store_register): List supported instead of
4748 unsupported registers.
4750 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4752 * disasm.c (dump_insns): Separate instructions from addresses.
4754 2003-07-07 Andreas Schwab <schwab@suse.de>
4756 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4758 * m68k-tdep.c (NUM_FREGS): Delete.
4759 (SIG_PC_FP_OFFSET): Delete.
4760 (TARGET_M68K): Delete.
4761 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4762 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4763 P_MOVEL_SP, P_MOVEML_SP): Define.
4764 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4766 (m68k_register_raw_size): Delete.
4767 (m68k_register_virtual_size): Delete.
4768 (m68k_register_type): Renamed from m68k_register_virtual_type and
4769 add gdbarch argument.
4770 (m68k_store_struct_return): Delete.
4771 (m68k_deprecated_extract_return_value): Delete.
4772 (m68k_deprecated_extract_struct_value_address): Delete.
4773 (m68k_frame_chain): Delete.
4774 (m68k_frame_saved_pc): Delete.
4775 (m68k_fix_call_dummy): Delete.
4776 (m68k_push_dummy_frame): Delete.
4777 (m68k_pop_frame): Delete.
4778 (m68k_extract_return_value): New function.
4779 (m68k_store_return_value): Rewrite using regcache.
4780 (m68k_extract_struct_value_address): Rewrite using regcache.
4781 (m68k_push_dummy_call): New function.
4782 (struct m68k_frame_cache): Define.
4783 (m68k_alloc_frame_cache): New function.
4784 (m68k_analyze_frame_setup): New function.
4785 (m68k_analyze_register_saves): New function.
4786 (m68k_analyze_prologue): New function.
4787 (m68k_skip_prologue): Rewrite using above functions.
4788 (m68k_unwind_pc): New function.
4789 (m68k_frame_cache): New function.
4790 (m68k_frame_this_id): New function.
4791 (m68k_frame_prev_register): New function.
4792 (m68k_frame_unwind): New variable.
4793 (m68k_frame_p): New function.
4794 (m68k_sigtramp_frame_cache): New function.
4795 (m68k_sigtramp_frame_this_id): New function.
4796 (m68k_sigtramp_frame_prev_register): New function.
4797 (m68k_sigtramp_frame_unwind): New variable.
4798 (m68k_sigtramp_frame_p): New function.
4799 (m68k_frame_base_address): New function.
4800 (m68k_frame_base): New function.
4801 (m68k_unwind_dummy_id): New function.
4802 (fill_gregset): Use regcache_collect.
4803 (fill_fpregset): Likewise.
4804 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4806 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4807 deprecated_init_frame_pc, deprecated_store_struct_return,
4808 deprecated_extract_return_value, deprecated_store_return_value,
4809 deprecated_frame_chain, deprecated_frame_saved_pc,
4810 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4811 deprecated_register_virtual_size,
4812 deprecated_max_register_raw_size,
4813 deprecated_max_register_virtual_size,
4814 deprecated_register_virtual_type, deprecated_register_size,
4815 deprecated_register_byte, deprecated_register_bytes,
4816 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4817 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4818 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4819 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4820 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4821 deprecated_push_dummy_frame, deprecated_pop_frame,
4822 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4823 only if SYSCALL_TRAP is defined. Set extract_return_value,
4824 store_return_value, extract_struct_value_address, register_type,
4825 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4827 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4828 M68K_MAX_REGISTER_SIZE): Define.
4829 (struct m68k_sigtramp_info): Define.
4830 (struct gdbarch_tdep): Add get_sigtramp_info.
4831 * m68klinux-nat.c (fetch_register): Use register_size instead of
4832 REGISTER_RAW_SIZE. Don't put assignment in if.
4833 (store_register): Likewise.
4834 (fetch_inferior_registers): Likewise.
4835 (store_inferior_registers): Likewise.
4836 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4837 (m68k_linux_frame_saved_pc): Delete.
4838 (m68k_linux_sigcontext_reg_offset,
4839 m68k_linux_ucontext_reg_offset): Define.
4840 (m68k_linux_get_sigtramp_info): New function.
4841 (m68k_linux_extract_return_value): Rewrite using regcache.
4842 (m68k_linux_store_return_value): Likewise.
4843 (m68k_linux_extract_struct_value_address): Likewise.
4844 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4845 Don't set deprecated_frame_saved_pc,
4846 deprecated_extract_return_value, deprecated_store_return_value,
4847 deprecated_extract_struct_value_address. Set
4848 extract_return_value, store_return_value,
4849 extract_struct_value_address.
4851 2003-07-07 Andrew Cagney <cagney@redhat.com>
4853 * expprint.c: Include "user-regs.h" instead of "frame.h".
4854 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4855 frame_map_regnum_to_name.
4856 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4857 (frame_map_name_to_regnum): Simplify, call
4858 user_reg_map_name_to_regnum.
4859 (frame_map_regnum_to_name): Simplify, call
4860 user_reg_map_regnum_to_name.
4861 (frame_register_unwind): Update.
4862 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4863 (_initialize_frame_reg): Call user_reg_add_builtin.
4864 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4865 (value_of_register): Use value_of_user_reg.
4866 * eval.c (evaluate_subexp_standard): Update.
4867 * parse.c (write_dollar_variable): Update.
4868 * d10v-tdep.c (d10v_print_registers_info): Update.
4869 * infcmd.c (registers_info): Update.
4870 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4871 (builtin_regs_h): Delete macro.
4872 (user_regs_h): Define.
4873 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4874 (builtin-regs.o): Delete target.
4875 (user-regs.o): Specify dependencies.
4876 (expprint.o): Update dependencies.
4877 (findvar.o): Update dependencies.
4878 (frame.o): Update dependencies.
4879 (std-regs.o): Update dependencies.
4881 2003-07-06 Christopher Faylor <cgf@redhat.com>
4883 * win32-nat.c (solib_symbols_add): Use one variable for all section
4884 address stuff. Pass variable rather than address of variable to
4885 safe_symbol_file_add.
4887 2003-07-06 Andreas Schwab <schwab@suse.de>
4889 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4891 2003-07-04 Joel Brobecker <brobecker@gnat.com>
4893 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4895 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4897 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4899 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4901 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4902 * config/i386/nto.mh: New file.
4903 * config/i386/nm-nto.h: New file.
4904 * configure.host: Add i[3456]86-*-nto*.
4906 2003-07-03 Joel Brobecker <brobecker@gnat.com>
4908 * remote-vx.c (vx_add_symbols): Fix compilation error.
4910 2003-07-03 Andrew Cagney <cagney@redhat.com>
4912 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4913 * gdbarch.h, gdbarch.c: Re-generate.
4914 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4915 (legacy_register_name): Declare.
4916 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4917 (REGISTER_NAME): Define.
4918 * sparc-tdep.c (legacy_register_name): New function.
4919 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4920 (REGISTER_NAME): Define.
4921 (hppa64_register_name): Declare.
4922 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4923 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4924 (hppa64_register_name): New function.
4925 (hppa_register_name): New function.
4926 * arch-utils.c (legacy_register_name): Delete.
4927 * arch-utils.h (legacy_register_name): Delete.
4929 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
4931 * cli/cli-interp.c (cli_interpreter_resume): Update the
4932 cli_uiout's stream to gdb_stdout.
4934 2003-07-03 Andrew Cagney <cagney@redhat.com>
4936 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4938 * gdbarch.h, gdbarch.c: Re-generate.
4939 * regcache.c (init_regcache_descr): Use legacy code when either
4940 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4942 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4944 * NEWS: Move "set logging" entry into GDB 6.0 section.
4946 2003-07-02 Jim Blandy <jimb@redhat.com>
4948 * s390-tdep.c (struct frame_extra_info): new member:
4949 'stack_bought_valid'.
4950 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4951 initialize fextra_info->stack_bought.
4952 (s390_frameless_function_invocation): Don't trust the value of
4953 fextra_info_ptr->stack_bought unless
4954 fextra_info->stack_bought_valid is set.
4956 New S390 prologue analyzer.
4957 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4958 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4959 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4960 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4961 compute_x_addr, s390_on_stack, s390_store,
4962 s390_get_signal_frame_info): New functions.
4963 (S390_NUM_SPILL_SLOTS): New macro.
4964 (s390_get_frame_info): Rewritten.
4965 (is_arg_reg): Deleted.
4967 Break out the decoding of S/390 instructions into separate
4968 functions, to make it more legible, and easier to check
4970 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4971 is_rx, is_rxe): New functions.
4972 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4973 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4974 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4975 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4976 enums for opcode values. (Is this an improvement?)
4978 2003-07-02 Andrew Cagney <cagney@redhat.com>
4980 * i386-tdep.c: Revert change committed as part of trad-frame code
4983 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4985 * breakpoint.c (insert_catchpoint): Make static.
4987 2003-07-02 Andreas Schwab <schwab@suse.de>
4989 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4990 former ia64_push_arguments and ia64_push_return_address, and use
4991 regcache functions instead of read/write_register.
4992 (ia64_gdbarch_init): Set push_dummy_call instead of
4993 deprecated_push_arguments and deprecated_push_return_address.
4995 2003-07-01 Andreas Jaeger <aj@suse.de>
4997 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4999 Set %rax only to number of SSE registers used.
5001 2003-07-01 Andrew Cagney <cagney@redhat.com>
5003 * trad-frame.h: Update comments, a -1 .addr is reserved.
5004 (trad_frame_value_p, trad_frame_addr_p): Declare.
5005 (trad_frame_reg_p): Declare.
5006 (trad_frame_set_value): Rename trad_frame_register_value.
5007 (trad_frame_set_unknown): Declare.
5008 * trad-frame.c (trad_frame_realreg_p): New function.
5009 (trad_frame_addr_p, trad_frame_value_p): New function.
5010 (trad_frame_set_unknown): New function.
5011 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5012 (trad_frame_prev_register): Use trad_frame_realreg_p,
5013 trad_frame_addr_p and trad_frame_value_p.
5014 (trad_frame_set_value): Rename trad_frame_register_value.
5015 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5016 and trad_frame_set_value.
5018 2003-06-30 Jim Blandy <jimb@redhat.com>
5020 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5021 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5022 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5023 for 16 registers, and then 32 more bytes.
5024 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5026 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5027 Move up in the file, since it's now used by is_simple_arg.
5028 (is_simple_arg): Don't assume registers are four bytes long.
5029 Exclude all double arguments. Extended floats are not simple
5031 (is_power_of_two): New function.
5032 (pass_by_copy_ref): Call is_power_of_two, and check that the
5033 length fits in a register, rather than listing all the acceptable
5034 sizes. Extended floats are not passed by reference.
5035 (s390_push_arguments): Don't assume registers are four bytes long.
5036 Reserve an argument register to point to the buffer for structures
5037 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5038 S390_STACK_FRAME_OVERHEAD.
5040 2003-06-30 Andreas Schwab <schwab@suse.de>
5042 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5043 format error message.
5045 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5047 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5049 2003-06-30 David Carlton <carlton@kealia.com>
5051 Band-aid for PR c++/1245.
5052 * Makefile.in (cp-support.o): Depend on complaints_h.
5053 * cp-support.c: Include complaints.h. Add declaration for
5054 find_last_component.
5055 (cp_find_first_component): Separate code into
5056 cp_find_first_component_aux.
5057 (cp_find_first_component_aux): Call demangled_name_complaint.
5058 (demangled_name_complaint): New.
5060 2003-06-30 Andrew Cagney <cagney@redhat.com>
5062 * remote.c (remote_write_bytes): Explicitly compute and then use
5063 the payload size. Update comments to reflect. Fixes problem of
5064 GDB not sending small packets as found by Fred Fish.
5066 2003-06-30 Andrew Cagney <cagney@redhat.com>
5068 * remote.c (remote_async_wait): Fix -Wformat problem.
5070 2003-06-29 Andrew Cagney <cagney@redhat.com>
5072 * remote.c (remote_wait): Call error, and not warning, when the
5074 (remote_async_wait): Ditto.
5076 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5078 * sparc-tdep.c (sparc_y_regnum): Make external again.
5080 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5082 * cli/cli-logging.c (pop_output_files): Add void to function
5085 2003-06-29 Andrew Cagney <cagney@redhat.com>
5087 * frame.c (frame_register_unwind): Use unsigned char when dumping
5088 the buffer contents.
5090 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5092 * cli/cli-logging.c: New file.
5093 * cli-out.c (struct ui_out_data): Add original_stream.
5094 (cli_redirect): New function.
5095 (cli_ui_out_impl): Add cli_redirect.
5096 (cli_out_new): Initialize original_stream.
5097 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5098 (uo_redirect, ui_out_redirect): New.
5099 * ui-out.h (struct ui_out_impl): Add redirect member.
5100 (redirect_ftype): New.
5101 (ui_out_redirect): Add prototype.
5102 * Makefile.in: Add rules for cli-logging.c.
5103 * NEWS: Mention "set logging".
5105 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5107 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5109 2003-06-27 Andrew Cagney <cagney@redhat.com>
5111 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5112 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5113 * avr-tdep.c (avr_call_dummy_address): Delete function.
5114 (avr_gdbarch_init): Do not set call_dummy_address.
5116 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5118 * symfile.c (syms_from_objfile): Move variables to inner block.
5119 Move the checks for the non-mainline case a bit earlier to avoid
5120 doing some useless computations.
5122 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5124 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5126 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5128 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5131 2003-06-26 Michael Chastain <mec@shout.net>
5133 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5134 gdb/testsuite/gdb.c++/pr-1210.exp.
5136 2003-06-26 Andrew Cagney <cagney@redhat.com>
5138 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5139 altivec_expression.h and altivec_registers.h.
5141 2003-06-26 Andrew Cagney <cagney@redhat.com>
5143 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5144 info->mach when MIPS16. Patch suggested by Fred Fish.
5146 2003-06-26 Andrew Cagney <cagney@redhat.com>
5148 * utils.c (internal_vproblem): Print the problem to a reason
5149 buffer and then pass to query. Make the msg variable more local.
5151 2003-06-26 Andrew Cagney <cagney@redhat.com>
5153 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5154 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5155 * gdbarch.h, gdbarch.c: Re-generate.
5156 * frame-base.c (default_frame_args_address): Update. Use
5157 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5159 (default_frame_locals_address): Ditto for
5160 DEPRECATED_FRAME_LOCALS_ADDRESS.
5161 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5162 (vax_frame_num_args): Update.
5163 (vax_gdbarch_init): Update.
5164 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5165 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5166 * mcore-tdep.c (mcore_gdbarch_init): Update.
5167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5168 * ia64-tdep.c (ia64_gdbarch_init): Update.
5169 * symtab.h (address_class): Update comments.
5170 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5171 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5172 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5173 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5174 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5175 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5176 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5177 * alpha-mdebug-tdep.c: Update.
5178 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5180 2003-06-26 Andreas Jaeger <aj@suse.de>
5182 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5183 of SSE registers so that varargs functions work. Rework handling
5184 of passing arguments on the stack.
5185 (x86_64_store_return_value): Return double and float values in SSE
5188 2003-06-24 Michael Chastain <mec@shout.net>
5190 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5191 the "constructor breakpoints ignored" bug.
5193 2003-06-25 David Carlton <carlton@kealia.com>
5195 * MAINTAINERS: Update e-mail address.
5197 2003-06-24 Jim Blandy <jimb@redhat.com>
5199 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5201 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5203 (ppc_linux_init_abi): Register it as the
5204 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5206 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5207 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5210 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5211 (ppc64_standard_linkage_target): Use it.
5213 2003-06-23 Andrew Cagney <cagney@redhat.com>
5215 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5216 for 0 "int0" and 4 "int32" sized registers.
5217 * gdbtypes.c (builtin_type_int0): Define.
5218 (build_gdbtypes): Initialize builtin_type_int0.
5219 * gdbtypes.h (builtin_type_int0): Declare.
5221 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5223 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5224 as characters are unsigned.
5226 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5229 * dwarfread.c (struct_type): Skip static fields without crashing.
5231 2003-06-22 Andrew Cagney <cagney@redhat.com>
5233 GDB 6.0 branch created.
5235 * PROBLEMS: Update. Empty.
5238 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5240 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5241 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5243 2003-06-22 Andrew Cagney <cagney@redhat.com>
5245 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5246 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5249 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5251 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5254 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5256 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5257 argument of val_print.
5258 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5259 to the address argument of baseclass_offset or target_read_memory.
5260 Do add it to the argument of cp_print_value_fields.
5262 2003-06-21 Andrew Cagney <cagney@redhat.com>
5264 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5265 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5266 instead of 0..NUM_REGS.
5267 (mips_register_reggroup_p): New function.
5268 (mips_pseudo_register_write): New function.
5269 (mips_pseudo_register_read): New function.
5270 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5271 based on the register's type.
5272 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5274 (mips_get_saved_register): Simplify. Assert that REGNO is a
5276 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5277 (mips_register_type): Replace mips_register_virtual_type. Map
5278 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5280 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5281 that the register is cooked / virtual.
5282 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5283 Only get the extra info when needed.
5284 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5285 (mips32_heuristic_proc_desc): Fetch the cooked register.
5286 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5287 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5288 (mips_print_register): Use gdbarch_register_type, instead of
5289 REGISTER_VIRTUAL_TYPE.
5290 (print_gp_register_row): Use gdbarch_register_type, instead of
5291 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5292 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5293 Print the pseudo / cooked registers.
5294 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5295 Print the pseudo / cooked registers.
5296 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5297 REG_NUM is pseudo / cooked.
5298 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5299 (mips_n32n64_xfer_return_value): Ditto.
5300 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5301 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5302 (mips_register_sim_regno): New function.
5303 (mips_gdbarch_init): Set deprecated_register_byte,
5304 register_group_p, pseudo_register_write, pseudo_register_read,
5305 register_sim_regno, and num_pseudo_regs. Set register_type,
5306 instead of register_virtual_type.
5307 * Makefile.in (mips-tdep.o): Update dependencies.
5308 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5309 REGISTER_VIRTUAL_TYPE.
5310 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5311 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5312 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5313 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5314 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5316 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5318 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5319 * cli/cli-cmds.c: Include "gdb_vfork.h".
5320 (shell_escape): Use vfork.
5322 2003-06-21 Andrew Cagney <cagney@redhat.com>
5324 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5325 32 bit floating-point register saves.
5327 * frame.h (deprecated_unwind_get_saved_register): Delete.
5328 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5329 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5330 and deprecated_get_next_frame_hack instead of
5331 deprecated_unwind_get_saved_register.
5333 * mips-tdep.c (mips_dump_tdep): Do not print
5334 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5336 * frame.c (get_frame_register): New function.
5337 (frame_unwind_register_signed): New function.
5338 (get_frame_register_signed): New function.
5339 (frame_unwind_register_unsigned): New function.
5340 (get_frame_register_unsigned): New function.
5341 * frame.h: Add comments on naming schema.
5342 (get_frame_register, frame_unwind_register_signed): Declare.
5343 (get_frame_register_signed, get_frame_register_signed): Declare.
5344 (frame_unwind_register_unsigned): Declare.
5345 (get_frame_register_unsigned): Declare.
5347 2003-06-20 Theodore A. Roth <troth@openavr.org>
5349 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5351 2003-06-20 Theodore A. Roth <troth@openavr.org>
5353 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5354 (avr_read_sp): Ditto.
5356 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5358 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5359 * config/arm/nm-linux.h: Likewise.
5360 * config/arm/tm-linux.h: Likewise.
5361 * config/ia64/nm-linux.h: Likewise.
5362 * config/ia64/tm-ia64.h: Likewise.
5363 * config/s390/tm-linux.h: Likewise.
5364 * config/s390/tm-s390.h: Likewise.
5365 * s390-nat.c: Likewise.
5366 * s390-tdep.c: Likewise.
5368 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5369 * config/ia64/linux.mt: Likewise.
5370 * config/m68k/linux.mh: Likewise.
5371 * config/mips/linux.mt: Likewise.
5372 * config/powerpc/linux.mh: Likewise.
5373 * config/sh/linux.mt: Likewise.
5375 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5377 * solib.c (solib_open): Change tests for whether to search
5378 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5381 2003-06-19 Theodore A. Roth <troth@openavr.org>
5383 * avr-tdep.c (avr_frame_address): Delete function.
5384 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5385 set_gdbarch_frame_args_address.
5387 2003-06-19 Andrew Cagney <cagney@redhat.com>
5389 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5390 (REGISTER_CONVERT_FROM_TYPE): Delete.
5391 (mips_register_convert_to_type): Delete declaration.
5392 (mips_register_convert_from_type): Delete declaration.
5393 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5396 2003-06-19 Michael Snyder <msnyder@redhat.com>
5398 * linux-nat.h: New file.
5399 * linux-nat.c: Include linux-nat.h.
5400 * lin-lwp.c: Include linux-nat.h.
5401 Move struct lwp_info def to linux-nat.h.
5402 * linux-proc.c: Include linux-nat.h.
5403 (linux_make_note_section): Iterate over lwps instead of threads.
5404 (linux_do_thread_registers): Use lwp instead of merged pid.
5405 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5406 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5407 Add dependency on linux_nat_h.
5409 2003-06-19 Theodore A. Roth <troth@openavr.org>
5411 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5413 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5415 * varobj.c (get_type, get_target_type): Use check_typedef.
5417 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5419 * breakpoint.c (insert_catchpoint): Call internal_error.
5421 2003-06-19 Theodore A. Roth <troth@openavr.org>
5423 * avr-tdep.c (avr_push_dummy_code): Delete function.
5424 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5426 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5428 * arch-utils.c (default_prepare_to_proceed): Remove.
5429 (generic_prepare_to_proceed): Remove.
5430 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5431 (generic_prepare_to_proceed): Remove prototype.
5432 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5433 * gdbarch.c: Regenerate.
5434 * gdbarch.h: Regenerate.
5435 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5436 * hppah-nat.c (hppa_switched_threads): Remove.
5437 * infrun.c (prepare_to_proceed): New static function, copied from
5438 generic_prepare_to_proceed. Remove select_it argument.
5439 (proceed): Call prepare_to_proceed.
5440 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5442 (ptrace_wait): Don't set the removed variables.
5443 (hppa_switched_threads): Remove.
5444 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5445 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5446 (lin_lwp_prepare_to_proceed): Remove prototype.
5447 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5448 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5450 2003-06-18 Theodore A. Roth <troth@openavr.org>
5452 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5454 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5455 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5456 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5457 (AVR_PROLOGUE_*): Enumerate prologue types.
5458 (struct frame_extra_info): Remove.
5459 (struct avr_unwind_cache): Define.
5460 (avr_write_sp): Delete function.
5461 (avr_read_fp): Ditto.
5462 (avr_init_extra_frame_info): Ditto.
5463 (avr_pop_frame): Ditto.
5464 (avr_frame_saved_pc): Ditto.
5465 (avr_saved_pc_after_call): Ditto.
5466 (avr_push_return_address): Ditto.
5467 (avr_frame_chain): Ditto.
5468 (avr_store_struct_return): Ditto.
5469 (avr_push_arguments): Ditto.
5470 (avr_scan_prologue): Update comments. Changed to set up the info for
5471 cache unwinding. Now returns end of prologue PC.
5472 (avr_skip_prologue): Better handling of functions lacking a prologue
5473 by using avr_scan_prologue.
5474 (avr_scan_arg_moves): New function.
5475 (avr_saved_regs_unwinder): Ditto.
5476 (avr_frame_unwind_cache): Ditto.
5477 (avr_unwind_pc): Ditto.
5478 (avr_frame_this_id): Ditto.
5479 (avr_frame_prev_register): Ditto.
5480 (avr_frame_p): Ditto.
5481 (avr_frame_base_address ): Ditto.
5482 (avr_unwind_dummy_id): Ditto.
5483 (avr_push_dummy_code): Ditto.
5484 (push_stack_item): Ditto.
5485 (pop_stack_item): Ditto.
5486 (avr_push_dummy_call): Ditto.
5487 (struct stack_item): Define.
5488 (avr_frame_unwind): Declare structure.
5489 (avr_frame_base): Ditto.
5490 (avr_gdbarch_init): Remove calls to
5491 set_gdbarch_deprecated_init_frame_pc,
5492 set_gdbarch_deprecated_target_read_fp,
5493 set_gdbarch_deprecated_dummy_write_sp,
5494 set_gdbarch_deprecated_fp_regnum,
5495 set_gdbarch_deprecated_push_arguments,
5496 set_gdbarch_deprecated_push_return_address,
5497 set_gdbarch_deprecated_pop_frame,
5498 set_gdbarch_deprecated_store_struct_return,
5499 set_gdbarch_deprecated_frame_init_saved_regs,
5500 set_gdbarch_deprecated_init_extra_frame_info,
5501 set_gdbarch_deprecated_frame_chain,
5502 set_gdbarch_deprecated_frame_saved_pc,
5503 set_gdbarch_deprecated_saved_pc_after_call.
5504 Add calls to set_gdbarch_push_dummy_call,
5505 set_gdbarch_push_dummy_code,
5506 frame_unwind_append_predicate,
5507 frame_base_set_default,
5508 set_gdbarch_unwind_dummy_id,
5509 set_gdbarch_unwind_pc.
5512 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
5514 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5515 registers for H8/300S.
5516 (h8300_print_registers_info): Ditto.
5517 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5519 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5521 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5522 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5523 (lin_lwp_wait): Likewise. Update comments.
5524 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5525 (pull_pid_from_list, linux_record_stopped_pid): New.
5527 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5529 * ada-lang.c (scan_discrim_bound): Name first argument.
5530 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5531 declared by ALL_BLOCK_SYMBOLS.
5533 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5535 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5536 ("regcache.h"): Include it.
5537 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5539 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5541 * NEWS: Mention gdbserver detach change and "disconnect" command.
5542 * infcmd.c (disconnect_command): New function.
5543 (_initialize_infcmd): Add ``disconnect'' command.
5544 * remote.c (remote_async_detach): Delete.
5545 (remote_detach): Merge remote_async_detach.
5546 (remote_disconnect): New.
5547 (init_remote_ops): Set to_disconnect.
5548 (init_remote_cisco_ops): Likewise.
5549 (init_remote_async_ops): Likewise. Use remote_detach.
5550 * target.c (cleanup_target): Default to_disconnect.
5551 (update_current_target): Inherit to_disconnect.
5552 (target_disconnect, debug_to_disconnect): New functions.
5553 (setup_target_debug): Set to_disconnect.
5554 * target.h (struct target_ops): Add to_disconnect.
5555 (target_disconnect): Add prototype.
5557 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5559 * breakpoint.c (insert_catchpoint): New function.
5560 (insert_breakpoints): Use catch_exceptions to call
5561 insert_catchpoint. Disable catchpoints if they fail to insert.
5563 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5565 * symfile.c (reread_symbols): Clear sym_private.
5567 2003-06-17 Andrew Cagney <cagney@redhat.com>
5569 * trad-frame.h (struct frame_info): Add opaque declaration.
5570 * remote-fileio.h (struct cmd_list_element): Add opaque
5572 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5575 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5577 * remote.c (remote_prepare_to_store): Replace call to
5578 deprecated_read_register_bytes with multiple regcache_raw_read
5581 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5583 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5584 (nto_find_and_open_solib): Likewise.
5585 (nto_init_solib_absolute_prefix): Likewise.
5586 (_initialize_nto_tdep): Fix indentation.
5588 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5590 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5592 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5594 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5596 2003-06-17 Jim Blandy <jimb@redhat.com>
5598 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5600 2003-06-16 Theodore A. Roth <troth@openavr.org>
5602 * avr-tdep.c (avr_extract_return_value): New function.
5603 (avr_gdbarch_init): Set extract_return_value method.
5605 2003-06-16 Andrew Cagney <cagney@redhat.com>
5607 * frame.h (deprecated_get_next_frame_hack): Declare.
5608 * frame.c (legacy_saved_regs_prev_register): Only require
5609 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5610 there are always saved regs.
5611 (deprecated_generic_get_saved_register): Do not require
5612 DEPRECATED_FRAME_INIT_SAVED_REGS.
5613 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5614 use frame ID unwind instead.
5615 (deprecated_get_next_frame_hack): New function.
5617 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5619 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5620 (h8300_push_dummy_call): ...this function. Some minor optimization.
5621 (h8300_push_return_address): Remove.
5622 (h8300_gdbarch_init): Remove calls to
5623 set_gdbarch_deprecated_dummy_write_sp,
5624 set_gdbarch_deprecated_push_arguments and
5625 set_gdbarch_deprecated_push_return_address.
5626 Add call to set_gdbarch_push_dummy_call.
5628 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5630 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5631 (E_PSEUDO_EXR_REGNUM): Ditto.
5632 (h8300_is_argument_spill): Check for instructions moving argument
5633 registers into safe registers.
5634 (h8300_skip_prologue): Check for stm instruction to push registers
5635 used for register variables onto stack.
5636 (gdb_print_insn_h8300): Remove.
5637 (h8300_examine_prologue): Add a comment.
5638 (h8300_register_name): Take pseudo registers into account.
5639 (h8300s_register_name): Ditto.
5640 (h8300sx_register_name): Ditto.
5641 (h8300_print_register): Ditto.
5642 (h8300_print_registers_info): Define "nice" printing order.
5643 (h8300_saved_pc_after_call): Take pseudo registers into account.
5644 (h8300_register_type): Ditto. Return type used for remote connection
5645 when requesting real CCR or EXR register, return actual type when
5646 requesting pseudo CCR or EXR.
5647 (h8300_pseudo_register_read): New function.
5648 (h8300_pseudo_register_write): Ditto.
5649 (h8300_dbg_reg_to_regnum): Ditto.
5650 (h8300s_dbg_reg_to_regnum): Ditto.
5651 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5652 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5653 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5654 set_gdbarch_print_insn architecture dependent.
5655 Call set_gdbarch_pseudo_register_read and
5656 set_gdbarch_pseudo_register_write.
5657 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5659 2003-06-16 Andrew Cagney <cagney@redhat.com>
5661 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5662 * gdbarch.h, gdbarch.c: Re-generate.
5663 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5664 * s390-tdep.c (s390_gdbarch_init): Update.
5665 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5666 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5667 * mips-tdep.c (mips_gdbarch_init): Update.
5668 * mcore-tdep.c (mcore_gdbarch_init): Update.
5669 * cris-tdep.c (cris_gdbarch_init): Update.
5670 * infcall.c (call_function_by_hand): Update.
5671 * ia64-tdep.c (ia64_push_arguments): Update comment.
5672 * frame.c (legacy_get_prev_frame): Do not assume
5673 SAVE_DUMMY_FRAME_TOS_P.
5674 * dummy-frame.c (find_dummy_frame): Update comment.
5676 2003-06-16 Andrew Cagney <cagney@redhat.com>
5678 * regcache.c (do_cooked_read): Do not use register_valid_p.
5680 2003-06-15 Theodore A. Roth <troth@openavr.org>
5682 * avr-tdep.c (avr_register_type): Remove a blank line.
5683 (avr_scan_prologue): Correct some comments.
5685 2003-06-15 Theodore A. Roth <troth@openavr.org>
5687 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5689 Properly scan prologues generated by gcc with the -mcall-prologues
5691 Add code to scan -mcall-prologues for mega devices.
5693 2003-06-15 Theodore A. Roth <troth@openavr.org>
5695 * avr-tdep.c (avr_register_byte): Delete function.
5696 (avr_register_raw_size): Delete function.
5697 (avr_register_virtual_size): Delete function.
5698 (avr_register_virtual_type): Delete function.
5699 (avr_register_type): New function.
5700 (avr_address_to_pointer): Remove unused code.
5701 (avr_read_fp): Need to read FP as two separate bytes due to change to
5702 avr_register_type() usage.
5703 (avr_gdbarch_init): Don't set deprecated_register_size.
5704 Don't set deprecated_register_bytes.
5705 Don't set deprecated_register_byte.
5706 Don't set deprecated_register_raw_size.
5707 Don't set deprecated_max_register_raw_size.
5708 Don't set deprecated_register_virtual_size.
5709 Don't set deprecated_max_register_virtual_size.
5710 Don't set deprecated_register_virtual_type.
5711 Set register_type method.
5713 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5715 * Makefile.in (linux-nat.o): Add rule.
5716 * linux-nat.c: New file.
5717 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5718 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5719 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5720 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5721 * config/arm/linux.mh (NATDEPFILES): Likewise.
5722 * config/i386/linux.mh (NATDEPFILES): Likewise.
5723 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5724 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5725 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5726 * config/mips/linux.mh (NATDEPFILES): Likewise.
5727 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5728 * config/s390/s390.mh (NATDEPFILES): Likewise.
5729 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5731 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5733 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5734 replace out-of-date comment.
5736 2003-06-15 Andrew Cagney <cagney@redhat.com>
5738 * rdi-share/host.h (Fail): Change to a varargs function.
5739 * remote-rdi.c (Fail): Update.
5741 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5743 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5744 (i386_convert_register_p, i386_register_to_value,
5745 i386_register_from_value): Handle types longer than 8 bytes.
5747 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5749 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5750 Move floating-point code to new function in i387-tdep.c.
5751 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5752 New functions containing code moved here from i386-tdep.c.
5753 * i387-tdep.h: Add opaque declaration for `struct type'.
5754 (i387_register_to_value, i387_value_to_register): New prototypes.
5755 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5756 (x86_64_init_abi): Set convert_register_p, register_to_value and
5757 value_to_register here.
5759 2003-06-14 Andrew Cagney <cagney@redhat.com>
5761 * mips-tdep.c (mips_register_to_value): Make static.
5762 (mips_value_to_register): Make static.
5763 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5764 * ia64-tdep.c (ia64_register_raw_size): Make static.
5765 (ia64_register_virtual_size): Make static.
5766 (ia64_register_byte): Make static.
5767 * i387-tdep.c: Include "i387-tdep.h".
5768 (print_387_control_word): Delete function.
5769 (print_387_status_word): Delete function.
5770 (print_387_status_bits): Delete function.
5771 (print_387_control_bits): Delete function.
5772 * Makefile.in (i387-tdep.o): Update dependencies.
5773 * rdi-share/host.h (Fail): Declare.
5774 * remote-rdi.c (Fail): Update to match declaration.
5776 2003-06-14 Andrew Cagney <cagney@redhat.com>
5778 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5779 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5780 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5781 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5782 * README: Delete reference to remote-array.
5783 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5784 (remote-array.o): Delete target.
5785 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5786 * remote-array.c: Delete file.
5788 2003-06-14 Andrew Cagney <cagney@redhat.com>
5789 Mark Kettenis <kettenis@gnu.org>
5791 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5792 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5793 parameter with "frame".
5794 * gdbarch.h, gdbarch.c: Re-generate.
5795 * frame.h (put_frame_register): Declare.
5796 * frame.c (put_frame_register): New function.
5797 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5798 (legacy_register_to_value): Rewrite, use "frame" to get the
5800 (legacy_value_to_register): Rewrite, use "frame" to find the
5801 register's location before storing.
5802 * arch-utils.h (legacy_convert_register_p): Update.
5803 (legacy_register_to_value, legacy_value_to_register): Update.
5804 * findvar.c (value_from_register): Rewrite, eliminate use of
5805 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5806 "frame" to REGISTER_TO_VALUE.
5807 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5808 lval_reg_frame_relative + lval_register branch of the switch. Do
5809 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5810 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5811 I386_EDI_REGNUM): New defines.
5812 (i386_next_regnum, i386_convert_register_p,
5813 i386_register_to_value, i386_value_to_register): New functions.
5814 (i386_register_convertible, i386_register_convert_to_virtual,
5815 i386_convert_to_raw): Remove functions.
5816 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5817 value_to_register instead of register_convertible,
5818 register_convert_to_virtual and register_convert_to_raw.
5819 * mips-tdep.c (mips_convert_register_p): New function.
5820 (mips_value_to_register): Replace mips_register_convert_from_type.
5821 (mips_register_to_value): Replace mips_register_convert_to_type.
5822 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5824 * alpha-tdep.c (alpha_convert_register_p): Update.
5825 (alpha_value_to_register): Update, store the register.
5826 (alpha_register_to_value): Update, fetch the register.
5828 2003-06-14 Theodore A. Roth <troth@openavr.org>
5830 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5831 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5832 Don't set deprecated_call_dummy_words.
5833 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5834 Don't set remote_translate_xfer_address.
5835 (avr_io_reg_read_command): Remove commented out debug printf.
5838 2003-06-14 Theodore A. Roth <troth@openavr.org>
5840 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5841 causes gdb to seg fault.
5843 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
5845 * sparc-nat.c (fetch_inferior_registers): Correct
5846 a reference to "registers".
5848 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5850 * Makefile.in (exc_request_U_h): Define
5851 (exc_request_S_h): Likewise.
5852 (msg_reply_S_h): Likewise.
5853 (msg_U_h): Likewise.
5854 (notify_S_h): Likewise.
5855 (process_reply_S_h): Likewise.
5856 (gnu-nat.o): Depend on gdb_obstack_h
5857 * gnu-nat.c: Include "gdb_obstack.h".
5859 2003-06-13 Andrew Cagney <cagney@redhat.com>
5861 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5862 * gdbarch.h, gdbarch.c: Re-generate.
5864 2003-06-13 Andrew Cagney <cagney@redhat.com>
5866 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5867 when deprecated REGISTER macros can be deleted.
5868 * gdbarch.h, gdbarch.c: Re-generate.
5870 2003-06-13 Jim Blandy <jimb@redhat.com>
5872 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5873 Linux entry point symbols for _dl_debug_state, too.
5875 2003-06-13 Andrew Cagney <cagney@redhat.com>
5877 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5878 available, do not use the FP register, and always save the TOS.
5879 * dummy-frame.c (dummy_frame_this_id): Do not assert
5880 SAVE_DUMMY_FRAME_TOS.
5881 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5882 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5883 (i386_push_dummy_call): Add 8 to the returned SP.
5884 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5885 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5886 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5887 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5888 (x86_64_push_dummy_call): Return "sp + 16".
5889 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5890 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5891 save_dummy_frame_tos.
5893 2003-06-13 Jim Blandy <jimb@redhat.com>
5895 * frv-tdep.c (frv_use_struct_convention): Delete static
5896 declaration for function deleted in my change of 2003-06-12.
5898 2003-06-13 Theodore A. Roth <troth@openavr.org>
5900 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5901 (avr_pointer_to_address): Shift code addrs left 1 bit.
5902 (avr_convert_from_func_ptr_addr): Delete function since operation is
5903 better handled by avr_address_to_pointer and avr_pointer_to_address.
5904 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5906 2003-06-13 Mark Kettenis <kettenis@gnu.org>
5908 From Kelley Cook <kelleycook@wideopenwest.com>:
5909 * configure.host: Accept i[34567]86 variants.
5910 * configure.tgt: Likewise.
5911 * nlm/configure.in: Likewise.
5912 * nlm/configure: Regenerated.
5914 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
5916 * arm-tdep.c (solib-svr4.h): Dont' include it.
5917 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5918 * arm-linux-tdep.c: ... here. Make static.
5919 (arm_linux_init_abi): Register it.
5920 (solib-svr4.h): Include it.
5921 * Makefile.in: Update dependencies.
5922 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5923 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5925 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5927 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5928 indicate registers used for return values.
5929 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5930 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5932 (h8300_init_extra_frame_info): Ditto.
5933 (h8300_frame_locals_address): Removed.
5934 (h8300_frame_args_address): Removed.
5935 (h8300_extract_return_value): Use new regcache structure. Only care
5937 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5938 (h8300_store_return_value): Use new regcache structure. Only care
5940 (h8300h_store_return_value): Same function for 32 bit CPUs.
5941 (h8300_store_struct_return): Removed.
5942 (h8300_extract_struct_value_address): Use new regcache structure.
5943 (h8300h_extract_struct_value_address): Removed.
5944 (h8300_push_dummy_code): New function.
5945 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5946 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5947 set_gdbarch_store_return_value architecture dependent.
5948 Call set_gdbarch_push_dummy_code and
5949 set_gdbarch_extract_struct_value_address.
5950 Remove calls to set_gdbarch_frame_args_address,
5951 set_gdbarch_frame_locals_address,
5952 set_gdbarch_deprecated_store_struct_return,
5953 set_gdbarch_deprecated_extract_return_value,
5954 set_gdbarch_deprecated_extract_struct_value_address,
5955 set_gdbarch_deprecated_call_dummy_words and
5956 set_gdbarch_deprecated_sizeof_call_dummy_words.
5958 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5960 * h8300-tdep.c (h8300_register_byte): Remove.
5961 (h8300h_register_byte): Remove.
5962 (h8300_register_virtual_type): Remove. Substitute by...
5963 (h8300_register_type): New function.
5964 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5965 (h8300h_extract_struct_value_address): Ditto.
5966 (h8300_gdbarch_init): Drop calls to
5967 set_gdbarch_deprecated_register_byte and
5968 set_gdbarch_deprecated_register_virtual_type.
5969 Add call to set_gdbarch_register_type.
5971 2003-06-13 Andrew Cagney <cagney@redhat.com>
5973 * gdbarch.sh: Update comments on registers.
5974 (deprecated_register_byte): Rename register_byte.
5975 (deprecated_register_raw_size): Rename register_raw_size.
5976 (deprecated_register_virtual_size): Rename register_virtual_size.
5977 (deprecated_register_virtual_type): Rename register_virtual_type.
5978 * gdbarch.h, gdbarch.c: Re-generate.
5979 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5980 * vax-tdep.c (vax_gdbarch_init): Update.
5981 * v850-tdep.c (v850_gdbarch_init): Update.
5982 * sparc-tdep.c (sparc_gdbarch_init): Update.
5983 * sh-tdep.c (sh_gdbarch_init): Update.
5984 * s390-tdep.c (s390_gdbarch_init): Update.
5985 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5986 * ns32k-tdep.c: Update.
5987 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5988 * mips-tdep.c (mips_gdbarch_init): Update.
5989 * mcore-tdep.c (mcore_gdbarch_init): Update.
5990 * m68k-tdep.c (m68k_gdbarch_init): Update.
5991 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5992 * ia64-tdep.c (ia64_gdbarch_init): Update.
5993 * hppa-tdep.c (hppa_gdbarch_init): Update.
5994 * h8300-tdep.c (h8300_gdbarch_init): Update.
5995 * frv-tdep.c (frv_gdbarch_init): Update.
5996 * cris-tdep.c (cris_gdbarch_init): Update.
5997 * avr-tdep.c (avr_gdbarch_init): Update.
5998 * alpha-tdep.c (alpha_gdbarch_init): Update.
5999 * arm-tdep.c (arm_gdbarch_init): Update.
6001 2003-06-13 Andrew Cagney <cagney@redhat.com>
6003 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6004 mips_o32_use_struct_convention with always_use_struct_convention.
6006 2003-06-12 David Carlton <carlton@kealia.com>
6008 * cp-namespace.c (cp_set_block_scope): Comment out
6009 processing_has_namespace_info branch.
6011 2003-06-12 Jim Blandy <jimb@redhat.com>
6013 Recognize and skip 64-bit PowerPC Linux linkage functions.
6014 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6015 insn_pattern, insns_match_pattern, d_field, ds_field): New
6016 functions, macros, and types for working with PPC instructions.
6017 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6018 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6019 ppc64_skip_trampoline_code): New functions, variables, and macros
6020 for recognizing and skipping linkage functions.
6021 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6022 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6024 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6025 register offsets for both the 32- and 64-bit interfaces.
6027 Actually finish the job started by my change of 2003-05-29.
6028 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6029 other #definition of this.
6030 (ppc_linux_skip_trampoline_code): Remove declaration.
6031 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6033 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6036 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6037 'long' on ppc64-*-linux*.
6039 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6040 isn't #defined, assume the register doesn't exist: act as if
6041 tdep->ppc_mq_regnum were -1.
6043 * configure.host, configure.tgt: Add entries for
6044 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6046 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6049 * arch-utils.c (always_use_struct_convention): New function.
6050 * arch-utils.h (always_use_struct_convention): New prototype.
6051 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6052 (alpha_gdbarch_init): Register always_use_struct_convention,
6053 instead of alpha_use_struct_convention.
6054 * cris-tdep.c (cris_use_struct_convention): Delete.
6055 (cris_gdbarch_init): Register always_use_struct_convention,
6056 instead of cris_use_struct_convention.
6057 * frv-tdep.c (frv_use_struct_convention): Delete.
6058 (frv_gdbarch_init): Register always_use_struct_convention,
6059 instead of frv_use_struct_convention.
6060 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6061 (h8300_gdbarch_init): Register always_use_struct_convention,
6062 instead of h8300_use_struct_convention.
6063 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6064 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6065 instead of mips_o32_use_struct_convention.
6067 2003-06-12 Andrew Cagney <cagney@redhat.com>
6069 * wince.c: Include "mips-tdep.h".
6070 * mips-tdep.h (mips_next_pc): Declare.
6071 * mcore-tdep.c: Make more local functions static.
6072 * Makefile.in (wince.o): Update dependencies.
6074 2003-06-12 David Carlton <carlton@kealia.com>
6076 * symtab.c (lookup_symbol_aux_minsyms): Replace
6077 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6078 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6079 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6080 SYMBOL_NATURAL_NAME.
6082 2003-06-12 Andreas Schwab <schwab@suse.de>
6084 * Makefile.in (tuiDisassem.o): Update dependencies.
6086 2003-06-12 David Carlton <carlton@bactrian.org>
6088 * symtab.h: Delete declaration of make_symbol_overload_list.
6089 Add declaration of lookup_partial_symbol.
6090 * symtab.c (remove_params): Move to cp-support.c.
6091 (overload_list_add_symbol, make_symbol_overload_list)
6092 (sym_return_val_size, sym_return_val_index): Ditto.
6093 (lookup_partial_symbol): Make extern.
6094 * cp-support.h: Add declaration of make_symbol_overload_list.
6095 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6096 symtab.h, and block.h.
6097 (remove_params): Move here from symtab.c.
6098 (overload_list_add_symbol, make_symbol_overload_list)
6099 (sym_return_val_size, sym_return_val_index): Ditto.
6100 * valops.c: Include cp-support.h.
6101 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6102 frame_h, and block_h.
6103 (valops.o): Depend on cp_support_h.
6105 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6107 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6108 substitute by NUM_REGS throughout.
6109 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6110 (h8300s_register_name): New function for H8S registers.
6111 (h8300sx_register_name): Ditto for H8SX registers.
6112 (h8300_print_register): Revise register printing, avoid depending
6114 (h8300_register_byte): Only care for H8/300 registers.
6115 (h8300h_register_byte): New function for any other architecture.
6116 (h8300_register_raw_size): Remove.
6117 (h8300_register_virtual_type): Revise to return actually useful
6119 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6120 (h8300h_extract_struct_value_address): New function for any other
6122 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6123 set_gdbarch_register_name, set_gdbarch_register_byte,
6124 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6125 Remove calls to set_gdbarch_deprecated_register_size,
6126 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6127 set_gdbarch_deprecated_max_register_raw_size,
6128 set_gdbarch_register_virtual_size and
6129 set_gdbarch_deprecated_max_register_virtual_size entirely.
6130 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6131 set_gdbarch_long_double_bit.
6133 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6135 * doublest.c (convert_doublest_to_floatformat): When dealing
6136 with the implied integer bit, only alter mant_bits if we are
6137 processing a full 32 bits of mantissa.
6139 2003-06-11 David Carlton <carlton@bactrian.org>
6141 * dictionary.h: New.
6142 * dictionary.c: New.
6143 * block.h: Add opaque declaration for struct dictionary.
6144 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6146 (BLOCK_DICT): New macro.
6147 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6148 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6150 (ALL_BLOCK_SYMBOLS): Update definition.
6151 * Makefile.in (SFILES): Add dictionary.c.
6152 (dictionary_h): New.
6153 (COMMON_OBS): Add dictionary.o.
6154 (dictionary.o): New.
6155 (ada-lang.o): Depend on dictionary_h.
6156 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6157 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6158 (mi-cmd-stack.o): Ditto.
6159 (gdbtk-cmds.o): Update dependencies.
6160 (gdbtk-stack.o): Ditto.
6161 * ada-lang.c: Include dictionary.h.
6162 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6163 (fill_in_ada_prototype, debug_print_block): Ditto.
6164 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6165 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6167 * mdebugread.c: Include dictionary.h.
6168 (struct parse_stack): Delete 'maxsyms' member.
6169 (parse_symbol): Update calls to new_block. Delete calls to
6170 shrink_block. Use dictionary methods.
6171 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6172 Update calls to new_symtab. Don't maintain maxsyms data.
6173 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6174 (add_symbol): Just call dict_add_symbol.
6175 (new_symtab): Delete 'maxsyms' argument.
6176 (new_symtab): Update calls to new_block.
6177 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6178 (shrink_block): Delete function.
6179 (fixup_sigtramp): Update call to new_block. Add symbol via
6181 * jv-lang.c: Include dictionary.h.
6182 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6183 appropriately. Set class_symtab->free_func. Make sure the
6184 blockvector is big enough to hold two blocks.
6185 (add_class_symtab_symbol): Use dictionary methods.
6186 (free_class_block): New function.
6187 (type_from_class): Replace explicit iteration by
6189 * symtab.h (struct symtab): Replace 'free_ptr' method by
6191 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6193 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6195 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6196 Include dictionary.h.
6197 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6198 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6200 * objfiles.c: Include dictionary.h.
6201 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6202 * buildsym.c: Include dictionary.h.
6203 (finish_block): Use dictionary methods.
6204 (end_symtab): Set free_func to NULL, not free_ptr.
6205 * tracepoint.c: Include dictionary.h.
6206 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6207 (scope_info): Ditto.
6208 * stack.c: Include dictionary.h.
6209 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6210 (print_block_frame_labels, print_frame_arg_vars)
6211 (print_frame_args): Ditto.
6212 * symmisc.c (free_symtab_block): Use dictionary methods.
6213 (dump_symtab): Ditto.
6214 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6215 Include dictionary.h.
6216 * symfile.h: Delete declarations of sort_block_syms,
6218 * symfile.c (sort_block_syms): Delete.
6219 (sort_symtab_syms): Delete.
6220 * symtab.c: Include dictionary.h.
6221 (lookup_block_symbol): Use dictionary iterators.
6222 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6223 (search_symbols, make_symbol_completion_list): Ditto.
6224 (make_symbol_overload_list): Ditto.
6225 * valops.c (value_of_local): Use dict_empty.
6226 Include dictionary.h.
6228 2003-06-11 J. Brobecker <brobecker@gnat.com>
6230 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6232 2003-06-11 David Carlton <carlton@bactrian.org>
6234 * block.h (BLOCK_SHOULD_SORT): Delete.
6235 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6237 * ada-lang.c (ada_add_block_symbols): Ditto.
6238 * symfile.c (sort_block_syms): Delete.
6239 (sort_symtab_syms): Ditto.
6240 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6242 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6243 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6244 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6245 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6246 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6247 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6248 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6250 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6252 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6255 2003-06-11 Andrew Cagney <cagney@redhat.com>
6257 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6258 REGISTER_CONVERTIBLE.
6259 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6260 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6261 * gdbarch.h, gdbarch.c: Re-generate.
6262 * arch-utils.h (deprecated_register_convertible_not): Rename
6263 generic_register_convertible_not.
6264 * arch-utils.c (deprecated_register_convertible_not): Rename
6265 generic_register_convertible.
6266 (legacy_convert_register_p, legacy_register_to_value): Update.
6267 * sh-tdep.c (sh64_push_arguments): Update.
6268 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6269 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6270 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6271 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6272 * arch-utils.c (legacy_value_to_register): Update.
6273 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6274 (rs6000_register_convert_to_raw): Make parameter "from" const.
6275 * mips-tdep.c (mips_gdbarch_init): Update.
6276 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6277 * infcmd.c (default_print_registers_info): Update.
6278 * ia64-tdep.c (ia64_gdbarch_init): Update.
6279 (ia64_register_convert_to_raw): Make parameter "from" const.
6280 * i386-tdep.c (i386_gdbarch_init): Update.
6281 (i386_register_convert_to_raw): Update.
6283 2003-06-11 Andrew Cagney <cagney@redhat.com>
6285 * remote-fileio.c: Include "remote-fileio.h".
6286 * Makefile.in (remote-fileio.o): Update dependencies.
6287 (remote_fileio_h): Fix typo.
6289 2003-06-11 Andrew Cagney <cagney@redhat.com>
6291 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6292 (xstormy16_save_dummy_frame_tos): Make static.
6293 (_initialize_xstormy16_tdep): Add declaration.
6294 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6295 * v850-tdep.c: Make local functions static.
6296 (_initialize_v850_tdep): Add declaration.
6297 * sparc-tdep.c: Make local functions static.
6298 (_initialize_sparc_tdep): Add declaration.
6299 * sh-tdep.c: Make local functions static.
6300 (_initialize_sh_tdep): Add declaration.
6301 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6302 * s390-tdep.c: Make local functions static.
6303 (_initialize_s390_tdep): Add declaration.
6304 * dbxread.c (find_stab_function_addr): Make static.
6305 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6306 * ocd.c (_initialize_remote_ocd): Add declaration.
6307 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6308 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6309 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6310 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6311 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6312 * remote-array.c (_initialize_array): Add declaration.
6313 (_initialize_remote_monitors): Add declaration.
6314 * remote-mips.c: Make local functions static.
6315 (_initialize_remote_mips): Add declaration.
6316 * mcore-tdep.c: Make all local functions static.
6317 (_initialize_mcore_tdep): Add declaration.
6318 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6319 * abug-rom.c (_initialize_abug_rom): Add declaration.
6320 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6321 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6322 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6323 * remote-est.c (_initialize_est): Add declaration.
6324 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6325 (m68hc11_call_dummy_address): Make static.
6326 * ia64-tdep.c: Make local functions static.
6327 (_initialize_ia64_tdep): Add declaration.
6328 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6329 * monitor.c (monitor_wait_filter): Make static.
6330 (_initialize_remote_monitors): Add declaration.
6331 * remote-hms.c (_initialize_remote_hms): Add declaration.
6332 * remote-e7000.c (fetch_regs_from_dump): Make static.
6333 (expect_n): Make static.
6334 (_initialize_remote_e7000): Add declaration.
6335 * ser-e7kpc.c: Always include "defs.h".
6336 (_initialize_ser_e7000pc): Add declaration.
6337 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6338 * cris-tdep.c: Make all but one function static.
6339 (_initialize_cris_tdep): Add declaration.
6340 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6341 * solib.c (update_solib_list): Make static.
6342 (_initialize_solib): Add declaration.
6343 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6344 (_initialize_avr_tdep): Add declaration.
6345 * remote-rdi.c (voiddummy): Make static.
6346 (_initialize_remote_rdi): Add declaration.
6347 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6348 * remote-rdp.c (send_rdp): Make static.
6349 (_initialize_remote_rdp): Add declaration.
6350 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6352 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6354 * remote-fileio.c: Make ari happy.
6356 2003-06-10 J. Brobecker <brobecker@gnat.com>
6358 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6359 fetching the trailing bytes of the buffer we are about to write.
6361 2003-06-10 Andrew Cagney <cagney@redhat.com>
6363 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6364 * Makefile.in (remote-fileio.o): Update dependencies.
6365 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6366 include <setjmp.h>, or <sys/types.h> conditional on USG.
6367 (remote_fio_jmp_buf): Delete global variable.
6369 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6370 Martin M. Hunt <hunt@redhat.com>
6372 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6373 (SFILES): Add remote-fileio.c.
6374 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6375 dependencies for building remote.o.
6376 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6377 * remote-fileio.h: New header file defining remote File-I/O interface.
6378 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6379 static storage class.
6380 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6382 (_initialize_remote): Call initialize_remote_fileio().
6383 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6384 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6385 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6386 (captured_main): Initialize new ui_files.
6387 * ui-file.c: Add read and fgets input functions.
6388 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6389 (null_file_read): New function.
6390 (ui_file_read): New function.
6391 (set_ui_file_read): New function.
6392 (stdio_file_read): New function.
6393 * ui-file.h: New type ui_file_read_ftype.
6394 (set_ui_file_read): Declare.
6395 (ui_file_read): Declare.
6397 2003-06-09 Andrew Cagney <cagney@redhat.com>
6399 * frame.h (deprecated_unwind_get_saved_register): Rename
6400 generic_unwind_get_saved_register, update comments.
6401 * mips-tdep.c (mips_get_saved_register): Update.
6402 * frame.c (deprecated_unwind_get_saved_register): Update.
6404 2003-06-09 Andrew Cagney <cagney@redhat.com>
6406 * vax-tdep.c (vax_frame_locals_address): Delete function.
6407 (vax_gdbarch_init): Do not set frame_locals_address.
6408 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6409 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6410 * s390-tdep.c (s390_frame_args_address): Delete function.
6411 (s390_gdbarch_init): Do not set frame_args_address or
6412 frame_locals_address.
6413 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6414 (ns32k_gdbarch_init): Do not set frame_locals_address.
6415 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6416 (hppa_frame_locals_address): Delete function.
6417 (hppa_gdbarch_init): Do not set frame_args_address, or
6418 frame_locals_address.
6419 * arm-tdep.c (arm_frame_args_address): Delete.
6420 (arm_frame_locals_address): Delete.
6421 (arm_gdbarch_init): Do not set frame_args_address, or
6422 frame_locals_address.
6424 2003-06-09 Andrew Cagney <cagney@redhat.com>
6426 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6427 * gdbarch.h, gdbarch.c: Re-generate.
6428 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6429 * arch-utils.c (frame_num_args_unknown): Delete function.
6430 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6431 (frame_info): Use FRAME_NUM_ARGS_P.
6432 * arm-tdep.c (arm_frame_num_args): Delete function.
6433 (arm_gdbarch_init): Do not set frame_num_args.
6434 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6435 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6436 (hppa_gdbarch_init): Do not set frame_num_args.
6437 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6439 frame_num_args to default frame_num_args_unknown.
6440 * v850-tdep.c (v850_gdbarch_init): Ditto.
6441 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6442 * sh-tdep.c (sh_gdbarch_init): Ditto.
6443 * s390-tdep.c (s390_gdbarch_init): Ditto.
6444 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6445 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6446 * mips-tdep.c (mips_gdbarch_init): Ditto.
6447 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6448 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6449 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6450 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6451 * i386-tdep.c (i386_gdbarch_init): Ditto.
6452 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6453 * frv-tdep.c (frv_gdbarch_init): Ditto.
6454 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6455 * cris-tdep.c (cris_gdbarch_init): Ditto.
6456 * avr-tdep.c (avr_gdbarch_init): Ditto.
6457 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6459 2003-06-09 Andrew Cagney <cagney@redhat.com>
6461 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6462 (print_frame_args): Moved to "stack.c".
6463 * stack.c: Include "gdb_assert.h".
6464 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6465 (print_frame_args): Moved from "printcmd.c".
6466 * frame.h (print_frame_args): Delete declaration.
6467 * Makefile.in (stack.o): Update dependencies.
6469 2003-06-08 Andrew Cagney <cagney@redhat.com>
6471 * frame.c (get_prev_frame): Remove reference to
6472 frame_args_address_correct in comments.
6473 * frame-base.c (default_frame_args_address): Delete code
6474 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6475 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6476 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6477 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6478 (vax_frame_args_address_correct): Delete declaration.
6480 2003-06-08 Andrew Cagney <cagney@redhat.com>
6482 * gdbarch.sh (UNWIND_SP): Add.
6483 * gdbarch.h, gdbarch.c: Re-generate.
6484 * frame.c (frame_sp_unwind): New function.
6485 (get_frame_sp): New function.
6486 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6487 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6488 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6490 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6491 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6493 2003-06-08 Andrew Cagney <cagney@redhat.com>
6495 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6498 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6499 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6500 * config/m68k/tm-sun3.h: Update.
6501 * config/m68k/tm-m68klynx.h: Update.
6502 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6504 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6505 trad_frame". Update comments.
6506 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6507 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6508 (trad_frame_register_value, trad_frame_prev_register): Update.
6510 2003-06-08 Andrew Cagney <cagney@redhat.com>
6512 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6513 from GCC's acinclude.m4.
6514 * configure.in: Check for getopt's delcaration.
6515 * aclocal.m4, config.in, configure: Re-generate.
6516 * main.c (error_init): Delete declaration.
6517 * defs.h (error_init): Declare.
6518 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6519 (rs6000_convert_from_func_ptr_addr): Make static.
6520 (_initialize_rs6000_tdep): Add declaration.
6521 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6522 (show_commands, set_verbose, show_history): Delete declaration.
6523 * top.h (set_verbose): Add declaration.
6524 (show_history, set_history, show_commands): Add declaration.
6525 (do_restore_instream_cleanup): Add declaration.
6526 * objc-lang.c (specialcmp): Make static.
6527 (print_object_command): Make static.
6528 (find_objc_msgsend): Make static.
6529 (find_objc_msgcall_submethod_helper): Make static.
6530 (find_objc_msgcall_submethod): Make static.
6531 (_initialize_objc_language): Add declaration.
6532 (find_implementation_from_class): Make static.
6533 (find_implementation): Make static.
6534 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6535 * objc-lang.h (lookup_struct_typedef): Add declaration.
6536 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6537 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6538 (do_restore_user_call_depth): Make static.
6539 (do_restore_instream_cleanup): Delete declaration.
6540 (dont_repeat): Delete declaration.
6541 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6542 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6543 * reggroups.c (_initialize_reggroup): Add declaration.
6544 * cp-support.c (_initialize_cp_support): Add declaration.
6545 * cp-abi.c (_initialize_cp_abi): Add declaration.
6546 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6547 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6548 (_initialize_gnu_v3_abi): Add declaration.
6549 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6550 (_initialize_gnu_v2_abi): Add declaration.
6551 * frame-base.c (_initialize_frame_base): Add declaration.
6552 * doublest.c (floatformat_from_length): Make static.
6553 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6554 * frame.c (create_sentinel_frame): Make static.
6555 (_initialize_frame): Add declaration.
6556 * top.c (do_catch_errors): Make static.
6557 (gdb_rl_operate_and_get_next_completion): Make static.
6558 * typeprint.c: Include "typeprint.h".
6559 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6560 (sentinel_frame_this_id): Make static.
6561 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6562 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6563 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6564 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6565 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6566 * maint.c (maintenance_print_architecture): Make static.
6567 * signals/signals.c (_initialize_signals): Add declaration.
6568 * std-regs.c (_initialize_frame_reg): Add declaration.
6569 * jv-exp.y (push_variable): ISO C definition.
6570 (push_qualified_expression_name): Ditto.
6571 * memattr.c (_initialize_mem): Add declaration.
6572 * remote.c (remote_check_watch_resources): Make static.
6573 (remote_stopped_by_watchpoint): Make static.
6574 (remote_stopped_data_address): Make static.
6575 * d10v-tdep.c (nr_dmap_regs): Make static.
6576 (a0_regnum): Make static.
6577 (d10v_frame_unwind_cache): Make static.
6578 (d10v_frame_p): Make static.
6579 * osabi.c (show_osabi): Make static.
6580 (_initialize_gdb_osabi): Add extern declaration.
6581 * gdbtypes.c (make_qualified_type): Make static.
6582 (safe_parse_type): Make static.
6583 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6584 * macrotab.c (macro_bcache_free): Make static.
6585 * interps.c (interp_set_quiet): Make static.
6586 (interpreter_exec_cmd): Make static.
6587 * stack.h (select_frame_command): New file.
6588 * stack.c: Include "stack.h".
6589 (select_frame_command_wrapper): Delete function.
6590 (select_frame_command): Make global.
6591 * infcall.c: Include "infcall.h".
6592 * linespec.c: Include "linespec.h".
6593 * symfile.c (sections_overlap): Make static.
6594 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6595 * charset.c (_initialize_charset): Add missing prototype.
6596 * regcache.c (init_legacy_regcache_descr): Make static.
6597 (do_regcache_xfree): Make static.
6598 (regcache_xfer_part): Make static.
6599 (_initialize_regcache): Add missing prototype.
6600 * breakpoint.c (parse_breakpoint_sals): Make static.
6601 (breakpoint_sals_to_pc): Make static.
6602 * interps.h (clear_interpreter_hooks): ISO C declaration.
6603 * Makefile.in (stack_h): Define.
6604 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6605 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6607 2003-06-08 Andrew Cagney <cagney@redhat.com>
6609 * Makefile.in (d10v-tdep.o): Update dependencies.
6610 (SFILES): Add trad-frame.c.
6611 (trad_frame_h): Define.
6612 (COMMON_OBS): Add trad-frame.o.
6613 (trad-frame.o): Specify dependencies.
6614 * d10v-tdep.c: Include "trad-frame.h".
6615 (saved_regs_unwinder): Delete function.
6616 (d10v_frame_prev_register): Use trad_frame_prev_register.
6617 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6618 trad_frame", delete "regs" and "prev_sp".
6619 (prologue_find_regs): Use trad-frame.
6620 * trad-frame.h, trad-frame.c: New files.
6622 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6624 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6626 2003-06-07 Adam Fedor <fedor@gnu.org>
6628 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6629 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6630 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6631 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6632 resolve_msgsend_super, resolve_msgsend_super_stret):
6635 2003-06-07 Andrew Cagney <cagney@redhat.com>
6637 * symfile.h: Re-indent, clean up comments.
6639 2003-06-07 Andrew Cagney <cagney@redhat.com>
6641 * inferior.h (deprecated_write_sp): Replace
6642 generic_target_write_sp.
6643 * regcache.c (deprecated_write_sp): Replace
6644 generic_target_write_sp.
6645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6646 * vax-tdep.c (vax_gdbarch_init): Update.
6647 * v850-tdep.c (v850_gdbarch_init): Update.
6648 * sparc-tdep.c (sparc_gdbarch_init): Update.
6649 * sh-tdep.c (sh_gdbarch_init): Update.
6650 * s390-tdep.c (s390_gdbarch_init): Update.
6651 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6652 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6653 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6654 * mcore-tdep.c (mcore_gdbarch_init): Update.
6655 * m68k-tdep.c (m68k_gdbarch_init): Update.
6656 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6657 * ia64-tdep.c (ia64_gdbarch_init): Update.
6658 * h8300-tdep.c (h8300_gdbarch_init): Update.
6659 * frv-tdep.c (frv_gdbarch_init): Update.
6660 * cris-tdep.c (cris_gdbarch_init): Update.
6661 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6663 2003-06-07 Andrew Cagney <cagney@redhat.com>
6665 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6666 Assert that PC_REGNUM is valid.
6667 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6669 2003-06-07 Andrew Cagney <cagney@redhat.com>
6671 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6672 * gdbarch.h, gdbarch.c: Regenerate.
6673 * mn10300-tdep.c: Include "gdb_assert.h".
6674 (mn10300_read_fp): New function.
6675 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6676 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6677 * ia64-tdep.c: Include "gdb_assert.h".
6678 (ia64_read_fp): New function.
6679 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6680 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6681 * regcache.c (generic_target_read_sp): Delete function.
6682 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6683 * inferior.h (generic_target_read_sp): Delete declaration.
6684 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6685 generic_target_read_sp.
6686 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6687 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6688 * sh-tdep.c (sh_gdbarch_init): Ditto.
6689 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6690 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6692 2003-06-07 Andrew Cagney <cagney@redhat.com>
6694 * gdbarch.sh: Comment each field of startup_gdbarch.
6695 * gdbarch.h, gdbarch.c: Re-generate.
6697 2003-06-07 Andrew Cagney <cagney@redhat.com>
6699 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6700 * gdbarch.h, gdbarch.c: Re-generate.
6701 * regcache.c: Update comments on read_pc et.al.
6702 (generic_target_read_pc): Delete function.
6703 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6704 * inferior.h (generic_target_read_pc): Delete declaration.
6705 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6706 generic_target_read_pc.
6707 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6708 * sh-tdep.c (sh_gdbarch_init): Ditto.
6709 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6710 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6712 2003-06-07 Andrew Cagney <cagney@redhat.com>
6714 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6715 "index" with "special_local_sect". Use strcmp instead of STREQ.
6716 Append period to coments.
6718 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6720 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6721 (elfstab_offset_sections): Likewise.
6722 * gdb-stabs.h (stab_section_info): Likewise.
6723 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6724 * objfiles.c (objfile_relocate): Likewise.
6725 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6726 * remote.c (get_offsets): Likewise.
6727 (remote_cisco_objfile_relocate): Likewise.
6728 * somread.c (som_symfile_offsets): Likewise.
6729 * symfile.c (alloc_section_addr_info): New function.
6730 (build_section_addr_info_from_section_tab): Use it.
6731 (free_section_addr_info): Adjust.
6732 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6733 (syms_from_objfile): Allocate local_addr dynamically.
6734 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6736 (add_symbol_file_command): Allocate sect_opts dynamically.
6737 (reread_symbols): Avoid use of SECT_OFF_MAX.
6738 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6739 (alloc_section_addr_info): Declare it.
6740 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6741 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6743 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6745 2003-06-06 Andrew Cagney <cagney@redhat.com>
6747 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6748 (d10v_frame_unwind_cache): Do not set "return_pc".
6750 2003-06-06 Michael Snyder <msnyder@redhat.com>
6752 * h8300-tdep.c: Make tidy (long lines).
6754 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6756 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6757 to regcache_collect().
6759 2003-06-05 J. Brobecker <brobecker@gnat.com>
6761 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6762 pc_in_sigtramp multiarch method.
6763 (hppa_hpux_som_init_abi): Use it.
6764 (hppa_hpux_elf_init_abi): Likewise.
6765 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6766 macro has been multiarched.
6767 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6768 macro here, as hppa64 isn't multiarched yet.
6770 2003-06-05 Andrew Cagney <cagney@redhat.com>
6772 * Makefile.in (value_h): Add $(frame_h).
6773 * value.h: Include "frame.h".
6774 (struct value): Replace "frame_addr" with "frame_id".
6775 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6776 * values.c (allocate_value): Use VALUE_FRAME_ID.
6777 (value_copy): Use VALUE_FRAME_ID.
6778 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6779 * valops.c (value_assign): Update. Use frame_find_by_id.
6781 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6783 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6786 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6788 * thread-db.c (check_event): For create/death event breakpoints,
6789 loop through all messages to ensure that we read the message
6790 corresponding to the breakpoint we are at.
6792 2003-06-04 Michael Snyder <msnyder@redhat.com>
6794 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6796 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6798 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6799 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6800 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6801 when handling .eh_frame sections.
6803 2003-06-04 J. Brobecker <brobecker@gnat.com>
6805 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6806 prepare_to_proceed procedure instead of the hppa-specific one.
6807 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6809 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6811 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6812 * config.in: Regenerated.
6813 * configure.in: Add test for syscall function and check for
6814 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6815 * configure: Regenerated.
6816 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6818 (kill_lwp): New function that uses tkill syscall or
6819 uses kill, depending on whether threading model is nptl or not.
6820 All callers of kill() changed to use kill_lwp().
6821 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6822 see if all threads have already exited in the nptl model.
6823 (stop_and_resume_callback): New callback function used by the
6824 lin_lwp_wait thread exit handling code.
6825 (stop_wait_callback): Check for threads already having exited and
6826 delete such threads fromt the lwp list when discovered.
6827 (stop_callback): Don't assert retcode of kill call.
6829 Roland McGrath <roland@redhat.com>
6830 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6833 2003-06-03 Richard Henderson <rth@redhat.com>
6835 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6836 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6837 (alpha_sigtramp_frame_prev_register): Likewise.
6838 (alpha_heuristic_frame_prev_register): Likewise.
6839 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6841 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6842 alpha-specific register id names.
6843 (alpha_mdebug_frame_unwind_cache): Likewise.
6844 (alpha_mdebug_frame_prev_register): Likewise.
6846 2003-06-03 Richard Henderson <rth@redhat.com>
6848 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6849 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6850 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6851 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6853 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6854 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6855 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6857 * alpha-linux-tdep.c: Remove unnecessary includes.
6858 * Makefile.in (alpha-linux-tdep.o): Update.
6860 2003-06-03 Richard Henderson <rth@redhat.com>
6862 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6863 (alphabsd_fill_fpreg): Likewise.
6865 2003-06-03 J. Brobecker <brobecker@gnat.com>
6867 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6868 references to struct frame_info fields by calls to the equivalent
6869 accessors. Necessary now that frame_info is opaque.
6871 2003-06-03 J. Brobecker <brobecker@gnat.com>
6873 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6874 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6875 structure, field no longer exists.
6877 2003-06-03 J. Brobecker <brobecker@gnat.com>
6879 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6880 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6882 2003-06-03 J. Brobecker <brobecker@gnat.com>
6884 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6885 references to struct frame_info fields by calls to the equivalent
6886 accessors. Necessary now that frame_info is opaque.
6888 2003-06-03 J. Brobecker <brobecker@gnat.com>
6890 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6891 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6892 structure, field no longer exists.
6894 2003-06-03 Theodore A. Roth <troth@openavr.org>
6896 * remote.c (init_remote_state): Compute sizeof_g_packet by
6897 accumulation of the size of all registers instead of blindly using
6898 DEPRECATED_REGISTER_BYTES.
6900 2003-06-03 Michael Snyder <msnyder@redhat.com>
6902 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6903 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6906 2003-06-03 J. Brobecker <brobecker@gnat.com>
6908 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6909 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6911 2003-06-03 Andrew Cagney <cagney@redhat.com>
6913 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6914 (sparc_convert_to_raw): Delete function.
6915 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6916 register_convert_to_virtual.
6918 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6920 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6921 layer if not dealing with a statically-linked threaded program.
6923 2003-06-03 Kris Warkentin <kewarken@qnx.com>
6925 * solib.c (solib_open): Update comment to reflect actual search order.
6927 2003-06-03 Andrew Cagney <cagney@redhat.com>
6929 * frame.c (get_frame_memory_signed): New function.
6930 (get_frame_memory, get_frame_memory_unsigned): New function.
6931 (get_frame_arch): New function.
6932 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6933 (get_frame_memory, get_frame_unsigned_memory): Declare.
6934 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6935 get_frame_memory_unsigned and get_frame_arch.
6936 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6938 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6940 * MAINTAINERS (write after approval): Add myself.
6942 2003-06-03 Jim Blandy <jimb@redhat.com>
6944 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6945 elements of gregset_t are 64 bits each, but access registers
6946 are still 32 bits, so they're packed two per gregset_t
6947 element. Unpack/pack them properly.
6949 2003-06-02 David Carlton <carlton@bactrian.org>
6951 * linespec.c (find_methods): Break out code into
6952 add_matching_methods and add_constructors.
6953 (add_matching_methods): New.
6954 (add_constructors): Ditto.
6956 2003-06-02 Andrew Cagney <cagney@redhat.com>
6958 * sparc-tdep.c (sparc_print_registers): Delete call to
6959 REGISTER_CONVERTIBLE.
6960 (sparc_gdbarch_init): Do not set register_convertible.
6961 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6962 * frv-tdep.c (frv_gdbarch_init): Ditto.
6963 * cris-tdep.c (cris_gdbarch_init): Ditto.
6965 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
6967 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6968 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6969 (syms_from_objfile): Ditto.
6971 2003-06-03 Andreas Schwab <schwab@suse.de>
6973 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6974 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6976 2003-06-02 Richard Henderson <rth@redhat.com>
6978 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6979 a member of all_reggroup.
6981 2003-06-02 Richard Henderson <rth@redhat.com>
6983 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6984 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6985 (alpha_lds, alpha_sts): New.
6986 (alpha_convert_register_p): Change from _register_convertible.
6987 (alpha_register_to_value): Change from _convert_to_virtual;
6988 restructure and fail for type sizes other than 4 or 8.
6989 (alpha_value_to_register): Similarly.
6990 (alpha_extract_return_value): Use alpha_sts.
6991 (alpha_store_return_value): Use alpha_lds.
6992 (alpha_gdbarch_init): Update hooks.
6994 2003-06-02 Richard Henderson <rth@redhat.com>
6996 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6998 (alpha_sigtramp_register_address): Likewise.
7000 2003-06-02 Richard Henderson <rth@redhat.com>
7002 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7003 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7004 * alpha-tdep.h: Declare them.
7006 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7007 Remove zerobuf. Don't error on UNIQUE.
7008 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7009 (ALPHA_REGSET_UNIQUE): Provide default.
7010 (supply_gregset): Use alpha_supply_int_regs.
7011 (fill_gregset): Use alpha_fill_int_regs.
7012 (supply_fpregset): Use alpha_supply_fp_regs.
7013 (fill_fpregset): Use alpha_fill_fp_regs.
7014 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7015 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7016 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7017 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7018 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7019 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7021 2003-06-02 Richard Henderson <rth@redhat.com>
7023 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7025 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7026 (alpha_store_return_value): Likewise.
7028 2003-06-02 David Carlton <carlton@math.stanford.edu>
7030 * block.c (contained_in): Add 'const' to arguments.
7031 (block_function): Ditto.
7032 * block.h: Update declarations for block_function and
7035 2003-06-02 David Carlton <carlton@math.stanford.edu>
7037 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7038 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7039 * p-valprint.c (pascal_val_print): Ditto.
7040 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7042 2003-06-02 Richard Henderson <rth@redhat.com>
7044 * alpha-tdep.c (alpha_push_dummy_call): Use
7045 builtin_type_ieee_double_little instead of builtin_type_double.
7047 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7048 sign-extension of 32-bit values.
7049 (alpha_store_return_value): Similarly.
7051 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7052 (alpha_extract_return_value): Likewise.
7053 (alpha_store_return_value): Likewise.
7055 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7056 (alpha_store_return_value): Error on IEEE Quad floats.
7058 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7059 (alpha_extract_struct_value_address): Likewise.
7060 (alpha_store_return_value): Likewise.
7061 (alpha_store_struct_return): Remove.
7062 (alpha_gdbarch_init): Update hook registration to match.
7064 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7065 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7066 macros where appropriate.
7067 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7068 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7070 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7071 for SP, GP; void_func_ptr for PC; non-language-specific types
7073 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7075 2003-06-02 Richard Henderson <rth@redhat.com>
7077 * top.h (lim_at_start): Declare.
7078 * main.c (captured_main): Set it.
7079 * top.c (lim_at_start): Define.
7080 (command_loop): Use it instead of &environ.
7081 * event-top.c (command_handler): Likewise.
7083 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7085 * mipsnbsd-tdep.c: Update copyright years.
7086 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7088 2003-06-01 Richard Henderson <rth@redhat.com>
7090 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7091 (alpha-linux-tdep.o): Update dependencies.
7092 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7093 * alpha-mdebug-tdep.c: Remove unneeded includes.
7095 2003-06-01 Richard Henderson <rth@redhat.com>
7097 * alpha-tdep.c (alpha_register_reggroup_p): New.
7098 (alpha_gdbarch_init): Register it.
7100 2003-06-02 Andrew Cagney <cagney@redhat.com>
7102 * dwarfread.c: Eliminate "register"
7103 (decode_die_type): Eliminate assignment within "if".
7104 (struct_type, decode_array_element_type): Ditto.
7105 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7106 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7107 (decode_modified_type, completedieinfo): Ditto.
7108 * block.c: Eliminate "register".
7109 (blockvector_for_pc_sect): Eliminate assignment within "if".
7110 * cp-support.h (struct symbol): Opaque declaration.
7111 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7113 2003-06-01 Richard Henderson <rth@redhat.com>
7115 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7116 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7118 2003-06-01 Adam Fedor <fedor@gnu.org>
7120 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7121 * gdbarch.[ch]: Regenerate.
7122 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7123 (hppa_gdbarch_init): Set it in the gdbarch vector.
7124 * i386-tdep.c (i386_fetch_pointer_argument): New
7125 (i386_gdbarch_init): Set it into gdbarch.
7126 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7127 (rs6000_gdbarch_init): Set it in gdbarch.
7128 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7129 (sparc_gdbarch_init): Set it in gdbarch.
7131 2003-06-01 Andrew Cagney <cagney@redhat.com>
7133 * defs.h (extract_address): Delete declaration.
7134 * findvar.c (extract_address): Delete function.
7135 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7136 extract_address with the inline equivalent,
7137 extract_unsigned_integer.
7138 (xstormy16_extract_struct_value_address): Ditto.
7139 (xstormy16_pointer_to_address): Ditto.
7140 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7141 * v850-tdep.c (v850_push_arguments): Ditto.
7142 (v850_extract_return_value): Ditto.
7143 (v850_extract_struct_value_address): Ditto.
7144 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7145 (sparcnbsd_get_longjmp_target_64): Ditto.
7146 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7147 (get_longjmp_target): Ditto.
7148 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7149 (sh64_extract_struct_value_address): Ditto.
7150 (sh_push_arguments): Ditto.
7151 (sh64_push_arguments): Ditto.
7152 * remote-vxsparc.c (vx_read_register): Ditto.
7153 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7154 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7155 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7156 * mipsv4-nat.c (get_longjmp_target): Ditto.
7157 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7158 * mips-nat.c (get_longjmp_target): Ditto.
7159 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7160 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7161 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7162 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7163 * irix5-nat.c (get_longjmp_target): Ditto.
7164 * irix4-nat.c (get_longjmp_target): Ditto.
7165 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7166 (ia64_push_arguments): Ditto.
7167 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7168 * h8300-tdep.c (h8300_push_arguments): Ditto.
7169 (h8300_store_return_value): Ditto.
7170 (h8300_extract_struct_value_address): Ditto.
7171 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7172 (frv_push_arguments): Ditto.
7173 * avr-tdep.c (avr_pointer_to_address): Ditto.
7174 (avr_push_arguments): Ditto.
7175 * arm-tdep.c (arm_push_dummy_call): Ditto.
7176 (arm_get_longjmp_target): Ditto.
7177 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7178 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7179 (alpha_get_longjmp_target): Ditto.
7181 * solib-irix.c (extract_mips_address): Inline extract_address,
7182 replacing it with extract_signed_integer.
7183 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7184 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7185 (first_link_map_member, open_symbol_file_object): Ditto.
7186 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7187 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7188 (LM_NEXT, LM_NAME): Ditto.
7190 2003-06-01 Richard Henderson <rth@redhat.com>
7192 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7193 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7194 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7195 (alpha_cannot_store_register): Likewise.
7196 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7197 * alpha-nat.c (supply_gregset): Likewise.
7198 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7200 2003-06-01 Andrew Cagney <cagney@redhat.com>
7202 * infcall.c (call_function_by_hand): Update comment on
7203 DEPRECATED_DUMMY_WRITE_SP.
7205 * mips-tdep.c (mips_gdbarch_init): Do not set
7206 deprecated_dummy_write_sp.
7207 (mips_eabi_push_dummy_call): Set the SP register.
7208 (mips_o64_push_dummy_call): Set the SP register.
7209 (mips_o32_push_dummy_call): Set the SP register.
7210 (mips_n32n64_push_dummy_call): Set the SP register.
7212 2003-06-01 Richard Henderson <rth@redhat.com>
7214 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7215 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7216 (supply_gregset): Likewise.
7217 * alpha-tdep.c (alpha_store_return_value): Likewise.
7218 (alpha_get_longjmp_target): Likewise.
7219 (alpha_register_name): Constify array.
7220 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7221 deprecated_register_size, deprecated_register_bytes,
7222 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7223 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7224 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7226 2003-06-01 Richard Henderson <rth@redhat.com>
7228 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7229 from arg_reg_buffer to regcache to avoid double conversion.
7231 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7233 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7235 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7236 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7238 2003-06-01 Richard Henderson <rth@redhat.com>
7240 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7241 (decode_frame_entry): Set it. Skip FDE augmentation.
7243 2003-06-01 Richard Henderson <rth@redhat.com>
7245 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7246 not overlapping PC_REGNUM.
7248 2003-06-01 Richard Henderson <rth@redhat.com>
7250 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7251 alpha_push_arguments. Don't dump argument register data to
7252 the target stack. Fix float and 128-bit long double semantics.
7253 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7254 (alpha_fix_call_dummy): Remove.
7255 (alpha_call_dummy_words): Remove.
7256 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7258 2003-06-01 Richard Henderson <rth@redhat.com>
7260 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7262 2003-06-01 Andrew Cagney <cagney@redhat.com>
7264 * mips-tdep.c (is_mips16_addr): New function.
7265 (make_mips16_addr, unmake_mips16_addr): New functions.
7266 (pc_is_mips16, mips_fetch_instruction): Use.
7267 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7268 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7269 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7270 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7272 * config/mips/tm-mips.h: Update copyright.
7273 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7274 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7275 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7276 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7277 (TM_PRINT_INSN_MACH): Delete.
7278 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7280 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7281 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7282 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7283 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7284 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7285 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7286 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7287 mips*-*-riscos* and mips*-*-sysv* onto mips.
7288 * config/mips/mips64.mt: New file.
7289 * config/mips/mips.mt: New file.
7290 * config/mips/littlemips.mt: Delete file.
7291 * config/mips/decstation.mt: Delete file.
7292 * config/mips/vr4300el.mt: Delete file.
7293 * config/mips/vr5000el.mt: Delete file.
7294 * config/mips/vr5000.mt: Delete file.
7295 * config/mips/vr4100.mt: Delete file.
7296 * config/mips/vr4xxxel.mt: Delete file.
7297 * config/mips/vr4300.mt: Delete file.
7298 * config/mips/vr4xxx.mt: Delete file.
7299 * config/mips/bigmips.mt: Delete file.
7300 * config/mips/bigmips64.mt: Delete file.
7301 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7302 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7303 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7304 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7305 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7307 * config/mips/tm-irix3.h: Ditto.
7308 * config/mips/tm-mipsv4.h: Ditto.
7309 * config/mips/tm-embed.h: Ditto.
7310 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7312 * config/mips/tm-vr5000el.h: Delete file.
7313 * config/mips/tm-tx39l.h: Delete file.
7314 * config/mips/tm-vr4300el.h: Delete file.
7315 * config/mips/tm-vr4xxxel.h: Delete file.
7316 * config/mips/tm-vr4300.h: Delete file.
7317 * config/mips/tm-vr4100.h: Delete file.
7318 * config/mips/tm-vr4xxx.h: Delete file.
7319 * config/mips/tm-vr5000.h: Delete file.
7320 * config/mips/tm-embedl64.h: Delete file.
7321 * config/mips/tm-embedl.h: Delete file.
7322 * config/mips/tm-embed64.h: Delete file.
7323 * config/mips/tm-bigmips64.h: Delete file.
7324 * config/mips/tm-bigmips.h: Delete file.
7326 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7329 * shnbsd-nat.c: Include "sh-tdep.h".
7331 From Richard Henderson <rth@redhat.com>:
7332 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7334 2003-05-31 Andrew Cagney <cagney@redhat.com>
7336 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7337 forward declaration.
7338 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7339 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7340 (mips_find_saved_regs): Use set_reg_offset.
7341 (mips_frame_init_saved_regs): Delete function.
7342 (mips_pop_frame): Call mips_find_saved_regs instead of
7343 DEPRECATED_FRAME_INIT_SAVED_REGS.
7345 2003-05-31 Andrew Cagney <cagney@redhat.com>
7347 * mips-tdep.c (mips_gdbarch_init): Do not set
7348 deprecated_max_register_raw_size, register_virtual_size, and
7349 deprecated_max_register_virtual_size.
7351 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7353 * i386-tdep.c: Include "dwarf2-frame.h".
7354 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7355 * Makefile.in (i386-tdep.o): Update dependencies.
7357 * dwarf2-frame.c, dwarf2-frame.h: New files.
7358 * Makefile.in (SFILES): Add dwarf2-frame.c.
7359 (dwarf2_frame_h): Define.
7360 (COMMON_OBS): Add dwarf2-frame.o.
7361 (dwarf2-frame.o): Add dependencies.
7363 2003-05-31 Andreas Jaeger <aj@suse.de>
7365 * x86-64-linux-nat.c: Fix comment.
7367 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7369 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7372 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7373 have a sigcontext_addr handler.
7374 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7375 sigcontext_addr handler.
7377 2003-05-31 Andrew Cagney <cagney@redhat.com>
7379 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7380 (print_fp_register_row): Replace do_fp_register_row.
7381 (mips_print_fp_register): Add "file" and "frame" parameters.
7382 (mips_print_register): Add "file" and "frame" parameters.
7383 (mips_print_registers_info): Replace mips_do_registers_info.
7384 (mips_gdbarch_init): Set print_registers_info instead of
7385 deprecated_do_registers_info.
7386 (mips_read_fp_register_single): Add "frame" parameter.
7387 (mips_read_fp_register_double): Add "frame" parameter.
7389 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7391 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7392 Fixes a bug where GDB would print the wrong register names for
7393 targets without SSE.
7395 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7396 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7399 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7400 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7401 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7404 From Michal Ludvig <mludvig@suse.cz>:
7405 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7407 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7408 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7409 I386_ST0_REGNUM): Move here from...
7410 * i386-tdep.c: ... here.
7411 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7412 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7413 registers if possible.
7414 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7415 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7417 (i386bsd_sc_reg_offset): New variable.
7418 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7419 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7421 (i386fbsd_sc_reg_offset): New variable.
7422 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7424 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7426 (i386fbsd4_sc_reg_offset): New variable.
7427 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7428 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7430 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7431 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7432 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7434 (i386nbsd_sc_reg_offset): New variable.
7435 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7436 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7438 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7440 (i386obsd_sc_reg_offset): New variable.
7441 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7442 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7444 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7445 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7446 for frame pointer offset in `struct sigcontext'.
7448 2003-05-31 Andrew Cagney <cagney@redhat.com>
7450 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7451 architecture methods call_dummy_words, sizeof_call_dummy_words,
7452 push_return_address, store_struct_return, and fix_call_dummy. Set
7453 push_dummy_call instead of deprecated_push_arguments.
7454 (mips_store_struct_return): Delete function.
7455 (mips_fix_call_dummy): Delete function.
7456 (mips_push_return_address): Delete function.
7457 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7458 RA_REGNUM and T9_REGNUM.
7459 (mips_n32n64_push_dummy_call): Ditto for
7460 mips_n32n64_push_arguments.
7461 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7462 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7464 2003-05-31 Andrew Cagney <cagney@redhat.com>
7466 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7467 "dummy_addr" to "bp_addr".
7468 * infcall.c (call_function_by_hand): Pass "funaddr" to
7469 gdbarch_push_dummy_call.
7470 * gdbarch.h, gdbarch.c: Re-generate.
7471 * i386-tdep.c (i386_push_dummy_call): Update.
7472 * arm-tdep.c (arm_push_dummy_call): Update.
7473 * d10v-tdep.c (d10v_push_dummy_call): Update.
7475 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7477 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7478 variable declarations.
7479 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7480 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7481 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7482 x86_64_init_frame_pc, x86_64_init_frame_pc,
7483 x86_64_function_has_prologue): Remove prototypes.
7484 (X86_64_NUM_GREGS): New define.
7485 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7486 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7487 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7488 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7489 XMM1_REGNUM): Remove defines.
7490 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7491 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7492 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7493 X86_64_XMM1_REGNUM): New defines.
7494 (struct x86_64_register_info): Renamed from `struct
7495 register_info'. Remove `size' member.
7496 (x86_64_register_info_table): Remove variable.
7497 (x86_64_register_info): New variable.
7498 (X86_64_NUM_REGS): New define.
7499 (X86_64_NUM_GREGS): Remove define.
7500 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7501 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7503 (x86_54_dwarf2_reg_to_regnum): Remove function.
7504 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7505 (x86_64_dwarf_reg_to_regnum): New function.
7506 (x86_64_register_name): Rewrite.
7507 (x86_64_register_raw_size): Remove function.
7508 (x86_64_register_byte_table): Remove variable.
7509 (x86_64_register_byte): Remove function.
7510 (x86_64_register_virtual_type): Remove function.
7511 (x86_64_register_type): New function.
7512 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7513 x86_64_register_convert_to_raw): Remove functions.
7514 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7515 (x86_64_use_struct_convention): Make static. Adjust for renamed
7517 (x86_64_frame_init_saved_regs): Remove function.
7518 (x86_64_push_arguments): Make static. Change to accept a regcache
7520 (x86_64_store_return_value, x86_64_extract_return_value): Make
7521 static. Rewrite based on i386 counterparts.
7522 (x86_64_push_dummy_call): New function.
7523 (X86_64_NUM_SAVED_REGS): New define.
7524 (x86_64_register_number): Remove function.
7525 (x86_64_store_struct_return): Remove function.
7526 (x86_64_frameless_function_invocation,
7527 x86_64_function_has_prologue): Remove functions.
7528 (PROLOG_BUFSIZE): Remove define.
7529 (struct x86_64_frame_cache): New structure.
7530 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7531 x86_64_frame_cache, x86_64_frame_this_id,
7532 x86_64_frame_prev_register, x86_64_frame_p,
7533 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7534 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7536 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7538 (x86_64_skip_prologue): Rewrite in terms of
7539 x86_64_analyze_prologue.
7540 (x86_64_frame_base_address): New function.
7541 (x86_64_frame_base): New variable.
7542 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7543 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7544 set deprecated_fp_regnum, deprecated_register_size,
7545 deprecated_register_bytes, register_raw_size, register_byte,
7546 register_virtual_type, register_convertiable,
7547 register_convert_to_virtual, convert_to_raw,
7548 deprecated_get_saved_register, deprecated_target_read_fp,
7549 deprecated_push_arguments, deprecated_push_return_address,
7550 deprecated_pop_frame, deprecated_store_struct_return,
7551 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7552 frameless_function_invocation, deprecated_frame_saved_pc,
7553 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7554 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7555 deprecated_init_frame_pc and virtual_frame_pointer. Call
7556 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7557 and x86_64_frame_p. Call frame_base_set_default to register
7559 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7560 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7561 (_initialize_x86_64_tdep): Remove function.
7562 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7563 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7564 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7566 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7567 (x86_64_linux_sigcontext_addr): Rewrite.
7568 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7569 x86_64_linux_frame_saved_pc): Remove functions.
7570 (x86_64_linux_pc_in_sigtramp): Renamed from
7571 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7573 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7575 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7576 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7577 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7578 (x86_64_regmap): Rename to regmap.
7579 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7581 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7583 (x86_64_fxsave_offset): Remove function.
7584 (supply_fpregset): Simply call x86_64_supply_fxsave.
7585 (fill_fpregset): Simply call x86_64_fill_fxsave.
7586 (fetch_inferior_registers, store_inferior_registers): Avoid
7587 asignment in if-statement.
7588 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7589 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7590 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7591 (fetch_core_registers): Remove function.
7592 (linux_elf_core_fns): Remove.
7593 (offsetoff): Don't define.
7594 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7595 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7596 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7598 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7599 protection against multiple includes instead of NM_X86_64_h. Add
7600 various comments. Include "config/nm-linux.h". Don't include
7602 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7603 GET_THREAD_SIGNALS): Remove defines.
7604 (x86_64_register_u_addr, kernel_u_size,
7605 lin_thread_get_thread_signals): Remove prototypes.
7606 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7607 [HAVE_LINK_H]: Don't include "solib.h".
7608 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7609 * config/i386/tm-x86-64linux.h: Fix comments.
7610 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7611 x86-64-tdep.o): Update dependencies.
7613 2003-05-30 Andrew Cagney <cagney@redhat.com>
7615 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7616 Change parameter type to a "struct regcache *".
7618 * gdbarch.sh: Regardless of the multi-arch level, always define
7619 the macro when not already defined.
7620 * gdbarch.h, gdbarch.c: Re-generate.
7622 2003-05-30 Richard Henderson <rth@redhat.com>
7624 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7625 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7626 (alpha_mdebug_frame_this_id): Likewise.
7627 (alpha_mdebug_frame_prev_register): Likewise.
7628 (alpha_mdebug_frame_base_address): Likewise.
7629 (alpha_mdebug_frame_locals_address): Likewise.
7630 (alpha_mdebug_frame_args_address): Likewise.
7631 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7632 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7633 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7635 (alpha_heuristic_frame_this_id): Make static.
7636 (alpha_heuristic_frame_prev_register): Likewise.
7637 (alpha_heuristic_frame_base_address): Likewise.
7638 * alpha-tdep.h: Update.
7640 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7642 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7643 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7645 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7646 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7647 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7648 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7649 I386_ST0_REGNUM): New defines.
7650 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7651 codestream_get): Remove define.
7652 (codestream_next_addr, condestream_addr, condestream_buf,
7653 codestream_off, codestream_cnt): Remove variables.
7654 (codestream_fill, codestream_seek, codestream_read): Remove
7656 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7658 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7659 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7660 i386_frame_saved_pc, i386_saved_pc_after_call,
7661 i386_frame_num_args, i386_frame_init_saved_regs,
7662 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7663 i386_push_arguments): Remove functions.
7664 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7665 functionality. Use i386_analyze_prologue instead of
7666 i386_get_frame_setup.
7667 (I386_NUM_SAVED_REGS): New define.
7668 (struct i386_frame_cache): New structure.
7669 (i386_alloc_frame_cache, i386_analyze_struct_return,
7670 i386_skip_probe, i386_analyze_frame_setup,
7671 i386_analyze_register_saves, i386_analyze_prologue,
7672 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7673 i386_frame_prev_register, i386_sigtramp_frame_cache,
7674 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7675 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7676 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7678 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7680 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7681 I386_EAX_REGNUM and I386_EDX_REGNUM.
7682 (i386_extract_return_value, i386_store_return_value): Use
7683 I386_ST0_REGNUM where appropriate.
7684 (i386_extract_struct_value_address): Rewrite to use extract_address.
7685 (i386_svr4_pc_in_sigtramp): Add comment.
7686 (i386_svr4_sigcontext_addr): Rewrite.
7687 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7689 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7690 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7691 of new defines. Set push_dummy_call, don't set
7692 deprecated_push_arguments, deprecated_push_return_address,
7693 deprecated_pop_frame. Don't set parm_boundary. Don't set
7694 deprecated_frame_chain, deprecated_frame_saved_pc,
7695 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7696 save_dummy_frame_tos, unwind_pc. Call
7697 frame_unwind_append_predicate and frame_base_set_default. Don't
7698 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7699 Don't set frameless_function_invocation. Don't set
7700 deprecated_register_bytes, deprecated_register_size,
7701 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7702 * i386-linux-tdep.c: Fix formatting in some comments.
7703 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7704 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7705 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7706 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7707 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7708 redundant parentheses.
7709 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7710 (i386_linux_sigcontext_addr): Use it. Rewrite.
7711 (find_minsym_and_objfile): Change name of second argument.
7712 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7713 changed. Use frame_pc_unwind instead of
7714 DEPRECATED_SAVED_PC_AFTER_CALL.
7715 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7716 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7717 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7719 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7721 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7722 (_initialize_i386_cygwin_tdep): New prototype.
7723 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7724 deprecated_frame_chain_valid.
7725 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7726 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7727 Rely on the SVR4 defaults.
7728 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7729 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7731 2003-05-30 Andrew Cagney <cagney@redhat.com>
7733 * infcall.c (call_function_by_hand): Always call
7734 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7736 2003-05-30 Richard Henderson <rth@redhat.com>
7738 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7741 2003-05-29 Jim Blandy <jimb@redhat.com>
7743 Use gdbarch methods for solib stuff on PowerPC Linux.
7744 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7745 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7747 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7748 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7749 giving the same effect as the #definitions above.
7751 2003-05-29 Adam Fedor <fedor@gnu.org>
7753 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7754 (find_implementation_from_class): Replace it with the standard
7755 case i.e. do nothing.
7757 2003-05-29 Richard Henderson <rth@redhat.com>
7759 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7760 (alpha_linux_sigtramp_offset): Use it. Make static.
7761 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7762 update for new frame model.
7763 * alpha-mdebug-tdep.c: New file.
7764 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7765 (alpha_osf1_init_abi): Install it.
7766 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7767 (linked_proc_desc_table): Remove.
7768 (alpha_frame_past_sigtramp_frame): Remove.
7769 (alpha_dynamic_sigtramp_offset): Remove.
7770 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7771 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7772 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7773 (push_sigtramp_desc): Remove.
7774 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7775 (alpha_cannot_store_register): Likewise.
7776 (alpha_sigcontext_addr): Remove.
7777 (alpha_find_saved_regs): Remove.
7778 (alpha_frame_init_saved_regs): Remove.
7779 (alpha_init_frame_pc_first): Remove.
7780 (read_next_frame_reg): Remove.
7781 (alpha_frame_saved_pc): Remove.
7782 (alpha_saved_pc_after_call): Remove.
7783 (temp_proc_desc, temp_saved_regs): Remove.
7784 (alpha_about_to_return): Remove.
7785 (cached_proc_desc): Remove.
7786 (alpha_frame_chain): Remove.
7787 (alpha_print_extra_frame_info): Remove.
7788 (alpha_init_extra_frame_info): Remove.
7789 (alpha_frame_locals_address): Remove.
7790 (alpha_frame_args_address): Remove.
7791 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7792 (alpha_push_dummy_frame): Remove.
7793 (alpha_pop_frame): Remove.
7794 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7795 (alpha_read_insn): New.
7796 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7797 for different insn encodings.
7798 (alpha_in_lenient_prologue): Remove.
7799 (struct alpha_sigtramp_unwind_cache): New.
7800 (alpha_sigtramp_frame_unwind_cache): New.
7801 (alpha_sigtramp_register_address): New.
7802 (alpha_sigtramp_frame_this_id): New.
7803 (alpha_sigtramp_frame_prev_register): New.
7804 (alpha_sigtramp_frame_unwind): New.
7805 (alpha_sigtramp_frame_p): New.
7806 (struct alpha_heuristic_unwind_cache): New.
7807 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7808 don't count nop insns that occur between functions.
7809 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7810 heuristic_proc_desc, but without the mdebug wrapping.
7811 (alpha_heuristic_frame_this_id): New.
7812 (alpha_heuristic_frame_prev_register): New.
7813 (alpha_heuristic_frame_unwind): New.
7814 (alpha_heuristic_frame_p): New.
7815 (alpha_heuristic_frame_base_address): New.
7816 (alpha_heuristic_frame_base): New.
7817 (alpha_unwind_dummy_id): New.
7818 (alpha_unwind_pc): New.
7819 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7820 frame related deprecated initializations; install replacements.
7821 (alpha_dump_tdep): Remove.
7822 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7823 (alpha_read_insn, alpha_after_prologue,
7824 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7825 alpha_heuristic_frame_prev_register,
7826 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7827 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7828 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7829 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7831 2003-05-29 Andrew Cagney <cagney@redhat.com>
7833 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7834 dependant on the availability of ASSERT_FUNCTION.
7835 (ASSERT_FUNCTION): Do not define when there is no function name.
7837 2003-05-29 Kevin Buettner <kevinb@redhat.com>
7839 From Jimi X <jimix@watson.ibm.com>:
7840 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7842 2003-05-28 Jim Blandy <jimb@redhat.com>
7844 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7845 argument to ptrace to int; the system headers should give it the
7846 right type, and pointers don't fit in ints on powerpc64-*-*.
7848 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7850 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7853 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7855 * stabsread.c (dbx_lookup_type): Make static.
7857 (add_undefined_type): Ditto.
7858 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7861 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7863 * hpread.c (hpread_has_name): Make static.
7864 (hpread_psymtab_to_symtab): Ditto.
7865 (file_exists): Ditto.
7866 (hpread_call_pxdb): Ditto.
7867 (hpread_pxdb_needed): Ditto.
7868 (hpread_quick_traverse): Ditto.
7869 (hpread_get_header): Ditto.
7870 (hpread_get_lntt): Ditto.
7871 (hpread_get_slt): Ditto.
7874 2003-05-25 Andreas Schwab <schwab@suse.de>
7876 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7877 stack_align and deprecated_extra_stack_alignment_needed.
7878 (m68k_stack_align): Delete.
7880 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7881 (m68k_register_virtual_size): Likewise.
7882 (altos_skip_prologue): Remove obsolete function.
7883 (isi_frame_num_args): Likewise.
7884 (news_frame_num_args): Likewise.
7885 (m68k_fix_call_dummy): Make static.
7886 (m68k_push_dummy_frame): Likewise.
7887 (m68k_pop_frame): Likewise.
7888 (m68k_skip_prologue): Likewise.
7889 (m68k_frame_init_saved_regs): Likewise.
7890 (m68k_saved_pc_after_call): Likewise.
7891 (m68k_get_longjmp_target): Make multi-arch.
7892 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7893 structure. Register m68k_get_longjmp_target if enabled.
7894 * m68k-tdep.h (struct gdbarch_tdep): Define.
7895 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7897 * Makefile.in (config.status): Also depend on configure.tgt
7899 (m68klinux-tdep.o): Update dependencies.
7900 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7901 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7902 (M68K_LINUX_JB_PC): Define.
7903 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7904 and take additional parameter.
7905 (m68k_linux_sigtramp_saved_pc): Update.
7906 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7907 m68k_linux_pc_in_sigtramp, in_plt_section,
7908 find_solib_trampoline_target.
7909 * config/m68k/tm-linux.h: Don't include any tm headers.
7910 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7911 (JB_ELEMENT_SIZE): Likewise.
7913 (GET_LONGJMP_TARGET): Likewise.
7914 (IN_SIGTRAMP): Likewise.
7915 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7917 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7919 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7920 (sparc32_push_arguments): Re-implement by calling
7921 sparc32_do_push_arguments.
7923 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7925 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7926 SPARC_O1_REGNUM): New defines.
7927 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7928 (sparc32_store_return_value): New function.
7929 (sparc_extract_struct_value_address): Rewrite to operate on a
7931 (sparc_gdbarch_init): Don't set
7932 deprecated_extract_struct_value_address. Set
7933 extract_struct_value_address instead. Don't set
7934 deprecated_extract_return_value and deprecated_store_return_value
7935 for 32-bit targets. Set extract_return_value and
7936 store_return_value instead.
7937 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7938 DEPRECTAED_EXTRACT_RETURN_VALUE,
7939 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7940 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7941 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7942 (sparc_store_return_value): Remove prototype.
7943 (sparc32_store_return_value): New prototype.
7944 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7947 2003-05-24 Mark Kettenis <kettenis@gnu.org>
7949 * sparcnbsd-tdep.c: Include "gdb_string.h".
7951 2003-05-23 Andrew Cagney <cagney@redhat.com>
7953 * p-valprint.c (pascal_val_print): Replace extract_address with
7954 the inline equivalent extract_unsigned_integer.
7955 * jv-valprint.c (java_value_print): Ditto.
7956 * ada-valprint.c (ada_val_print_1): Ditto.
7957 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7959 2003-05-23 Theodore A. Roth <troth@openavr.org>
7961 * blockframe.c (frameless_look_for_prologue): Remove unused
7962 after_prologue variable.
7964 2003-05-23 Mark Kettenis <kettenis@gnu.org>
7966 * blockframe.c (get_pc_function_start): Rewrite to avoid
7967 asignments in if-statements.
7969 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7971 Committed by Elena Zannoni <ezannoni@redhat.com>.
7972 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7973 files, don't relocate absolute symbols (and do use mst_abs).
7975 2003-05-23 Andrew Cagney <cagney@redhat.com>
7977 * objc-lang.c: Include "gdb_assert.h".
7978 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7979 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7980 (gdb_check, gdb_check_fatal): Delete functions.
7981 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7983 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7984 * Makefile.in (objc-lang.o): Update dependencies.
7986 2003-05-22 Ian Lance Taylor <ian@airs.com>
7988 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7989 with fprintf_filtered, not fprintf_unfiltered.
7991 2003-05-22 Andrew Cagney <cagney@redhat.com>
7993 * stack.c (frame_info): Inline extract_address, replacing it with
7994 extract_unsigned_integer.
7995 * findvar.c (unsigned_pointer_to_address): Ditto.
7996 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7997 * dwarf2expr.c (dwarf2_read_address): Ditto.
7998 * frame.c (frame_pc_unwind): Update comment.
7999 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8001 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8003 * infptrace.c (detach): Call print_sys_errmsg rather than
8004 perror_with_name to issue warning message when errno is non-zero
8005 after calling ptrace detach.
8007 2003-05-21 J. Brobecker <brobecker@gnat.com>
8009 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8010 macro definitions from here...
8011 * hppa-tdep.c: ...to there.
8013 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8015 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8016 register_ptrace_addr(). Fix all callers.
8018 2003-05-21 Andreas Schwab <schwab@suse.de>
8020 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8022 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8024 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8025 (_initialize_m68k_linux_tdep): New function.
8026 (m68k_linux_frame_saved_pc): Make static.
8027 (m68k_linux_extract_return_value): Likewise.
8028 (m68k_linux_store_return_value): Likewise.
8029 (m68k_linux_extract_struct_value_address): Likewise.
8030 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8032 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8033 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8034 (DEPRECATED_FRAME_SAVED_PC): Remove.
8036 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8038 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8039 regset numbering rather than our own.
8041 2003-05-19 David Carlton <carlton@bactrian.org>
8043 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8045 2003-05-19 David Carlton <carlton@bactrian.org>
8047 Partial fix for PR c++/827.
8048 * cp-support.h: Include symtab.h.
8049 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8050 * cp-namespace.c: Update contributors.
8051 (cp_lookup_symbol_nonlocal): New.
8052 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8053 (lookup_symbol_file): Ditto.
8054 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8055 * block.h: Declare block_scope, block_using, block_global_block.
8056 * block.c (block_scope): New.
8057 (block_using, block_global_block): Ditto.
8058 * Makefile.in (cp_support_h): Depend on symtab_h.
8059 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8061 2003-05-19 David Carlton <carlton@bactrian.org>
8063 * language.h (struct language_defn): Add 'la_value_of_this'
8064 and 'la_lookup_symbol_nonlocal' members.
8065 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8066 lookup_symbol_static, lookup_symbol_global,
8067 lookup_symbol_aux_block.
8068 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8069 if we should search fields of this and how to do static/global
8071 (lookup_symbol_aux_block): Make extern.
8072 (basic_lookup_symbol_nonlocal): New.
8073 (lookup_symbol_static, lookup_symbol_global): Ditto.
8074 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8075 'la_lookup_symbol_nonlocal' members.
8076 * c-lang.c (c_language_defn, cplus_language_defn)
8077 (asm_language_defn, minimal_language_defn): Ditto.
8078 * jv-lang.c (java_language_defn): Ditto.
8079 * language.c (unknown_language_defn, auto_language_defn)
8080 (local_language_defn): Ditto.
8081 * m2-lang.c (m2_language_defn): Ditto.
8082 * objc-lang.c (objc_language_defn): Ditto.
8083 * scm-lang.c (scm_language_defn): Ditto.
8084 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8085 * p-lang.c (pascal_language_defn): Ditto for both.
8086 * Makefile.in (f-lang.o): Depend on value_h.
8089 2003-05-19 David Carlton <carlton@bactrian.org>
8091 * block.h: Declare block_static_block.
8092 * block.c (block_static_block): New.
8093 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8094 lookup_symbol_aux_local, calling block_static_block instead.
8095 (lookup_symbol_aux_local): Delete 'static_block' argument.
8097 2003-05-19 David Carlton <carlton@bactrian.org>
8099 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8101 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8103 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8104 register numbers mapping.
8106 2003-05-18 Adam Fedor <fedor@gnu.org>
8108 * symtab.c (completion_list_objc_symbol): New function.
8109 (make_symbol_completion_list): Use it to add ObjC symbols
8110 when looking though the list.
8111 (language_search_unquoted_string): New function.
8112 (make_file_symbol_completion_list): Use it.
8114 2003-05-18 Andreas Schwab <schwab@suse.de>
8116 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8118 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8119 as m68k_linux_extract_return_value.
8120 (DEPRECATED_STORE_RETURN_VALUE): Define as
8121 m68k_linux_store_return_value.
8122 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8123 m68k_linux_extract_struct_value_address.
8124 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8125 get_next_frame, get_frame_base, get_frame_pc.
8126 (m68k_linux_frame_saved_pc): Use get_frame_base.
8127 (m68k_linux_extract_return_value): New function.
8128 (m68k_linux_store_return_value): New function.
8129 (m68k_linux_extract_struct_value_address): New function.
8130 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8132 * c-exp.y (typebase): Remove duplicate occurence of
8133 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8134 of lookup_signed_typename.
8136 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8138 * dwarf2loc.c (find_location_expression): Change type of second
8139 argument to `size_t *'.
8140 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8143 2003-05-18 David Carlton <carlton@bactrian.org>
8145 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8146 'linkage_name'. Add comment.
8147 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8149 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8150 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8151 (lookup_block_symbol): Ditto.
8153 2003-05-16 Andrew Cagney <cagney@redhat.com>
8155 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8156 * gdbarch.h, gdbarch.c: Re-generate.
8157 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8158 * TODO (REGISTER_BYTES): Delete reference.
8159 * alpha-tdep.c (alpha_gdbarch_init): Update.
8160 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8161 * x86-64-tdep.c (x86_64_init_abi): Update.
8162 * vax-tdep.c (vax_gdbarch_init): Update.
8163 * v850-tdep.c (v850_gdbarch_init): Update.
8164 * sparc-tdep.c (sparc_gdbarch_init): Update.
8165 * sh-tdep.c (sh_gdbarch_init): Update.
8166 * s390-tdep.c (s390_gdbarch_init): Update.
8167 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8168 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8169 (ns32k_gdbarch_init_32382): Update.
8170 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8171 * mcore-tdep.c (mcore_gdbarch_init): Update.
8172 * m68k-tdep.c (m68k_gdbarch_init): Update.
8173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8174 * ia64-tdep.c (ia64_gdbarch_init): Update.
8175 * i386-tdep.c (i386_gdbarch_init): Update.
8176 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8177 * hppa-tdep.c (hppa_gdbarch_init): Update.
8178 * h8300-tdep.c (h8300_gdbarch_init): Update.
8179 * frv-tdep.c (frv_gdbarch_init): Update.
8180 * cris-tdep.c (cris_gdbarch_init): Update.
8181 * avr-tdep.c (avr_gdbarch_init): Update.
8182 * arm-tdep.c (arm_gdbarch_init): Update.
8183 * sparc-tdep.c (sparc_pop_frame): Update.
8184 * rs6000-tdep.c (rs6000_pop_frame): Update.
8185 * remote.c (init_remote_state): Update.
8186 (remote_prepare_to_store): Update.
8187 * remote-vx.c (vx_prepare_to_store): Update.
8188 * remote-sds.c (sds_fetch_registers): Update.
8189 (sds_prepare_to_store): Update.
8190 * remote-array.c: Update.
8191 * regcache.c (init_legacy_regcache_descr): Update.
8192 (init_regcache_descr): Update.
8193 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8194 (mips_o64_extract_return_value): Update.
8195 * irix5-nat.c (fetch_core_registers): Update.
8196 * irix4-nat.c (fetch_core_registers): Update.
8197 * i386-tdep.h: Update.
8198 * hppa-tdep.c (pa_do_registers_info): Update.
8199 (pa_do_strcat_registers_info): Update.
8200 * cris-tdep.c (cris_register_bytes_ok): Update.
8201 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8202 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8203 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8204 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8205 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8206 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8207 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8208 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8209 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8210 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8211 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8212 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8213 (REGISTER_BYTES_OK): Update.
8214 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8215 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8217 2003-05-16 Ian Lance Taylor <ian@airs.com>
8219 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8220 (vax_print_insn, print_insn_arg): Remove static functions.
8221 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8222 print_insn_vax from opcodes library.
8223 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8225 2003-05-15 Andrew Cagney <cagney@redhat.com>
8227 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8228 * target.h (memory_breakpoint_from_pc): Delete declaration.
8229 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8230 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8231 * monitor.c (monitor_insert_breakpoint): Use
8232 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8233 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8234 * gdbarch.h, gdbarch.c: Re-generate.
8235 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8236 (sparc_gdbarch_init): Set breakpoint_from_pc to
8237 sparc_breakpoint_from_pc.
8238 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8239 (BREAKPOINT_FROM_PC): Define.
8240 (sparc_breakpoint_from_pc): Declare.
8241 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8242 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8243 (BREAKPOINT_FROM_PC): Define.
8244 (BREAKPOINT): Delete macro.
8245 * target.h: Update comment.
8246 * s390-tdep.c (s390_gdbarch_init): Update comments.
8247 * remote.c: Update comments.
8248 * remote-mips.c: Update comments.
8249 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8250 * mem-break.c: Update comment.
8251 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8252 (ia64_memory_insert_breakpoint): Update.
8253 * config/sparc/tm-sparc.h: Update comment.
8254 * config/pa/tm-hppa64.h: Update comment.
8255 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8256 (rs6000_breakpoint_from_pc): Update.
8257 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8258 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8259 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8260 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8261 (mips_breakpoint_from_pc): Update.
8262 (mips_dump_tdep): Update.
8264 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8265 * minsyms.c (lookup_minimal_symbol): Inline
8266 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8268 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8269 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8270 * p-lang.c (pascal_printstr): Ditto.
8271 * objc-lang.c (objc_printstr): Ditto.
8272 * m2-lang.c (m2_printstr): Ditto.
8273 * jv-valprint.c (java_print_value_fields): Ditto.
8274 * f-lang.c (f_printstr): Ditto.
8275 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8276 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8277 for repeat_count_threshold.
8278 * Makefile.in (cp-valprint.o): Update dependencies.
8280 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8282 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8283 (examine_prologue): Support looking through leaf functions, knowing
8284 they start with mov r2,r12. Support skipping over indirect stores
8285 of the input registers. Upon hitting a non-nop branch instruction
8286 or predicated instruction, bail out by setting lim_pc to the current
8287 pc value in the loop. At the end, if the lim_pc value is still
8288 beyond our calculated value and we have trust_limit set,
8289 use the lim_pc value.
8291 2003-05-15 Andrew Cagney <cagney@redhat.com>
8293 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8294 generic_find_dummy_frame.
8295 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8296 (deprecated_generic_find_dummy_frame): Update.
8297 (deprecated_read_register_dummy): Update.
8298 * frame.c (deprecated_generic_get_saved_register): Update.
8300 2003-05-15 Theodore A. Roth <troth@openavr.org>
8302 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8303 (avr_gdbarch_init): Set breakpoint_from_pc method.
8305 2003-05-15 Andrew Cagney <cagney@redhat.com>
8307 * regcache.c (build_regcache): Set deprecated_register_valid
8309 (deprecated_grub_regcache_for_register_valid): Delete function.
8310 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8313 2003-05-15 David Carlton <carlton@bactrian.org>
8315 Committed by Elena Zannoni <ezannoni@redhat.com>
8316 * symtab.c (lookup_symbol_aux): Delete calls to
8317 lookup_symbol_aux_minsyms.
8318 (lookup_symbol_aux_minsyms): Comment out function and
8319 prototype. Delete lookup by mangled name.
8321 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8323 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8324 correctly indicate an empty stack and ``stack_allocated'' to the
8325 indicate the number of elements initially allocated.
8326 (dwarf_expr_grow_stack): Simplify method for computing new
8327 stack size. Don't loop infinitely if ``stack_len'' is zero.
8328 (execute_stack_op): Move ``ctx->in_reg'' initialization
8329 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8330 be used in conjuction with DW_OP_piece. Revise error message
8333 2003-05-14 Theodore A. Roth <troth@openavr.org>
8335 * MAINTAINERS: Update my email address.
8336 * avr-tdep.c: Ditto.
8338 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8340 * symtab.h (enum domain_enum): Rename from namespace_enum.
8341 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8342 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8343 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8344 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8345 TYPES_NAMESPACE, METHODS_NAMESPACE.
8346 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8347 (struct symbol, struct partial_symbol): Rename field
8348 'namespace_enum namespace' to 'domain_enum domain'.
8349 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8350 Delete old define kludge for namespace.
8352 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8353 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8354 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8355 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8356 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8357 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8358 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8359 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8360 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8361 occurrences of the above.
8363 2003-05-14 Ian Lance Taylor <ian@airs.com>
8365 * Makefile.in (install-only): Use $(SHELL) when running
8368 2003-05-13 Ian Lance Taylor <ian@airs.com>
8370 * MAINTAINERS (write after approval): Add myself.
8372 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8373 second and third arguments.
8374 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8375 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8377 2003-05-13 Andrew Cagney <cagney@redhat.com>
8379 * defs.h (store_address): Delete declaration.
8380 findvar.c (store_address): Delete function.
8381 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8382 store_unsigned_integer.
8383 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8384 * v850-tdep.c (v850_push_arguments): Ditto.
8385 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8386 * sh-tdep.c (sh64_get_saved_register): Ditto.
8387 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8388 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8389 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8390 (mips_get_saved_register): Ditto.
8391 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8392 (find_func_descr, ia64_push_arguments): Ditto.
8393 * i386-tdep.c (i386_push_arguments): Ditto.
8394 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8395 * frv-tdep.c (frv_push_arguments): Ditto.
8396 * frame.c (legacy_saved_regs_prev_register): Ditto.
8397 (deprecated_generic_get_saved_register): Ditto.
8398 * findvar.c (unsigned_address_to_pointer): Ditto.
8399 * dwarf2read.c (dwarf2_const_value): Ditto.
8400 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8401 * alpha-tdep.c (alpha_push_arguments): Ditto.
8403 2003-05-12 J. Brobecker <brobecker@gnat.com>
8405 * NEWS: Mention that the hppa-hpux port has been partially
8406 multiarched (32bit ABIT only, so far).
8408 2003-05-11 Andrew Cagney <cagney@redhat.com>
8410 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8411 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8412 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8413 sim/testsuite/sim/arm/misaligned2.ms, and
8414 sim/testsuite/sim/arm/misaligned3.ms.
8415 * disasm.h (struct ui_file): Add opaque struct declaration.
8416 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8417 * frame.h (struct ui_file): Ditto.
8419 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8421 * value.h: Pretty print.
8423 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8425 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8427 2003-05-08 Andrew Cagney <cagney@redhat.com>
8429 * regcache.h (max_register_size): Delete declaration.
8430 * regcache.c (max_register_size): Delete function.
8431 (struct regcache_descr): Delete field "max_register_size".
8432 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8433 registers fit in MAX_REGISTER_SIZE.
8434 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8435 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8436 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8437 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8438 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8439 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8440 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8441 * dve3900-rom.c, hppa-tdep.c: Ditto.
8443 2003-05-08 David Carlton <carlton@math.stanford.edu>
8445 * valops.c (push_word): Fix typo.
8447 2003-05-08 Andrew Cagney <cagney@redhat.com>
8449 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8450 * gdbarch.h: Re-generate.
8451 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8452 (legacy_max_register_raw_size): Delete declaration.
8453 * regcache.c (legacy_max_register_raw_size): Delete function.
8454 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8455 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8456 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8457 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8458 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8459 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8460 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8461 * findvar.c, dwarf2cfi.c: Ditto.
8463 2003-05-08 Andrew Cagney <cagney@redhat.com>
8465 * mips-tdep.c (read_signed_register): New function, moved to here
8467 (read_signed_register_pid): Ditto.
8468 * regcache.c (read_signed_register_pid): Delete function, moved to
8470 (read_signed_register): Ditto.
8471 * regcache.h (read_signed_register): Delete declaration.
8472 (read_signed_register_pid): Delete declaration.
8474 2003-05-08 Andrew Cagney <cagney@redhat.com>
8476 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8477 * gdbarch.h: Re-generate.
8478 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8479 (legacy_max_register_virtual_size): Delete declaration.
8480 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8481 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8482 * tracepoint.c (memrange_sortmerge): Ditto.
8483 * sparc-tdep.c (sparc_print_registers): Ditto.
8484 * regcache.c (legacy_max_register_virtual_size): Delete function.
8486 2002-05-08 J. Brobecker <brobecker@gnat.com>
8488 * fork-child.c (escape_bang_in_quoted_argument): New function.
8489 (fork_inferior): Escape '!' characters in quoted arguments
8492 2003-05-08 J. Brobecker <brobecker@gnat.com>
8494 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8495 the language of the CU is not currently supported by GDB.
8497 2003-05-08 J. Brobecker <brobecker@gnat.com>
8499 * defs.h (language): Add language_minimal enum value.
8500 * c-lang.c (minimal_language_defn): New language definition.
8501 (_initialize_c_language): Add the new minimal language to the list
8502 of languages known to GDB.
8504 2003-05-08 Kevin Buettner <kevinb@redhat.com>
8506 * frame.c (get_frame_type): Don't attempt to lazily initialize
8507 frame's unwinder for legacy frames.
8509 2003-05-07 Andrew Cagney <cagney@redhat.com>
8511 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8512 and "regcache" parameters.
8513 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8515 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8517 * dwarf2read.c (dwarf_decode_lines): Only use output of
8518 check_cu_functions() when calling record_line(). Do not update
8519 the current address.
8521 2003-05-07 Andrew Cagney <cagney@redhat.com>
8523 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8526 2003-05-07 Jim Blandy <jimb@redhat.com>
8528 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8529 'maint info symtabs' and 'maint info psymtabs'.
8530 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8531 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8532 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8533 Declarations updated.
8534 * maint.c (maintenance_list_command): Delete.
8535 (_initialize_maint_cmds): Update calls to add_cmd.
8536 * gdbcmd.h (maintenancelistlist): Delete declaration.
8537 * cli/cli-cmds.c (maintenancelistlist): Delete.
8538 (init_cmd_lists): Don't initialize it.
8539 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8541 2003-05-07 Andrew Cagney <cagney@redhat.com>
8543 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8545 (d10v_print_registers_info): Update.
8546 (d10v_dmap_register, d10v_imap_register): Delete functions.
8547 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8548 and "imap_register".
8549 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8550 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8551 * arch-utils.c (generic_remote_translate_xfer_address): Add
8552 "regcache" and "gdbarch" parameters.
8553 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8554 parameter. Change class to multi-arch.
8555 * gdbarch.h, gdbarch.c: Re-generate.
8556 * remote.c (remote_xfer_memory): Use
8557 gdbarch_remote_translate_xfer_address.
8559 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8561 * infrun.c (prev_pc): Move declaration ahead of proceed().
8562 (proceed): Refresh prev_pc value before resuming.
8563 (stop_stepping): Remove code to refresh prev_pc.
8565 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8567 * nto-tdep.c: Removed stray comment.
8569 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8571 * i386-nto-tdep.c: Fix old K&R function definitions.
8572 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8573 Also change add_show_from_set() call to add_setshow_cmd().
8574 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8576 2003-05-05 Andrew Cagney <cagney@redhat.com>
8578 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8579 (fprint_dummy_frames): New function.
8580 (maintenance_print_dummy_frames): New function.
8581 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8582 * frame.c (fprint_frame_id): Make global.
8583 * frame.h (fprint_frame_id): Declare.
8584 * Makefile.in (dummy-frame.o): Update dependencies.
8586 2003-05-05 Andrew Cagney <cagney@redhat.com>
8588 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8589 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8590 SIZEOF_CALL_DUMMY_WORDS.
8591 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8592 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8593 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8594 CALL_DUMMY_BREAKPOINT_OFFSET.
8595 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8596 CALL_DUMMY_START_OFFSET.
8597 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8598 * gdbarch.h, gdbarch.c: Re-generate.
8599 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8600 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8601 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8602 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8603 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8604 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8605 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8606 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8607 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8608 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8609 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8610 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8611 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8612 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8613 * config/sparc/tm-sparc.h: Update.
8615 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8617 * configure.tgt: Add i[3456]86-*-nto*.
8618 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8619 * nto-tdep.c: New file. Neutrino target support routines.
8620 * nto-tdep.h: New file. Neutrino target header.
8621 * config/tm-qnxnto.h: New file.
8622 * config/i386/i386nto.mt: New file.
8623 * config/i386/tm-i386nto.h: New file.
8625 2003-05-04 Andrew Cagney <cagney@redhat.com>
8627 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8628 (load_infrun_state): Ditto.
8629 (struct thread_info): Drop "prev_func_name" field.
8630 * thread.c (load_infrun_state): Update.
8631 (save_infrun_state): Update.
8632 * infrun.c (prev_func_name): Delete variable.
8633 (init_wait_for_inferior): Do not clear prev_func_name.
8634 (stop_stepping, keep_going, context_switch): Do not swap
8636 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8637 instead of PC_IN_SIGTRAMP.
8639 2003-05-04 Andrew Cagney <cagney@redhat.com>
8641 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8642 REGISTER_BYTE with register_offset_hack.
8643 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8644 that REGISTER_BYTE is consistent with the regcache.
8645 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8646 * gdbarch.h, gdbarch.c: Regenerate.
8648 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8650 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8651 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8653 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8655 2003-05-03 J. Brobecker <brobecker@gnat.com>
8657 From Thierry Schneider <tpschneider1@yahoo.com>
8658 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8659 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8660 (mi-cmd-symbol.o): Add rule.
8662 2003-05-03 Andrew Cagney <cagney@redhat.com>
8664 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8665 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8666 * gdbarch.h, gdbarch.c: Re-generate.
8667 * d10v-tdep.c (d10v_push_dummy_code): New function.
8668 (d10v_gdbarch_init): Set push_dummy_code.
8669 * infcall.c (legacy_push_dummy_code): New function.
8670 (generic_push_dummy_code): New function.
8671 (push_dummy_code): New function.
8672 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8673 instead of dummy_addr, to push_dummy_call. Move call to
8674 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8676 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8678 2003-05-03 Andrew Cagney <cagney@redhat.com>
8680 * disasm.h (print_insn): Declare.
8681 * disasm.c (init_gdb_disassemble_info): New function.
8682 (gdb_disassembly): Call init_gdb_disassemble_info.
8683 (gdb_print_insn): New function.
8684 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8685 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8686 * mcore-tdep.c: Include "disasm.h"
8687 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8688 * d10v-tdep.c: Include "disasm.h".
8689 (display_trace): Call gdb_print_insn, instead of print_insn.
8690 (print_insn): Delete function.
8691 * printcmd.c: Include "disasm.h".
8692 (print_insn): Delete function.
8693 (print_formatted): Call gdb_print_insn, instead of print_insn.
8694 * Makefile.in (printcmd.o): Update dependencies.
8695 (mcore-tdep.o, d10v-tdep.o): Ditto.
8697 2003-05-02 Andrew Cagney <cagney@redhat.com>
8699 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8700 PC_REGNUM, re-indent.
8701 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8702 PC_REGNUM isn't set.
8704 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8705 * gdbarch.h, gdbarch.c: Re-generate.
8706 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8707 register_virtual_size, pc_regnum, or register_bytes.
8708 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8709 (d10v_register_type): Use D10V_PC_REGNUM.
8710 (d10v_print_registers_info, d10v_read_pc): Ditto.
8711 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8712 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8714 2003-05-02 David Carlton <carlton@bactrian.org>
8716 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8717 the name with mstrsave.
8719 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8721 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8722 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8723 (host_charset_name, target_charset_name): New vars for use by
8725 (host_charset_enum, target_charset_enum): New enums for set/show
8727 (set_charset_sfunc, set_host_charset_sfunc,
8728 set_target_charset_sfunc): New functions.
8729 (set_host_charset, set_target_charset): Make static.
8730 (list_charsets, set_host_charset_command,
8731 set_target_charset_command): Delete functions.
8732 (show_charset_command): Rewrite as....
8733 (show_charset): Hook this up with the set/show command mechanism.
8734 (_initialize_charset): Change names of charsets to match the
8735 set/show enums. Use host_charset_name and target_charset_name.
8736 Use set/show mechanism for charset, host-charset, target-charset
8737 commands. Do not make 'show host-charset' and 'show
8738 target-charset' be aliases of 'show charset'.
8740 * charset.h (set_host_charset, set_target_charset): Don't export,
8741 they are not used outside the file.
8743 2003-05-01 Andrew Cagney <cagney@redhat.com>
8745 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8746 (gdb_disassembly): Make "di" non static, always initialize and
8747 cleanup. Always use dis_asm_read_memory.
8748 (gdb_dis_asm_read_memory): Delete function.
8750 2003-05-01 Andrew Cagney <cagney@redhat.com>
8752 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8753 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8755 2003-04-30 Andrew Cagney <cagney@redhat.com>
8757 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8758 "tm_print_insn_info".
8759 (TARGET_PRINT_INSN_INFO): Delete macro.
8760 (dis_asm_read_memory): Delete function declaration.
8761 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8762 (tm_print_insn_info): Delete variable definition.
8763 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8764 * gdbarch.h, gdbarch.c: Re-generate.
8765 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8766 "deprecated_tm_print_insn_info".
8767 * mcore-tdep.c (mcore_dump_insn): Ditto.
8768 * mips-tdep.c (mips_gdbarch_init): Ditto.
8769 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8770 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8771 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8772 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8773 instead of TARGET_PRINT_INSN_INFO, add comment.
8774 * s390-tdep.c (s390_get_frame_info): Instead of
8775 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8776 (s390_check_function_end, s390_is_sigreturn): Ditto.
8777 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8778 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8779 * disasm.c: Include "gdbcore.h".
8780 (_initialize_disasm): New function, initialize
8781 "deprecated_tm_print_insn_info".
8782 (deprecated_tm_print_insn_info): New variable.
8783 (dis_asm_read_memory): Moved from "corefile.c", made static.
8784 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8785 * Makefile.in (disasm.o): Update dependencies.
8787 2003-04-30 Andrew Cagney <cagney@redhat.com>
8789 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8791 2003-04-29 Adam Fedor <fedor@gnu.org>
8793 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8794 * infcall.c (find_function_addr): Make non-static.
8795 * infcall.h (find_function_addr): Declare.
8796 * Makefile.in (eval.o): Update dependencies.
8798 2003-04-28 Adam Fedor <fedor@gnu.org>
8800 * symtab.c (symbol_find_demangled_name): Check for and demangle
8802 (symbol_init_demangled_name): Init for language_objc as well.
8804 2003-04-28 Andrew Cagney <cagney@redhat.com>
8806 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8807 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8808 * gdbarch.h, gdbarch.c: Re-generate.
8809 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8810 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8811 * inferior.h (deprecated_read_fp): Rename read_fp.
8812 (generic_target_read_fp): Delete declaration.
8813 * regcache.c (generic_target_read_fp): Delete function.
8814 (deprecated_read_fp): Replace read_fp, use
8815 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8816 * d10v-tdep.c (d10v_read_fp): Delete function.
8817 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8819 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8820 deprecated_target_read_fp to generic_target_read_fp.
8821 * sh-tdep.c (sh_gdbarch_init): Ditto.
8822 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8824 * frv-tdep.c (frv_gdbarch_init): Ditto.
8826 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8827 deprecated_fp_regnum.
8828 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8829 * vax-tdep.c (vax_gdbarch_init): Ditto.
8830 * v850-tdep.c (v850_gdbarch_init): Ditto.
8831 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8832 * sh-tdep.c (sh_gdbarch_init): Ditto.
8833 * s390-tdep.c (s390_gdbarch_init): Ditto.
8834 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8835 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8836 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8837 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8839 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8840 * i386-tdep.c (i386_gdbarch_init): Ditto.
8841 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8842 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8843 * frv-tdep.c (frv_gdbarch_init): Ditto.
8844 * cris-tdep.c (cris_gdbarch_init): Ditto.
8845 * avr-tdep.c (avr_gdbarch_init): Ditto.
8846 * arm-tdep.c (arm_gdbarch_init): Ditto.
8847 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8849 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8850 * v850-tdep.c (v850_gdbarch_init): Ditto.
8851 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8852 * sh-tdep.c (sh_gdbarch_init): Ditto.
8853 * s390-tdep.c (s390_gdbarch_init): Ditto.
8854 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8855 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8856 * mips-tdep.c (mips_gdbarch_init): Ditto.
8857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8858 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8859 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8860 * frv-tdep.c (frv_gdbarch_init): Ditto.
8861 * avr-tdep.c (avr_gdbarch_init): Ditto.
8862 * arm-tdep.c (arm_gdbarch_init): Ditto.
8864 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8865 DEPRECATED_FP_REGNUM.
8866 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8867 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8868 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8869 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8870 (sparc32_register_virtual_type): Ditto.
8871 * sh-tdep.c (sh64_frame_chain): Ditto.
8872 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8873 (sh_nofp_frame_init_saved_regs): Ditto.
8874 (sh64_nofp_frame_init_saved_regs): Ditto.
8875 (sh_fp_frame_init_saved_regs): Ditto.
8876 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8877 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8878 * procfs.c (procfs_fetch_registers): Ditto.
8879 (procfs_store_registers): Ditto.
8880 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8881 (store_inferior_registers, fetch_core_registers): Ditto.
8882 (fetch_kcore_registers, clear_regs): Ditto.
8883 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8884 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8885 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8886 * nlm/i386.c (do_status): Ditto.
8887 * mipsv4-nat.c (supply_gregset): Ditto.
8888 * mips-tdep.c: Ditto for comments.
8889 * mips-nat.c (fetch_inferior_registers): Ditto.
8890 (store_inferior_registers, fetch_core_registers): Ditto.
8891 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8892 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8893 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8894 (i386_do_pop_frame, i386_register_type): Ditto.
8895 * hppa-tdep.c (hppa_frame_chain): Ditto.
8896 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8897 (hppa_pop_frame, hppa_read_fp): Ditto.
8898 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8899 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8900 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8901 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8902 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8903 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8904 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8905 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8906 * blockframe.c: Ditto for comments.
8907 * arch-utils.h: Ditto for comments.
8908 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8909 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8910 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8911 * alpha-tdep.h: Ditto for comments.
8912 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8913 (alpha_cannot_store_register): Ditto.
8914 (alpha_push_dummy_frame): Ditto.
8915 * alpha-nat.c (supply_gregset): Ditto.
8917 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8918 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8919 * config/sparc/tm-sparc.h: Update comment.
8921 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8922 deprecated_read_fp instead of TARGET_READ_FP.
8923 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8924 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8925 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8926 deprecated_read_fp instead of read_fp.
8927 * s390-tdep.c (s390_push_arguments): Ditto.
8928 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8929 * frame.h: Ditto in comments.
8930 * frame.c (legacy_get_prev_frame): Ditto.
8931 * dummy-frame.c (dummy_frame_this_id): Ditto.
8932 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8934 2003-04-28 Andrew Cagney <cagney@redhat.com>
8936 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8937 * gdbarch.h, gdbarch.c: Re-generate.
8938 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8939 * vax-tdep.c (_initialize_vax_tdep): Update.
8940 * v850-tdep.c (_initialize_v850_tdep): Update.
8941 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8942 * s390-tdep.c (_initialize_s390_tdep): Update.
8943 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8944 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8945 * mips-tdep.c (_initialize_mips_tdep): Update.
8946 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8947 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8948 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8949 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8950 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8951 * frv-tdep.c (_initialize_frv_tdep): Update.
8952 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8953 (_initialize_cris_tdep): Update.
8954 * arch-utils.c (legacy_print_insn): Update.
8955 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8957 2003-04-26 Adam Fedor <fedor@gnu.org>
8959 * linespec.c (decode_objc): New function to decode ObjC calls
8960 (decode_line_1): Check for ObjC calls (using decode_objc)
8961 * Makefile (linespec.o): Update dependencies.
8963 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
8965 * breakpoint.h (struct breakpoint_ops): New.
8966 (struct breakpoint): Add ops member.
8968 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8969 (mention): Use new breakpoint ops member.
8970 (set_raw_breakpoint): Initialize ops field to NULL.
8971 (print_exception_catchpoint, print_one_exception_catchpoint)
8972 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8973 (gnu_v3_exception_catchpoint_ops): New.
8974 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8976 2003-04-25 Adam Fedor <fedor@gnu.org>
8978 * Makefile.in (COMMON_OBS): Add objc-lang.o
8980 2003-04-25 Andrew Cagney <cagney@redhat.com>
8982 * d10v-tdep.c (print_insn): Delete function.
8983 (display_trace): Use TARGET_PRINT_INSN.
8984 (_initialize_d10v_tdep): Do not set tm_print_insn.
8985 (d10v_gdbarch_init): Set print_insn.
8987 2003-04-25 Andrew Cagney <cagney@redhat.com>
8989 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8990 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8991 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8992 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8993 (nr_dmap_regs, a0_regnum): ... new functions.
8994 (d10v_print_registers_info): Use a0_regnum, use register_size.
8995 (d10v_register_byte): Delete function.
8996 (d10v_register_raw_size): Delete function.
8997 (d10v_register_type): Use a0_regnum.
8998 (d10v_print_registers_info): Use a0_regnum.
8999 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9000 (d10v_gdbarch_init): Do not set register_byte or
9001 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9002 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9004 (trace_command): Use XCALLOC.
9005 (print_insn): Delete reference to tm_print_insn.
9006 (saved_regs_unwinder): Use store_unsigned_integer instead of
9008 * frame.h (FRAME_OBSTACK_CALLOC): Define
9010 2003-04-25 David Carlton <carlton@bactrian.org>
9012 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9014 2003-04-24 Adam Fedor <fedor@gnu.org>
9016 * objc-lang.c: Include "valprint.h"
9017 * Makefile.in (objc-lang.o): Update dependencies.
9019 2003-04-24 Adam Fedor <fedor@gnu.org>
9021 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9022 architecture dependant compilation and mark as unimplemented
9023 (until they get put in the gdbarch vector).
9025 2003-04-23 David Carlton <carlton@bactrian.org>
9027 * cp-support.c (cp_find_first_component): Accept 'operator' in
9030 2003-04-23 Andrew Cagney <cagney@redhat.com>
9032 * infcall.c (call_function_by_hand): Eliminate redundant
9033 indentation. Move "saved_async" and "old_cleanups" to where they
9036 2003-04-23 Andrew Cagney <cagney@redhat.com>
9038 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9039 and "buffer". Move the "name" code to where it is needed.
9041 2003-04-23 Andrew Cagney <cagney@redhat.com>
9043 * infcall.c (call_function_by_hand): Move variables "start_sp",
9044 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9045 code to ON_STACK switch branch.
9047 2003-04-23 Andrew Cagney <cagney@redhat.com>
9049 * infcall.c (call_function_by_hand): Make declaration of "i",
9050 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9053 2003-04-23 Andrew Cagney <cagney@redhat.com>
9055 * infcall.c (call_function_by_hand): Delete variable
9056 "n_method_args". Localize "param_type"'s declaration to the loop
9057 that it is used. Reinstate code assigning to said variable -
9058 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9059 Rationalize code using "param_type".
9061 2003-04-22 Andrew Cagney <cagney@redhat.com>
9063 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9064 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9065 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9066 to DEPRECATED_PUSH_RETURN_ADDRESS.
9068 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9070 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9071 on the DWARF2 register number prior to fetching a register.
9073 2003-04-22 J. Brobecker <brobecker@gnat.com>
9075 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9076 Update all the tests using SOFT_FLOAT considering the fact that
9077 this macro was always set to 0.
9078 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9079 considering the fact that this macro was always set to 0.
9080 * hppa-tdep.h (hppa_store_return_value): Likewise.
9081 (hppa_extract_return_value): Likewise.
9083 2003-04-22 J. Brobecker <brobecker@gnat.com>
9085 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9086 the hppa-pro target only.
9088 2003-04-21 J. Brobecker <brobecker@gnat.com>
9090 Ongoing multi-arch conversion effort for HP/UX:
9091 * config/pa/tm-hppa.h: Move all macro that are no longer
9092 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9093 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9095 2003-04-21 J. Brobecker <brobecker@gnat.com>
9097 * config/pa/tm-hppa.h: Obsolete a section that was only used
9100 2003-04-21 J. Brobecker <brobecker@gnat.com>
9102 Ongoing multi-arch conversion for HP/UX.
9103 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9104 if already defined (allows hppa64 to stay non-multiarched for now).
9105 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9107 2003-04-21 Andrew Cagney <cagney@redhat.com>
9109 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9111 2003-04-21 Andrew Cagney <cagney@redhat.com>
9113 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9114 "i386_num_mmx_regs".
9116 2003-04-21 Andrew Cagney <cagney@redhat.com>
9118 * infcall.c: New file.
9119 * infcall.h: New file.
9120 * valarith.c: Include "infcall.h".
9121 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9122 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9123 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9124 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9125 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9126 (SFILES): Add "infcall.c"
9127 (COMMON_OBS): Add "infcall.o".
9128 (infcall.o): Specify dependencies.
9129 * value.h (call_function_by_hand): Delete declaration.
9130 * inferior.h (run_stack_dummy): Delete declaration.
9131 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9132 (run_stack_dummy): Move to "infcall.c", merged into
9133 call_function_by_hand.
9134 * valops.c (call_function_by_hand): Moved to "infcall.c".
9135 (find_function_addr, value_arg_coerce): Ditto.
9136 (unwindonsignal_p, coerce_float_to_double): Ditto.
9137 (_initialize_valops): Move "set/show coerce-float-to-double", and
9138 "set/show unwindonsignal" commands to "infcall.c".
9139 * v850-tdep.c, target.h: Update comments.
9140 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9141 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9142 (sh64_init_extra_frame_info): Update comments.
9143 * mn10300-tdep.c: Update comments.
9144 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9145 * config/sparc/tm-sparc.h: Update comments.
9146 * breakpoint.h: Update comments.
9147 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9148 * arm-tdep.c: Update comment.
9150 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9152 * i386-tdep.c (i386_num_register_names): New variable.
9153 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9154 (MM0_REGNUM): Remove redundant parentheses in define.
9155 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9156 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9157 i386_mxcsr_regnum_p): Remove redundant parentheses.
9158 (i386_register_name): Use i386_num_register_names.
9160 * i386-tdep.c (i386_extract_return_value,
9161 i386_store_return_value): Correct check for availability of
9162 floating-point registers.
9164 * i386-tdep.c (i386_frame_num_args): Remove function.
9165 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9167 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9168 mmx_regnum_to_fp_regnum. Adjust all callers.
9170 * i386-tdep.c (i386_get_longjmp_target): Use
9171 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9172 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9175 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9177 * core-regset.c: Update comments to reflect reality. Re-order
9179 (fetch_core_registers): Use switch instead of if. Remove
9180 redundant prototype.
9182 2003-04-18 Jim Blandy <jimb@redhat.com>
9184 * s390-tdep.c (s390_frame_align): New function.
9185 (s390_gdbarch_init): Register it with the gdbarch object.
9187 2003-04-17 Richard Henderson <rth@redhat.com>
9189 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9191 2003-04-17 Michael Snyder <msnyder@redhat.com>
9192 Karen Bennet <bennet@redhat.com>
9194 Committed by Elena Zannoni <ezannoni@redhat.com>
9195 * gdb_gcore.sh: New script to create a core dump of a process.
9197 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9199 * values.c (value_being_returned): Don't fetch the return
9200 value if the return type is void.
9202 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9204 * thread-db.c: Reindented.
9206 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9208 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9209 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9236 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9238 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9239 the size of ``long double'' to 16, instead of 8.
9241 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9243 * i386-linux-nat.c: Add some whitespace to make things more
9245 (fetch_register, store_register, fetch_inferior_registers,
9246 store_inferior_registers): Get rid of assignment in if-statement.
9247 (store_register): Fix typo in error message.
9249 2003-04-16 Andrew Cagney <cagney@redhat.com>
9251 * utils.c (xmmalloc): Always allocate something, matches
9252 libiberty/xmalloc's semantics.
9253 (xmrealloc, xmcalloc): Ditto.
9255 2003-04-16 Andrew Cagney <cagney@redhat.com>
9257 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9259 (get_frame_type): Initialize unwind and type when needed.
9260 (get_frame_id, frame_register_unwind): Ditto.
9262 2003-04-16 Andrew Cagney <cagney@redhat.com>
9264 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9266 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9267 * sparcl-stub.c: Obsolete file.
9268 * config/sparc/tm-sparclet.h: Obsolete file.
9269 * sparclet-stub.c: Obsolete file.
9270 * sparclet-rom.c: Obsolete file.
9271 * sparcl-tdep.c: Obsolete file.
9272 * config/sparc/tm-sparclite.h: Obsolete file.
9273 * config/sparc/sparclite.mt: Obsolete file.
9274 * config/sparc/sparclet.mt: Obsolete file.
9275 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9276 sparc86x-*-* obsolete.
9278 2003-04-15 David Carlton <carlton@math.stanford.edu>
9280 * Makefile.in (SFILES): Add cp-namespace.c.
9281 (COMMON_OBS): Add cp-namespace.o.
9282 (block.o): Depend on gdb_obstack_h and cp_support_h.
9283 (buildsym.o): Depend on cp_support_h.
9284 (cp-namespace.o): New.
9285 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9286 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9287 (dwarf2read.o): Depend on cp_support_h.
9288 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9289 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9290 processing_current_namespace.
9291 (read_namespace): Update processing_current_namespace; check for
9292 anonymous namespaces.
9293 (dwarf2_name): New function.
9294 (dwarf2_extension): Ditto.
9295 * cp-support.h: Update copyright, contributors.
9296 Add inclusion guards.
9297 Add opaque declaration for structs obstack, block, symbol.
9298 (struct using_direct): New struct.
9299 Add declarations for cp_find_first_component,
9300 cp_entire_prefix_len, processing_has_namespace_info,
9301 processing_current_namespace, cp_is_anonymous,
9302 cp_add_using_directive, cp_initialize_namespace,
9303 cp_finalize_namespace, cp_set_block_scope,
9304 cp_scan_for_anonymous_namespaces.
9305 * cp-namespace.c: New file.
9306 * cp-support.c: Update copyright.
9307 Include ctype.h, gdb_assert.h, gdbcmd.h.
9308 New variable maint_cplus_cmd_list.
9309 (cp_find_first_component): New function.
9310 (cp_entire_prefix_len, maint_cplus_command)
9311 (first_component_command, _initialize_cp_support): Ditto.
9312 * buildsym.c: Include cp-support.h.
9313 New variable using_list.
9314 (add_symbol_to_list): Check for anonymous namespaces.
9315 (finish_block): Set block's scope.
9316 (start_symtab): Initialize C++ namespace support.
9317 (end_symtab): Finalize C++ namespace support.
9318 * block.h: Add opaque declarations for structs
9319 block_namespace_info, using_direct, and obstack.
9320 Add declarations for block_set_scope and block_set_using.
9321 (struct block): Add 'language_specific' member.
9322 (BLOCK_NAMESPACE): New macro.
9323 * block.c: Include gdb_obstack.h and cp-support.h.
9324 (struct block_namespace_info): New struct.
9325 (block_set_scope): New function.
9326 (block_set_using, block_initialize_namespace): Ditto.
9328 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9330 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9331 (locate_base): Return early if there aren't any link map offsets.
9332 (svr4_solib_create_inferior_hook): Warn if shared library support
9335 2003-04-14 David Carlton <carlton@math.stanford.edu>
9337 * symtab.c (symbol_set_names): Add prefix when storing Java names
9338 in hash table. Fix for PR java/1039.
9340 2003-04-14 David Carlton <carlton@math.stanford.edu>
9342 * symtab.c (symbol_set_names): Rename 'name' arg to
9343 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9344 * symtab.h: Change 'name' argument in declaration of
9345 symbol_set_names to 'linkage_name'.
9346 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9348 2003-04-14 Andrew Cagney <cagney@redhat.com>
9350 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9351 return the fully sign-extended register value.
9352 (get_frame_pointer): Ditto.
9353 (mips_pop_frame): Initialize "proc_desc" after checking for a
9356 2003-04-14 Andrew Cagney <cagney@redhat.com>
9358 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9359 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9360 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9361 (mips_push_register): Delete function.
9362 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9365 2003-04-14 Jim Blandy <jimb@redhat.com>
9367 * symmisc.c: #include "gdb_regex.h".
9368 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9370 * maint.c (maintenance_list_command): New function.
9371 (_initialize_maint_cmds): Register the above as commands.
9372 * symtab.h (maintenance_list_symtabs,
9373 maintenance_list_psymtabs): New declarations.
9374 * cli/cli-cmds.c (maintenancelistlist): New variable.
9375 (init_cmd_lists): Initialize it.
9376 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9377 * gdbcmd.h (maintenancelistlist): New declaration.
9378 * Makefile.in (symmisc.o): Update dependencies.
9380 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9382 * s390-nat.c: Include asm/types.h for addr_t.
9384 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9386 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9387 actually incoming type.
9389 2003-04-13 Andrew Cagney <cagney@redhat.com>
9391 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9392 get_next_frame and get_frame_saved_regs.
9394 2003-04-13 Andrew Cagney <cagney@redhat.com>
9396 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9397 of gdbarch_num_regs.
9399 2003-04-13 Andrew Cagney <cagney@redhat.com>
9401 * frame.h: Mention what replaced what in "struct frame_info".
9402 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9403 deprecated_update_frame_base_hack and
9404 deprecated_update_frame_pc_hack.
9405 * hppa-tdep.c: Ditto.
9407 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9409 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9410 to read_reg and update its comment. Remove regnum member.
9411 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9412 Don't call read_reg when setting in_reg. Call read_reg to get
9413 the frame base if it's in a register. Return the register number
9414 on the stack instead of in the context. Remove extra arguments
9416 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9417 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9418 the register number on the expression stack.
9419 (needs_frame_read_reg): Remove extra arguments.
9421 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9423 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9425 (execute_stack_op): All callers updated.
9426 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9427 * dwarf2loc.c (find_location_expression): New function.
9428 (dwarf_expr_frame_base): Call it.
9429 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9430 (dwarf2_tracepoint_var_ref): New function, broken out from
9431 locexpr_tracepoint_var_ref.
9432 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9434 (loclist_read_variable, loclist_read_needs_frame): New functions.
9435 (loclist_describe_location, loclist_tracepoint_var_ref): New
9437 (dwarf2_loclist_funcs): New struct location_funcs.
9438 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9439 (struct dwarf2_locexpr_baton): Add comments.
9440 (dwarf2_loclist_funcs): New extern.
9441 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9442 base_address and base_known.
9443 (dwarf_loc_buffer): New variable.
9444 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9445 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9446 (dwarf2_has_info): Initialize dwarf_loc_offset.
9447 (dwarf2_build_psymtabs): Read in .debug_loc.
9448 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9450 (psymtab_to_symtab_1): Likewise. Move base address calculation
9452 (dwarf2_get_pc_bounds): ... here. Use the base address from
9454 (dwarf2_symbol_mark_computed): Handle location lists.
9456 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9458 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9459 if the linkage name demangled successfully.
9461 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9463 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9464 disassmbly_flavour): Removed.
9466 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9468 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9470 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9472 2003-04-12 Andrew Cagney <cagney@redhat.com>
9474 * frame.h (struct frame_info): Move definition from here ...
9475 * frame.c (struct frame_info): ... to here.
9477 2003-04-12 Andrew Cagney <cagney@redhat.com>
9479 * gdbthread.h (save_infrun_state): Delete parameter
9481 (struct thread_info): Delete field "prev_func_start".
9482 (load_infrun_state): Ditto.
9483 * thread.c (load_infrun_state, save_infrun_state): Update.
9484 * infrun.c (prev_func_start): Delete variable.
9485 (context_switch, init_wait_for_inferior): Update.
9486 (stop_stepping, keep_going): Update.
9488 2003-04-12 Andrew Cagney <cagney@redhat.com>
9490 * gdbarch.sh: Add missing opaque declarations.
9491 * gdbarch.h: Regnerate.
9492 * symtab.h: Add missing opaque declarations.
9493 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9494 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9495 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9496 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9497 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9498 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9499 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9500 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9501 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9502 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9503 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9504 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9505 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9507 2003-04-11 Andrew Cagney <cagney@redhat.com>
9509 * frame.c (get_frame_id): Return this frame's "id".
9510 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9512 (legacy_saved_regs_this_id): Replace function body with
9514 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9515 FRAME_OBSTACK_ZALLOC.
9516 (create_new_frame): Mark the frame ID as valid.
9518 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9520 * Makefile.in (libbfd_h): Added missing setting.
9521 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9522 according to the selected ABI.
9524 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9526 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9528 2003-04-11 Andrew Cagney <cagney@redhat.com>
9530 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9531 SAVED_PC_AFTER_CALL.
9532 * gdbarch.h, gdbarch.c: Regenerate.
9533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9534 * x86-64-tdep.c (x86_64_init_abi): Update.
9535 * vax-tdep.c (vax_gdbarch_init): Update.
9536 * v850-tdep.c (v850_gdbarch_init): Update.
9537 * sparc-tdep.c (sparc_gdbarch_init): Update.
9538 * sh-tdep.c (sh_gdbarch_init): Update.
9539 * s390-tdep.c (s390_gdbarch_init): Update.
9540 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9541 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9542 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9543 * mips-tdep.c (mips_gdbarch_init): Update.
9544 * mcore-tdep.c (mcore_gdbarch_init): Update.
9545 * m68k-tdep.c (m68k_gdbarch_init): Update.
9546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9547 * ia64-tdep.c (ia64_gdbarch_init): Update.
9548 (ia64_saved_pc_after_call): Update declaration.
9549 * i386ly-tdep.c (i386lynx_init_abi): Update.
9550 * i386-tdep.c (i386_gdbarch_init): Update.
9551 * hppa-tdep.c (hppa_gdbarch_init): Update.
9552 * h8300-tdep.c (h8300_gdbarch_init): Update.
9553 * frv-tdep.c (frv_gdbarch_init): Update.
9554 * cris-tdep.c (cris_gdbarch_init): Update.
9555 * avr-tdep.c (avr_gdbarch_init): Update.
9556 * arm-tdep.c (arm_gdbarch_init): Update.
9557 * alpha-tdep.c (alpha_gdbarch_init): Update.
9558 * ns32knbsd-nat.c (frame_num_args): Update.
9559 * ns32k-tdep.c (umax_frame_num_args): Update.
9560 * mips-tdep.c (mips_init_frame_pc_first): Update.
9561 * infrun.c (step_over_function): Update.
9562 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9563 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9564 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9565 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9566 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9567 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9568 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9569 * arch-utils.c (init_frame_pc_default): Update.
9570 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9571 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9574 2003-04-11 Andrew Cagney <cagney@redhat.com>
9576 * i387-tdep.c: Update copyright.
9577 (i387_to_double): Delete function.
9578 (double_to_i387): Delete function.
9580 2003-04-10 Andrew Cagney <cagney@redhat.com>
9582 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9583 frame's function's address. Simplify.
9584 (d10v_frame_unwind_cache): Check that the frame's function is
9587 2003-04-10 Jim Blandy <jimb@redhat.com>
9589 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9590 call to set_gdbarch_deprecated_push_arguments.
9592 2003-04-10 Andrew Cagney <cagney@redhat.com>
9594 * frame.c (fprint_frame_id): New function.
9595 (fprint_frame_type, fprint_frame): New function.
9596 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9597 (create_sentinel_frame, get_frame_id): Ditto.
9598 (frame_id_p, frame_id_eq): Ditto.
9599 (frame_id_inner, create_new_frame): Ditto.
9600 (legacy_get_prev_frame, get_prev_frame): Ditto.
9601 (deprecated_update_frame_pc_hack): Ditto.
9602 (frame_register_unwind): Ditto.
9603 (deprecated_update_frame_base_hack): Ditto.
9605 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9607 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9608 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9609 frame_chain function.
9610 * Makefile.in: Add dependencies due to above change.
9612 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9614 * blockframe.c (legacy_frame_chain_valid): Move call to
9615 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9618 2003-04-09 Andrew Cagney <cagney@redhat.com>
9620 * frame.h (struct frame_id): Replace "pc" and "base" with
9621 "stack_addr" and "code_addr". Update comments.
9622 (frame_id_build): Update parameter names and comment.
9623 (struct frame_info): Replace "id_p" and "id" with "this_id".
9624 * dummy-frame.c (dummy_frame_this_id): Update.
9625 * breakpoint.c (print_one_breakpoint): Update.
9626 * frame.c (get_frame_id): Update.
9627 (get_frame_base, frame_id_build): Update.
9628 (create_sentinel_frame, legacy_get_prev_frame): Update.
9629 (deprecated_update_frame_base_hack): Update.
9630 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9631 (frame_id_inner): Ditto.
9633 2003-04-09 Andrew Cagney <cagney@redhat.com>
9635 * defs.h (gdb_print_host_address): Make "addr" parameter a
9637 * utils.c (gdb_print_host_address): Update.
9639 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9641 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9642 register number for R0 is 0.
9644 2003-04-09 J. Brobecker <brobecker@gnat.com>
9646 * frame.h (struct gdbarch): Add opaque structure definition
9647 to avoid a compilation warning on LynxOS 4.0.
9649 2003-04-09 Andrew Cagney <cagney@redhat.com>
9651 * frame.h (struct frame_info): Delete field "pc". Replace
9652 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9654 * frame.c (frame_pc_unwind): Update.
9655 (create_sentinel_frame): Do not set "pc".
9656 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9657 (get_frame_pc): Call frame_pc_unwind.
9658 (deprecated_update_frame_pc_hack): Update.
9659 (create_new_frame): Use "pc" not "->pc".
9661 2003-04-09 Andrew Cagney <cagney@redhat.com>
9663 * frame.c (get_frame_id): Eliminate code updating "frame".
9664 (legacy_get_prev_frame): Ditto.
9665 (get_frame_base): Return id.base directly.
9666 (deprecated_update_frame_base_hack): Update "id.base".
9667 * frame.h (struct frame_info): Delete field "frame".
9669 2003-04-09 Andrew Cagney <cagney@redhat.com>
9671 * NEWS: Mention that the "Sequent family" is obsolete.
9672 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9673 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9674 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9675 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9676 * config/i386/tm-ptx4.h: Obsolete file.
9677 * config/i386/tm-ptx.h: Obsolete file.
9678 * symm-tdep.c: Obsolete file.
9679 * config/i386/symmetry.mt: Obsolete file.
9680 * config/i386/tm-symmetry.h: Obsolete file.
9681 * symm-nat.c: Obsolete file.
9682 * config/i386/nm-symmetry.h: Obsolete file.
9683 * config/i386/xm-symmetry.h: Obsolete file.
9684 * config/i386/symmetry.mh: Obsolete file.
9685 * config/i386/nm-ptx4.h: Obsolete file.
9686 * config/i386/ptx4.mh: Obsolete file.
9687 * config/i386/ptx.mt: Obsolete file.
9688 * config/i386/ptx.mh: Obsolete file.
9689 * config/i386/xm-ptx4.h: Obsolete file.
9690 * config/i386/xm-ptx.h: Obsolete file.
9692 2003-04-09 Andrew Cagney <cagney@redhat.com>
9694 Obsolete mips*-*-mach3*.
9695 * NEWS: Mention that mips*-*-mach3* is obsolete.
9696 * m3-nat.c: Obsolete file.
9697 * config/nm-m3.h: Obsolete file.
9698 * config/mips/tm-mipsm3.h: Obsolete file.
9699 * config/mips/mipsm3.mt: Obsolete file.
9700 * config/mips/mipsm3.mh: Obsolete file.
9701 * config/mips/xm-mipsm3.h: Obsolete file.
9702 * mipsm3-nat.c: Obsolete file.
9703 * configure.host: Obsolete mips-dec-mach3*.
9704 * configure.tgt: Obsolete mips*-*-mach3*.
9706 2003-04-09 Andrew Cagney <cagney@redhat.com>
9708 * doublest.h: Update copyright.
9709 (deprecated_store_floating, deprecated_extract_floating): Rename
9710 store_floating and extract_floating. Update comments.
9711 * doublest.c: Update copyright.
9712 (extract_floating_by_length): Replace extract_floating.
9713 (store_floating_by_length): Replace store_floating.
9714 (deprecated_extract_floating): New function.
9715 (deprecated_store_floating): New function.
9716 (extract_typed_floating): Call extract_floating_by_length.
9717 (store_typed_floating): Call store_floating_by_length.
9718 * x86-64-tdep.c (x86_64_store_return_value): Update.
9719 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9720 (sh64_extract_return_value): Update.
9721 (sh_sh4_register_convert_to_virtual): Update.
9722 (sh_sh64_register_convert_to_virtual): Update.
9723 (sh_sh4_register_convert_to_raw): Update.
9724 (sh_sh64_register_convert_to_raw): Update.
9725 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9726 (rs6000_register_convert_to_raw): Update.
9727 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9728 (ia64_register_convert_to_raw): Update.
9729 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9730 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9731 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9732 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9733 (alpha_register_convert_to_raw): Update.
9735 2003-04-08 Andrew Cagney <cagney@redhat.com>
9737 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9738 * gdbarch.h, gdbarch.c: Re-generate.
9739 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9740 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9741 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9742 conditionally, use frame_pc_unwind as an alternative. Add
9744 * arch-utils.c (init_frame_pc_default): Only call
9745 SAVED_PC_AFTER_CALL when available.
9747 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9749 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9750 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9751 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9752 (start_remote): Ditto.
9753 (handle_inferior_event): Ditto.
9754 (save_inferior_status): Ditto.
9755 (restore_inferior_status): Ditto.
9756 * infcmd.c (attach_command): Ditto.
9757 * fork-child.c (startup_inferior): Ditto.
9758 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9759 * alpha-tdep.c (heuristic_proc_start): Ditto.
9760 * mips-tdep.c (heuristic_proc_start): Ditto.
9761 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9762 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9763 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9764 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9765 * remote-vx.c (vx_create_inferior): Ditto.
9767 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9769 * infrun.c (stop_soon_quietly): Make it an enum, to better
9770 override the default behavior of handle_inferior_event.
9771 (clear_proceed_status): Update uses of stop_soon_quietly to
9772 reflect that it is now an enum.
9773 (start_remote): Ditto.
9774 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9775 is set to handle the new GNU/Linux kernel behavior for
9776 attach/sigstop. Update uses of stop_soon_quietly.
9777 * inferior.h (enum stop_kind): New enum.
9778 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9779 Reset normal handle_inferior_event behavior, afterwards.
9780 * fork-child.c (startup_inferior): Update.
9781 * alpha-tdep.c (heuristic_proc_start): Update.
9782 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9783 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9784 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9785 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9786 * remote-vx.c (vx_create_inferior): Update.
9787 * mips-tdep.c (heuristic_proc_start): Update.
9789 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9791 * disasm.c (dump_insns): Move variables inside loop, or they will
9792 be freed more than once, causing wild memory corruptions.
9793 (gdb_disassembly): Look for the substring "-thread",
9794 instead of "-threads" in the target name, to make sure to find
9795 the 'multi-thread' target. Also, make sure we do the right thing
9796 with the "core" target.
9798 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9800 * mips-tdep.c (mips_print_fp_register): New function, created from
9801 do_fp_register_row(). Registers are now (also) printed as hex.
9802 Only one register is printed per row.
9803 (mips_print_register, do_fp_register_row): Print floating point
9804 registers with mips_print_fp_register().
9806 2003-04-06 Andrew Cagney <cagney@redhat.com>
9808 * valprint.h (inspect_it): Add extern declaration.
9809 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9810 (selectors_info, classes_info): Ditto.
9811 (find_objc_msgcall): Fix indentation.
9812 (objc_printstr): Delete extern declarations.
9814 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9816 2003-04-06 Andrew Cagney <cagney@redhat.com>
9818 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9820 * frame.c (legacy_saved_regs_this_id): Update.
9821 (legacy_get_prev_frame): Update.
9822 * xstormy16-tdep.c: Update comment.
9823 * sparc-tdep.c (sparc_frame_chain): Update comment.
9824 * blockframe.c (legacy_frame_chain_valid): Update.
9826 2003-04-06 Andrew Cagney <cagney@redhat.com>
9828 * valprint.c (val_print_type_code_int): Delete #ifdef
9829 PRINT_TYPELESS_INTEGER code.
9831 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9832 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9833 multi-arch definition.
9834 * gdbarch.h: Re-generate.
9836 2003-04-05 Andrew Cagney <cagney@redhat.com>
9838 Eliminate FRAME_FIND_SAVED_REGS.
9839 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9840 Change FSR parameter to a pointer.
9841 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9842 Assume FSR parameter is a pointer.
9843 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9845 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9846 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9847 saved_regs a pointer.
9848 (hppa_frame_saved_pc): Ditto.
9849 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9850 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9852 (restore_pc_queue): Make fsr a pointer.
9853 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9854 (hppa_frame_chain): Make saved_regs a pointer, call
9855 hppa_frame_init_saved_regs.
9856 * sparc-tdep.c: Include "gdb_assert.h".
9857 (sparc_frame_find_saved_regs): Replace internal_error with
9859 * remote-vxsparc.c (vx_read_register): Delete reference to
9860 FRAME_FIND_SAVED_REGS.
9861 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9862 * gdbarch.h: Regenerate.
9863 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9864 (deprecated_get_frame_saved_regs): Delete declaration.
9865 (struct frame_saved_regs): Delete definition.
9866 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9867 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9868 (hppa_frame_find_saved_regs): Delete declaration.
9869 (FRAME_FIND_SAVED_REGS): Delete macro.
9870 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9871 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9872 FRAME_FIND_SAVED_REGS in comment.
9874 2003-04-05 Andrew Cagney <cagney@redhat.com>
9876 * frame.c (frame_func_unwind, get_frame_func): New functions.
9877 * frame.h (get_frame_func, frame_func_unwind): Declare.
9878 (struct frame_info): Add field "prev_func" for caching the
9879 previous frame's function address.
9880 * arm-tdep.c (arm_frameless_function_invocation): Combine
9881 get_pc_function_start and get_frame_pc into get_frame_func.
9882 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9883 (sh64_nofp_frame_init_saved_regs): Ditto.
9884 * s390-tdep.c (s390_function_start): Ditto.
9885 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9886 (rs6000_frameless_function_invocation): Ditto.
9887 (rs6000_frame_saved_pc): Ditto.
9888 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9889 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9890 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9891 (i386_frame_init_saved_regs): Ditto.
9892 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9893 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9894 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9895 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9896 * blockframe.c (frameless_look_for_prologue): Ditto.
9898 2003-04-05 Andrew Cagney <cagney@redhat.com>
9900 * frame.c (legacy_get_prev_frame): Link prev to next at the
9901 function start. Update comments.
9903 2003-04-05 Andrew Cagney <cagney@redhat.com>
9905 * frame.c (get_frame_id): Update comment.
9906 (legacy_get_prev_frame): Update comment.
9907 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9908 * gdbarch.h: Regenerate.
9909 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9910 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9912 2003-04-05 Andrew Cagney <cagney@redhat.com>
9914 * stack.c (print_frame_info): Use get_frame_pc.
9916 2003-04-04 Andrew Cagney <cagney@redhat.com>
9918 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9919 the frame's type from the unwinder.
9920 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9921 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9922 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9923 (get_frame_base_address): Use get_frame_type.
9924 (get_frame_locals_address, get_frame_args_address): Ditto.
9925 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9926 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9927 (struct frame_info): Add comment explaining why the frame contains
9929 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9930 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9931 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9933 * frame-unwind.h: Include "frame.h".
9934 (struct frame_unwind): Add "type" field.
9935 * Makefile.in (frame_unwind_h): Add $(frame_h).
9937 2003-04-04 Andrew Cagney <cagney@redhat.com>
9939 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9940 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9941 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9943 (d10v_unwind_dummy_id): Use frame_id_build.
9944 * frame.c (find_frame_sal): Use get_frame_pc.
9945 (create_new_frame): Use deprecated_update_frame_pc_hack and
9946 deprecated_update_frame_base_hack.
9947 (create_sentinel_frame): Add comment about ->pc going away.
9948 (get_prev_frame): Add comment about ->pc going away.
9949 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9950 frame_id_build, deprecated_update_frame_pc_hack and
9951 deprecated_update_frame_base_hack.
9952 (select_frame): Use get_frame_pc.
9953 (legacy_saved_regs_this_id): Use frame_id_build.
9955 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
9957 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9958 signed integer case.
9959 (classify_argument): Handle enumerations and references.
9961 2003-04-04 Andrew Cagney <cagney@redhat.com>
9963 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9966 2003-04-01 Adam Fedor <fedor@gnu.org>
9968 * gdb/objc-lang.c (selectors_info): Replace calls to
9969 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9970 SYMBOL_NATURAL_NAME.
9971 (classes_info, find_methods): Likewise.
9973 2003-04-03 Kevin Buettner <kevinb@redhat.com>
9975 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9976 ``mach'' to the value determined by bfd_default_set_arch_mach().
9978 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9980 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9981 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9982 (mi-cmd-file.o): Update dependencies.
9984 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9986 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9987 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9989 2003-04-01 Adam Fedor <fedor@gnu.org>
9991 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9992 * language.h (struct language_defn): Add la_demangle.
9993 (language_demangle): Declare.
9994 * language.c (language_demangle): New function.
9995 (unk_lang_demangle): Likewise.
9996 (unknown_language_defn, auto_language_defn, local_language_defn):
9997 Add ukn_lang_demangle.
9998 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9999 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10000 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10001 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10002 * jv-lang.c (java_demangle): New function
10003 (java_language_defn): Use it for la_demangle element.
10004 * objc-lang.c (objc_demangle): Add options argument
10005 (objc_language_defn): Use objc_demangle for la_demangle element.
10006 * maint.c (maintenance_demangle): Replace switch with
10007 call to language_demangle.
10008 * utils.c (fprintf_symbol_filtered): Likewise.
10010 2003-04-01 Andrew Cagney <cagney@redhat.com>
10012 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10013 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10014 PRINT_TYPELESS_INTEGER.
10015 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10016 PUSH_RETURN_ADDRESS.
10018 2003-04-01 Andrew Cagney <cagney@redhat.com>
10020 * Makefile.in (d10v-tdep.o): Update dependencies.
10021 * d10v-tdep.c: Include "frame-base.h".
10022 (d10v_frame_unwind): Make constant.
10023 (d10v_frame_base_address): New function.
10024 (d10v_frame_base): New variable.
10025 (d10v_gdbarch_init): Set frame_base default.
10026 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10028 (d10v_frame_unwind_cache): Set and use "prev_sp".
10029 (d10v_frame_this_id): Use the previous frame's inner most stack
10030 address and this frame's func address for the frame ID. Use
10031 frame_id_build. Don't analyze beyond the current instruction.
10033 2003-04-01 Andrew Cagney <cagney@redhat.com>
10035 * frame.h (get_frame_locals_address, get_frame_args_address):
10036 Refer to the base address, instead of the address of the first
10037 local or parameter.
10039 2003-04-01 Andrew Cagney <cagney@redhat.com>
10041 Add frame debug info addresses:
10042 * frame-base.c: New file.
10043 * frame-base.h: New file.
10044 * frame.h (struct frame_base): Add opaque declaration.
10045 (get_frame_base): Update comment.
10046 (get_frame_base_address): Declare.
10047 (get_frame_locals_address): Declare.
10048 (get_frame_args_address): Declare.
10049 (struct frame_info): Add "base" and "base_cache". Update
10050 comments on the unwinder.
10051 * frame.c: Include "frame-base.h".
10052 (get_frame_locals_address): New function.
10053 (get_frame_base_address): New function.
10054 (get_frame_args_address): New function.
10055 * findvar.c (read_var_value): Use get_frame_locals_address and
10056 get_frame_args_address.
10057 * stack.c (frame_info): Use get_frame_locals_address and
10058 get_frame_args_address.
10059 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10060 moved to "frame-base.c".
10061 * printcmd.c (print_frame_nameless_args): Ditto.
10062 * symtab.h (address_class): Update comments.
10063 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10064 get_frame_base_address.
10065 * dwarf2expr.c (execute_stack_op): Ditto.
10066 * Makefile.in (frame_base_h): Define.
10067 (frame.o): Update dependencies.
10068 (frame-base.o): Add dependencies.
10069 (SFILES): Add frame-base.c.
10070 (COMMON_OBS): Add frame-base.o.
10072 2003-04-01 Andrew Cagney <cagney@redhat.com>
10074 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10075 CALL_DUMMY_LENGTH): Ditto.
10076 * gdbarch.c: Re-generate.
10077 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10078 (CALL_DUMMY_LENGTH): Delete macro.
10079 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10080 * arm-tdep.c (arm_gdbarch_init): Ditto.
10081 * avr-tdep.c (avr_gdbarch_init): Ditto.
10082 * cris-tdep.c (cris_gdbarch_init): Ditto.
10083 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10084 * frv-tdep.c (frv_gdbarch_init): Ditto.
10085 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10086 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10087 * i386-tdep.c (i386_gdbarch_init): Ditto.
10088 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10089 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10090 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10091 * mips-tdep.c (mips_gdbarch_init): Ditto.
10092 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10093 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10094 * s390-tdep.c (s390_gdbarch_init): Ditto.
10095 * sh-tdep.c (sh_gdbarch_init): Ditto.
10096 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10097 * v850-tdep.c (v850_gdbarch_init): Ditto.
10098 * vax-tdep.c (vax_gdbarch_init): Ditto.
10099 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10101 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10103 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10105 2003-04-01 Andrew Cagney <cagney@redhat.com>
10107 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10108 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10109 * gdbarch.h, gdbarch.c: Re-generate.
10110 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10111 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10112 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10113 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10114 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10115 * infcmd.c (run_stack_dummy): Simplify assuming
10116 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10117 * infrun.c (handle_inferior_event): Ditto.
10118 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10119 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10120 * arm-tdep.c (arm_gdbarch_init): Ditto.
10121 * avr-tdep.c (avr_gdbarch_init): Ditto.
10122 * cris-tdep.c (cris_gdbarch_init): Ditto.
10123 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10124 * frv-tdep.c (frv_gdbarch_init): Ditto.
10125 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10126 * i386-tdep.c (i386_gdbarch_init): Ditto.
10127 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10129 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10130 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10131 * mips-tdep.c (mips_gdbarch_init): Ditto.
10132 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10133 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10134 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10135 * s390-tdep.c (s390_gdbarch_init): Ditto.
10136 * sh-tdep.c (sh_gdbarch_init): Ditto.
10137 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10138 * v850-tdep.c (v850_gdbarch_init): Ditto.
10139 * vax-tdep.c (vax_gdbarch_init): Ditto.
10140 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10142 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10144 * symfile.c (symfile_relocate_debug_section): Update call to
10145 bfd_simple_get_relocated_section_contents.
10147 2003-03-31 Andrew Cagney <cagney@redhat.com>
10149 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10150 * gdbarch.h, gdbarch.c: Regenerate.
10151 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10152 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10154 * frame.h (generic_fix_call_dummy): Delete declaration.
10155 * dummy-frame.h: Update comment.
10156 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10157 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10159 * sh-tdep.c (sh_gdbarch_init): Ditto.
10160 * s390-tdep.c (s390_gdbarch_init): Ditto.
10161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10162 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10164 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10165 * i386-tdep.c (i386_gdbarch_init): Ditto.
10166 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10167 * frv-tdep.c (frv_gdbarch_init): Ditto.
10168 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10169 * cris-tdep.c (cris_gdbarch_init): Ditto.
10170 * avr-tdep.c (avr_gdbarch_init): Ditto.
10171 * arm-tdep.c (arm_gdbarch_init): Ditto.
10173 2003-03-31 J. Brobecker <brobecker@gnat.com>
10175 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10176 (INIT_FRAME_AP): Likewise.
10177 (EXTRA_FRAME_INFO): Likewise.
10179 2003-03-31 Andrew Cagney <cagney@redhat.com>
10181 * gdbarch.sh: Include "symfile.h".
10182 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10183 * gdbarch.h, gdbarch.c: Re-generate.
10184 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10186 call_dummy_address, the default is at entry_point_address.
10187 * v850-tdep.c (v850_gdbarch_init): Ditto.
10188 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10189 * sh-tdep.c (sh_gdbarch_init): Ditto.
10190 * s390-tdep.c (s390_gdbarch_init): Ditto.
10191 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10192 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10193 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10194 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10195 * i386-tdep.c (i386_gdbarch_init): Ditto.
10196 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10197 * frv-tdep.c (frv_gdbarch_init): Ditto.
10198 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10199 * cris-tdep.c (cris_gdbarch_init): Ditto.
10200 * arm-tdep.c (arm_gdbarch_init): Ditto.
10202 2003-03-31 Andrew Cagney <cagney@redhat.com>
10204 * gdbarch.sh (CALL_DUMMY_P): Delete.
10205 * gdbarch.h, gdbarch.c: Re-generate.
10206 * inferior.h (CALL_DUMMY_P): Delete macro.
10207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10208 * vax-tdep.c (vax_gdbarch_init): Update.
10209 * v850-tdep.c (v850_gdbarch_init): Update.
10210 * sparc-tdep.c (sparc_gdbarch_init): Update.
10211 * sh-tdep.c (sh_gdbarch_init): Update.
10212 * s390-tdep.c (s390_gdbarch_init): Update.
10213 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10214 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10215 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10216 * mips-tdep.c (mips_gdbarch_init): Update.
10217 * mcore-tdep.c (mcore_gdbarch_init): Update.
10218 * m68k-tdep.c (m68k_gdbarch_init): Update.
10219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10220 * ia64-tdep.c (ia64_gdbarch_init): Update.
10221 * i386-tdep.c (i386_gdbarch_init): Update.
10222 * h8300-tdep.c (h8300_gdbarch_init): Update.
10223 * frv-tdep.c (frv_gdbarch_init): Update.
10224 * d10v-tdep.c (d10v_gdbarch_init): Update.
10225 * cris-tdep.c (cris_gdbarch_init): Update.
10226 * breakpoint.c (deprecated_frame_in_dummy): Update.
10227 * avr-tdep.c (avr_gdbarch_init): Update.
10228 * alpha-tdep.c (alpha_gdbarch_init): Update.
10229 * arm-tdep.c (arm_gdbarch_init): Update.
10230 * dummy-frame.c (dummy_frame_this_id): Update comments.
10231 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10232 * frame.c (legacy_get_prev_frame): Ditto.
10233 * valops.c (call_function_by_hand): Delete function.
10234 (hand_function_call): Rename to call_function_by_hand
10236 2003-03-30 Andrew Cagney <cagney@redhat.com>
10238 2002-11-10 Klee Dienes <kdienes@apple.com>
10239 * value.h (struct value): Update comment.
10241 2003-03-30 Andrew Cagney <cagney@redhat.com>
10243 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10245 (d10v_gdbarch_init): Do not set fp_regnum.
10247 * frame.c (get_frame_base): Force ID initialization.
10248 (get_prev_frame): Move computation of the frame ID from here ...
10249 (get_frame_id): ... to here.
10250 (legacy_get_prev_frame): Mark the frame ID as valid.
10251 * frame.h (struct frame_info): Add field "id_p".
10253 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10255 * i386-tdep.c (i386_store_struct_return): Removed.
10256 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10258 2003-03-30 Andrew Cagney <cagney@redhat.com>
10260 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10261 * gdbarch.h, gdbarch.c: Regenerate.
10262 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10263 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10264 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10265 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10266 * i386-tdep.c (i386_gdbarch_init): Ditto.
10267 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10268 * cris-tdep.c (cris_gdbarch_init): Ditto.
10269 * vax-tdep.c (vax_gdbarch_init): Ditto.
10270 * s390-tdep.c (s390_gdbarch_init): Ditto.
10271 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10272 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10273 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10274 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10275 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10276 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10277 * sparc-tdep.c (sparc_gdbarch_init): Update.
10278 * sh-tdep.c (sh_gdbarch_init): Update.
10279 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10280 * mips-tdep.c (mips_gdbarch_init): Update.
10281 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10282 * ia64-tdep.c (ia64_gdbarch_init): Update.
10283 * frv-tdep.c (frv_gdbarch_init): Update.
10284 * avr-tdep.c (avr_gdbarch_init): Update.
10285 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10286 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10287 instead of when push_dummy_call is not available.
10289 2003-03-30 Andrew Cagney <cagney@redhat.com>
10291 * infttrace.c: Include "gdbthread.h".
10292 (parent_attach_all): Fix function signature.
10293 (call_ptrace): Update call.
10294 * Makefile.in (infttrace.o): Update dependencies.
10296 2003-03-30 Andrew Cagney <cagney@redhat.com>
10298 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10299 PUSH_RETURN_ADDRESS.
10300 * gdbarch.h, gdbarch.c: Regenerate.
10301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10302 * x86-64-tdep.c (x86_64_init_abi): Update.
10303 * v850-tdep.c (v850_gdbarch_init): Update.
10304 * sparc-tdep.c (sparc_gdbarch_init): Update.
10305 * sh-tdep.c (sh_gdbarch_init): Update.
10306 * s390-tdep.c (s390_gdbarch_init): Update.
10307 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10309 * mips-tdep.c (mips_gdbarch_init): Update.
10310 * mcore-tdep.c (mcore_gdbarch_init): Update.
10311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10312 * ia64-tdep.c (ia64_gdbarch_init): Update.
10313 * i386-tdep.c (i386_gdbarch_init): Update.
10314 * h8300-tdep.c (h8300_gdbarch_init): Update.
10315 * frv-tdep.c (frv_gdbarch_init): Update.
10316 * cris-tdep.c (cris_gdbarch_init): Update.
10317 * avr-tdep.c (avr_gdbarch_init): Update.
10318 * arm-tdep.c (arm_gdbarch_init): Update.
10319 * valops.c (hand_function_call): Update.
10321 2003-03-29 Andrew Cagney <cagney@redhat.com>
10323 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10324 sizeof_call_dummy_words.
10325 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10327 * gdbarch.h: Regenerate.
10329 2003-03-29 Andrew Cagney <cagney@redhat.com>
10331 * infttrace.h: New file.
10332 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10333 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10334 (hpread_read_doc_function_type): Detect an initialized type1.
10335 (hpread_quick_traverse): Initialize mod_name_string.
10336 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10337 (som_solib_get_solib_by_pc): Declare.
10338 (so_lib_thread_start_addr): Declare.
10339 (no_shared_libraries): Declare.
10340 * somread.c (init_import_symbols): Make static. Add forward
10342 * config/pa/nm-hppah.h: Include "infttrace.h" for
10344 (hppa_insert_hw_watchpoint): Declare.
10345 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10346 * hppah-nat.c: Include "gdb_string.h".
10347 (parent_attach_all): Delete extern declaration, moved to
10349 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10351 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10352 * Makefile.in (infttrace_h): Define.
10353 (hpread.o): Update dependencies.
10354 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10355 * hppa-hpux-tdep.c: Include "gdb_string.h".
10356 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10357 * infrun.c (handle_inferior_event): Always initialize
10358 stepped_after_stopped_by_watchpoint. Add default and remove
10359 fallthrough in switch statement.
10360 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10362 (hppa_remove_hw_watchpoint): Ditto.
10364 2003-03-29 Andrew Cagney <cagney@redhat.com>
10366 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10369 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10371 * arm-tdep.c (arm_push_arguments): Delete.
10372 (struct stack_item): New type.
10373 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10374 (arm_store_struct_return): Delte.
10375 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10376 arm_push_arguments or arm_store_struct_return.
10378 2003-03-28 Andrew Cagney <cagney@redhat.com>
10380 * Makefile.in (d10v-tdep.o): Update dependencies.
10381 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10382 * d10v-tdep.c: Include "remote.h".
10383 (target_resume_hook): Delete extern declaration.
10384 (target_wait_loop_hook): Ditto.
10385 (tdisassemble_command): Eliminate assignment in "if" conditional.
10386 (d10v_ts2_register_sim_regno): Eliminate call to
10387 legacy_register_sim_regno.
10388 (d10v_ts3_register_sim_regno): Ditto.
10390 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10392 * thread.c: Reindented.
10393 * lin-lwp.c: Ditto.
10394 * linux-proc.c: Ditto.
10396 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10398 * MAINTAINERS (write after approval): Add myself.
10400 2003-03-27 Theodore A. Roth <troth@openavr.org>
10402 * objc-exp.y: Add missing semi-colons.
10404 2003-03-27 Andrew Cagney <cagney@redhat.com>
10406 * regcache.c (write_sp): Delete function and references.
10407 * inferior.h (write_sp): Delete declaration.
10408 * valops.c (hand_function_call): Replace write_sp with
10410 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10411 (sparc_pop_frame): Ditto.
10413 2003-03-27 Andrew Cagney <cagney@redhat.com>
10415 * NEWS: Mention removal of support for hppa*-*-bsd* and
10416 hppa*-*-osf* natives, and hppa*-*-pro* target.
10417 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10418 * config/pa/xm-pa.h: Obsolete file.
10419 * config/pa/xm-hppab.h: Obsolete file.
10420 * config/pa/nm-hppab.h: Obsolete file.
10421 * config/pa/tm-hppab.h: Obsolete file.
10422 * config/pa/tm-hppao.h: Obsolete file.
10423 * config/pa/nm-hppao.h: Obsolete file.
10424 * config/pa/tm-pro.h: Obsolete file.
10425 * config/pa/hppaosf.mt: Obsolete file.
10426 * config/pa/hppaosf.mh: Obsolete file.
10427 * config/pa/hppapro.mt: Obsolete file.
10428 * config/pa/hppabsd.mt: Obsolete file.
10429 * config/pa/hppabsd.mh: Obsolete file.
10430 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10431 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10434 2003-03-27 Andrew Cagney <cagney@redhat.com>
10436 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10437 push_arguments. Don't set push_return_address or write_sp.
10438 (d10v_push_dummy_call): Replace d10v_push_arguments.
10439 (d10v_push_return_address, d10v_write_sp): Delete function,
10440 handled by push_dummy_call.
10442 2003-03-26 Andrew Cagney <cagney@redhat.com>
10444 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10445 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10446 regcache and dummy_addr parameters.
10447 * gdbarch.h, gdbarch.c: Re-generate.
10448 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10449 available; assume it will handle stack alignment and return
10450 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10451 legacy_push_arguments.
10452 (legacy_push_arguments): Rename default_push_arguments.
10453 * value.h (legacy_push_arguments): Rename default_push_arguments.
10454 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10455 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10456 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10457 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10458 * config/i386/tm-symmetry.h: Update.
10459 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10460 * x86-64-tdep.c (x86_64_init_abi): Update.
10461 * v850-tdep.c (v850_gdbarch_init): Update.
10462 * sparc-tdep.c (sparc_gdbarch_init): Update.
10463 * sh-tdep.c (sh_gdbarch_init): Update.
10464 * s390-tdep.c (s390_gdbarch_init): Update.
10465 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10466 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10467 * mips-tdep.c (mips_gdbarch_init): Update.
10468 * mcore-tdep.c (mcore_gdbarch_init): Update.
10469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10470 * ia64-tdep.c (ia64_gdbarch_init): Update.
10471 * i386-tdep.c (i386_gdbarch_init): Update.
10472 * hppa-tdep.c (hppa_gdbarch_init): Update.
10473 * h8300-tdep.c (h8300_gdbarch_init): Update.
10474 * frv-tdep.c (frv_gdbarch_init): Update.
10475 * d10v-tdep.c (d10v_gdbarch_init): Update.
10476 * cris-tdep.c (cris_gdbarch_init): Update.
10477 * avr-tdep.c (avr_gdbarch_init): Update.
10478 * arm-tdep.c (arm_gdbarch_init): Update.
10479 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10480 * alpha-tdep.c (alpha_gdbarch_init): Update.
10482 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10484 * signals/signals.c (do_target_signal_to_host): Correct realtime
10487 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10489 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10490 (struct sal_chain, map_catch_names): Remove.
10491 (catch_exception_command_1): Don't call
10492 handle_gnu_4_16_catch_command.
10494 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10496 From Mark Dettinger <dettinge@de.ibm.com>:
10497 * dwarf2cfi.c (read_2u): Increment pointer by two.
10499 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10501 * signals/signals.c: Fix typos in last change.
10503 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10505 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10506 not already defined. Use __SIGRTMIN if available.
10507 (target_signal_from_host): Remove SIGRTMIN block.
10508 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10509 the signal is within the realtime range.
10511 2003-03-25 Adam Fedor <fedor@gnu.org>
10513 * Makefile.in (infrun.o): Add $(language_h)
10514 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10515 for language specific trampolines.
10516 * language.h (struct language_defn): Add skip_trampoline.
10517 (skip_language_trampoline): Declare.
10518 * language.c (unk_lang_trampoline, skip_language_trampoline):
10520 (unknown_language_defn, auto_language_defn, local_language_defn):
10521 Add ukn_lang_trampoline.
10522 * ada-lang.c (ada_language_defn): Add NULL for language
10523 specific skip_trampoline.
10524 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10525 scm-lang.c: Likewise.
10526 * objc-lang.c (objc_skip_trampoline): New function.
10527 (objc_language_defn): Add objc_skip_trampoline.
10529 2003-03-25 Andrew Cagney <cagney@redhat.com>
10531 * frame.c (get_prev_frame): Delay validating a frame's ID -
10532 non-NULL, didn't go backwards - until an attempt to unwind it to
10533 the previous frame.
10535 2003-03-25 Andrew Cagney <cagney@redhat.com>
10537 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10538 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10539 * gdbarch.h, gdbarch.c: Re-generate.
10540 * config/sparc/tm-sparc.h
10541 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10542 * sparc-tdep.c (sparc_gdbarch_init): Set
10543 deprecated_extra_stack_alignment_needed.
10544 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10545 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10546 extra_stack_alignment_needed.
10547 * v850-tdep.c (v850_gdbarch_init): Ditto.
10548 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10549 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10550 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10551 * cris-tdep.c (cris_gdbarch_init): Ditto.
10552 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10555 2003-03-25 Andrew Cagney <cagney@redhat.com>
10557 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10558 STORE_STRUCT_RETURN.
10559 * gdbarch.h, gdbarch.c: Regenerate.
10560 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10561 (d10v_push_arguments): Set the struct return register.
10562 (d10v_gdbarch_init): Update.
10563 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10564 * x86-64-tdep.c (x86_64_init_abi): Update.
10565 * vax-tdep.c (vax_gdbarch_init): Update.
10566 * v850-tdep.c (v850_gdbarch_init): Update.
10567 * sparc-tdep.c (sparc_gdbarch_init): Update.
10568 * sh-tdep.c (sh_gdbarch_init): Update.
10569 * s390-tdep.c (s390_gdbarch_init): Update.
10570 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10571 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10572 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10573 * mips-tdep.c (mips_gdbarch_init): Update.
10574 * mcore-tdep.c (mcore_gdbarch_init): Update.
10575 * m68k-tdep.c (m68k_gdbarch_init): Update.
10576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10577 * ia64-tdep.c (ia64_gdbarch_init): Update.
10578 * i386-tdep.c (i386_gdbarch_init): Update.
10579 * hppa-tdep.c (hppa_gdbarch_init): Update.
10580 * h8300-tdep.c (h8300_gdbarch_init): Update.
10581 * frv-tdep.c (frv_gdbarch_init): Update.
10582 * cris-tdep.c (cris_gdbarch_init): Update.
10583 * avr-tdep.c (avr_gdbarch_init): Update.
10584 * arm-tdep.c (arm_gdbarch_init): Update.
10585 * alpha-tdep.c (alpha_gdbarch_init): Update.
10587 2003-03-25 Andrew Cagney <cagney@redhat.com>
10589 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10590 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10591 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10592 * gdbarch.h, gdbarch.c: Regenerate.
10593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10594 call_dummy_stack_adjust_p.
10595 * vax-tdep.c (vax_gdbarch_init): Ditto.
10596 * v850-tdep.c (v850_gdbarch_init): Ditto.
10597 * sh-tdep.c (sh_gdbarch_init): Ditto.
10598 * s390-tdep.c (s390_gdbarch_init): Ditto.
10599 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10600 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10601 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10602 * mips-tdep.c (mips_gdbarch_init): Ditto.
10603 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10604 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10606 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10607 * i386-tdep.c (i386_gdbarch_init): Ditto.
10608 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10609 * frv-tdep.c (frv_gdbarch_init): Ditto.
10610 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10611 * cris-tdep.c (cris_gdbarch_init): Ditto.
10612 * avr-tdep.c (avr_gdbarch_init): Ditto.
10613 * arm-tdep.c (arm_gdbarch_init): Ditto.
10614 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10615 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10616 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10617 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10618 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10619 call_dummy_stack_adjust_p.
10620 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10621 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10622 * sparc-tdep.c (sparc32_push_arguments): Update.
10623 * valops.c (hand_function_call): Update.
10625 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10627 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10628 set_gdbarch_char_signed.
10630 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10633 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10635 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10637 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10638 (_initialize_arm_tdep): Don't set tm_print_insn.
10640 2003-03-24 Adam Fedor <fedor@gnu.org>
10642 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10643 * objc-lang.h: Add multiple inclusion protection.
10644 (start_msglist, add_msglist, end_msglist): Additional declarations.
10646 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10648 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10649 value was renamed to ARM_FLOAT_SOFT_FPA.
10651 2003-03-23 Andrew Cagney <cagney@redhat.com>
10653 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10654 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10655 * gdbarch.h, gdbarch.c: Regenerate.
10656 * valops.c (hand_function_call): Update.
10657 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10658 * frame.c (legacy_saved_regs_this_id): Update.
10659 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10660 * dummy-frame.h: Update.
10661 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10662 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10663 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10664 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10665 * config/m68k/tm-sun3.h: Update.
10666 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10668 * x86-64-tdep.c (x86_64_init_abi): Update.
10669 * vax-tdep.c (vax_gdbarch_init): Update.
10670 * v850-tdep.c (v850_gdbarch_init): Update.
10671 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10672 * sh-tdep.c (sh_gdbarch_init): Update.
10673 * s390-tdep.c (s390_gdbarch_init): Update.
10674 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10675 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10676 (frame_get_saved_regs): Update.
10677 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10678 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10679 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10680 * mips-tdep.c (mips_gdbarch_init): Update.
10681 * mcore-tdep.c (mcore_gdbarch_init): Update.
10682 * m68k-tdep.c (m68k_gdbarch_init): Update.
10683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10684 * ia64-tdep.c (ia64_gdbarch_init): Update.
10685 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10686 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10687 (i386_interix_back_one_frame): Update.
10688 * hppa-tdep.c (hppa_gdbarch_init): Update.
10689 (hppa_init_extra_frame_info): Update.
10690 * h8300-tdep.c (h8300_gdbarch_init): Update.
10691 * frv-tdep.c (frv_gdbarch_init): Update.
10692 * cris-tdep.c (cris_gdbarch_init): Update.
10693 * avr-tdep.c (avr_gdbarch_init): Update.
10694 * arm-tdep.c (arm_gdbarch_init): Update.
10695 * alpha-tdep.c (alpha_gdbarch_init): Update.
10697 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10699 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10700 (arm_get_fp_model): Declare.
10701 * arm-tdep.c (fp_model_strings): New string array.
10702 (arm_fp_model, current_fp_model): New variables.
10703 (arm_get_fp_model): New function.
10704 (arm_set_fp): New function.
10705 (set_fp_model_sfunc): New function.
10706 (show_fp_model): New function.
10707 (_initialize_arm_tdep): Add new command to set/show the FPU.
10708 (arm_extract_return_value): Use arm_get_fp_model.
10709 (arm_store_return_value): Likewise.
10710 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10711 to initialize the floating-point data types.
10712 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10715 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10717 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10718 the current setting of each value.
10719 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10720 new_set and new_show. Use add_setshow_cmd_full and
10721 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10722 commands and add new version as subcommands of "set/show arm".
10724 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10726 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10727 (set_arm_command, show_arm_command): New functions.
10728 (_initialize_arm_tdep): Add them.
10729 (num_disassembly_options): Renamed from num_flavor_options.
10730 (valid_disassembly_styles): Renamed from valid_flavors.
10731 (disassembly_style): Renamed from disassembly_flavor.
10732 (set_disassembly_style_sfunc): Renamed from
10733 set_disassembly_flavor_sfunc.
10734 (set_disassembly_style): Renamed from set_disassembly_flavor.
10735 (arm_othernames): Updated.
10736 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10737 command. Add "set/show arm disassembly" commands. Deprecate
10738 "othernames" command.
10740 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10742 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10743 (arm-tdep.o): Depend on elf_arm_h.
10745 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10747 * Makefile.in (coff_internal_h): Define.
10748 (arm-tdep.o): Update dependencies.
10750 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10752 * arm-tdep.c (prologue_cache): Delete.
10753 (check_prologue_cache, save_prologue_cache): Delete.
10754 (arm_scan_prologue): Don't check or update the prologue_cache.
10755 (arm_gdb_arch_init): Don't initialize it.
10756 (_initialize_arm_tdep): Likewise.
10758 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10760 * MAINTAINERS (tui): Maintainer of tui code.
10762 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10764 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10765 (i386-cygwin-tdep.o): Add dependencies.
10766 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10767 * i386-cygwin-tdep.c: New file.
10768 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10769 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10771 2003-03-20 Andrew Cagney <cagney@redhat.com>
10773 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10774 (handle_inferior_event): Remove code calling
10775 DYNAMIC_TRAMPOLINE_NEXTPC.
10777 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10778 already has a full path.
10780 * main.c (gdb_main): Return 1.
10781 (captured_main): Call error to report an invalid interpreter.
10783 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10784 * alpha-osf1-tdep.c: Include "gdb_string.h".
10786 2003-03-19 J. Brobecker <brobecker@gnat.com>
10788 Continuing work to convert the hppa targets to multiarch partial.
10790 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10791 method, now that hppa_push_dummy_frame has a conformant prototype.
10792 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10793 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10794 for the switch to multiarch partial.
10796 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10798 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10799 when iss is issNull.
10801 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10803 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10804 NUM_REGS bounds check.
10806 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10808 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10809 * mips-tdep.c (gdb_assert.h): Include.
10810 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10811 (mips_register_name): Handle integer registers explicitly. Add
10813 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10814 (mips_lsi33k_reg_names): Don't list integer registers; they're
10815 handled by mips_register_name() now.
10816 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10817 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10818 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10819 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10820 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10822 2003-03-18 Andrew Cagney <cagney@redhat.com>
10824 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10826 * gdbtypes.h (print_scalar_formatted): Update declaration.
10827 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10829 2003-03-18 J. Brobecker <brobecker@gnat.com>
10831 * infrun.c (observer.h): Add #include.
10832 (normal_stop): Add call to observer_notify_normal_stop.
10833 * Makefile.in (infrun.o): Add dependency on observer.h.
10835 2003-03-18 J. Brobecker <brobecker@gnat.com>
10837 Continuing work to convert the hppa targets to multiarch partial.
10838 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10839 parameter. Reformat comment.
10840 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10841 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10842 to match new profile.
10844 2003-03-18 J. Brobecker <brobecker@gnat.com>
10846 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10847 appear to be working in any case.
10849 2003-03-18 J. Brobecker <brobecker@gnat.com>
10851 * observer.c (observer_test_first_observer): New static variable.
10852 (observer_test_second_observer): Likewise.
10853 (observer_test_third_observer): Likewise.
10854 (observer_test_first_notification_function): New static function.
10855 (observer_test_second_notification_function): Likewise.
10856 (observer_test_third_notification_function): Likewise.
10858 2003-03-17 J. Brobecker <brobecker@gnat.com>
10860 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10861 * somsolib.c (gdb_assert.h): Likewise.
10862 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10863 (somsolib.o): Likewise.
10865 2003-03-17 Andrew Cagney <cagney@redhat.com>
10867 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10868 BFD. Simplify setting of di.endian.
10870 2003-03-17 Andrew Cagney <cagney@redhat.com>
10872 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10873 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10875 From Elena Zannoni <ezannoni@redhat.com>
10876 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10877 vector and floating-point parameters.
10878 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10880 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10882 2003-03-17 Fernando Nasser <fnasser@redhat.com>
10884 * MAINTAINERS: Remove my name from several maintainership roles.
10886 2003-03-17 Andrew Cagney <cagney@redhat.com>
10888 Fix frame off-by-one bug.
10889 * frame-unwind.h (frame_this_id_ftype): Replace
10890 frame_unwind_id_ftype.
10891 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10892 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10893 with "prev_register".
10894 * frame-unwind.c (frame_unwind_find_by_pc): Return
10895 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10897 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10898 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10899 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10900 (dummy_frame_unwind): Update.
10901 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10902 sentinel_frame_register_unwind.
10903 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10904 (sentinel_frame_unwinder): Update.
10905 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10906 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10907 * frame.c (create_sentinel_frame): Update. Initialize
10908 "prologue_cache" instead of "unwind_cache".
10909 (frame_register_unwind): Call this frame's prev_register with the
10910 next frame and this frame's prologue cache.
10911 (get_prev_frame): Simplify. Always call prev frame's this_id with
10912 this frame and prev frame's prologue cache. Document that this
10913 call is shifted one to the left when compared to the
10914 frame_register_unwind call.
10915 (legacy_saved_regs_prev_register): Replace
10916 frame_saved_regs_register_unwind.
10917 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10918 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10919 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10920 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10921 (d10v_frame_unwind): Update.
10922 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10923 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10924 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10925 "saved_regs" with "this_saved_regs".
10927 2003-03-16 Andrew Cagney <cagney@redhat.com>
10929 * frame.c (frame_pop): Don't call target_store_registers. Fix
10930 problem reported by Mark Kettenis.
10932 2003-03-16 Mark Kettenis <kettenis@gnu.org>
10934 * i386-tdep.c (i386_register_type): Renamed from
10935 i386_register_virtual_type. Adjust function signature.
10936 (i386_gdbarch_init): Set register_type instead of
10937 deprecated_max_register_raw_size,
10938 deprecated_max_register_virtual_size and register_virtual_type.
10940 2003-03-14 Andrew Cagney <cagney@redhat.com>
10942 * frame.c (get_prev_frame): When a legacy frame, always call
10943 legacy_get_prev_frame. Simplify unwind code using assumption that
10944 the unwinder is new.
10945 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10946 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10947 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10949 2003-03-14 Andrew Cagney <cagney@redhat.com>
10951 * frame.c (get_saved_register): Delete function.
10952 * frame.h (get_saved_register): Delete declaration.
10953 * xstormy16-tdep.c: Update comment.
10954 * regcache.h: Update comments.
10955 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10956 get_saved_register and extract_address, use
10957 frame_read_unsigned_register.
10958 (sparc_frame_saved_pc): Ditto.
10959 (sparc_get_saved_register): Instead of get_saved_register, use
10961 (sparc_pop_frame): Ditto.
10962 * findvar.c: Update comments.
10963 (value_of_register): Call frame_register instead of
10964 get_saved_register.
10965 (value_from_register): Ditto.
10966 * config/sparc/tm-sparc.h: Update comment.
10967 * breakpoint.c: Update comment.
10969 2003-03-14 Andrew Cagney <cagney@redhat.com>
10971 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10972 GET_SAVED_REGISTER.
10973 * gdbarch.h, gdbarch.c: Re-generate.
10974 * frame.h: Update comments.
10975 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10976 * x86-64-tdep.c (x86_64_init_abi): Update.
10977 * sparc-tdep.c (sparc_gdbarch_init): Update.
10978 * sh-tdep.c (sh_gdbarch_init): Update.
10979 * mips-tdep.c (mips_gdbarch_init): Update.
10980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10981 * cris-tdep.c (cris_gdbarch_init): Update.
10982 * ia64-tdep.c (ia64_gdbarch_init): Update.
10983 * frame.c (frame_register): Update.
10984 (get_saved_register): Update.
10985 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10987 2003-03-13 Andrew Cagney <cagney@redhat.com>
10989 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10990 * gdbarch.h, gdbarch.c: Regenerate.
10991 * valops.c (hand_function_call): Update comment.
10992 * stack.c (return_command): Update comment.
10993 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10994 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10995 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10996 * x86-64-tdep.c (x86_64_init_abi): Update.
10997 * vax-tdep.c (vax_gdbarch_init): Update.
10998 * v850-tdep.c (v850_gdbarch_init): Update.
10999 * sparc-tdep.c (sparc_gdbarch_init): Update.
11000 * sh-tdep.c (sh_gdbarch_init): Update.
11001 * s390-tdep.c (s390_gdbarch_init): Update.
11002 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11003 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11004 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11005 * mips-tdep.c (mips_gdbarch_init): Update.
11006 * mcore-tdep.c (mcore_gdbarch_init): Update.
11007 * m68k-tdep.c (m68k_gdbarch_init): Update.
11008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11009 * ia64-tdep.c (ia64_gdbarch_init): Update.
11010 * i386-tdep.c (i386_gdbarch_init): Update.
11011 * hppa-tdep.c (hppa_gdbarch_init): Update.
11012 * h8300-tdep.c (h8300_gdbarch_init): Update.
11013 * frv-tdep.c (frv_gdbarch_init): Update.
11014 * cris-tdep.c (cris_gdbarch_init): Update.
11015 * avr-tdep.c (avr_gdbarch_init): Update.
11016 * arm-tdep.c (arm_gdbarch_init): Update.
11017 * alpha-tdep.c (alpha_gdbarch_init): Update.
11019 2003-03-13 Andrew Cagney <cagney@redhat.com>
11021 * frame.c (legacy_frame_p): New function.
11022 (get_prev_frame): Use legacy_frame_p.
11023 * frame.h (legacy_frame_p): Declare.
11025 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11027 * MAINTAINERS (write after approval): Alphabetically
11030 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11032 * MAINTAINERS (write after approval): Add myself.
11034 2003-03-12 Andrew Cagney <cagney@redhat.com>
11036 * frame.c (get_prev_frame): Rename the frame parameter to
11038 (get_next_frame, legacy_get_prev_frame): Ditto.
11040 2003-03-12 Andrew Cagney <cagney@redhat.com>
11042 * frame.c (get_current_frame): Check target_has_registers before
11043 checking target_has_stack.
11044 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11045 instead of deprecated_selected_frame.
11046 * findvar.c (value_of_register): Pass "frame", not
11047 deprecated_selected_frame, to value_of_builtin_reg.
11049 2003-03-12 Andrew Cagney <cagney@redhat.com>
11051 * regcache.c (regcache_cooked_write_signed): New function.
11052 (regcache_cooked_write_unsigned): New function.
11053 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11054 (regcache_cooked_read_signed): Fix regnum in range assertion.
11055 * regcache.h (regcache_cooked_write_signed): Declare.
11056 (regcache_cooked_write_unsigned): Declare.
11058 2003-03-12 Andrew Cagney <cagney@redhat.com>
11060 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11061 * gdbarch.h, gdbarch.c: Re-generate.
11062 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11063 * x86-64-tdep.h: Update.
11064 * x86-64-tdep.c (x86_64_init_abi): Update.
11065 * v850-tdep.c (v850_gdbarch_init): Update.
11066 * sparc-tdep.c (sparc_gdbarch_init): Update.
11067 * sh-tdep.c (sh_gdbarch_init): Update.
11068 * s390-tdep.c (s390_gdbarch_init): Update.
11069 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11070 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11071 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11072 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11073 * mips-tdep.c (mips_gdbarch_init): Update.
11074 * mcore-tdep.c (mcore_gdbarch_init): Update.
11075 * m68k-tdep.c (m68k_gdbarch_init): Update.
11076 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11077 * ia64-tdep.c (ia64_gdbarch_init): Update.
11078 * i386-tdep.c (i386_gdbarch_init): Update.
11079 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11080 * hppa-tdep.c (hppa_gdbarch_init): Update.
11081 * h8300-tdep.c (h8300_gdbarch_init): Update.
11082 * frv-tdep.c (frv_gdbarch_init): Update.
11083 * cris-tdep.c (cris_gdbarch_init): Update.
11084 * avr-tdep.c (avr_gdbarch_init): Update.
11085 * arm-tdep.c (arm_gdbarch_init): Update.
11086 * alpha-tdep.c (alpha_gdbarch_init): Update.
11087 * sh-tdep.c (sh_init_extra_frame_info): Update.
11088 (sh64_init_extra_frame_info): Update.
11089 * ns32knbsd-nat.c (frame_num_args): Update.
11090 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11091 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11092 (xstormy16_frame_chain_valid): Update.
11093 * vax-tdep.c (vax_saved_pc_after_call): Update.
11094 * v850-tdep.c (v850_frame_chain): Update.
11095 (v850_pop_frame): Update.
11096 (v850_init_extra_frame_info): Update.
11097 * sparc-tdep.c (setup_arbitrary_frame): Update.
11098 * ns32k-tdep.c (umax_frame_num_args): Update.
11099 * s390-tdep.c (s390_pop_frame_regular): Update.
11100 * mn10300-tdep.c (mn10300_frame_chain): Update.
11101 (mn10300_pop_frame_regular): Update.
11102 (mn10300_init_extra_frame_info): Update.
11103 * mips-tdep.c (mips_init_frame_pc_first): Update.
11104 (mips_frame_chain): Update.
11105 (mips_pop_frame): Update.
11106 * mcore-tdep.c (mcore_frame_chain): Update.
11107 (mcore_pop_frame): Update.
11108 (mcore_init_extra_frame_info): Update.
11109 * arch-utils.c (init_frame_pc_default): Update.
11110 * m68k-tdep.c (isi_frame_num_args): Update.
11111 (delta68_frame_num_args): Update.
11112 (news_frame_num_args): Update.
11113 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11114 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11115 (alpha_frame_chain): Update.
11116 (alpha_pop_frame): Update.
11117 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11118 (hppa_init_extra_frame_info): Update.
11119 (hppa_frame_chain): Update.
11120 (hppa_frame_chain_valid): Update.
11121 * cris-tdep.c (cris_init_extra_frame_info): Update.
11122 * avr-tdep.c (avr_init_extra_frame_info): Update.
11123 * arm-tdep.c (arm_frame_chain_valid): Update.
11124 (arm_init_extra_frame_info): Update.
11125 (arm_pop_frame): Update.
11126 * frame.c (frame_pc_unwind): Update.
11127 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11128 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11129 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11130 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11131 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11132 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11134 2003-03-12 Andrew Cagney <cagney@redhat.com>
11136 Eliminate the need for POP_FRAME.
11137 * frame.c (do_frame_unwind_register): New function.
11138 (frame_pop): When no POP_FRAME, pop the frame using register
11139 unwind and a scratch regcache.
11140 (frame_saved_regs_pop): Delete function.
11141 (trad_frame_unwinder): Update.
11142 * d10v-tdep.c (d10v_frame_pop): Delete function.
11143 (d10v_frame_unwind): Update.
11144 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11145 (sentinel_frame_unwinder): Update.
11146 * dummy-frame.c (dummy_frame_pop): Delete function.
11147 (dummy_frame_unwind): Update.
11148 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11149 (struct frame_unwind): Update.
11151 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11153 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11154 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11155 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11156 Do range checks on register number obtained from debugging info.
11157 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11158 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11159 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11161 (do_fp_register_row): Fix typo which caused double type to be
11162 used when attempting to unpack a float.
11164 2003-03-11 J. Brobecker <brobecker@gnat.com>
11166 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11168 2003-03-11 Andrew Cagney <cagney@redhat.com>
11170 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11171 frame. Problem found by Corinna Vinschen.
11173 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11175 * doublest.c (floatformat_from_length): Accept also
11176 the real size of 'long double' type.
11178 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11180 From Klee Dienes <kdienes@apple.com>:
11181 * breakpoint.c (bpstat_copy): Copy the command lines as well
11182 as the old value, to match what is freed in bpstat_clear.
11184 2003-03-10 David Carlton <carlton@math.stanford.edu>
11186 * minsyms.c (add_minsym_to_hash_table): Replace
11187 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11188 (compare_minimal_symbols, compact_minimal_symbols)
11189 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11190 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11191 of DEPRECATED_SYMBOL_MATCHES_NAME.
11192 (lookup_minimal_symbol_solib_trampoline): Ditto.
11194 2003-03-10 Andrew Cagney <cagney@redhat.com>
11196 * regcache.h (regcache_cooked_read_ftype): Define.
11197 (regcache_save, regcache_restore): Add a cooked_read parameter.
11198 * regcache.c (regcache_save, regcache_restore): Update.
11199 (do_cooked_read): New function.
11200 (regcache_cpy): Pass do_cooked_read to regcache_save and
11203 2003-03-10 Andrew Cagney <cagney@redhat.com>
11205 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11206 * gdbarch.h, gdbarch.c: Re-generate.
11207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11208 * x86-64-tdep.h: Update.
11209 * x86-64-tdep.c (x86_64_init_abi): Update.
11210 * v850-tdep.c (v850_gdbarch_init): Update.
11211 * sparc-tdep.c (sparc_gdbarch_init): Update.
11212 * sh-tdep.c (sh_gdbarch_init): Update.
11213 * s390-tdep.c (s390_gdbarch_init): Update.
11214 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11215 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11216 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11217 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11218 * mips-tdep.c (mips_gdbarch_init): Update.
11219 * mcore-tdep.c (mcore_gdbarch_init): Update.
11220 * m68k-tdep.c (m68k_gdbarch_init): Update.
11221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11222 * ia64-tdep.c (ia64_gdbarch_init): Update.
11223 * i386-tdep.c (i386_gdbarch_init): Update.
11224 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11225 * hppa-tdep.c (hppa_gdbarch_init): Update.
11226 * h8300-tdep.c (h8300_gdbarch_init): Update.
11227 * frv-tdep.c (frv_gdbarch_init): Update.
11228 * cris-tdep.c (cris_gdbarch_init): Update.
11229 * avr-tdep.c (avr_gdbarch_init): Update.
11230 * arm-tdep.c (arm_gdbarch_init): Update.
11231 * alpha-tdep.c (alpha_gdbarch_init): Update.
11232 * sh-tdep.c (sh_init_extra_frame_info): Update.
11233 (sh64_init_extra_frame_info): Update.
11234 * ns32knbsd-nat.c (frame_num_args): Update.
11235 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11236 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11237 (xstormy16_frame_chain_valid): Update.
11238 * vax-tdep.c (vax_saved_pc_after_call): Update.
11239 * v850-tdep.c (v850_frame_chain): Update.
11240 (v850_pop_frame): Update.
11241 (v850_init_extra_frame_info): Update.
11242 * sparc-tdep.c (setup_arbitrary_frame): Update.
11243 * ns32k-tdep.c (umax_frame_num_args): Update.
11244 * s390-tdep.c (s390_pop_frame_regular): Update.
11245 * mn10300-tdep.c (mn10300_frame_chain): Update.
11246 (mn10300_pop_frame_regular): Update.
11247 (mn10300_init_extra_frame_info): Update.
11248 * mips-tdep.c (mips_init_frame_pc_first): Update.
11249 (mips_frame_chain): Update.
11250 (mips_pop_frame): Update.
11251 * mcore-tdep.c (mcore_frame_chain): Update.
11252 (mcore_pop_frame): Update.
11253 (mcore_init_extra_frame_info): Update.
11254 * arch-utils.c (init_frame_pc_default): Update.
11255 * m68k-tdep.c (isi_frame_num_args): Update.
11256 (delta68_frame_num_args): Update.
11257 (news_frame_num_args): Update.
11258 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11259 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11260 (alpha_frame_chain): Update.
11261 (alpha_pop_frame): Update.
11262 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11263 (hppa_init_extra_frame_info): Update.
11264 (hppa_frame_chain): Update.
11265 (hppa_frame_chain_valid): Update.
11266 * cris-tdep.c (cris_init_extra_frame_info): Update.
11267 * avr-tdep.c (avr_init_extra_frame_info): Update.
11268 * arm-tdep.c (arm_frame_chain_valid): Update.
11269 (arm_init_extra_frame_info): Update.
11270 (arm_pop_frame): Update.
11271 * frame.c (frame_pc_unwind): Update.
11272 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11273 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11274 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11275 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11276 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11277 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11279 2003-03-10 Andrew Cagney <cagney@redhat.com>
11281 * gdbarch.sh (gdbarch_unwind_pc): New method.
11282 * gdbarch.h, gdbarch.c: Regenerate.
11283 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11284 but use read_pc and FRAME_SAVED_PC as fall backs.
11285 (frame_saved_regs_pc_unwind): Delete function.
11286 (trad_frame_unwinder): Update.
11287 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11288 (struct frame_unwind): Update.
11289 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11290 (dummy_frame_unwind): Update.
11291 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11292 (sentinel_frame_unwinder): Update.
11293 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11294 (d10v_frame_unwind): Update.
11295 (d10v_unwind_pc): New function.
11296 (d10v_gdbarch_init): Set unwind_pc.
11298 2003-03-10 Andrew Cagney <cagney@redhat.com>
11300 * gdbarch.h: Re-generate.
11302 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11304 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11307 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11309 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11311 2003-03-08 Andrew Cagney <cagney@redhat.com>
11313 * cli-out.c: Update copyright.
11314 (cli_out_data): Define typedef. Use instead of ui_out_data.
11316 2003-03-08 Andrew Cagney <cagney@redhat.com>
11318 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11321 2003-03-07 Andrew Cagney <cagney@redhat.com>
11323 * gdbarch.sh: Don't generate two macro definitions when an
11324 undefined macro taking no arguments.
11325 * gdbarch.h: Regenerate.
11327 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11329 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11330 (x86_64_unwind_dummy_id): New functions.
11331 (x86_64_init_abi): Register these two new functions.
11333 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11335 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11336 (x86_64_skip_prologue): Move prologue detection to
11338 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11340 2003-03-05 Andrew Cagney <cagney@redhat.com>
11342 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11343 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11344 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11345 to use unwind_dummy_id when a dummy frame.
11346 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11348 * gdbarch.h, gdbarch.c: Regneerate.
11350 2003-03-05 Andrew Cagney <cagney@redhat.com>
11352 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11353 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11354 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11357 2003-03-05 Andrew Cagney <cagney@redhat.com>
11359 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11360 (struct d10v_unwind_cache): Delete field "frameless". Replace
11361 "next_addr" with "sp_offset". Add "r11_offset".
11362 (d10v_frame_unwind_cache): Update.
11363 (prologue_find_regs): Update. When "mv r11, sp", save the
11364 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11365 RN was saved in r11_offset.
11367 2003-03-05 Andrew Cagney <cagney@redhat.com>
11369 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11370 cached PC value in the next frame.
11372 2003-03-05 Andrew Cagney <cagney@redhat.com>
11374 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11375 "id_unwind_cache" with "id".
11376 (frame_id_unwind): Delete declaration.
11377 * frame.c (frame_id_unwind): Delete function.
11378 (get_prev_frame): Call the frame id unwind method directly. Store
11379 the returned next frame's ID value in NEXT_FRAME. Note that there
11380 is a problem with the wrong unwind ID being called with the wrong
11383 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11385 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11387 2003-03-05 James Ingham <jingham@apple.com>
11388 Daniel Jacobowitz <drow@mvista.com>
11390 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11391 (auto_cp_abi): New variable.
11392 (current_cp_abi, num_cp_abis): Make static.
11393 (CP_ABI_MAX): Define.
11394 (cp_abis): Turn into an array.
11395 (value_virtual_fn_field): Fix formatting.
11396 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11398 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11399 (list_cp_abis, _initialize_cp_abi): New functions.
11400 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11401 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11402 switch_to_cp_abi. Update prototype for register_cp_abi.
11403 * Makefile.in (cp-abi.o): Update dependencies.
11404 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11405 instead of switch_to_cp_abi.
11406 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11408 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11410 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11412 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11414 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11415 * dwarf2loc.c: Include "regcache.h".
11416 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11418 * Makefile.in (dwarf2loc.o): Update dependencies.
11420 2003-03-04 Theodore A. Roth <troth@openavr.org>
11422 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11423 number of io registers reported by remote target is not a multiple of
11426 2003-03-04 David Carlton <carlton@math.stanford.edu>
11428 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11429 (lookup_symbol_aux_psymtabs): Update call to
11430 lookup_partial_symbol.
11431 (lookup_transparent_type, find_main_psymtab)
11432 (make_symbol_overload_list): Ditto.
11434 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11436 * MAINTAINERS (Write after approval): Update my email address.
11438 2003-03-03 Andrew Cagney <cagney@redhat.com>
11440 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11441 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11442 predicate. Replace MAX_REGISTER_RAW_SIZE.
11443 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11444 MAX_REGISTER_VIRTUAL_SIZE.
11445 * regcache.c (legacy_max_register_raw_size): New function.
11446 (legacy_max_register_virtual_size): New function.
11447 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11448 (MAX_REGISTER_RAW_SIZE): Define.
11449 (legacy_max_register_raw_size): Declare.
11450 (legacy_max_register_virtual_size): Declare.
11451 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11452 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11453 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11454 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11455 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11456 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11457 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11458 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11459 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11461 * vax-tdep.c (vax_gdbarch_init): Update.
11462 * v850-tdep.c (v850_gdbarch_init): Update.
11463 * sparc-tdep.c (sparc_gdbarch_init): Update.
11464 * sh-tdep.c (sh_gdbarch_init): Update.
11465 * s390-tdep.c (s390_gdbarch_init): Update.
11466 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11467 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11468 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11469 * mips-tdep.c (mips_gdbarch_init): Update.
11470 * mcore-tdep.c (mcore_gdbarch_init): Update.
11471 * m68k-tdep.c (m68k_gdbarch_init): Update.
11472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11473 * ia64-tdep.c (ia64_gdbarch_init): Update.
11474 * i386-tdep.c (i386_gdbarch_init): Update.
11475 * hppa-tdep.c (hppa_gdbarch_init): Update.
11476 * h8300-tdep.c (h8300_gdbarch_init): Update.
11477 * frv-tdep.c (frv_gdbarch_init): Update.
11478 * cris-tdep.c (cris_gdbarch_init): Update.
11479 * avr-tdep.c (avr_gdbarch_init): Update.
11480 * arm-tdep.c (arm_gdbarch_init): Update.
11481 * alpha-tdep.c (alpha_gdbarch_init): Update.
11482 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11483 max_register_raw_size or max_register_virtual_size.
11485 2003-03-03 David Carlton <carlton@math.stanford.edu>
11487 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11488 SYMBOL_MATCHES_NAME, add comment.
11489 (SYMBOL_MATCHES_NATURAL_NAME): New.
11490 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11491 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11492 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11493 * symtab.c (lookup_partial_symbol): Use
11494 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11496 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11497 SYMBOL_MATCHES_NAME.
11500 2003-03-03 David Carlton <carlton@math.stanford.edu>
11502 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11503 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11504 by regexp matching against SYMBOL_NATURAL_NAME.
11506 2003-03-03 David Carlton <carlton@math.stanford.edu>
11508 * linespec.c (find_method): Extract code into collect_methods.
11509 (collect_methods): New.
11511 2003-03-02 Mark Kettenis <kettenis@gnu.org>
11513 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11516 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11517 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11519 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11521 * arch-utils.c (generic_register_byte): Fix to use the loop index
11522 and not regnum when summing the size of all registers up to regnum.
11524 2003-03-01 Andrew Cagney <cagney@redhat.com>
11526 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11527 FRAME_INIT_SAVED_REGS.
11528 * gdbarch.h, gdbarch.c: Regenerate.
11529 * stack.c (frame_info): Update.
11530 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11531 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11532 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11533 * ns32k-tdep.c (ns32k_pop_frame): Update.
11534 * mips-tdep.c (mips_pop_frame): Update.
11535 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11536 * ia64-tdep.c (ia64_frame_chain): Update.
11537 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11538 (ia64_frameless_function_invocation): Update.
11539 (ia64_init_extra_frame_info): Update.
11540 (ia64_pop_frame_regular): Update.
11541 * frame.h (struct frame_info): Update comment.
11542 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11543 * frame.c (frame_saved_regs_register_unwind): Update.
11544 (frame_saved_regs_register_unwind): Update.
11545 (deprecated_generic_get_saved_register): Update.
11546 * cris-tdep.c: Update comment.
11547 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11549 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11550 * x86-64-tdep.c (x86_64_init_abi): Update.
11551 * vax-tdep.c (vax_gdbarch_init): Update.
11552 * v850-tdep.c (v850_gdbarch_init): Update.
11553 * sparc-tdep.c (sparc_gdbarch_init): Update.
11554 * sh-tdep.c (sh_gdbarch_init): Update.
11555 * s390-tdep.c (s390_gdbarch_init): Update.
11556 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11557 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11558 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11559 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11560 * mips-tdep.c (mips_gdbarch_init): Update.
11561 * mcore-tdep.c (mcore_gdbarch_init): Update.
11562 * m68k-tdep.c (m68k_gdbarch_init): Update.
11563 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11564 * ia64-tdep.c (ia64_gdbarch_init): Update.
11565 * i386-tdep.c (i386_gdbarch_init): Update.
11566 * frv-tdep.c (frv_gdbarch_init): Update.
11567 * avr-tdep.c (avr_gdbarch_init): Update.
11568 * arm-tdep.c (arm_gdbarch_init): Update.
11569 * alpha-tdep.c (alpha_gdbarch_init): Update.
11571 2003-03-01 Andrew Cagney <cagney@redhat.com>
11573 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11574 option enum and switch. When no windows, set the interpreter to
11577 2003-03-01 Andrew Cagney <cagney@redhat.com>
11579 * main.c (captured_main): Replace magic option characters with an
11582 2003-03-01 Andrew Cagney <cagney@redhat.com>
11584 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11585 INIT_EXTRA_FRAME_INFO.
11586 * gdbarch.h, gdbarch.c: Regenerate.
11587 * arm-tdep.c: Update comments.
11588 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11589 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11590 * frame.h, avr-tdep.c: Ditto.
11591 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11592 (create_new_frame, legacy_get_prev_frame): Ditto.
11593 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11594 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11596 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11597 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11598 * v850-tdep.c (v850_gdbarch_init): Ditto.
11599 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11600 * sh-tdep.c (sh_gdbarch_init): Ditto.
11601 * s390-tdep.c (s390_gdbarch_init): Ditto.
11602 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11603 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11604 * mips-tdep.c (mips_gdbarch_init): Ditto.
11605 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11607 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11608 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11609 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11610 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11611 * frv-tdep.c (frv_gdbarch_init): Ditto.
11612 * cris-tdep.c (cris_gdbarch_init): Ditto.
11613 * avr-tdep.c (avr_gdbarch_init): Ditto.
11614 * arm-tdep.c (arm_gdbarch_init): Ditto.
11615 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11616 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11618 2003-03-01 Andrew Cagney <cagney@redhat.com>
11620 * gdbarch.sh (register_type): New function with predicate.
11621 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11622 * gdbarch.h, gdbarch.c: Re-generate.
11623 * arch-utils.c (generic_register_byte): Use generic_register_size.
11624 (generic_register_size): When available, use
11625 gdbarch_register_type.
11626 * regcache.c (init_regcache_descr): When available, initialize the
11627 register type array using gdbarch_register_type. If the
11628 architecture supplies gdbarch_register_type, do not use the legacy
11630 * d10v-tdep.c (d10v_register_type): Replace
11631 d10v_register_virtual_type.
11632 (d10v_gdbarch_init): Set register_type instead of
11633 register_virtual_type.
11635 2003-03-01 Andrew Cagney <cagney@redhat.com>
11637 * Makefile.in (ax-gdb.o): Update dependencies.
11638 * ax-gdb.c: Include "regcache.h".
11639 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11640 * findvar.c (value_of_register): Ditto.
11641 * infcmd.c (default_print_registers_info): Ditto.
11643 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11645 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11646 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11648 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11650 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11653 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11655 * Makefile.in (dwarf2loc.o): Update dependencies.
11656 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11657 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11658 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11659 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11660 (locexpr_tracepoint_var_ref): New function.
11661 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11663 2003-02-28 Andrew Cagney <cagney@redhat.com>
11665 * regcache.c (register_size): New function.
11666 * regcache.h (register_size): Declare
11667 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11668 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11670 2003-02-28 David Carlton <carlton@math.stanford.edu>
11672 * linespec.c (decode_compound): Extract code into find_method.
11673 (find_method): New.
11675 2003-02-28 J. Brobecker <brobecker@gnat.com>
11677 * Makefile.in: Add rules to build and link in observer.o.
11679 2003-02-27 J. Brobecker <brobecker@gnat.com>
11681 * observer.c: Minor comments edits.
11683 2003-02-27 J. Brobecker <brobecker@gnat.com>
11685 * observer.h, observer.c: New file.
11687 2003-02-27 Andrew Cagney <cagney@redhat.com>
11689 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11691 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11693 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11694 (M6812_OP_STS_EXT): Likewise.
11695 (m6811_prologue): Use the above to recognize prologue.
11696 (m6812_prologue): Likewise.
11698 2003-02-27 David Carlton <carlton@math.stanford.edu>
11700 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11702 (compare_psymbols): Ditto.
11703 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11705 2003-02-27 Michael Snyder <msnyder@redhat.com>
11707 * f-lang.c (build_fortran_types): New function.
11708 (_initialize_f_language): Gdbarch-register built-in fortran types.
11709 * doublest.c (extract_floating): Fix warning text.
11711 2003-02-27 Andrew Cagney <cagney@redhat.com>
11713 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11714 predicate. Replaces PUSH_DUMMY_FRAME.
11715 * gdbarch.h, gdbarch.c: Regnerate.
11716 * valops.c (hand_function_call): Update. Call
11717 generic_push_dummy_frame directly.
11718 * vax-tdep.c (vax_gdbarch_init): Update.
11719 * sparc-tdep.c (sparc_gdbarch_init): Update.
11720 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11721 * m68k-tdep.c (m68k_gdbarch_init): Update.
11722 * hppa-tdep.c (hppa_gdbarch_init): Update.
11723 * alpha-tdep.c (alpha_gdbarch_init): Update.
11724 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11725 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11726 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11727 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11728 push_dummy_frame to generic_push_dummy_frame.
11729 * v850-tdep.c (v850_gdbarch_init): Ditto.
11730 * sh-tdep.c (sh_gdbarch_init): Ditto.
11731 * s390-tdep.c (s390_gdbarch_init): Ditto.
11732 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11733 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11734 * mips-tdep.c (mips_gdbarch_init): Ditto.
11735 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11736 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11737 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11738 * i386-tdep.c (i386_gdbarch_init): Ditto.
11739 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11740 * frv-tdep.c (frv_gdbarch_init): Ditto.
11741 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11742 * cris-tdep.c (cris_gdbarch_init): Ditto.
11743 * avr-tdep.c (avr_gdbarch_init): Ditto.
11744 * arm-tdep.c (arm_gdbarch_init): Ditto.
11746 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11748 * mips-tdep.c (show_mips_abi): New function.
11749 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11750 command ``show mips abi''.
11752 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11754 From Elena Zannoni <ezannoni@redhat.com>
11755 * dbxread.c (process_one_symbol): Only record line 0 if one or
11756 more sline entries have been seen for the function.
11758 2003-02-26 Michael Chastain <mec@shout.net>
11760 * configure: Regenerate with autoconf 000227.
11762 2003-02-26 Michael Chastain <mec@shout.net>
11764 Close PR build/660.
11765 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11766 for old libc5/glibc.
11767 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11769 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11771 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11772 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11774 2003-02-26 Michael Chastain <mec@shout.net>
11776 * configure.in: New variable HAVE_UINTPTR_T.
11777 * configure, config.in: Regenerated.
11779 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11782 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11784 2003-02-25 Andrew Cagney <cagney@redhat.com>
11786 * frame.c (get_prev_frame): Add comment on check for
11787 inside_entry_func. Only check for inside_entry_file when not a
11788 dummy and not a sentinel. Check that the new frame is not inner
11791 2003-02-25 Andrew Cagney <cagney@redhat.com>
11793 * frame.c (frame_debug): New variable.
11794 (_initialize_frame): Add "set/show debug frame" command.
11795 (get_prev_frame): When frame_debug, print reason why unwind
11798 2003-02-25 Michael Chastain <mec@shout.net>
11800 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11801 to avoid uintptr_t definition problems.
11803 2003-02-25 David Carlton <carlton@math.stanford.edu>
11805 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11806 (SYMBOL_LINKAGE_NAME): Ditto.
11807 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11808 SYMBOL_LINKAGE_NAME.
11809 (struct general_symbol_info): Expand comment.
11810 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11811 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11812 (SYMBOL_MATCHES_REGEXP): Ditto.
11813 * symtab.c (symbol_natural_name): New function.
11814 * objfiles.h: Replace all uses of SYMBOL_NAME by
11815 DEPRECATED_SYMBOL_NAME.
11816 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11817 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11818 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11819 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11820 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11821 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11822 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11823 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11824 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11825 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11826 * ada-exp.y: Ditto.
11827 * ada-exp.y: Update copyright.
11828 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11829 * cp-valprint.c: Ditto.
11831 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11833 * infptrace.c (detach): Do not flag error if ptrace detach fails
11834 and errno is set to ESRCH.
11836 2003-02-24 Andrew Cagney <cagney@redhat.com>
11838 * infptrace.c (udot_info): Change type of udot_off to long. Use
11839 paddr when printing udot_off's value.
11841 2003-02-24 David Carlton <carlton@math.stanford.edu>
11843 * symtab.c (make_symbol_overload_list): Only read in partial
11844 symtabs containing a matching partial symbol.
11846 2003-02-24 David Carlton <carlton@math.stanford.edu>
11848 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11849 do the comparison, not strcmp.
11850 * symfile.c (compare_psymbols): Ditto.
11851 * defs.h: Declare strcmp_iw_ordered.
11852 * utils.c (strcmp_iw_ordered): New function.
11854 2003-02-24 Jim Blandy <jimb@redhat.com>
11856 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11857 support, shared libs): Remove my name from here, to better reflect
11860 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11862 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11863 (target_ops): Add to_have_continuable_watchpoint.
11864 * target.c (update_current_target): Add INHERIT line for
11865 to_have_continuable_watchpoint.
11866 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11867 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11868 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11869 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11871 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
11873 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11876 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11878 * solib.c (solib_open): Call target defined search function after
11879 failing with solib-search-path.
11880 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11881 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11883 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11885 * MAINTAINERS: Add myself to Write After section.
11887 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11889 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11891 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11893 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11894 (m68hc11_add_reggroups): New function.
11895 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11896 (m68hc11_gdbarch_init): Install the reggroups.
11897 (_initialize_m68hc11_tdep): Initialize them.
11899 2003-02-21 James E Wilson <wilson@tuliptree.org>
11901 * MAINTAINERS: Update my email address.
11903 2003-02-21 David Carlton <carlton@math.stanford.edu>
11905 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11907 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
11909 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11910 * symtab.h: Add opaque declarations of struct axs_value and
11912 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11913 (struct location_funcs): New type.
11914 (struct symbol): Add "loc" to aux_value.
11915 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11916 * dwarf2read.c: Include "dwarf2expr.h".
11917 (dwarf2_symbol_mark_computed): New function.
11918 (read_func_scope): Use it.
11919 (var_decode_location): New function.
11920 (new_symbol): Use it.
11921 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11923 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11924 (dwarf2expr_h, dwarf2loc_h): New variables.
11925 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11926 (dwarf2expr.o, dwarf2loc.o): New rules.
11927 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11928 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11930 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11931 * m2-exp.y (yylex): Likewise.
11932 * printcmd.c (address_info, print_frame_args): Likewise.
11933 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11934 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11935 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11936 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11937 * symtab.c (lookup_block_symbol): Likewise.
11939 2003-02-20 Adam Fedor <fedor@gnu.org>
11941 * symtab.h: Remove objc_specific struct
11942 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11943 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11944 Have language_objc use cplus_specific struct.
11946 2003-02-20 Tom Tromey <tromey@redhat.com>
11948 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11949 TYPE_NAME, when printing a String value. PR java/1075.
11951 2003-02-20 Adam Fedor <fedor@gnu.org>
11953 * objc-lang.h (find_methods): Remove declaration.
11954 * objc-lang.c (find_methods): Make static.
11956 2003-02-20 Christopher Faylor <cgf@redhat.com>
11958 * win32-nat.c (get_image_name): Check return value from
11960 (child_xfer_memory): Ditto.
11962 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
11964 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11965 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11966 '${exec_prefix}' (in addition to the expansion thereof) as
11968 * configure: Rebuilt.
11970 2003-02-20 David Carlton <carlton@math.stanford.edu>
11972 * symtab.c (search_symbols): Revert the search_symbols part of my
11973 2002-12-23 patch. Add comment.
11975 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11977 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11978 * dbxread.c (elfstab_build_psymtabs): Don't call
11979 install_minimal_symbols.
11980 (stabsect_build_psymtabs): Likewise.
11981 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11983 * somread.c (som_symfile_read): Call install_minimal_symbols
11984 and do_cleanups earlier.
11985 * nlmread.c (nlm_symfile_read): Likewise.
11986 * mdebugread.c (elfmdebug_build_psymtabs): Call
11987 install_minimal_symbols and make appropriate cleanups.
11989 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11991 * solib.c (reload_shared_libraries): New function.
11992 (_initialize_solib): Add callbacks for ``set solib-search-path''
11993 and ``set solib-absolute-prefix''.
11995 2003-02-20 David Carlton <carlton@math.stanford.edu>
11997 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11999 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12000 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12001 * ada-typeprint.c (ada_typedef_print): Ditto.
12002 * ax-gdb.c (gen_var_ref): Ditto.
12003 * breakpoint.c (print_one_breakpoint): Ditto.
12004 * buildsym.c (finish_block): Ditto.
12005 * c-valprint.c (c_val_print): Ditto.
12006 * expprint.c (print_subexp): Ditto.
12007 * findvar.c (locate_var_value): Ditto.
12008 * infcmd.c (jump_command): Ditto.
12009 * linespec.c (decode_line_2, decode_compound): Ditto.
12010 * maint.c (maintenance_translate_address): Ditto.
12011 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12012 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12014 * p-valprint.c (pascal_val_print): Ditto.
12015 * stabsread.c (define_symbol): Ditto.
12016 * stack.c (print_frame, frame_info, print_block_frame_locals)
12017 (print_frame_arg_vars, return_command): Ditto.
12018 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12019 * symmisc.c (print_symbol): Ditto.
12020 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12021 (compare_search_syms, print_symbol_info, print_msymbol_info)
12022 (rbreak_command): Ditto.
12023 * tracepoint.c (tracepoints_info): Ditto.
12024 * typeprint.c (typedef_print): Ditto.
12025 * valops.c (value_of_variable, hand_function_call): Ditto.
12026 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12027 * ada-typeprint.c: Update Copyright.
12028 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12029 * tracepoint.c, cli/cli-cmds.c: Ditto.
12031 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12033 * frame.c (generic_unwind_get_saved_register): Make non-static.
12034 * frame.h (generic_unwind_get_saved_register): Declare.
12035 * mips-tdep.c (read_next_frame_reg): Fetch register from
12036 current regcache when frame is NULL.
12037 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12039 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12040 instead of frame_register_unwind().
12042 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12044 * remote-sim.c (gdbsim_insert_breakpoint)
12045 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12048 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12050 * remote.c (_initialize_remote): Add commands "set/show remote
12051 hardware-watchpoint-limit" and "set/show remote
12052 hardware-breakpoint-limit".
12053 (remote_hw_watchpoint_limit): Initialize to -1.
12054 (remote_hw_breakpoint_limit): Ditto.
12055 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12057 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12059 * coff-pe-read.c: New file - support reading of minimal symbols from a
12060 portable executable using the export table.
12061 * coff-pe-read.h: New file.
12062 * coffread.c: Include coff-pe-read.h.
12063 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12064 debugging symbols found.
12065 * Makefile.in (SFILES): Add coff-pe-read.o.
12066 (coff_pe_read_h): Define.
12067 (COMMON_OBS): Add coff-pe-read.o.
12068 (coffread.o): Add coff_pe_read_h dependency.
12069 (coff-pe-read.o): New target.
12071 2003-02-19 David Carlton <carlton@math.stanford.edu>
12073 * Makefile.in (SFILES): Add block.c.
12075 (COMMON_OBS): Add block.o.
12077 (x86-64-tdep.o): Add $(block_h).
12078 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12079 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12080 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12081 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12082 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12083 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12084 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12085 * value.h: Add opaque declaration for struct block.
12086 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12087 * ada-lang.h: Ditto.
12088 * x86-64-tdep.c: #include "block.h"
12089 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12090 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12091 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12092 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12093 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12094 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12095 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12096 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12097 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12098 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12099 * symtab.c (block_function): Ditto.
12100 (contained_in): Ditto.
12101 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12102 block.h. Add opaque declaration for struct block.
12103 * symtab.h: Move block_function and contained_in declarations to
12104 block.h. Add opaque declarations for struct block, struct
12106 (struct block): Move to block.h.
12107 (struct blockvector): Ditto.
12108 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12109 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12110 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12111 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12112 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12114 * block.c: New file.
12115 * block.h: New file.
12117 2003-02-19 Theodore A. Roth <troth@openavr.org>
12119 * avr-tdep.c (avr_extract_return_value): Remove function.
12120 (avr_store_return_value): Remove function.
12121 (avr_extract_struct_value_address): Remove function.
12122 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12124 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12126 * rs6000-tdep.c: Include "gdb_assert.h".
12127 (registers_e500): Add "acc" and "spefscr".
12128 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12129 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12130 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12132 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12134 2003-02-18 Keith Seitz <keiths@redhat.com>
12136 * Makefile.in: Add gdbtk-interps.c.
12138 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12140 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12141 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12143 2003-02-18 Andrew Cagney <cagney@redhat.com>
12145 * symtab.h (struct objfile): Add opaque declaration.
12147 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12149 From Jim Ingham <jingham@apple.com>:
12150 * dbxread.c (process_one_symbol): Use last_function_start rather
12151 than function_start_offset to find the real beginning of the
12152 current function. The latter is just the text section offset on
12153 some systems, the former is always the real function start.
12155 2003-02-17 Andrew Cagney <cagney@redhat.com>
12157 * configure.in: Revert ${target} != ${host}.
12159 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12161 * configure.in (Makefile): Use the test ${target} != ${host},
12162 instead of the absence of the "nm.h" file, to determine of the
12163 configuration non-native.
12164 * configure: Regenerate.
12166 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12168 From Brian Ford <ford@vss.fsi.com>
12170 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12171 conditionalize tui_active test.
12172 (lookup_cmd_1): Ditto.
12174 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12176 * configure.in: Add check for _etext.
12177 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12179 * config.in, configure: regenerated.
12181 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12183 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12185 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12187 * main.c (tui_version): Delete variable.
12188 (captured_main): When --tui, set interpreter_p to "tui" instead of
12189 enabling tui_version.
12190 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12192 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12193 * cli/cli-cmds.c (disassemble_command): Ditto.
12194 * defs.h (tui_version): Delete declaration.
12195 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12196 (tui-interp.o): Add rules.
12197 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12199 2003-02-14 Christopher Faylor <cgf@redhat.com>
12201 * win32-nat.c (register_loaded_dll): Correctly set address range for
12204 2003-02-12 Jason Molenda (jmolenda@apple.com)
12206 * symmisc.c (print_objfile_statistics): Include information about
12207 the number of psymtabs and symtabs in each object file.
12209 2003-02-13 Keith R Seitz <keiths@redhat.com>
12211 * main.h (struct captured_main_args): Add interpreter_p.
12212 * main.c (captured_main): Initialize interpreter_p from context.
12213 * gdb.c (main): Set interpreter_p argument.
12214 * Makefile.in (gdb.o): Add dependency for interps.h.
12216 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12218 * event-top.c (cli_command_loop): Delete declaration.
12219 (_initialize_event_loop): Delete function setting event_loop_hook.
12220 * event-top.h (cli_command_loop): Declare. Update copyright.
12221 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12222 * interps.c (current_interp_command_loop): When event_loop_p, call
12225 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12227 * interps.h (interp_command_loop_ftype): Change return type to
12230 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12232 * x86-64-tdep.c (x86_64_extract_return_value)
12233 (x86_64_store_return_value): Use regcache instead of regbuf.
12234 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12235 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12237 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12239 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12240 * aclocal.m4: Regenerate.
12241 * configure: Regenerate.
12243 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12244 TCL_LD_SEARCH_FLAGS.
12246 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12248 * dwarf2cfi.c: Reindented.
12250 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12252 * interps.c (clear_interpreter_hooks): Convert function definition
12255 2003-02-07 David Carlton <carlton@math.stanford.edu>
12257 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12259 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12261 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12262 (struct type): ...to here.
12263 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12265 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12266 (replace_type): Set length on all type variants for a given type.
12268 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12270 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12272 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12274 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12276 * Makefile.in (symm-nat.o): Update dependencies.
12277 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12278 (lynx-nat.o, ia64-linux-nat.): Ditto.
12279 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12280 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12281 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12283 * Makefile.in (inflow_h): Define.
12284 (procfs.o, inflow.o, procfs.o): Update dependencies.
12285 * inftarg.c (child_stop): Delete extern declaration of
12286 inferior_process_group. Include "inflow.h".
12287 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12288 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12289 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12290 (our_process_group, inferior_process_group): Extern declarations.
12292 * procfs.c: Include "gdb_assert.h".
12294 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12295 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12296 * jv-typeprint.c (java_type_print_base): Ditto.
12297 * typeprint.c (typedef_print): Eliminate STREQ.
12298 * cli/cli-script.c (define_command, define_command): Ditto.
12299 * main.c (captured_main): Ditto.
12300 * values.c (lookup_internalvar): Ditto.
12301 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12302 within `if' conditional.
12303 * linespec.c (decode_line_2): Ditto.
12304 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12305 (bfd_openw_with_cleanup): Ditto.
12307 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12309 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12310 legacy_extract_return_value and store_return_value to
12311 legacy_return_value.
12313 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12315 * win32-nat.c (get_relocated_section_addrs): New function. Find
12316 section load addresses for symbol handling in relocated DLLs.
12317 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12319 2003-02-05 Fred Fish <fnf@intrinsity.com>
12321 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12323 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12325 (angel_RDI_info): Ditto.
12326 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12328 (threads_continue_all_with_signals): Ditto.
12330 2003-02-05 Jim Ingham <jingham@apple.com>
12331 Keith Seitz <keiths@redhat.com>
12332 Elena Zannoni <ezannoni@redhat.com>
12333 Andrew Cagney <ac131313@redhat.com>
12335 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12336 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12337 (SUBDIR_MI_OBS): Add "mi-interp.o".
12338 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12339 (SFILES): Add "interps.c".
12340 (COMMON_OBS): Add "interps.o".
12341 (interps_h, mi_main_h): Define.
12342 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12343 (mi-main.o, main.o, event-top.o): Update dependencies.
12344 * cli/cli-interp.c: New file.
12345 * interps.h, interps.c: New files.
12346 * top.c: (gdb_init): Don't install the default interpreter, handed
12348 * main.c: Include "interps.h".
12349 (interpreter_p): Note that it should malloc'ed.
12350 (captured_command_loop): Call current_interp_command_loop.
12351 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12352 xfree and xstrdup when updating interpreter_p. Install the
12353 default interpreter. Add hack to stop mi1's copyright notice
12355 * event-top.h (gdb_setup_readline): Declare.
12356 (gdb_disable_readline): Declare.
12357 * event-top.c: Include "interps.h".
12358 (display_gdb_prompt): Call current_interp_display_prompt_p.
12359 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12360 gdb_stdlog, and gdb_stdtarg.
12361 (_initialize_event_loop): Don't call gdb_setup_readline.
12362 * cli-out.c (cli_out_set_stream): New function.
12363 * cli-out.h (cli_out_set_stream): Declare.
12365 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12367 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12368 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12369 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12370 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12371 config/i386/i386v42mp.mt: Removed.
12373 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12375 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12378 2003-02-05 Michael Chastain <mec@shout.net>
12380 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12381 2.12.1 and earlier versions.
12383 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12385 Remove orphaned hosts, targets and files.
12386 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12387 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12388 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12389 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12390 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12391 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12392 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12393 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12394 * config/sparc/tm-sp64sim.h: Delete.
12395 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12397 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12398 mips*-dec-mach3* targets.
12400 2003-02-04 Michael Chastain <mec@shout.net>
12402 * NEWS: Fix typo: sepcifying -> specifying.
12404 2003-02-04 Michael Chastain <mec@shout.net>
12406 * dwarfread.c: Add documentation on the state of dwarf-1,
12407 looking towards obsoletion.
12409 2003-02-03 Michael Chastain <mec@shout.net>
12411 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12412 gdb/testsuite/gdb.c++/pr-1023.exp.
12414 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12416 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12417 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12419 * utils.c (init_page_info): Delete reference to MPW in comments.
12420 * main.c (captured_main): Delete #ifdef MPW.
12422 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12424 * NEWS: Note that the m32r-*-elf* is obsolete.
12425 * monitor.c (monitor_expect): Obsolete reference to m32r.
12426 * configure.tgt: Mark m32r-*-elf* as obsolete.
12427 * MAINTAINERS: Mark m32k as obsolete.
12428 * m32r-rom.c: Obsolete file.
12429 * config/m32r/m32r.mt: Obsolete file.
12430 * config/m32r/tm-m32r.h: Obsolete file.
12431 * m32r-stub.c: Obsolete file.
12432 * m32r-tdep.c: Obsolete file.
12434 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12436 * NEWS: Mention that the z8k-zilog-none is obsolete.
12437 * MAINTAINERS: Mark z8k as obsolete.
12438 * configure.tgt: Obsolete the z8k-*-coff* target.
12439 * config/z8k/z8k.mt: Obsolete file.
12440 * config/z8k/tm-z8k.h: Obsolete file.
12441 * z8k-tdep.c: Obsolete file.
12443 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12445 * NEWS: Mention that the mn10200-elf is obsolete.
12446 * configure.tgt: Obsolete mn10200-*-* target.
12447 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12448 mention that the mn10200 is obsolete.
12449 * breakpoint.h: Ditto.
12450 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12451 * config/mn10200/mn10200.mt: Obsolete file.
12452 * config/mn10200/tm-mn10200.h: Obsolete file.
12453 * mn10200-tdep.c: Obsolete file.
12455 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12457 * MAINTAINERS: Mark h8500 as obsolete.
12458 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12459 * findvar.c (value_from_register): Ditto.
12460 * h8500-tdep.c: Mark file as obsolete.
12461 * config/h8500/h8500.mt: Ditto.
12462 * config/h8500/tm-h8500.h: Ditto.
12463 * NEWS: Mention that h8500 is obsolete.
12465 2003-02-04 David Carlton <carlton@math.stanford.edu>
12467 * objfiles.c (allocate_objfile): Always set name. Add comment at
12469 * jv-lang.c (get_dynamics_objfile): Add comment.
12471 2003-02-04 David Carlton <carlton@math.stanford.edu>
12473 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12474 * printcmd.c (build_address_symbolic): Replace uses of
12475 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12476 SYMBOL_NAME, and asm_demangle.
12479 2003-02-04 David Carlton <carlton@math.stanford.edu>
12481 * linespec.c (decode_compound): Extract code into
12483 (lookup_prefix_sym): New function.
12485 2003-02-04 David Carlton <carlton@math.stanford.edu>
12487 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12488 FLOAT_COERCION_BADNESS.
12489 * gdbtypes.c (rank_one_type): Replace all uses of
12490 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12492 2003-02-04 Jim Blandy <jimb@redhat.com>
12494 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12495 section, let dwarf_macinfo_section point to it, not
12498 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12500 Pointed out by Anton Blanchard <anton@samba.org>.
12501 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12502 (ppc_linux_at_sigtramp_return_path): Use it.
12504 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12506 * defs.h (streq): Add prototype.
12507 * utils.c (streq): New function.
12509 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12510 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12511 * mdebugread.c (new_symbol): Likewise.
12512 * stabsread.c (define_symbol): Likewise.
12513 * coffread.c (process_coff_symbol): Likewise.
12514 * dwarfread.c (new_symbol): Likewise.
12516 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12517 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12519 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12520 SYMBOL_INIT_DEMANGLED_NAME.
12521 * objfiles.c: Include "hashtab.h".
12522 (allocate_objfile): Call htab_set_functions_ex for the
12523 demangled_names_hash.
12524 (free_objfile): Call htab_delete for the demangled_names_hash.
12525 * objfiles.h (struct htab): Add declaration.
12526 (struct objfile): Add demangled_names_hash.
12527 * symfile.c: Include "hashtab.h".
12528 (reread_symbols): Call htab_delete for the demangled_names_hash.
12529 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12530 SYMBOL_NAME in the bcache.
12531 * symtab.c: Include "hashtab.h". Update comments.
12532 (create_demangled_names_hash, symbol_set_names): New functions.
12533 (symbol_find_demangled_name): New function, broken out from
12534 symbol_init_demangled_names.
12535 (symbol_init_demangled_names): Use it.
12536 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12537 (SYMBOL_SET_NAMES): New macro.
12538 (symbol_set_names): Add prototype.
12540 2003-02-03 Jim Blandy <jimb@redhat.com>
12542 Use a single, consistent representation for an empty minimal
12543 symbol table in an objfile.
12544 * objfiles.c (terminate_minimal_symbol_table): New function.
12545 (allocate_objfile): Call it.
12546 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12547 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12549 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12550 objfile has minimal symbols, compare minimal_symbol_count to zero,
12551 instead of comparing msymbols with NULL.
12552 * objfiles.c (have_minimal_symbols): Same.
12553 * solib-sunos.c (solib_add_common_symbols): Call
12554 terminate_minimal_symbol_table.
12555 * symfile.c (reread_symbols): Same.
12557 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12559 * s390-tdep.c (s390_address_class_type_flags)
12560 (s390_address_class_type_flags_to_name)
12561 (s390_address_class_name_to_type_flags): New functions.
12562 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12563 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12565 2003-02-03 Michael Snyder <msnyder@redhat.com>
12567 * arm-tdep.c: Fix spell-o in comment.
12569 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12571 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12572 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12573 error messages to contain BFD filename.
12575 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12577 Fix PR gdb/742 gdb/743 gdb/877
12578 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12579 (do_mixed_source_and_assembly): Use
12580 make_cleanup_ui_out_tuple_begin_end and
12581 make_cleanup_ui_out_tuple_begin_end.
12582 (do_mixed_source_and_assembly): Ditto.
12583 * thread.c (do_captured_list_thread_ids): Ditto.
12584 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12585 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12586 ui_out_tuple_end): Delete prototypes.
12587 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12588 ui_out_list_end, ui_out_tuple_end): Delete.
12590 From Kevin Buettner <kevinb@redhat.com>:
12591 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12592 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12593 (do_cleanup_table_end): New functions.
12594 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12595 Use cleanups to invoke_ui_out_tuple_end().
12596 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12597 * cli/cli-setshow.c (cmd_show_list): Use
12598 make_cleanup_ui_out_tuple_begin_end.
12600 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12602 * frame.c (frame_unwind_register): New function.
12603 (frame_unwind_unsigned_register): Use.
12604 (frame_unwind_signed_register): Use.
12605 (frame_read_register): New function.
12606 * frame.h (frame_unwind_register): Declare.
12607 (frame_read_register): Declare.
12609 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12610 and frame_unwind_register instead of read_memory, write_register
12611 and deprecated_write_register_bytes.
12613 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12615 * frame.h: Note that namelen can be negative.
12616 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12619 * NEWS: Mention that the d10v's `regs' command is deprecated.
12620 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12621 (d10v_print_registers_info): New function.
12622 (show_regs): Call d10v_print_registers_info.
12623 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12625 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12627 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12628 lost in the previous patch.
12630 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12632 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12633 * stack.c (print_frame_info_base): Output complete FRAME tuple
12634 for synthesized frames.
12636 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12638 * mips-nat.c (zerobuf): Delete.
12639 (fetch_inferior_registers): Alloc local zerobuf.
12640 (fetch_core_registers): Alloc local zerobuf.
12641 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12642 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12643 * thread-db.c (thread_db_store_registers): Ditto.
12644 * sh-tdep.c (sh_do_register): Ditto.
12645 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12646 * remote-sim.c (gdbsim_store_register): Ditto.
12647 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12648 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12649 * monitor.c (monitor_supply_register): Ditto.
12650 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12651 * mips-nat.c (fetch_inferior_registers): Ditto.
12652 * m68klinux-nat.c (fetch_register): Ditto.
12653 * lynx-nat.c (fetch_inferior_registers): Ditto.
12654 (fetch_inferior_registers): Ditto.
12655 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12656 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12657 (hpux_thread_store_registers): Ditto.
12658 * hppah-nat.c (fetch_register): Ditto.
12659 * hppab-nat.c (fetch_register): Ditto.
12660 * hppa-tdep.c (pa_register_look_aside): Ditto.
12661 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12662 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12664 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12666 * gdbarch.sh: Explictly specify all method levels. When a
12667 variable with an empty level, provide a non-multi-arch default.
12668 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12669 * gdbarch.h: Re-generate.
12670 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12671 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12673 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12675 * defs.h (host_pointer_to_address): Delete declaration.
12676 (address_to_host_pointer): Delete declaration.
12677 * utils.c (host_pointer_to_address): Delete function.
12678 (address_to_host_pointer): Delete function.
12679 * procfs.c (procfs_address_to_host_pointer): New function.
12680 * procfs.c (proc_set_watchpoint): Use.
12681 (procfs_can_use_hw_breakpoint): Update comments.
12682 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12683 (som_solib_add): Use.
12684 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12685 * hppa-tdep.c (unwind_command): Use.
12687 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12689 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12692 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12693 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12694 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12695 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12696 (define_symbol): Update.
12697 * symfile.c (generic_load): Remove references to nindy.
12698 * symtab.c: Remove references to nindy.
12700 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12702 * infcmd.c (print_float_info): Delete code conditional on
12704 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12705 * config/m68k/nm-apollo68b.h: Ditto.
12706 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12707 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12708 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12710 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12712 * config/i386/tm-i386os9k.h: Removed.
12714 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12715 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12716 they're identical to i[3456]86-*-sysv* now.
12717 * config/i386/i386v32.mh: Removed.
12718 * config/i386/xm-i386v32.h: Removed.
12719 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12721 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12723 * config/i386/i386dgux.mh: Removed.
12724 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12726 * configure.in: Fix typo.
12727 * configure: Regenerated.
12729 2003-01-31 David Carlton <carlton@math.stanford.edu>
12731 * dwarf2read.c (dwarf2_locate_sections): Set
12732 dwarf_ranges_section.
12734 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12736 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12737 * utils.c: Update comments documenting legitimate uses of PTR.
12739 * utils.c: Re-indent.
12741 * config/djgpp/fnchange.lst: Delete nindy files.
12742 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12743 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12744 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12745 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12746 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12747 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12748 * Makefile.in (init.c): Remove nindy references.
12749 (saber_gdb): Delete rule.
12750 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12751 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12753 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12754 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12755 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12756 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12757 nindy-share/stop.h.
12758 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12759 * saber.suppress: Delete file.
12761 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12763 * dbxread.c (stabs_data): New static variable.
12764 (fill_symbuf): Support an in-memory buffer for stabs data.
12765 (stabs_seek): New function.
12766 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12767 (read_ofile_symtab): Use stabs_seek.
12768 (elfstab_build_psymtabs): Take an asection* instead of
12769 an offset and size. Relocate the stabs data if necessary.
12770 Save the section* for dbx_psymtab_to_symtab.
12771 * dwarf2read.c: Add section variables for each debug section.
12772 (dwarf2_locate_sections): Fill them in.
12773 (dwarf2_read_section): Take an asection* argument.
12774 Relocate the section contents if necessary.
12775 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12776 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12777 it to dwarf2_read_section.
12778 (dwarf2_build_frame_info): Update callers.
12779 * elfread.c (elf_symfile_read): Update call to
12780 elfstab_build_psymtabs.
12781 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12782 (DBX_STAB_SECTION): New macro.
12783 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12784 * symfile.c (symfile_dummy_outputs): New function.
12785 (symfile_relocate_debug_section): New function.
12786 * symfile.h (symfile_relocate_debug_section): Add prototype.
12788 2003-01-31 Richard Henderson <rth@redhat.com>
12790 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12791 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12792 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12793 * alpha-tdep.c (alpha_register_name): Add "unique".
12794 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12795 (ALPHA_UNIQUE_REGNUM): New.
12796 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12798 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12800 * README: Remove reference to Ericsson 1800 monitor.
12801 * Makefile.in (remote-es.o): Delete rule.
12802 (ALLDEPFILES): Delete remote-es.c.
12803 * remote-es.c: Delete file.
12804 * config/m68k/es1800.mt: Delete file.
12805 * config/djgpp/fnchange.lst: Update.
12806 * configure.tgt: Delete m68*-ericsson-* target.
12808 2003-01-31 Adam Fedor <fedor@gnu.org>
12810 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12811 Remove duplicate/shadowing variable of same name.
12813 2003-01-30 Jim Blandy <jimb@redhat.com>
12815 * symfile.c (find_separate_debug_file): Assert that the objfile's
12816 directory name we compute ends with a slash, and then assume that
12817 that's so everywhere we use it.
12819 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12821 * valops.c (value_assign): Flush frame cache after stores to memory
12824 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12826 * Makefile.in (mon960-rom.o): Delete rule.
12827 * mon960-rom.c: Delete file.
12829 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12831 * d10v-tdep.c: Include "frame-unwind.h".
12832 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12834 (next_addr, uses_frame): Delete.
12835 (struct d10v_unwind_cache): Define.
12836 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12837 Use info instead of next_addr and uses_frame globals.
12838 (d10v_frame_init_saved_regs): Delete function.
12839 (d10v_init_extra_frame_info): Delete function.
12840 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12841 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12842 init_frame_pc or frame_saved_pc.
12843 (d10v_pop_frame): Delete function.
12844 (do_d10v_pop_frame): Delete function.
12845 (d10v_frame_chain): Delete function.
12846 (d10v_frame_chain_valid): Delete function.
12847 (d10v_frame_pc_unwind): New function.
12848 (d10v_frame_id_unwind): New function.
12849 (saved_regs_unwinder): New function.
12850 (d10v_frame_register_unwind): New function.
12851 (d10v_frame_pop): New function.
12852 (d10v_frame_unwind): New variable.
12853 (d10v_frame_p): New function.
12854 (d10v_frame_saved_pc): Delete function.
12855 * Makefile.in (d10v-tdep.o): Update dependencies.
12857 2003-01-30 J. Brobecker <brobecker@gnat.com>
12859 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12860 causing some regressions due to a change in the default value
12863 2003-01-29 Richard Henderson <rth@redhat.com>
12864 Elena Zannoni <ezannoni@redhat.com>
12865 Daniel Jacobowitz <drow@mvista.com>
12868 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
12870 (RANGES_SECTION): New.
12871 (dwarf_ranges_buffer): New variable.
12872 (struct comp_unit_head): Add member "die".
12873 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12874 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12875 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12876 (dwarf2_locate_sections): Likewise.
12877 (dwarf2_build_psymtabs): Read .debug_ranges.
12878 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12879 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12880 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12881 Look for DW_AT_ranges and return the bounding box.
12883 2003-01-29 Brian Ford <ford@vss.fsi.com>
12885 * win32-nat.c (cygwin_pid): Removed as unused.
12886 (child_attach): Try fall back to Cygwin pid.
12888 2003-01-29 Jim Blandy <jimb@redhat.com>
12890 * objfiles.h (struct objfile): Doc fix.
12892 2003-01-29 Andrew Cagney <ac131313@redhat.com>
12894 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12895 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12896 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12897 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12898 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12899 (FRAME_SAVED_PC): Change to a function with predicate.
12900 * gdbarch.h, gdbarch.c: Re-generate.
12902 2003-01-28 Andrew Cagney <ac131313@redhat.com>
12904 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12906 * complaints.c (complain): Delete function.
12907 * complaints.h (struct deprecated_complaint): Delete definition.
12908 (complain): Delete declaration.
12910 2003-01-28 Kevin Buettner <kevinb@redhat.com>
12912 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12915 2003-01-27 Andrew Cagney <ac131313@redhat.com>
12917 * sentinel-frame.h, sentinel-frame.c: New files.
12918 * Makefile.in (frame.o): Update dependencies.
12919 (SFILES): Add sentinel-frame.c.
12920 (sentinel_frame_h): Define.
12921 (COMMON_OBS): Add sentinel-frame.o.
12922 (sentinel-frame.o): Specify dependencies.
12923 * frame.c: Include "sentinel-frame.h".
12924 (frame_register_unwind): Rewrite assuming that there is always a a
12926 (frame_register, generic_unwind_get_saved_register): Ditto.
12927 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12928 (create_sentinel_frame, unwind_to_current_frame): New functions.
12929 (get_current_frame): Rewrite using create_sentinel_frame and
12930 unwind_to_current_frame. When possible, always create a frame.
12931 (create_new_frame): Set next to the sentinel frame.
12932 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12933 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12934 ID cache when necessary.
12935 (frame_saved_regs_id_unwind): Use frame_relative_level.
12936 (deprecated_generic_get_saved_register): Use frame_relative_level,
12937 get_frame_saved_regs, get_frame_pc, get_frame_base and
12939 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12942 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12944 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12946 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12948 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12949 (maintenance_set_profile_cmd): Use error () instead of warning ().
12951 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12953 * configure.in: Check that -pg works if using --enable-profiling.
12954 Check for monstartup and _mcleanup regardless of --enable-profiling.
12955 * maint.c: Check for monstartup and _mcleanup before using them.
12956 * config.in: Regenerated.
12957 * configure: Regenerated.
12959 2003-01-24 Nick Clifton <nickc@redhat.com>
12961 * Add sh2e support:
12963 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12965 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12966 (sh2e_show_regs): New.
12967 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12968 * config/sh/tm-sh.h: Added sh2e to comments.
12970 2003-01-23 Jim Blandy <jimb@redhat.com>
12972 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12973 symbols found)" message here; we haven't checked for a separate
12974 debug info file yet, so we don't know yet.
12975 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12976 we've looked everywhere. Also, there's no need to print a special
12977 message when we're loading the separate debug info file: the one
12978 symbol_file_add prints is fine.
12980 2003-01-23 Alexander Larsson <alexl@redhat.com>
12981 Jim Blandy <jimb@redhat.com>
12983 Add support for executables whose debug info has been separated
12984 out into a separate file, leaving only a link behind.
12985 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12986 and separate_debug_objfile_backlink.
12987 (put_objfile_before): New declaration.
12988 * symfile.c: #include "filenames.h".
12989 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12990 debug info in a separate file, read that, too. Save the addrs
12991 argument, so we can use it again to read the separated debug info;
12992 syms_from_objfile modifies the table we pass it.
12993 (reread_symbols): After re-reading an objfile, call
12994 reread_separate_symbols to refresh its separate debug info
12995 objfile, if it has one.
12996 (reread_separate_symbols, find_separate_debug_file,
12997 get_debug_link_info, separate_debug_file_exists): New functions.
12998 (debug_file_directory): New global var.
12999 (_initialize_symfile): Initialize debug_file_directory, and
13000 provide the new `set debug-file-directory' command to let the user
13002 * objfiles.c (free_objfile): If this objfile has its debug info in
13003 a separate objfile, free that one too. If this is itself a
13004 separate debug info objfile, clear our parent's backlink.
13005 (put_objfile_before): New function.
13006 * utils.c (gnu_debuglink_crc32): New function.
13007 * defs.h (gnu_debuglink_crc32): New declaration.
13008 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13009 * configure.in: Handle --with-separate-debug-dir config option.
13010 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13011 * acconfig.h (DEBUGDIR): New macro.
13012 * configure, aclocal.m4, config.in: Regenerated.
13014 2003-01-22 Jim Blandy <jimb@redhat.com>
13016 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13017 like the old symbol_file_add, but taking new arguments: you can
13018 now pass in either a `struct section_addr_info' list to say where
13019 each section is loaded, or a `struct section_offsets' table. Pass
13020 these new arguments through to syms_from_objfile as appropriate.
13021 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13022 with the appropriate quiescent values for the new arguments.
13024 * symfile.c: #include "gdb_assert.h".
13025 (syms_from_objfile): Add the ability to pass in a section offset
13026 table directly, as an alternative to the section_addr_info table.
13027 Document arguments better.
13028 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13029 * symfile.h (syms_from_objfile): Update declaration.
13030 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13032 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13034 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13036 Original patch by Tom Tromey <tromey@cygnus.com> and
13037 Jason Molenda <jmolenda@apple.com>.
13038 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13039 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13040 * NEWS: Mention profiling.
13041 * configure.in (--enable-gdbtk): Fix typo.
13042 (--enable-profiling): New. Set PROFILE_CFLAGS.
13043 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13045 (profiling_state): New variable.
13046 (mcleanup_wrapper): New function.
13047 (_initialize_maint): Remove NOTYET, fix call to
13048 add_setshow_boolean_cmd for "maint set profile".
13049 * configure: Regenerated.
13051 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13053 * Makefile.in (install-gdbtk): Install PNG images too.
13055 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13057 * exec.c (text_start): Delete global variable.
13058 (exec_file_attach): Make text_start local to the function.
13059 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13060 * valops.c (hand_function_call): Delete code that handles
13061 BEFORE_TEXT_END and AFTER_TEXT_END.
13062 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13063 of CALL_DUMMY_LOCATION.
13064 * gdbarch.c: Regenerate.
13065 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13066 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13067 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13068 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13069 (text_end): Delete extern declaration.
13071 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13073 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13074 * blockframe.c (backtrace_below_main): Move to "frame.c".
13075 (frame_chain_valid): Delete check for backtrace_below_main.
13076 (_initialize_blockframe): Delete initialization, move ``set
13077 backtrace-below-main'' command to "frame.c".
13078 (do_flush_frames_sfunc): Delete function.
13079 * frame.c: Include "command.h" and "gdbcmd.h".
13080 (frame_type_from_pc): New function.
13081 (create_new_frame): Use frame_type_from_pc.
13082 (legacy_get_prev_frame): New function.
13083 (get_prev_frame): Rewrite. When an old style frame, call
13084 legacy_get_prev_frame. Otherwize, unwind the PC first.
13085 (_initialize_frame): Add ``set backtrace-below-main'' command.
13086 * Makefile.in (frame.o): Update dependencies.
13088 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13090 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13091 DEPRECATED_REGISTERS_INFO.
13093 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13095 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13096 Maintainers'. Update `Various Maintainers'.
13098 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13100 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13101 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13102 Suppress actual parameters when `-'.
13103 * gdbarch.h, gdbarch.c: Regenerate.
13105 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13107 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13108 code handling dummy frames.
13110 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13112 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13113 (struct frame_unwind): Add field pop.
13114 * frame.h (frame_pop): Declare.
13115 * frame.c (frame_saved_regs_pop): New function.
13116 (trad_frame_unwinder): Add frame_saved_regs_pop.
13117 (frame_pop): New function.
13118 * dummy-frame.c (dummy_frame_pop): New function.
13119 (discard_innermost_dummy): New function.
13120 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13121 (dummy_frame_unwind): Add dummy_frame_pop.
13122 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13123 * valops.c (hand_function_call): Ditto.
13124 * stack.c (return_command): Ditto.
13126 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13128 * cris-tdep.c: Fix function declaration indentation.
13129 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13130 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13131 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13132 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13133 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13134 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13136 2003-01-18 Michael Chastain <mec@shout.net>
13138 * README (Unpacking and Installation -- quick overview):
13139 Warn against ".../gdb-5.3/gdb/configure".
13141 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13143 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13144 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13145 (struct frame_unwind): Declare opaque.
13146 (dummy_frame_p): Declare function.
13147 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13148 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13149 * dummy-frame.c: Include "frame-unwind.h".
13150 (dummy_frame_p): New function.
13151 (dummy_frame_unwind): New variable.
13152 * frame.c: Include "frame-unwind.h".
13153 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13154 to use the new unwind field.
13155 (set_unwind_by_pc): Delete function.
13156 (create_new_frame, get_prev_frame): Set unwind field using
13157 frame_unwind_find_by_pc.
13158 (trad_frame_unwind, trad_frame_unwinder): New variables.
13159 * frame.h (trad_frame_unwind): Declare variable.
13160 (frame_id_unwind_ftype): Delete declaration.
13161 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13162 (struct frame_unwind): Declare opaque.
13163 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13164 register_unwind with a single unwind pointer.
13165 * frame-unwind.h, frame-unwind.c: New files.
13166 * Makefile.in (SFILES): Add frame-unwind.c.
13167 (frame_unwind_h): Define.
13168 (COMMON_OBS): Add frame-unwind.o.
13169 (frame-unwind.o): Specify dependencies.
13170 (frame.o, dummy-frame.o): Update dependencies.
13172 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13174 * ada-valprint.c: Eliminate PTR.
13175 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13176 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13177 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13178 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13179 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13180 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13181 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13183 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13185 * main.c (captured_main): Don't use PTR.
13186 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13187 * gdbtypes.c (lookup_primitive_typename): Ditto.
13188 (lookup_struct_elt_type): Ditto.
13189 * f-valprint.c (info_common_command): Ditto.
13190 (list_all_visible_commons): Ditto.
13191 * jv-typeprint.c (java_type_print_base): Ditto.
13193 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13194 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13195 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13196 i386-interix-nat.c and i386-interix-tdep.c. Rename
13197 m68klinux-nat.c and m68klinux-tdep.c. Rename
13198 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13199 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13200 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13201 * main.c (captured_main): Use xfree, not free.
13203 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13205 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13206 ID back using a parameter.
13207 * frame.c (frame_id_unwind): Update call.
13208 (frame_saved_regs_id_unwind): Update.
13209 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13210 * dummy-frame.h (struct frame_id): Add opaque declaration.
13211 (dummy_frame_id_unwind): Update declaration.
13213 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13215 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13217 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13219 * MAINTAINERS (Stephen P. Smith): Updated email address.
13221 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13224 * breakpoint.c (until_break_command): Add new argument. Use it to
13225 decide whether to stop only at the current frame or not.
13226 * breakpoint.h (until_break_command): Update prototype.
13227 * infcmd.c (until_command): Add new argument to until_break_command
13229 (advance_command): New function.
13230 (_initialize_infcmd): Update help string for 'until' command.
13231 Add new 'advance' command.
13233 2003-01-14 David Carlton <carlton@math.stanford.edu>
13235 * linespec.c (decode_line_1): Normalize comments.
13236 (set_flags): Ditto.
13237 (locate_first_half): Ditto.
13238 (decode_compound): Ditto.
13239 (symtab_from_filename): Ditto.
13240 (decode_all_digits): Ditto.
13241 (decode_dollar): Ditto.
13242 (find_methods): Ditto.
13243 (find_toplevel_char): Ditto.
13245 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13247 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13248 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13249 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13250 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13251 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13252 * language.c, language.h, m32r-tdep.c: Update copyright.
13253 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13254 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13255 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13256 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13257 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13258 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13260 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13262 * stabsread.h (process_later, resolve_cfront_continuation):
13264 Update copyright years.
13265 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13266 Update copyright year.
13267 * dbxread.c(struct cont_elem): Obsolete.
13268 (process_later, process_now): Obsolete functions.
13269 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13270 Update copyright year.
13271 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13272 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13273 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13274 (parse_partial_symbols): Obsolete cfront support.
13276 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13278 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13279 read_cfront_baseclasses, read_cfront_member_functions,
13280 resolve_cfront_continuation,read_cfront_static_fields,
13281 copy_cfront_struct_fields): Obsolete functions.
13282 (define_symbol, read_one_struct_field): Obsolete cfront support.
13283 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13284 Update Copyright year.
13286 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13288 * stack.c (print_frame_info, print_stack_frame_base_stub,
13289 print_stack_frame_base, show_and_print_stack_frame_stub,
13290 show_and_print_stack_frame, print_only_stack_frame_stub,
13291 print_only_stack_frame): Delete functions.
13292 (print_stack_frame_stub): Call print_frame_info instead of
13293 print_frame_info_base.
13294 (print_frame_info_base): Rename to print_frame_info.
13295 (backtrace_command_1): Call print_frame_info, instead of
13296 print_frame_info_base.
13297 (current_frame_command): Call print_stack_frame, instead of
13298 print_only_stack_frame.
13299 (frame_command): Call print_stack_frame, instead of
13300 show_and_print_stack_frame.
13301 (up_command): Ditto.
13302 (down_command): Ditto.
13303 * frame.h (print_only_stack_frame): Delete prototype.
13304 * infrun.c (normal_stop): Call print_stack_frame, instead of
13305 show_and_print_stack_frame.
13306 * thread.c (info_threads_command): Call print_stack_frame, instead
13307 of print_only_stack_frame.
13309 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13311 * README (Graphical interface to GDB): Update URL. Point at
13314 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13317 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13319 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13322 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13324 * thread-db.c (attach_thread): Prototype.
13325 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13326 thread information (ti), and valid flags (th_valid, ti_valid).
13327 (attach_thread): Move target_pid_to_str call to after the thread
13328 is added to GDB's list. Initialize the cache.
13329 (thread_get_info_callback, thread_db_map_id2thr)
13330 (thread_db_get_info): New functions.
13331 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13332 (thread_db_store_registers, thread_db_thread_alive)
13333 (thread_db_get_thread_local_address): Use them.
13334 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13335 of calling error() for threads in unknown state.
13337 (clear_lwpid_callback): New function.
13338 (thread_db_resume): Use it to clear the cache.
13340 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13342 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13343 (resume_callback): Remove dead code.
13345 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13347 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13349 * gdbarch.h, gdbarch.c: Regenerate.
13350 * stack.c (frame_info): Only initialize the saved registers when
13351 FRAME_INIT_SAVED_REGS_P.
13352 * frame.c (frame_saved_regs_register_unwind): Assert
13353 FRAME_INIT_SAVED_REGS_P.
13354 (deprecated_generic_get_saved_register): Ditto.
13356 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13358 * source.c (openp): Squelch warning about "filename".
13360 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13362 * source.c (openp): If the file does not exist don't necessarily
13365 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13368 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13369 (integer_types_same_name_p): New function.
13370 (rank_one_type): Use it.
13371 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13373 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13375 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13377 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13378 * configure.in: Add --with-sysroot.
13379 * configure: Regenerated.
13380 * main.c (gdb_sysroot): New variable.
13381 (captured_main): Initialize gdb_sysroot.
13382 * defs.h (gdb_sysroot): New extern declaration.
13383 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13385 2003-01-12 Michael Chastain <mec@shout.net>
13387 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13389 2003-01-12 Michael Chastain <mec@shout.net>
13391 * top.c (print_gdb_version): Bump copyright year to 2003.
13393 2003-01-12 David Carlton <carlton@bactrian.org>
13395 * linespec.c (symtab_from_filename): Rename variable 's' to
13398 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13400 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13402 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13404 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13406 * d10v-tdep.c: Include "gdb_assert.h".
13407 (d10v_store_return_value): Rewrite to match current interface.
13408 (d10v_extract_struct_value_address): Ditto.
13409 (d10v_extract_return_value): Ditto.
13410 (d10v_gdbarch_init): Set store_restore_value,
13411 extract_struct_value_address and extract_return_value.
13413 2003-01-12 J. Brobecker <brobecker@gnat.com>
13415 * hpread.c (set_namestring): New procedure replacing the
13416 SET_NAMESTRING macro.
13417 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13418 by calls to set_namestring.
13420 2003-01-11 J. Brobecker <brobecker@gnat.com>
13422 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13423 a compilation warning.
13424 (hpread_process_one_debug_symbol): Likewise.
13426 2003-01-10 David Carlton <carlton@math.stanford.edu>
13428 * linespec.c (decode_line_1): Rename variable 's' to
13430 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13431 (decode_dollar): Ditto.
13432 (decode_variable): Ditto.
13433 (symbol_found): Ditto.
13435 2003-01-09 Michael Chastain <mec@shout.net>
13437 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13439 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13441 * win32-nat.c (set_process_privilege): New function.
13442 (child_attach): Call set_process_privilege() to enable the
13443 SE_DEBUG_NAME user privilege if available in process token.
13445 2003-01-10 J. Brobecker <brobecker@gnat.com>
13447 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13448 compilation error in the previous revision.
13450 2003-01-09 David Carlton <carlton@math.stanford.edu>
13452 * linespec.c: Update copyright.
13454 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13456 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13457 than inferior_ptid.
13458 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13460 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13462 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13464 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13465 (frame_saved_regs_zalloc): Update.
13466 (frame_saved_regs_register_unwind): Update.
13467 (create_new_frame): Update.
13468 (get_prev_frame): Update.
13469 (frame_extra_info_zalloc): Update.
13470 (deprecated_get_frame_saved_regs): Update.
13471 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13472 * cris-tdep.c: Update comment.
13474 * somsolib.h: Fix function indentation.
13475 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13476 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13477 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13478 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13479 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13481 * infrun.c (follow_fork): Use ISO C definition.
13482 * expprint.c (print_subexp): Use xfree instead of free.
13483 * charset.c: Include "gdb_string.h" instead of <string.h>.
13484 (register_iconv_charsets): Use ISO C definition.
13485 (host_charset, target_charset): Ditto.
13486 * Makefile.in (charset.o): Update dependencies.
13487 (mi-cmd-env.o): Update dependencies.
13489 2003-01-08 Andrew Cagney <cagney@redhat.com>
13491 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13494 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13496 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13497 build directories. Save edited gdb output in Mbuild.log. If a
13498 build fails, remove any final GDB executable.
13500 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13502 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13503 replacing hex constants with function names and stripping leading
13504 file name directory prefixes.
13506 2003-01-08 Andrew Cagney <cagney@redhat.com>
13508 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13511 2003-01-08 David Carlton <carlton@math.stanford.edu>
13513 * linespec.c (decode_line_1): Move code into decode_variable.
13514 (decode_variable): New function.
13516 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13518 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13520 2003-01-08 Andrew Cagney <cagney@redhat.com>
13522 * cris-tdep.c (cris_frame_init_saved_regs): Use
13523 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13525 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13526 (sh64_nofp_frame_init_saved_regs): Ditto.
13527 (sh_fp_frame_init_saved_regs): Ditto.
13528 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13529 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13530 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13531 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13533 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13535 * minsyms.c (lookup_minimal_symbol): Update comment.
13536 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13537 (lookup_minimal_symbol_solib_trampoline): Likewise.
13539 2003-01-08 Andrew Cagney <cagney@redhat.com>
13541 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13542 frame_relative_level.
13544 * alpha-tdep.c: Use get_frame_extra_info.
13545 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13546 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13547 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13548 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13550 * alpha-tdep.c: Use get_next_frame.
13551 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13552 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13553 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13554 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13555 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13556 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13557 * xstormy16-tdep.c: Ditto.
13559 2003-01-07 Andrew Cagney <cagney@redhat.com>
13561 * alpha-tdep.c: Use get_frame_base.
13562 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13563 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13564 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13565 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13566 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13567 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13568 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13569 * config/sparc/tm-sparc.h: Ditto.
13571 2003-01-07 Andrew Cagney <cagney@redhat.com>
13573 * frame.c (deprecated_get_frame_context): New function.
13574 (deprecated_set_frame_context): New function.
13575 * frame.h (deprecated_get_frame_context): Declare.
13576 (deprecated_set_frame_context): Declare.
13577 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13578 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13580 2003-01-07 Andrew Cagney <cagney@redhat.com>
13582 * frame.c (deprecated_set_frame_next_hack): New function.
13583 (deprecated_set_frame_prev_hack): New function.
13584 * frame.h (deprecated_set_frame_next_hack): Declare.
13585 (deprecated_set_frame_prev_hack): Declare.
13586 * mcore-tdep.c (analyze_dummy_frame): Use
13587 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13588 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13590 2003-01-07 David Carlton <carlton@math.stanford.edu>
13592 * linespec.c (decode_line_1): Move code into decode_dollar.
13593 (decode_dollar): New function.
13595 2003-01-07 Andrew Cagney <cagney@redhat.com>
13597 * arm-tdep.c (arm_init_extra_frame_info): Use
13598 deprecated_update_frame_base_hack.
13599 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13600 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13601 (fix_frame_pointer): Ditto.
13602 (mn10300_analyze_prologue): Ditto.
13604 2003-01-07 Andrew Cagney <cagney@redhat.com>
13606 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13607 extra_info using frame_extra_info_zalloc.
13608 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13609 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13610 (sh64_init_extra_frame_info): Ditto.
13611 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13612 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13613 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13614 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13615 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13616 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13617 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13618 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13619 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13620 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13621 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13622 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13624 * mn10300-tdep.c (analyze_dummy_frame): Use
13625 deprecated_set_frame_extra_info_hack.
13626 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13628 2003-01-07 J. Brobecker <brobecker@gnat.com>
13630 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13631 class is not scText. These do not define "real" procedures.
13632 (parse_partial_symbols): Likewise.
13634 2003-01-06 Michael Snyder <msnyder@redhat.com>
13636 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13638 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13640 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13641 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13642 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13643 deprecated_frame_xmalloc_with_cleanup.
13644 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13645 deprecated_frame_xmalloc.
13646 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13647 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13649 2003-01-06 Andrew Cagney <cagney@redhat.com>
13651 * x86-64-linux-tdep.c: Include "osabi.h".
13652 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13654 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13656 2003-01-06 Andrew Cagney <cagney@redhat.com>
13658 * MAINTAINERS (Target Instruction Set Architectures): Update
13659 arm-elf. Can be built with -Werror, has been multiarched.
13661 * value.h (unpack_long): Make buffer parameter constant.
13662 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13663 * scm-lang.h (scm_parse): Ditto.
13664 * defs.h (extract_typed_address, extract_address): Ditto.
13665 (extract_long_unsigned_integer): Ditto.
13666 * inferior.h (unsigned_pointer_to_address): Ditto.
13667 (signed_pointer_to_address): Ditto.
13668 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13669 * gdbarch.h, gdbarch.c: Regenerate.
13670 * findvar.c (extract_long_unsigned_integer): Update.
13671 (extract_address): Update.
13672 (extract_typed_address): Update.
13673 (unsigned_pointer_to_address): Update.
13674 * values.c (unpack_long): Update.
13675 (unpack_double): Update.
13676 (unpack_pointer): Update.
13677 (unpack_field_as_long): Update.
13678 * d10v-tdep.c (d10v_pointer_to_address): Update.
13679 * avr-tdep.c (avr_pointer_to_address): Update.
13680 * scm-lang.c (scm_unpack): Update.
13681 * findvar.c (signed_pointer_to_address): Update.
13683 2003-01-06 Michal Ludvig <mludvig@suse.cz>
13685 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13686 since it is in i386-tdep.c.
13688 2003-01-06 J. Brobecker <brobecker@gnat.com>
13690 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13691 failure introduced in the previous change.
13693 2003-01-05 Michael Chastain <mec@shout.net>
13695 * README: Remove references to deleted remote-*.c files:
13696 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13697 remote-nrom.c, remote-os9k.c, remote-udi.c.
13699 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13701 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13702 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13703 i386_get_longjmp_target.
13705 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13707 * arm-tdep.c (prologue_cache): Change to a pointer.
13708 (_initialize_arm_tdep): Allocate prologue_cache.
13709 (check_prologue_cache): Update.
13710 (save_prologue_cache): Update.
13711 (arm_gdbarch_init): Update.
13713 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13715 * stabsread.c (update_method_name_from_physname): Call complaint()
13718 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13720 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13721 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13722 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13724 * blockframe.c: Include "gdbcmd.h" and "command.h".
13725 (backtrace_below_main): New variable.
13726 (file_frame_chain_valid, func_frame_chain_valid)
13727 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13728 (generic_func_frame_chain_valid): Remove functions.
13729 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13730 (_initialize_blockframe): New function.
13731 * Makefile.in (blockframe.o): Update dependencies.
13732 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13733 comment. Call frame_chain_valid ().
13734 * frame.h: Remove old prototypes. Add prototype for
13735 frame_chain_valid and update comments to match.
13736 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13737 Remove old comment.
13738 * gdbarch.h: Regenerated.
13739 * gdbarch.c: Regenerated.
13741 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13742 set_gdbarch_frame_chain_valid.
13743 * avr-tdep.c (avr_gdbarch_init): Likewise.
13744 * cris-tdep.c (cris_gdbarch_init): Likewise.
13745 * frv-tdep.c (frv_gdbarch_init): Likewise.
13746 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13747 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13748 (i386_nw_init_abi): Likewise.
13749 (i386_gdbarch_init): Likewise.
13750 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13752 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13753 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13754 * mips-tdep.c (mips_gdbarch_init): Likewise.
13755 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13756 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13757 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13758 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13759 * s390-tdep.c (s390_gdbarch_init): Likewise.
13760 * sh-tdep.c (sh_gdbarch_init): Likewise.
13761 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13762 * v850-tdep.c (v850_gdbarch_init): Likewise.
13763 * vax-tdep.c (vax_gdbarch_init): Likewise.
13764 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13766 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13767 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13768 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13769 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13770 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13771 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13772 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13773 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13775 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13777 * Makefile.in (acconfig_h): Remove incorrect macro.
13778 (config_h): Define.
13779 (osabi.o): Update dependencies.
13780 * configure.tgt: Set gdb_osabi based on target triplet.
13781 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13782 * configure: Regenerated.
13783 * config.in: Regenerated.
13784 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13785 (GDB_OSABI_DEFAULT): Define if not already defined.
13786 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13787 (set_osabi_string): New variables.
13788 (gdbarch_register_osabi): Add new OS ABI to
13789 gdb_osabi_available_names.
13790 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13791 (set_osabi, show_osabi): New functions.
13792 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13794 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13796 * arch-utils.c (gdbarch_info_init): Set osabi to
13797 GDB_OSABI_UNINITIALIZED.
13798 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13799 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13800 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13801 * gdbarch.c: Regenerated.
13802 * gdbarch.h: Regenerated.
13803 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13805 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13806 * osabi.h (enum gdb_osabi): Move to defs.h.
13807 (gdbarch_init_osabi): Update prototype.
13808 * defs.h (enum gdb_osabi): Moved here.
13809 * Makefile.in: Update dependencies.
13811 * alpha-tdep.h: Don't include "osabi.h".
13812 (struct gdbarch_tdep): Remove osabi member.
13813 * alpha-tdep.c: Include "osabi.h".
13814 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13815 iterate over arches. Update call to gdbarch_init_osabi.
13816 (alpha_dump_tdep): Don't dump osabi.
13817 * alpha-linux-tdep.c: Include "osabi.h".
13818 * alpha-osf1-tdep.c: Include "osabi.h".
13819 * alphafbsd-tdep.c: Include "osabi.h".
13820 * alphanbsd-tdep.c: Include "osabi.h".
13822 * arm-tdep.h: Don't include "osabi.h".
13823 (struct gdbarch_tdep): Remove osabi member.
13824 * arm-tdep.c: Include "osabi.h".
13825 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13826 iterate over arches. Update call to gdbarch_init_osabi.
13827 (arm_dump_tdep): Don't dump osabi.
13828 * arm-linux-tdep.c: Include "osabi.h".
13829 * armnbsd-tdep.c: Include "osabi.h".
13831 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13832 Update call to gdbarch_init_osabi.
13834 * i386-tdep.h: Don't include "osabi.h".
13835 (struct gdbarch_tdep): Remove osabi member.
13836 * i386-tdep.c: Include "osabi.h".
13837 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13838 iterate over arches. Update call to gdbarch_init_osabi.
13839 (i386_dump_tdep): Don't dump osabi.
13840 * i386-linux-tdep.c: Include "osabi.h".
13841 * i386-sol2-tdep.c: Include "osabi.h".
13842 * i386bsd-tdep.c: Include "osabi.h".
13843 * i386gnu-tdep.c: Include "osabi.h".
13844 * i386ly-tdep.c: Include "osabi.h".
13845 * i386nbsd-tdep.c: Include "osabi.h".
13846 * i386obsd-tdep.c: Include "osabi.h".
13848 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13849 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13850 check osabi when iterating over arches. Update call to
13851 gdbarch_init_osabi.
13852 (mips_dump_tdep): Don't dump osabi.
13854 * ns32k-tdep.h: Don't include "osabi.h".
13855 (struct gdbarch_tdep): Remove.
13856 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13857 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13858 allocate tdep. Update call to gdbarch_init_osabi.
13859 (ns32k_dump_tdep): Remove.
13860 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13861 * ns32knbsd-tdep.c: Include "osabi.h".
13863 * ppc-tdep.h: Don't include "osabi.h".
13864 (struct gdbarch_tdep): Remove osabi member.
13865 * rs6000-tdep.c: Include "osabi.h".
13866 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13867 osabi when iterating over arches. Update call to
13868 gdbarch_init_osabi.
13869 (rs6000_dump_tdep): Don't dump osabi.
13870 * ppc-linux-tdep.c: Include "osabi.h".
13871 * ppcnbsd-tdep.c: Include "osabi.h".
13873 * sh-tdep.h: Don't include "osabi.h".
13874 (struct gdbarch_tdep): Remove osabi member.
13875 * sh-tdep.c: Include "osabi.h".
13876 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13877 iterate over arches. Update call to gdbarch_init_osabi.
13878 (sh_dump_tdep): Don't dump osabi.
13879 * shnbsd-tdep.c: Include "osabi.h".
13881 * sparc-tdep.c: Include "osabi.h".
13882 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13883 iterate over arches. Update call to gdbarch_init_osabi.
13884 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13887 * vax-tdep.h: Don't include "osabi.h".
13888 (struct gdbarch_tdep): Remove.
13889 * vax-tdep.c: Include "osabi.h".
13890 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13891 iterate over arches. Don't allocate tdep. Update call
13892 to gdbarch_init_osabi.
13893 (vax_dump_tdep): Remove.
13894 (_initialize_vax_tdep): Update call to gdbarch_register.
13896 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13898 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13900 (breakpoint_re_set_one): Don't fetch the value for a disabled
13903 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13905 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13906 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13907 (COERCE_FLOAT_TO_DOUBLE): Remove.
13908 * gdbarch.c: Regenerate.
13909 * gdbarch.h: Regenerate.
13910 * Makefile.in: Remove value_h from gdbarch_h.
13911 * valops.c (coerce_float_to_double): New variable.
13912 (default_coerce_float_to_double): Remove.
13913 (standard_coerce_float_to_double): Remove.
13914 (value_arg_coerce): Use coerce_float_to_double.
13915 (_initialize_valops): Add "set coerce-float-to-double".
13916 * value.h (default_coerce_float_to_double): Remove prototype.
13917 (standard_coerce_float_to_double): Remove prototype.
13919 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13921 * mdebugread.c (parse_symbol): Likewise.
13922 * stabsread.c (define_symbol): Mark all functions as prototyped.
13924 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13925 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13926 set_gdbarch_coerce_float_to_double.
13927 * arm-tdep.c (arm_gdbarch_init): Likewise.
13928 * frv-tdep.c (frv_gdbarch_init): Likewise.
13929 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13930 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13931 * mips-tdep.c (mips_gdbarch_init): Likewise.
13932 (mips_coerce_float_to_double): Remove.
13933 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13934 (rs6000_coerce_float_to_double): Remove.
13935 * s390-tdep.c (s390_gdbarch_init): Likewise.
13936 * sh-tdep.c (sh_gdbarch_init): Likewise.
13937 (sh_coerce_float_to_double): Remove.
13938 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13939 (sparc_coerce_float_to_double): Remove.
13940 * v850-tdep.c (v850_gdbarch_init): Likewise.
13941 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13942 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13943 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13944 (hppa_coerce_float_to_double): Remove prototype.
13945 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13947 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13949 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13951 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13953 Suggested by Stewart Brown <sb24@avaya.com>:
13954 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13955 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13956 (c_type_print_varspec_suffix): Likewise.
13958 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13960 * configure.in: Don't set and AC_SUBST SUBDIRS.
13961 * configure: Regenerated.
13963 * configure.in: Remove code dealing with shared libraries.
13964 * Makefile.in: Remove HLDFLAGS and HLDENV.
13965 * configure: Regenerated.
13967 2003-01-04 Andrew Cagney <ac131313@redhat.com>
13969 * frame.c (deprecated_frame_xmalloc): New function.
13970 (deprecated_set_frame_saved_regs_hack): New function.
13971 (deprecated_set_frame_extra_info_hack): New function.
13972 * frame.h (deprecated_frame_xmalloc): Declare.
13973 (deprecated_set_frame_saved_regs_hack): Declare.
13974 (deprecated_set_frame_extra_info_hack): Declare.
13976 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13978 * configure.in: Move code that provides the --enable-gdbtk option
13979 right after the code that handles the --enable-tui option, and
13980 polish it somewhat.
13981 * configure: Regenerated.
13983 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13984 AC_CHECK_FUNCS and remove the old check for pread64.
13985 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13986 * acconfig.h (_GNU_SOURCE): Add.
13987 (HAVE_PREAD64): Remove.
13988 * configure, aclocal.m4, config.in: Regenerated.
13990 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13992 * alpha-tdep.c: Use get_frame_saved_regs.
13993 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13994 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13995 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13996 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13997 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13999 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14001 * configure.in: Remove all use of the SUBDIRS variable; add
14002 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14003 code providing the --enable-multi-ice option, and move it right in
14004 front of the code that checks whether gdbserver is supported.
14006 * configure: Regenerated.
14007 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14010 2003-01-03 Andrew Cagney <cagney@redhat.com>
14012 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14013 * avr-tdep.c, cris-tdep.c: Ditto.
14014 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14015 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14017 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14019 * configure.in: Remove --enable-netrom option.
14020 * configure: Regenerated.
14022 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14024 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14025 declaration for `struct re_pattern_buffer' instead.
14026 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14028 2003-01-03 J. Brobecker <brobecker@gnat.com>
14030 * mdebugread.c (parse_symbol): Count until the stEnd matching
14031 the structure name.
14033 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14035 * configure.in: Remove --with-cpu option.
14036 subscripts. Remove evil changequotes here.
14037 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14038 * config.in, configure: Regenerated.
14040 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14041 * configure.in: Cleanup section that sources GDB and BFD configure
14042 subscripts. Remove evil changequotes here.
14043 * config.in, configure: Regenerated.
14045 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14047 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14048 frame accessor methods.
14049 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14050 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14051 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14052 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14053 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14054 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14055 * z8k-tdep.c: Ditto.
14057 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14059 * configure.in: Remove UI_OUT configuration code.
14060 * ada-lang.c: Update assuming UI_OUT is always true.
14061 * Makefile.in (UIOUT_CFLAGS): Remove.
14062 * configure: Regenerated.
14063 * TODO: Remove blurb about elimination of -DUI_OUT.
14065 * configure.in: Move code that provides the --enable-gdbcli,
14066 --enable-gdbmi options right before the code that handles the
14067 --enable-tui option. Polish a bit.
14068 * configure: Regenerated.
14070 * configure.in: Rewrite check for GNU regex and the
14071 --without-included regex option, and move it into the "Checks for
14072 library functions" section. This makes us use the system regex
14073 again by default on systems with version 2 of the GNU C library.
14074 This was apparently broken.
14075 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14076 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14077 * config.in, configure: Regenerated.
14079 * configure.in: Move code that provides the --enable-tui option
14080 before the "Checks for libraries" section. Polish the code
14081 somewhat and set need_curses to yes if we build the TUI. Rewrite
14082 code that looks for a library providing termcap functionality to
14083 match more closely what's done in the Readline library, and move
14084 it into to the "Checks for libraries" section.
14085 * configure: Regenerated.
14086 * Makefile.in (TERMCAP): Remove variable.
14087 * config/i386/go32.mh (TERMCAP): Remove variable.
14089 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14091 * MAINTAINERS: Mention gdb_mbuild.sh.
14092 * gdb_mbuild.sh: Rewrite.
14094 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14096 * configure.in: Fix typo in last change.
14097 * config.in, configure: Regenerated.
14099 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14101 * valarith.c (value_binop): Delete obsolete code and comments.
14102 * configure.host: Ditto.
14103 * buildsym.h (make_blockvector): Ditto.
14104 * buildsym.c (make_blockvector): Ditto.
14105 * defs.h (enum language): Ditto.
14106 (chill_demangle): Ditto.
14107 * elfread.c (elf_symtab_read): Ditto.
14108 * dwarfread.c (CHILL_PRODUCER): Ditto.
14109 (set_cu_language): Ditto.
14110 (handle_producer): Ditto.
14111 * expprint.c (print_subexp): Ditto.
14112 * gdbtypes.c (chill_varying_type): Ditto.
14113 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14114 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14115 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14116 (chill_varying_type): Ditto.
14117 * language.h (_LANG_chill): Ditto.
14118 * language.c (binop_result_type, integral_type): Ditto.
14119 (character_type, string_type, structured_type): Ditto.
14120 (lang_bool_type, binop_type_check): Ditto.
14121 * stabsread.h (os9k_stabs): Ditto.
14122 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14123 (define_symbol, read_type, read_struct_fields): Ditto.
14124 (read_array_type, read_enum_type, read_huge_number): Ditto.
14125 (read_range_type, start_stabs): Ditto.
14126 * symfile.c (init_filename_language_table): Ditto.
14127 (add_psymbol_with_dem_name_to_list): Ditto.
14128 * symtab.c (symbol_init_language_specific): Ditto.
14129 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14130 * symtab.h (struct general_symbol_info): Ditto.
14131 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14132 * typeprint.c (typedef_print): Ditto.
14133 * utils.c (fprintf_symbol_filtered): Ditto.
14134 * valops.c (value_cast, search_struct_field, value_slice): Delete
14136 (varying_to_slice): Delete function.
14137 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14138 (varying_to_slice): Delete declaration.
14139 * MAINTAINERS: Update.
14141 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14143 * configure.in: Reorganize "Checks for library functions section"
14144 a bit. Remove check for `btowc' and `isascii' functions.
14145 * configure: Regenerated.
14147 * acconfig.h (_MSE_INT_H): Remove.
14148 * configure.in: Create "Checks for header files" section, and move
14149 appropriate tests there. Don't check for objlist.h, wchar.h,
14150 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14151 misdetection fix. Also add "Checks for types", "Checks for
14152 compiler characteristics" and "Checks for library functions"
14154 * config.in, configure: Regenerated.
14156 * configure.in: Create "Checks for programs" section, and move
14157 appropriate tests there.
14159 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14161 * configure.in: Create "Checks for libraries" section, and move
14162 appropriate tests there. Cleanup check for wctype in libw. Use
14163 AC_SEARCH_LIBS to see whether we need libsocket.
14164 * configure: Regenerated.
14166 For older changes see ChangeLog-2002
14172 version-control: never