1 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
4 * breakpoint.c (insert_bp_location): Fix a logic error by returning
5 0 after a catchpoint fails.
7 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
9 * mips-tdep.c (msymbol_size): Delete.
11 2003-11-07 Michael Chastain <mec@shout.net>
13 * symtab.h (struct minimal_symbol): Add size.
15 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
16 Rename to record_minimal_symbol.
17 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
18 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
19 (install_minimal_symbols): Ditto.
20 * objfiles.c (terminate_minimal_symbol_table): Ditto.
21 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
22 * m68hc11-tdep.c: Ditto.
26 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
28 * MAINTAINERS: Change my e-mail address.
30 2003-11-10 Andrew Cagney <cagney@redhat.com>
32 * gdbarch.sh (return_value): Replace "inval" and "outval" with
33 "readbuf" and "writebuf".
34 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
35 * d10v-tdep.c (d10v_return_value): Ditto.
36 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
37 (ppc_sysv_abi_broken_return_value): Ditto.
38 (ppc64_sysv_abi_return_value): Ditto.
39 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
40 (ppc_sysv_abi_return_value): Ditto.
41 (ppc_sysv_abi_broken_return_value): Ditto.
42 (ppc64_sysv_abi_return_value): Ditto.
43 * values.c (register_value_being_returned): Update call.
44 * stack.c (return_command): Update call.
45 * gdbarch.h, gdbarch.c: Re-generate.
47 * target.h (struct target_ops): Order xfer buffer parameters "read
48 write" not "write read".
49 * bfd-target.c (target_bfd_xfer_partial): Update.
50 * remote.c (remote_xfer_partial): Update.
51 * inftarg.c (child_xfer_partial): Update.
52 * target.c (default_xfer_partial): Update.
53 (target_read_partial, target_write_partial): Update.
54 (debug_to_xfer_partial): Update.
56 * arch-utils.h, arch-utils.c: Fix typo in comment.
58 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
59 (gdbarch_from_bfd): Call gdbarch_find_by_info.
60 (set_gdbarch_from_file): Call
61 "deprecated_current_gdbarch_select_hack".
63 2003-11-09 Andrew Cagney <cagney@redhat.com>
65 * arch-utils.c (gdbarch_update_p): New function.
66 * gdbarch.sh (gdbarch_update_p): Delete function.
67 (find_arch_by_info, gdbarch_find_by_info): New functions.
68 (deprecated_current_gdbarch_select_hack): New function.
69 * gdbarch.c: Re-generate.
71 * gdbarch.sh (clear_gdbarch_swap): Delete function.
72 (swapout_gdbarch_swap): Delete function.
73 (swapin_gdbarch_swap): Delete function.
74 (init_gdbarch_swap): Delete function.
75 (initialize_non_multiarch): Delete function.
76 (current_gdbarch_swap_in_hack): New function.
77 (current_gdbarch_swap_out_hack): New function.
78 (current_gdbarch_swap_init_hack): New function.
79 * gdbarch.c: Re-generate.
81 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
82 parameter to "current_gdbarch". Add comment explaining why.
83 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
84 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
85 * gdbarch.c: Re-generate.
87 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
88 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
89 * config/s390/xm-linux.h: Delete file.
90 * config/m88k/xm-delta88v4.h: Delete stray.
92 * Makefile.in (arch-utils.o): Update dependencies.
93 * arch-utils.c: Include "osabi.h".
94 (gdbarch_info_fill): New function.
95 * arch-utils.h (gdbarch_info_fill): Declare.
96 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
97 * gdbarch.c: Re-generate.
99 2003-11-09 Mark Kettenis <kettenis@gnu.org>
100 David S. Miller <davem@redhat.com>
102 * glibc-tdep.c, glibc-tdep.h: New files.
103 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
104 * config/i386/linux.mt (TDEPFILES): Likewise.
105 * i386-linux-tdep.c (glibc-tdep.h): Include.
106 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
107 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
108 * arm-linux-tdep.c (glibc-tdep.h): Include.
109 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
110 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
111 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
112 (glibc_tdep_h): Define.
113 (glibc-tdep.o): Add dependencies.
114 (arm-linux-tdep.o): Update dependencies.
115 (i386-linux-tdep.o): Likewise.
117 2003-11-09 Andrew Cagney <cagney@redhat.com>
119 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
120 * config/mips/nm-irix6.h: Delete file.
121 * config/mips/nm-linux.h: Update copyright.
122 (MIPS_GNULINUX_TARGET): Delete macro.
123 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
124 * config/mips/xm-irix6.h: Delete file.
125 * config/mips/linux.mh (XM_FILE): Delete definition.
126 * config/mips/xm-linux.h: Delete file.
128 2003-11-09 Andrew Cagney <cagney@redhat.com>
130 * d10v-tdep.c (d10v_return_value): New function.
131 (d10v_use_struct_convention): Delete function.
132 (d10v_store_return_value): Delete function.
133 (d10v_extract_struct_value_address): Delete function.
134 (d10v_gdbarch_init): Set "return_value" instead of
135 "extract_return_value", "store_return_value",
136 "extract_struct_value_address", and "use_struct_convention".
137 (RET1_REGNUM): Delete const.
139 2003-11-09 Mark Kettenis <kettenis@gnu.org>
141 From David S. Miller <davem@redhat.com>:
142 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
143 * gdbarch.c, gdbarch.h: Regenerated.
144 * arch-utils.c (generic_skip_solib_resolver): New function.
145 * arch-utils.h (generic_skip_solib_resolver): New prototype.
146 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
148 2003-11-07 Andrew Cagney <cagney@redhat.com>
150 * top.c (print_gdb_version): Replace STREQ with strcmp.
151 * valops.c (value_struct_elt_for_reference): Ditto.
152 (value_struct_elt_for_reference): Ditto.
153 * symtab.c (gdb_mangle_name): Ditto.
154 (find_line_symtab): Ditto.
155 * symmisc.c (maintenance_print_symbols): Ditto.
156 * symfile.c (symbol_file_command): Ditto.
157 * stabsread.c (define_symbol, read_type): Ditto.
158 (cleanup_undefined_types, scan_file_globals): Ditto.
159 * solib.c (solib_map_sections): Ditto.
160 * solib-svr4.c (bfd_lookup_symbol): Ditto.
161 * rs6000-tdep.c (skip_prologue): Ditto.
162 * p-valprint.c (pascal_value_print): Ditto.
163 (pascal_object_is_vtbl_ptr_type): Ditto.
164 * objfiles.c (in_plt_section): Ditto.
165 * minsyms.c (lookup_minimal_symbol): Ditto.
166 (compact_minimal_symbols): Ditto.
167 (find_solib_trampoline_target): Ditto.
168 * mdebugread.c (parse_type): Ditto.
169 * language.c (set_language_command): Ditto.
170 (set_type_command, set_range_command): Ditto.
171 * f-lang.c (add_common_block): Ditto.
172 (add_common_block): Ditto.
173 (find_first_common_named): Ditto.
174 (patch_all_commons_by_name): Ditto.
175 * elfread.c (elf_locate_sections): Ditto.
176 (elf_locate_sections): Ditto.
177 (elfstab_offset_sections): Ditto.
178 * dwarf2read.c (dwarf2_locate_sections): Ditto.
179 * dbxread.c (add_old_header_file): Ditto.
180 (find_corresponding_bincl_psymtab): Ditto.
181 (read_dbx_symtab, process_one_symbol): Ditto.
182 * coffread.c (patch_opaque_types): Ditto.
183 * cli/cli-decode.c (delete_cmd): Ditto.
184 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
185 * c-typeprint.c (c_type_print_base): Ditto.
186 * breakpoint.c (bpstat_stop_status): Ditto.
187 (clear_command, breakpoint_re_set_one): Ditto.
189 2003-11-07 Andrew Cagney <cagney@redhat.com>
191 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
192 * bcache.c (struct bstring): Make "length" an unsigned short, add
194 (struct bcache): Add "half_hash_error_count".
195 (bcache): Compute and save the "half_hash". Compare the
196 "half_hash" before comparing the length. Update
197 half_hash_error_count.
199 2003-11-07 Andrew Cagney <cagney@redhat.com>
201 * inftarg.c (child_xfer_partial): New function
202 (init_child_ops): Set "to_xfer_partial".
204 2003-11-07 Andrew Cagney <cagney@redhat.com>
206 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
207 set "return_value" instead of "use_struct_convention".
208 (ppc_linux_use_struct_convention): Delete function.
209 (ppc_linux_return_value): New function.
210 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
211 (ppc_sysv_abi_broken_return_value): New function.
212 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
213 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
215 (ppc_sysv_abi_extract_return_value): Delete function.
216 (ppc_sysv_abi_broken_extract_return_value): Delete function.
217 (ppc_sysv_abi_store_return_value): Delete function.
218 (ppc_sysv_abi_broken_store_return_value): Delete function.
219 (ppc_sysv_abi_use_struct_convention): Delete function.
220 (ppc64_sysv_abi_use_struct_convention): Delete function.
221 (ppc64_sysv_abi_extract_return_value): Delete function.
222 (ppc64_sysv_abi_store_return_value): Delete function.
223 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
224 (ppcnbsd_init_abi): Set "return_value", instead of
225 "use_struct_convention", "extract_return_value", and
226 "store_return_value".
227 (ppcnbsd_use_struct_convention): Delete function.
228 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
229 (ppc_sysv_abi_return_value): Declare.
230 (ppc_sysv_abi_broken_return_value): Declare.
231 (ppc_sysv_abi_use_struct_convention): Delete.
232 (ppc_sysv_abi_store_return_value): Delete.
233 (ppc_sysv_abi_extract_return_value): Delete.
234 (ppc_sysv_abi_broken_store_return_value): Delete.
235 (ppc_sysv_abi_broken_extract_return_value): Delete.
236 (ppc64_sysv_abi_use_struct_convention): Delete.
237 (ppc64_sysv_abi_extract_return_value): Delete.
238 (ppc64_sysv_abi_store_return_value): Delete.
239 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
240 set "return_value" instead of "extract_return_value",
241 "store_return_value", and "use_struct_convention".
243 2003-11-07 Mark Kettenis <kettenis@gnu.org>
245 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
247 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
250 2003-11-07 Mark Kettenis <kettenis@gnu.org>
252 * fbsd-proc.c: Fix formatting.
254 2003-11-06 Kevin Buettner <kevinb@redhat.com>
256 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
258 (new_variant): Set name for iacc0_regnum.
259 (frv_register_name): Accommodate pseudo-registers.
260 (frv_register_type): Add case for iacc0_regnum.
261 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
262 (frv_gdbarch_init): Set number of pseudo registers. Establish
263 pseudo-register read/write methods.
265 2003-11-06 Andrew Cagney <cagney@redhat.com>
267 * valops.c (destructor_name_p): Replace STREQN with strncmp.
268 * top.c (command_line_input): Ditto.
269 * objc-exp.y (yylex): Ditto.
270 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
271 * jv-exp.y (yylex): Ditto.
272 * f-exp.y (yylex): Ditto.
273 * event-top.c (command_line_handler): Ditto.
274 * environ.c (get_in_environ): Ditto.
275 (set_in_environ): Ditto.
276 * dwarfread.c (handle_producer): Ditto.
277 * dbxread.c (process_one_symbol): Ditto.
278 * c-typeprint.c (c_type_print_base): Ditto.
279 * c-exp.y (yylex): Ditto.
281 2003-11-06 Andrew Cagney <cagney@redhat.com>
282 Jeff Johnston <jjohnstn@redhat.com>
284 * target.c (add_target): Only set "to_xfer_partial" when NULL.
285 (init_dummy_target): Set "to_xfer_partial".
287 2003-11-06 Andrew Cagney <cagney@redhat.com>
289 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
292 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
294 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
297 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
299 * breakpoint.c (remove_breakpoint): Take an bp_location
300 instead of a breakpoint argument. Check the bp_location's type.
301 Fix a reversed condition for hardware breakpoints.
303 (insert_bp_location): Update call to remove_breakpoint.
304 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
305 (remove_hw_watchpoints): Likewise.
306 (reattach_breakpoints): Likewise.
307 (detach_breakpoints): Likewise.
308 (delete_breakpoint): Likewise.
310 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
312 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
313 (beakpoint_init_inferior): Likewise.
314 (breakpoint_here_p): Likewise. Only check addresses for software
315 or hardware breakpoints.
316 (breakpoint_inserted_here_p): Likewise.
317 (breakpoint_thread_match): Likewise. Correct comment.
318 (bpstat_have_active_hw_watchpoints): Likewise.
319 (check_duplicates): Likewise.
321 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
323 * breakpoints.c (insert_bp_location): New function, broken out
324 from insert_breakpoints. Work on an bp_location instead of a
326 (insert_breakpoints): Use it.
328 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
330 * breakpoint.h (struct bp_location): Add section.
331 (struct breakpoint): Remove section.
332 * breakpoint.c (insert_breakpoints, remove_breakpoint)
333 (breakpoint_here_p, breakpoint_inserted_here_p)
334 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
335 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
336 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
339 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
341 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
342 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
344 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
346 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
347 arguments. Initialize owner and type for the new breakpoint
349 (set_raw_breakpoint): Update call to allocate_bp_location.
351 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
353 * breakpoint.h (struct bp_location): Add a chain pointer.
354 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
356 (bp_location_chain): New variable.
357 (allocate_bp_location): New function.
358 (set_raw_breakpoint): Use it.
359 (delete_breakpoint): Remove ->loc from the bp_location_chain.
361 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
363 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
364 (struct breakpoint): Remove address, shadow_contents, inserted,
365 requested_address, and duplicate. Add a struct bp_location.
366 * breakpoint.c (condition_command, read_memory_nobpt)
367 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
368 (reattach_breakpoints, update_breakpoints_after_exec)
369 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
370 (breakpoint_init_inferior, breakpoint_here_p)
371 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
372 (breakpoint_thread_match, bpstat_stop_status)
373 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
374 (describe_other_breakpoints, check_duplicates)
375 (make_breakpoint_permanent, create_thread_event_breakpoint)
376 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
377 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
378 (watch_command_1, print_one_exception_catchpoint)
379 (clear_command, breakpoint_re_set_one): Adjust member accesses to
380 use the breakpoint's ->loc.
381 (set_raw_breakpoint): Likewise. Initialize ->loc.
382 (delete_breakpoint): Likewise. Free ->loc.
384 2003-11-05 Andrew Cagney <cagney@redhat.com>
386 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
388 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
389 * config/i386/tm-cygwin.h
390 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
391 * config/powerpc/tm-linux.h
392 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
393 (at_subroutine_call_instruction_target): Delete declaration.
394 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
395 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
396 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
398 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
399 "struct bfd_section" and "struct bfd".
400 * target.h (struct section_table): Ditto.
401 * rs6000-nat.c (xcoff_relocate_core): Ditto.
402 * solib-svr4.c (elf_locate_base): Ditto.
403 * pa64solib.c (dld_cache_t): Ditto.
404 * objfiles.h (struct obj_section): Ditto.
405 * objfiles.c (add_to_objfile_sections): Ditto.
406 * exec.c (bfdsec_to_vmap): Ditto.
407 (add_to_section_table): Ditto.
408 (build_section_table): Ditto.
409 * corelow.c (get_core_register_section): Ditto.
410 * coffread.c (find_linenos): Ditto.
411 * elfread.c (elf_interpreter): Delete #if0'd function.
413 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
414 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
415 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
416 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
418 * arch-utils.h (generic_cannot_extract_struct_value_address):
420 * wince.c (_initialize_wince): Fix multi-line string.
421 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
423 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
425 * top.c (execute_command): Fix broken logic for command execution
426 while inferior is running in async mode.
428 2003-11-06 Mark Kettenis <kettenis@gnu.org>
430 * dwarf2-frame.c (execute_cfa_program): Mark register as
431 REG_SAVED_REG for DW_CFA_register opcode.
433 2003-11-05 Mark Kettenis <kettenis@gnu.org>
435 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
436 %rsp, %rip and %eflags to match ABI-change.
438 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
440 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
441 (ia64_gdbarch_init): Don't bother calculating the os.
442 Instead use the gdbarch_info struct and look at the osabi field.
443 Also use gdbarch_list_lookup_by_info() to look for a
446 2003-11-05 Kevin Buettner <kevinb@redhat.com>
448 * frv-tdep.c (frv_register_byte): Delete.
449 (frv_extract_return_value, frv_store_return_value)
450 (frv_extract_struct_value_address): Don't call frv_register_byte().
451 Convert to non-deprecated form.
452 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
453 Convert calls to set_gdbarch_deprecated_extract_return_value(),
454 set_gdbarch_deprecated_store_return_value(), and
455 set_gdbarch_deprecated_extract_struct_value_address() into
456 non-deprecated forms.
458 2003-11-05 Andrew Cagney <cagney@redhat.com>
460 * mips-tdep.c (mips_dump_tdep): Do not print
461 PRINT_EXTRA_FRAME_INFO.
462 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
463 Rename PRINT_EXTRA_FRAME_INFO.
464 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
465 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
466 (mips_print_extra_frame_info): Delete declaration.
467 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
469 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
471 * coffread.c (coff_symtab_read): Remove passing of info parameter
472 to prim_record_minimal_symbol_and_info.
474 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
476 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
477 (decode_base_type): Delete ifdeffed out code.
479 2003-11-04 Andrew Cagney <cagney@redhat.com>
481 * symtab.c (find_active_alias): Delete function.
482 (lookup_block_symbol): Delete alias code.
483 * stabsread.c (resolve_live_range): Delete function.
484 (add_live_range): Delete function.
485 (resolve_symbol_reference): Delete function.
486 (define_symbol): Delete live range and alias code.
487 (scan_file_globals): Delete alias code.
488 * symtab.h (SYMBOL_RANGES): Delete macro.
489 (struct range_list): Delete structure.
490 (struct symbol): Delete field "ranges".
491 (SYMBOL_ALIASES): Delete macro.
492 (struct alias_list): Delete structure.
493 (struct symbol): Delete field "aliases".
495 2003-11-04 Michael Snyder <msnyder@redhat.com>
497 * MAINTAINERS: Remove myself as owner of breakpoints and
500 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
502 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
503 (sh_sh4al_dsp_register_name): Ditto.
504 (sh4_nofpu_show_regs): Ditto.
505 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
506 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
508 2003-11-03 Andrew Cagney <cagney@redhat.com>
510 * bcache.c: Include "gdb_assert.h".
511 (struct bcache): Add fields "expand_count" and
513 (expand_hash_table): Update the expand counts.
514 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
515 on object sizes and hashes.
516 * Makefile.in (bcache.o): Update dependencies.
518 2003-11-03 Andrew Cagney <cagney@redhat.com>
520 * exec.c (xfer_memory): Eliminate xfer_fn.
522 2003-10-31 Kevin Buettner <kevinb@redhat.com>
524 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
525 (opcodes/frv-desc.h): Include.
526 (iacc0h_regnum, iacc0l_regnum): Define.
527 (last_spr_regnum, frv_num_regs): Update.
528 (new_variant): Don't supply default names for holes in the SPRs.
529 Supply names for iacc0h_regnum and iacc0l_regnum.
530 (frv_register_type): Use symbolic constants first_fpr_regnum and
531 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
532 builtin_type_int instead of builtin_type_int32.
533 (frv_register_sim_regno): New function.
534 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
535 * Makefile.in (gdb_sim_frv_h): Define.
536 (frv-tdep.o): Update dependencies.
538 2003-10-31 Andrew Cagney <cagney@redhat.com>
540 * avr-tdep.c (avr_frame_this_id): Do not call
541 deprecated_inside_entry_file.
542 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
543 * m32r-tdep.c (m32r_frame_this_id): Ditto.
544 * d10v-tdep.c (d10v_frame_this_id): Ditto.
545 * arm-tdep.c (arm_prologue_this_id): Ditto.
546 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
548 2003-10-31 Jim Blandy <jimb@redhat.com>
550 * elfread.c (elf_symtab_read): Allocate correct number of tail
551 elements to sectinfo structure. (Fix from Woody LaRue.)
553 2003-10-31 Andrew Cagney <cagney@redhat.com>
555 * stack.c (return_command): Use get_frame_type, instead of
556 CALL_DUMMY_HAS_COMPLETED.
557 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
558 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
560 2003-10-31 Mark Kettenis <kettenis@gnu.org>
562 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
563 explicitly specify size of array.
564 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
567 2003-10-31 Andrew Cagney <cagney@redhat.com>
569 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
571 (s390_gdbarch_init): Set extract_struct_value_address.
572 * arch-utils.c (generic_cannot_extract_struct_value_address):
574 * arch-utils.h (generic_cannot_extract_struct_value_address):
577 2003-10-31 Mark Kettenis <kettenis@gnu.org>
579 * i386-linux-nat.c (fetch_core_registers): Remove.
580 (linux_elf_core_fns): Remove.
581 (_initialize_i386_linux_nat): Remove.
583 2003-10-31 Andrew Cagney <cagney@redhat.com>
585 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
587 (exec_entry_point): New function.
588 (enable_break): Create a "tmp_bfd_target", use that and
589 entry_point_address when computing the relocation offset.
590 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
591 * Makefile.in (solib-svr4.o): Update dependencies.
593 2003-10-31 Andrew Cagney <cagney@redhat.com>
595 * defs.h (XZALLOC): Define.
596 * target.h (struct target_ops): Add "to_data";
597 * bfd-target.h, bfd-target.c: New files.
598 * Makefile.in (SFILES): Add "bfd-target.c".
599 (COMMON_OBS): Add "bfd-target.o".
600 (bfd-target.o): Specify dependencies.
601 (bfd_target_h): Define.
602 * defs.h (XZALLOC): Define.
604 2003-10-31 Andrew Cagney <cagney@redhat.com>
606 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
607 adjust_breakpoint_address.
608 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
609 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
610 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
611 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
613 2003-10-31 Andrew Cagney <cagney@redhat.com>
615 * target.h (struct target_ops): Replace "to_read_partial" and
616 "to_write_partial" with "to_xfer_partial". Update comments.
617 * target.c (debug_to_write_partial): Delete function.
618 (debug_to_xfer_partial): Replace debug_to_read_partial.
619 (add_target, update_current_target, setup_target_debug): Set
620 "to_xfer_partial" instead of "to_read_partial" and
622 (default_xfer_partial): Replace "default_write_partial".
623 (default_read_partial): Delete.
624 (target_read_partial, target_write_partial): Call
626 * remote.c (init_remote_ops): Set "to_xfer_partial".
627 (init_remote_async_ops): Ditto.
628 (remote_xfer_partial): Replace "remote_read_partial".
630 2003-10-31 Mark Kettenis <kettenis@gnu.org>
632 * i386-tdep.c (i386_supply_fpregset): Support floating-point
633 registers in `fxsave' format.
634 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
636 2003-10-30 Mark Kettenis <kettenis@gnu.org>
638 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
639 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
640 TDEP->gregset_num_regs and tdep->sizeof_gregset.
642 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
643 specify size of array.
644 (i386_linux_init_abi): Remove initialization of
645 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
646 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
648 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
649 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
652 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
655 2003-10-29 Mark Kettenis <kettenis@gnu.org>
657 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
658 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
661 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
663 * corelow.c: Include "arch-utils.h", "regset.h" and
665 (core_gdbarch): New variable.
666 (sniff_core_bfd): Don't sniff if we have support for register sets
668 (core_close): Reset CORE_GDBARCH.
669 (core_open): Initialize CORE_GDBARCH.
670 (get_core_register_section): Use register sets if they are
671 supported by CORE_GDBARCH.
672 (get_core_registers): Don't print error message if we have support
673 for register sets in CORE_GDBARCH.
675 2003-10-29 Andrew Cagney <cagney@redhat.com>
677 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
678 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
680 2003-10-29 Mark Kettenis <kettenis@gnu.org>
682 * objfiles.h (clear_objfile_data): New prototype.
683 * objfiles.c (clear_objfile_data): New function.
684 * symfile.c (reread_symbols): Clear per-objfile data.
686 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
688 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
689 printf_unfiltered instead of printf_filtered for output messages.
690 (add_symbol_file_command): Ditto.
691 (reread_symbols): Ditto.
692 (overlay_auto_command): Ditto.
693 (overlay_manual_command): Ditto.
694 (overlay_off_command): Ditto.
696 2003-10-27 Mark Kettenis <kettenis@gnu.org>
698 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
699 (gdbarch_from_bfd): New function.
700 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
701 deprecated_select_gdbarch_hack.
702 * arch-utils.h (gdbarch_from_bfd): New prototype.
704 2003-10-27 Andrew Cagney <cagney@redhat.com>
706 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
707 arch_info. Use warning instead of fprintf_filtered. Do not use
708 deprecated bfd_printable_arch_mach.
710 2003-10-26 Kevin Buettner <kevinb@redhat.com>
712 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
714 (frv_register_type): Rename from frv_register_virtual_type. Add
715 ``struct gdbarch *'' parameter.
716 (frv_gdbarch_init): Delete calls to the following functions:
717 set_gdbarch_deprecated_size(),
718 set_gdbarch_deprecated_register_bytes(),
719 set_gdbarch_deprecated_register_raw_size(),
720 set_gdbarch_deprecated_max_register_raw_size(),
721 set_gdbarch_deprecated_register_virtual_size(),
722 set_gdbarch_deprecated_max_register_virtual_size(),
723 set_gdbarch_deprecated_register_virtual_size(),
724 set_gdbarch_deprecated_register_virtual_type().
725 Add call to function set_gdbarch_register_type().
727 2003-10-26 Mark Kettenis <kettenis@gnu.org>
729 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
730 FDOFF_REGNUM): Remove defines.
731 * win32-nat.c (do_child_fetch_inferior_registers): Include
733 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
734 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
735 undefine I387_ST0_REGNUM.
737 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
738 * x86-64-tdep.c (x86_64_store_return_value): Use
739 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
741 Change register numbers to enumartion values.
742 * i386-tdep.h (enum i386_regnum): New.
743 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
744 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
745 I386_ST0_REGNUM): Remove defines.
746 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
747 I386_EDI_REGNUM): Remove defines.
749 2003-10-24 Andrew Cagney <cagney@redhat.com>
751 * target.c: Include "gdbcore.h".
752 (get_target_memory, get_target_memory_unsigned): New functions.
753 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
754 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
755 Use get_target_memory_unsigned.
756 * Makefile.in (target.o): Update dependencies.
758 2003-10-24 Andrew Cagney <cagney@redhat.com>
760 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
761 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
762 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
763 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
764 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
766 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
767 (can_run_code_for): Use the OO term "singleton".
769 2003-10-23 Andrew Cagney <cagney@redhat.com>
771 * Makefile.in (stack.o): Add $(regcache_h).
772 * stack.c: Include "regcache.h"
773 (return_command): Rewrite. Use get_frame_id and
774 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
775 about unhandled return-values.
776 * value.h (set_return_value): Delete declaration.
777 * values.c (set_return_value): Delete function.
779 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
781 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
782 (pseudo_regs): Add comment regarding register stack registers.
783 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
784 (floatformat_valid): New static routine.
785 (floatformat_ia64_ext): Add name field and set up is_valid routine
786 to floatformat_valid().
787 (examine_prologue): For the previous cfm, use
788 frame_unwind_register()
789 if the cfm is not stored in a register-stack register. Save the
790 previous cfm value in the prev_cfm field. Add debug output.
791 (ia64_frame_this_id): Use frame_id_build_special() to also register
792 the bsp. Add debug output.
793 (ia64_sigtramp_frame_this_id): Ditto.
794 (ia64_frame_prev_register): Look at cache saved_regs for a few more
795 registers and also add some checks for framelessness before accepting
796 current register values for fields such as return address. For cfm,
797 use the cached prev_cfm field if available. Add comment to explain
798 PSR logic. Add debug output.
799 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
800 as part of initialization.
801 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
802 calculated. Cache the bsp and cfm values.
803 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
804 instead of using ia64_frame_prev_register() which doesn't expect most
805 registers to be saved. The saved values for bsp and sp
806 can be taken from the cache. Add debug output.
807 (ia64_push_dummy_call): Use frame_id_build_special() to also register
810 2003-10-23 Jim Blandy <jimb@redhat.com>
812 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
813 architecture the current arch can run code for --- but not if it's
815 (can_run_code_for): New function.
817 2003-10-22 James E Wilson <wilson@specifixinc.com>
819 * MAINTAINERS: Move myself from paper trail section back to write
820 after approval section.
822 2003-10-22 Andrew Cagney <cagney@redhat.com>
825 * win32-nat.c: Include "exec.h".
826 * solib.c: Include "exec.h".
827 * target.h (build_section_table): Delete declaration.
828 * somsolib.c: Include "exec.h".
829 (exec_ops): Delete extern declaration.
830 * rs6000-nat.c: Update copyright. Include "exec.h".
831 (exec_ops): Delete extern declaration.
832 * pa64solib.c: Update copyright. Include "exec.h".
833 (exec_ops): Delete extern declaration.
834 * exec.c: Update copyright. Include "exec.h".
835 * corelow.c: Update dependencies. Include "exec.h".
836 * Makefile.in (exec_h): Define.
837 (exec.o, somsolib.o): Update dependencies.
838 (pa64solib.o, corelow.o): Update dependencies.
840 2003-10-22 Andrew Cagney <cagney@redhat.com>
842 * target.c: Include "gdb_assert.h" (target_read): Call
843 "target_read_partial", not "target_write_partial".
844 (default_read_partial, default_write_partial): New function.
845 (target_read_partial, target_write_partial): Simplify, assume that
846 there is always a read/write method.
847 (update_current_target, add_target): Always set "to_read_partial"
848 and "to_write_partial".
849 (target_write, target_read): Fail on a zero byte transfer.
850 * Makefile.in (target.o): Update dependencies.
851 * target.h: Update copyright date.
852 (target_object): Fix typo.
854 2003-10-22 Andrew Cagney <cagney@redhat.com>
856 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
857 multi-arch method, add "targ" parameter.
858 (struct target_ops): Declare.
859 * gdbarch.h, gdbarch.c: Re-generate.
860 * Makefile.in (c-valprint.o): Update dependencies.
861 * arch-utils.h: Update copyright.
862 (convert_from_func_ptr_addr_identity): Declare.
863 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
864 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
865 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
866 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
867 * infcall.c (find_function_addr, call_function_by_hand): Update.
868 * c-valprint.c: Include "target.h".
869 (print_function_pointer_address): Update.
871 2003-10-22 Andrew Cagney <cagney@redhat.com>
873 * target.c (target_close): New function.
874 (debug_to_close): Use "target_close".
875 (push_target): Use "target_close".
876 (unpush_target): Use "target_close".
877 (pop_target): Use "target_close".
878 * target.h (struct target_ops): Add "to_xclose".
879 (target_open): Delete macro. Move comment to "to_open".
880 (target_close): Replace macro with function that takes a target.
881 * top.c (quit_target): Pass "current_target" to "target_close".
883 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
885 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
886 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
887 * symtab.h (lookup_minimal_symbol_text): Update.
888 * breakpoint.c (create_overlay_event_breakpoint,
889 create_longjmp_breakpoint): Update callers.
890 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
891 * symtab.c (find_pc_sect_line): Ditto.
893 2003-10-21 Andrew Cagney <cagney@redhat.com>
895 * target.c (errno): Delete extern declaration.
897 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
899 * ia64-tdep.c: Change all occurrences of
900 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
901 (ia64_frame_prev_register): Minor whitespace change.
903 2003-10-20 Michael Chastain <mec@shout.net>
905 * config/djgpp/fnchange.lst: Add lines for:
906 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
907 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
908 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
909 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
910 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
911 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
912 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
914 2003-10-20 Andrew Cagney <cagney@redhat.com>
916 * values.c (register_value_being_returned): Update comments. Use
917 "gdbarch_return_value" when available.
918 (using_struct_return): Ditto.
919 (set_return_value): Ditto. Use "gdbarch_return_value" when
920 available.. Print a warning, and not an error, when an unhandled
921 return type is encountered.
922 * infcmd.c: Include "gdb_assert.h".
923 (print_return_value): When gdbarch_return_value_p, and using
924 struct return, assume that the value is not available.
925 * defs.h (return_value_convention): Define.
926 * gdbarch.sh (gdbarch_return_value): New predicate method.
927 * gdbarch.h, gdbarch.c: Re-generate
928 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
930 2003-10-20 Andrew Cagney <cagney@redhat.com>
932 * symtab.c: Replace "struct sec" with "struct bfd_section".
933 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
935 2003-10-19 Michael Chastain <mec@shout.net>
937 * config/djgpp/fnchange.lst: Add lines for:
938 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
939 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
940 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
942 2003-10-19 Mark Kettenis <kettenis@gnu.org>
944 * amd64fbsd-nat.c (fetch_inferior_registers,
945 store_inferior_registers): Remove functions.
946 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
948 2003-10-18 Mark Kettenis <kettenis@gnu.org>
950 Add NetBSD/amd64 native configuration:
951 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
952 * amd64nbsd-tdep.c: New file.
953 * amd64nbsd-nat.c: New file.
954 * amd64bsd-nat.c: New file.
955 * config/i386/nbsd64.mh: New file.
956 * config/i386/nbsd64.mt: New file.
957 * configure.host: Add x86_64-*-netbsd*.
958 * configure.tgt: Add x86_64-*-netbsd*.
959 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
961 * NEWS (New native configurations): Mention NetBSD/amd64.
963 2003-10-17 Michael Chastain <mec@shout.net>
965 * config/djgpp/fnchange.lst: Remove dead lines for:
966 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
967 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
968 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
969 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
970 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
971 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
972 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
973 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
974 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
975 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
976 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
977 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
978 gdb/config/sparc/tm-sparclite.h,
979 gdb/gdbtk/generic/ChangeLog-2001,
980 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
981 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
982 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
983 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
984 gdb/testsuite/gdb.mi/mi0-var-block.exp,
985 gdb/testsuite/gdb.mi/mi0-var-child.exp,
986 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
987 gdb/testsuite/gdb.mi/mi0-var-display.exp,
988 itcl/iwidgets3.0.0/demos/extfileselectionbox,
989 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
990 itcl/iwidgets3.0.0/demos/fileselectionbox,
991 itcl/iwidgets3.0.0/demos/fileselectiondialog,
992 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
993 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
994 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
995 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
996 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
997 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
998 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
999 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1000 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1001 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1002 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1003 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1004 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1005 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1006 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1007 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1008 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1009 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1010 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1011 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1012 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1013 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1014 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1015 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1016 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1017 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1018 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1019 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1020 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1021 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1022 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1023 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1024 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1025 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1026 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1027 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1028 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1029 itcl/iwidgets3.0.0/demos/scrolledframe,
1030 itcl/iwidgets3.0.0/demos/scrolledhtml,
1031 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1032 itcl/iwidgets3.0.0/demos/scrolledtext,
1033 itcl/iwidgets3.0.0/demos/selectionbox,
1034 itcl/iwidgets3.0.0/demos/selectiondialog,
1035 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1036 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1037 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1038 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1039 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1040 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1041 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1042 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1043 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1044 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1045 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1046 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1047 itcl/iwidgets3.0.0/doc/selectionbox.n,
1048 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1049 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1050 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1051 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1052 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1053 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1054 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1055 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1056 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1057 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1058 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1059 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1060 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1061 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1062 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1063 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1064 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1065 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1066 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1067 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1068 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1069 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1070 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1071 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1072 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1073 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1074 itcl/iwidgets3.0.0/tests/selectionbox.test,
1075 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1076 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1077 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1078 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1079 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1080 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1081 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1082 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1083 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1084 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1085 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1086 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1087 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1088 tk/mac/tkMacProjects.sit.hqx.
1090 2003-10-17 Andrew Cagney <cagney@redhat.com>
1092 * target.c (target_section_by_addr): New function.
1093 (do_xfer_memory): Use "target_section_by_addr".
1094 * target.h (target_section_by_addr): Declare.
1096 * target.h (struct target_ops): Add "to_read_partial" and
1097 "to_write_partial", delete "to_query".
1098 (target_read_partial, target_write_partial): Declare.
1099 (target_read, target_write): Declare.
1100 (target_query): Delete macro.
1101 * target.c (target_read_partial): New function.
1102 (target_write_partial, target_read, target_write): New function.
1103 (update_current_target): Delete inheritance of "to_query". Add
1104 comments about "to_read_partial" and "to_write_partial".
1105 (debug_to_partial_read, debug_to_partial_write): New functions.
1106 (debug_to_query): Delete function.
1107 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1108 instead of "to_query".
1109 * remote.c (remote_read_partial): Replace "remote_query".
1110 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1111 (init_remote_async_ops): Ditto.
1112 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1113 "target_read_partial" instead of "target_query".
1114 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1115 Use "target_read_partial" instead of "target_query".
1117 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1119 * frame.h (struct frame_id): Add new field: special_addr.
1120 (frame_id_build_special): New prototype.
1121 * frame.c (frame_id_build_special): New function.
1122 (frame_id_build): Change to call frame_id_build_special().
1123 (frame_id_eq): Change to also test special_addr field.
1124 (frame_id_inner): Update comment.
1126 2003-10-17 Andrew Cagney <cagney@redhat.com>
1128 * target.c (update_current_target): Perform the target cleanup.
1129 Put the target stack beneath the squashed "current_target".
1130 (add_target): Delete disabled call to "cleanup_target".
1131 (cleanup_target): Delete function.
1132 (push_target, unpush_target): Do not call "cleanup_target".
1134 2003-10-17 Andrew Cagney <cagney@redhat.com>
1136 * target.c (target_stack): Change to a static target_ops.
1137 (update_current_target): Walk the "struct target_ops" stack.
1138 (pop_target, do_xfer_memory, target_info): Ditto.
1139 (find_target_beneath): Ditto.
1140 (push_target): Rewrite to use the "struct target_ops" stack.
1141 (unpush_target): Ditto.
1142 * target.h (struct target_stack_item): Delete definition.
1143 (target_stack): Delete declaration.
1144 (struct target_ops): Add field "beneath".
1146 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1148 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1150 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1151 (h8300_examine_prologue): Use h8300_normal_mode flag
1152 (h8300_gdbarch_init): Set architecture info for normal mode
1154 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1156 * remote.c (remote_protocol_vcont): New variable.
1157 (set_remote_protocol_vcont_packet_cmd): New function.
1158 (show_remote_protocol_vcont_packet_cmd): New function.
1159 (init_all_packet_configs): Handle remote_protocol_vcont.
1160 (remote_vcont_probe): New function.
1161 (remote_vcont_resume): New function.
1162 (remote_resume): Use it.
1163 (remote_async_resume): Call remote_resume.
1164 (_initialize_remote): Add verbose-resume packet commands.
1166 2003-10-16 Andrew Cagney <cagney@redhat.com>
1168 * infrun.c (handle_inferior_event): Add comment about
1169 "frame_id_inner" being too weak.
1171 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1173 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1174 second parameter, which is always null. Remove
1175 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1176 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1178 * somsolib.c (som_solib_create_inferior_hook,
1179 som_solib_desire_dynamic_linker_symbols): Update callers.
1180 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1182 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1184 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1185 debug interface, SDI (Scalable Debug Interface).
1186 * NEWS: Mention m32r SDI protocol was supported.
1187 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1188 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1190 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1192 * ia64-linux-tdep.c: Include gdbcore.h.
1193 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1194 (ia64_linux_sigcontext_register_addr): Find the address of the
1195 sigcontext area stored in the sigframe instead of using
1196 a magic offset constant.
1198 2003-10-15 Andrew Cagney <cagney@redhat.com>
1200 * remote.c (remote_search): Delete function.
1201 * target.h (target_search): Delete disabled macro.
1202 (struct target_ops): Delete disabled field "to_search".
1204 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1206 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1207 instead of deprecated_inside_entry_file().
1209 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1211 * sh-tdep.c: Fix copy/paste hangover in comment.
1212 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1214 (sh3e_sh4_extract_return_value): Ditto.
1216 2003-10-13 Richard Henderson <rth@redhat.com>
1218 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1219 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1220 match c_val_print a bit closer.
1222 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1224 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1225 (frv_gdbarch_adjust_breakpoint_address): New function.
1226 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1229 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1231 * breakpoint.h (struct breakpoint): Add new member
1232 ``requested_address''.
1233 * breakpoint.c (breakpoint_adjustment_warning)
1234 (adjust_breakpoint_address): New static functions.
1235 (print_it_typical): Issue warning if breakpoint's address is different
1236 from its requested address.
1237 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1238 (breakpoint_re_set_one): Set breakpoint's
1239 ``requested_address'' field. Set ``address'' field to the
1240 result of calling adjust_breakpoint_address() on the requested
1243 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1245 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1246 * gdbarch.h, gdbarch.c: Regenerate.
1248 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1250 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1253 * i386fbsd-tdep.c: New file.
1254 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1255 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1256 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1258 (_initialize_i386fbsd_tdep): New function.
1259 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1260 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1261 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1262 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1264 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1265 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1266 to initialize TDEP->sc_num_regs.
1267 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1268 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1269 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1270 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1271 FreeBSD ELF OS/ABI's here.
1272 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1273 (i386fbsd-tdep.o): New target.
1274 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1275 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1277 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1278 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1279 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1280 in initialization of TDEP->sc_num_regs.
1282 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1283 (x86_64_init_abi): Initialize regset_from_core_section if
1286 * i386-tdep.c (i386_regset_from_core_section): New function.
1287 (i386_gdbarch_init): Initialize regset_from_core_section if
1289 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1291 * i386-tdep.h (struct regset): Declare opaque.
1293 * gdbarch.sh (regset_from_core_section): New method.
1294 (struct regset): Declare opaque.
1295 * gdbarch.c, gdbarch.h: Regenerated.
1297 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1299 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1300 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1301 Correct test for pc within section.
1303 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1305 * gdbarch.sh: Remove trailing whitepsace from comments.
1307 2003-10-08 Roland McGrath <roland@redhat.com>
1309 * gcore.c (make_mem_sec): Function removed, folded into ...
1310 (gcore_create_callback): ... here. To omit a section, clear its
1311 SEC_LOAD bit rather than zeroing its size.
1312 Omit read-only sections only if they correspond to a known disk file.
1313 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1315 2003-10-10 Michael Snyder <msnyder@redhat.com>
1317 * d10v-tdep.c: Fix typo in comment.
1319 2003-10-10 Andrew Cagney <cagney@redhat.com>
1321 * rs6000-tdep.c (e500_store_return_value): Delete function.
1322 (e500_extract_return_value): Delete function.
1323 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1324 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1325 "ppc_sysv_abi_restore_return_value" where applicable.
1326 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1327 (ppc_sysv_abi_extract_return_value): Declare.
1328 (ppc_sysv_abi_broken_store_return_value): Declare.
1329 (ppc_sysv_abi_broken_extract_return_value): Declare.
1330 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1331 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1333 (do_ppc_sysv_return_value): New function.
1334 (ppc_sysv_abi_extract_return_value): New function.
1335 (ppc_sysv_abi_store_return_value): New function.
1336 (ppc_sysv_abi_broken_extract_return_value): New function.
1337 (ppc_sysv_abi_broken_store_return_value): New function.
1338 (ppc_sysv_abi_use_struct_convention): Call
1339 do_ppc_sysv_return_value.
1341 2003-10-10 J. Brobecker <brobecker@gnat.com>
1343 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1344 to lookup the main function symbol.
1346 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1348 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1350 (sh_push_dummy_call_fpu): Fix argument passing rules.
1351 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1353 (sh3e_sh4_store_return_value): Ditto.
1355 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1357 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1360 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1362 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1363 more readable code. Accomodate passing of bitfields.
1365 2003-10-10 Andrew Cagney <cagney@redhat.com>
1367 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1368 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1369 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1370 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1371 (ppc64_sysv_abi_push_dummy_call): New function.
1372 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1373 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1374 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1376 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1378 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1380 * d10v-tdep.c: Ditto.
1381 * h8300-tdep.c: Ditto.
1382 * remote-e7000.c: Ditto.
1383 * remote-hms.c: Ditto.
1384 * ser-e7kpc.c: Ditto.
1389 * sh64-tdep.c: Ditto.
1392 * config/d10v/d10v.mt: Ditto.
1393 * config/sh/embed.mt: Ditto.
1394 * config/sh/linux.mt: Ditto.
1395 * config/sh/tm-linux.h: Ditto.
1396 * config/sh/tm-sh.h: Ditto.
1397 * config/sh/wince.mt: Ditto.
1399 2003-10-09 Andrew Cagney <cagney@redhat.com>
1401 * ppc-tdep.h (struct type): Declare opaque.
1402 * x86-64-tdep.h (struct regcache): Declare opaque.
1403 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1406 2003-10-09 Andrew Cagney <cagney@redhat.com>
1408 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1409 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1410 (SOFTWARE_SINGLE_STEP_P): Ditto.
1411 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1412 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1413 (SOFTWARE_SINGLE_STEP_P): Ditto.
1414 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1415 software_single_step to rs6000_software_single_step.
1417 2003-10-09 Andrew Cagney <cagney@redhat.com>
1419 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1421 2003-10-09 Michael Snyder <msnyder@redhat.com>
1423 * frame.h: Fix typo in comment.
1424 * dummy-frame.c: Fix typo in comment.
1425 * d10v-tdep.c: Random whitespace/comment tweaks.
1427 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1429 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1430 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1433 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1434 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1437 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1439 * remote-mips.c (mips_initialize): Remove unneeded call to
1440 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1442 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1444 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1447 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1449 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1450 for any lwp we resume.
1451 (running_callback): Add lwps that have pending status events
1452 against them to be considered running.
1454 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1456 * m32r-tdep.c : Include "dis-asm.h".
1457 * Makefile.in (m32r-tdep.o): Update dependencies.
1459 2003-10-06 J. Brobecker <brobecker@gnat.com>
1461 * completer.h (get_gdb_completer_word_break_characters): Delete.
1462 * completer.c: include language.h.
1463 (gdb_completer_word_break_characters): Delete.
1464 (get_gdb_completer_word_break_characters): Delete.
1465 (location_completer): Use the word break characters of the current
1467 (complete_line): Likewise.
1468 (line_completion_function): Likewise.
1469 (skip_quoted_chars): Likewise.
1470 * Makefile.in (completer.o): Add dependency on language.h.
1471 * top.c (init_main): Set the readline word break characters
1472 to GDB's default word break characters.
1474 2003-10-06 J. Brobecker <brobecker@gnat.com>
1476 * language.h (language_defn): new field, la_word_break_characters.
1477 * language.c (unknown_language_defn): Set new field to
1478 default_word_break_characters.
1479 (auto_language_defn): Likewise.
1480 (local_language_defn): Likewise.
1481 * ada-lang.c (ada_language_defn): Likewise.
1482 * c-lang.c (c_language_defn): Likewise.
1483 (cplus_language_defn): Likewise.
1484 (asm_language_defn): Likewise.
1485 (minimal_language_defn): Likewise.
1486 * f-lang.c (f_language_defn): Likewise.
1487 * jv-lang.c (java_language_defn): Likewise.
1488 * m2-lang.c (m2_language_defn): Likewise.
1489 * objc-lang.c (objc_language_defn): Likewise.
1490 * p-lang.c (pascal_language_defn): Likewise.
1491 * scm-lang.c (scm_language_defn): Likewise.
1493 2003-10-06 Andrew Cagney <cagney@redhat.com>
1495 * ppc-sysv-tdep.c: Re-indent.
1497 2003-10-06 J. Brobecker <brobecker@gnat.com>
1499 * language.h (default_word_break_characters): Add prototype.
1500 * language.c (default_word_break_characters): New function.
1502 2003-10-06 Andreas Schwab <schwab@suse.de>
1504 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1507 2003-10-06 Andrew Cagney <cagney@redhat.com>
1509 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1511 (z8k-tdep.o): Delete custom build rule.
1513 2003-10-06 Andrew Cagney <cagney@redhat.com>
1515 * Makefile.in: Update all dependencies.
1517 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1518 No longer list PA as as obsolete candidate. List m32r as
1519 broken instead of obsolete.
1521 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1522 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1523 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1524 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1525 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1526 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1527 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1528 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1529 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1530 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1531 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1532 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1533 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1534 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1535 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1536 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1537 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1538 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1539 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1540 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1541 * config/z8k/z8k.mt: Ditto.
1543 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1544 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1545 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1546 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1547 sparclite were removed.
1548 * configure.host, configure.tgt: Remove corresponding tuples.
1550 * breakpoint.c, breakpoint.h: Remove obsolete code.
1551 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1552 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1553 * stabsread.h, xcoffread.c: Ditto.
1555 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1556 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1557 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1558 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1560 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1562 * f-valprint.c: Reformatting
1564 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1566 * x86-64-tdep.c: Remove duplicate comment.
1568 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1569 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1570 names for return values. This fixes a bug since we looked at %rbx
1573 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1575 * x86-64-tdep.c: Include "regset.h".
1577 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1578 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1580 * i386-tdep.c: Include "regset.h".
1581 (i386_supply_gregset): New function.
1582 (i386_supply_fpregset): New function.
1583 (i386_gdbarch_init): Initialze register set-related members of
1585 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1586 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1588 2003-10-03 Andrew Cagney <cagney@redhat.com>
1590 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1591 set extract_return_value, store_return_value and
1592 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1593 ppc64_sysv_abi_store_return_value and
1594 ppc64_sysv_abi_use_struct_convention.
1595 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1596 (ppc64_sysv_abi_store_return_value): Declare.
1597 (ppc64_sysv_abi_use_struct_convention): Declare.
1598 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1599 (ppc64_sysv_abi_extract_return_value): New function.
1600 (ppc64_sysv_abi_store_return_value): New function.
1601 (ppc64_sysv_abi_use_struct_convention): New function.
1602 (ppc64_sysv_abi_return_value): New function.
1604 2003-10-03 Andrew Cagney <cagney@redhat.com>
1606 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1607 convert a descriptor to a function when it's in the ".opd"
1610 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1612 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1613 reg_size to keep GCC silent.
1615 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1617 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1618 base for DW_EH_PE_textrel encodings.
1619 (read_encoded_value): Add a DW_EH_PE_textrel case.
1620 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1623 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1625 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1627 2003-10-02 Andrew Cagney <cagney@redhat.com>
1629 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1631 * gdbarch.h, gdbarch.c: Re-generate.
1632 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1633 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1634 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1635 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1636 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1637 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1638 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1639 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1640 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1641 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1642 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1643 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1644 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1645 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1646 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1647 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1649 2003-10-02 Jim Blandy <jimb@redhat.com>
1651 * dwarf2read.c (struct die_info): Doc fix.
1653 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1655 * sh-tdep.c: Running thru gdb_indent.sh.
1657 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1659 * sh-tdep.c (sh_justify_value_in_reg): New function.
1660 (sh_stack_allocsize): Ditto.
1661 (flt_argreg_array): New array used for floating point argument
1663 (sh_init_flt_argreg): New function.
1664 (sh_next_flt_argreg): Ditto.
1665 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1666 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1667 Fix argument passing strategy.
1668 (sh_push_dummy_call_nofpu): Ditto.
1670 2003-10-01 Andrew Cagney <cagney@redhat.com>
1672 * value.h (register_value_being_returned): Declare. Replace
1673 "value_being_returned".
1674 * infcall.c (call_function_by_hand): Use
1675 register_value_being_returned.
1676 * infcmd.c (print_return_value): Call
1677 "register_value_being_returned", handle struct return locally.
1678 * values.c (register_value_being_returned): New function. Replace
1679 "value_being_returned".
1681 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1683 * linux-proc.c (linux_do_registers): New function.
1684 (linux_make_note_section): Use linux_do_registers in case of
1685 single threaded inferior programs.
1687 2003-10-01 Andrew Cagney <cagney@redhat.com>
1689 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1690 use STRUCT_ADDR. When not using "struct return convention", pass
1691 "0" to "value_being_returned". Add FIXMEs.
1692 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1693 value_being_returned. Add comments.
1694 * values.c (value_being_returned): Add fixme.
1695 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1696 (hppa_value_returned_from_stack): Add FIXME.
1698 2003-09-30 David Carlton <carlton@kealia.com>
1700 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1701 'has_children' and 'next' by 'child' and 'sibling'.
1702 (read_comp_unit): Rework algorithm, breaking body into
1703 read_die_and_children and read_die_and_siblings.
1704 (read_die_and_children, read_die_and_siblings): New.
1705 (read_full_die): Add 'has_children' argument; set it instead of
1706 the die's 'has_children' field. Minor formatting cleanup.
1707 (free_die_list): Use die->child and die->sibling instead of
1709 (dump_die_list): Ditto.
1710 (sibling_die): Use die->sibling.
1711 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1712 'has_children' and 'next' fields.
1713 (process_die, read_file_scope, read_func_scope)
1714 (read_lexical_block_scope, read_structure_scope)
1715 (read_enumeration, read_array_type, read_common_block)
1716 (read_namespace, read_subroutine_type, dump_die): Ditto.
1718 2003-09-30 Andrew Cagney <cagney@redhat.com>
1720 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1723 2003-09-30 Andrew Cagney <cagney@redhat.com>
1725 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1726 REGISTER_VIRTUAL_SIZE.
1727 * gdbarch.h, gdbarch.c: Regenerate.
1728 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1729 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1730 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1732 2003-09-29 Andrew Cagney <cagney@redhat.com>
1734 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1735 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1736 * gdbarch.h, gdbarch.c: Regenerate.
1737 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1738 * sh64-tdep.c, sparc-tdep.c: Update.
1740 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1741 * remote-vxmips.c (vx_read_register): Ditto.
1742 * remote-vx68.c (vx_read_register): Ditto.
1743 * gnu-nat.c (inf_validate_procs): Ditto.
1745 2003-09-29 J. Brobecker <brobecker@gnat.com>
1747 * infcall.c (call_function_by_hand): Fix build failure
1748 introduced in the previous change to this file.
1750 2003-09-29 Andrew Cagney <cagney@redhat.com>
1752 * NEWS: Mention Objective-C.
1754 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1756 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1757 test if the register has been saved on the stack.
1758 (arm_scan_prologue_cache): When analysing the instruction
1759 "str lr, [sp, #-4]", save the address where lr has been stored.
1761 2003-09-28 Andrew Cagney <cagney@redhat.com>
1763 * frame.c (frame_read_unsigned_register): Delete function.
1764 * frame.h (frame_read_unsigned_register): Delete declaration.
1765 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1766 get_frame_register_unsigned.
1767 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1768 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1769 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1771 * frame.h (frame_read_register): Delete declaration.
1772 * frame.c (frame_read_register): Delete function.
1773 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1774 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1775 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1776 * mips-tdep.c (mips_register_to_value): Ditto.
1777 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1778 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1780 * frame.c (frame_read_signed_register): Delete function.
1781 (frame_read_unsigned_register): Update comments.
1782 * frame.h (frame_read_signed_register): Delete declaration.
1783 * h8300-tdep.c (h8300_print_register): Use
1784 get_frame_register_signed.
1785 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1787 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1788 Rename VALUE_RETURNED_FROM_STACK.
1789 * infcmd.c (print_return_value): Update.
1790 * infcall.c (call_function_by_hand): Update.
1792 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1794 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1795 regcache argument and reverse the order of the other two
1796 arguments. Remove local regcache variable. Determine
1797 architecture from REGCACHE. Update comments.
1798 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1799 reverse the order of the other two arguments. Remove local
1800 regcache variable. Determine architecture from REGCACHE. Update
1802 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1803 prototypes. Update comments.
1804 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1806 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1808 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1809 * i386-interix-nat.c (supply_fpregset): Update.
1810 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1811 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1812 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1813 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1814 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1816 * i386obsd-tdep.c (fetch_core_registers): Update.
1817 * i386v4-nat.c (supply_fpregset): Update.
1818 * x86-64-linux-nat.c (supply_fpregset): Update.
1819 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1821 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1823 * i386-tdep.h: Put opaque declarations in alphabetical
1824 order. Remove spurious whitespace.
1825 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1826 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1827 * i386-tdep.c (MM0_REGNUM): Remove define.
1828 (i386_mmx_regnum_p): Add gdbarch argument.
1829 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1830 Rewrite using new macro definitions for FPU/SSE registers.
1831 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1832 definitions from i387-tdep.h.
1833 (i386_register_name): Update.
1834 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1835 new macro definitions for FPU/SSE registers.
1836 (i386_extract_return_value): Determine whether floating-point
1837 registers are present by examining REGCACHE's architecture.
1838 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1839 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1841 (i386_register_type): Update.
1842 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1843 definitions for FPU registers. Use REGCACHE's architecture to
1844 determine the appropriate register numbers.
1845 (i386_pseudo_register_read, i386_pseudo_register_write,
1846 i386_register_reggroup_p): Update.
1847 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1849 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1850 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1851 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1852 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1853 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1854 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1856 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1857 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1858 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1859 definitions for FPU/SSE registers.
1860 (FXSAVE_MXCSR_ADDR): New define.
1861 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1863 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1864 (I387_ST0_REGNUM): Define.
1866 * regcache.h (get_regcache_arch): New prototype.
1867 * regcache.c (get_regcache_arch): New function.
1869 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1872 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1873 Initialize using ARRAY_SIZE.
1875 2003-09-27 Andrew Cagney <cagney@redhat.com>
1877 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1878 "init_frame_pc_default".
1879 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1880 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1881 * vax-tdep.c (vax_gdbarch_init): Update.
1882 * v850-tdep.c (v850_gdbarch_init): Update.
1883 * sh64-tdep.c (sh64_gdbarch_init): Update.
1884 * s390-tdep.c (s390_gdbarch_init): Update.
1885 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1886 * mcore-tdep.c (mcore_gdbarch_init): Update.
1887 * h8300-tdep.c (h8300_gdbarch_init): Update.
1888 * cris-tdep.c (cris_gdbarch_init): Update.
1889 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1891 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1893 * regset.h: New file.
1894 * Makefile.in (regset_h): Add.
1896 2003-09-25 Andrew Cagney <cagney@redhat.com>
1898 * frame.h (deprecated_frame_saved_regs): Rename
1899 get_frame_saved_regs.
1900 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1901 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1902 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1903 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1904 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1906 2003-09-25 Andrew Cagney <cagney@redhat.com>
1908 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1909 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1911 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1912 arm*-*-* do not use the new frame code.
1914 2003-09-25 David Carlton <carlton@kealia.com>
1916 * c-exp.y: Remove 'register' declarations.
1917 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1919 2003-09-25 David Carlton <carlton@kealia.com>
1921 * c-exp.y: Include cp-support.h. Add qualified_type.
1922 (yylex): Delete nested type hack; add comments.
1923 * cp-namespace.c (cp_lookup_nested_type): New function.
1924 * cp-support.h: Declare cp_lookup_nested_type.
1925 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1926 instead of value_struct_elt_for_reference.
1927 * valops.c: Include cp-support.h.
1928 (value_aggregate_elt): New function.
1929 (value_namespace_elt): Ditto.
1930 (value_struct_elt_for_reference): Make static.
1931 * value.h: Delete declaration of value_struct_elt_for_reference;
1932 add declaration for value_aggregate_elt.
1933 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1936 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1938 * stack.c: Include "reggroups.h".
1939 (frame_info): Only display registers in all_reggroup.
1940 * Makefile.in (stack.o): Update dependencies.
1942 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1944 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1945 "add ip, sp #n" in the prologue.
1946 (arm_scan_prologue): Ditto.
1948 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1950 * MAINTAINERS (write after approval): Add myself.
1952 2003-09-25 Andreas Schwab <schwab@suse.de>
1954 * m68k-tdep.c: Include "dwarf2-frame.h".
1955 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1956 * Makefile.in (m68k-tdep.o): Update dependencies.
1958 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1960 * sh-tdep.c (struct frame_extra_info): Remove.
1961 (struct sh_frame_cache): New structure.
1962 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1963 (GET_TARGET_REG): Ditto but target register.
1964 (GET_PUSHED_REG): Remove.
1965 (IS_MOV_ARG_TO_REG): New macro.
1966 (IS_MOV_ARG_TO_IND_R14): New macro.
1967 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1968 (IS_MOVW_PCREL_TO_REG): New macro.
1969 (IS_MOVL_PCREL_TO_REG): New macro.
1970 (IS_SUB_REG_FROM_SP): New macro.
1971 (IS_ARG_MOV): Remove.
1972 (IS_MOV_TO_R14): Remove.
1973 (IS_RESTORE_FP): New macro.
1974 (IS_RTS): New macro.
1975 (IS_LDS): New macro.
1976 (IS_MOV_FP_SP): New macro.
1977 (IS_ADD_REG_TO_FP): New macro.
1978 (IS_ADD_IMM_FP): New macro.
1979 (sh_skip_prologue_hard_way): Remove.
1980 (sh_saved_pc_after_call): Remove.
1981 (sh_frame_chain): Remove.
1982 (sh_find_callers_reg): Remove.
1983 (sh_nofp_frame_init_saved_regs): Remove.
1984 (sh_fp_frame_init_saved_regs): Remove.
1985 (sh_init_extra_frame_info): Remove.
1986 (sh_analyze_prologue): New function.
1987 (sh_skip_prologue): Remove deprecated code. Rely on new function
1988 sh_analyze_prologue when after_prologue fails.
1989 (sh_frame_saved_pc): Remove.
1990 (sh_alloc_frame_cache): New function.
1991 (sh_frame_cache): Ditto.
1992 (sh_frame_prev_register): Ditto.
1993 (sh_frame_this_id): Ditto.
1994 (sh_frame_unwind): New structure defining the heuristic frame
1996 (sh_frame_sniffer): New function.
1997 (sh_unwind_sp): Ditto.
1998 (sh_unwind_pc): Ditto.
1999 (sh_unwind_dummy_id): Ditto.
2000 (sh_frame_base_address): Ditto.
2001 (sh_frame_base): New structure defining new frame base code.
2002 (sh_in_function_epilogue_p): New function.
2003 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2004 code and to call all new code instead. Initialize dwarf2 and
2005 heuristic frame sniffer.
2007 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2009 * parser-defs.h (struct exp_descriptor): New definition, containing
2010 language-specific info for printing, prefixifying, dumping, and
2011 evaluating expressions.
2012 (exp_descriptor_standard): Declare new variable.
2013 (print_subexp): Make global and declare here (from expprint.c).
2014 (dump_subexp): Ditto.
2015 (dump_subexp_body_standard): Declare.
2016 (operator_length_standard): Declare.
2017 (op_name_standard): Declare.
2018 (print_subexp): Declare.
2019 (print_subexp_standard): Declare.
2021 * language.h (struct language_defn): Add la_exp_desc field to hold
2022 pointer to table for language-specific operators.
2023 Remove evaluate_exp field, which is now in struct exp_descriptor.
2025 * parse.c (operator_length): Move most code to new
2026 operator_length_standard function. Use language-specific information.
2027 (operator_length_standard): New function taking most code from
2029 (exp_descriptor_standard): New constant.
2031 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2032 and OP_EXTENDED_LAST.
2034 * expprint.c (print_subexp): Use language-specific print_subexp.
2035 Make global; remove static declaration.
2036 Move most code to print_subexp_standard.
2037 (print_subexp_standard): New function, containing code formerly in
2039 (op_name): Add expression to argument signature.
2040 Use langauge-specific op_name.
2041 Move most code to op_name_standard.
2042 (op_name_standard): New function, containing code formerly in op_name.
2043 (dump_subexp): Use new version of op_name function.
2044 Use language-specific dump_subexp_body, and move most existing code to
2045 dump_subexp_body_standard.
2046 (dump_raw_expression): Use new op_name interface.
2047 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2048 (dump_subexp_body_standard): New function, containing code formerly
2049 in dump_subexp_body.
2051 * language.c (unknown_language): Add default la_exp_desc field and
2052 remove evaluate_exp field.
2053 (auto_language): Ditto.
2054 (local_language): Ditto.
2055 * f-lang.c (f_language_defn): Ditto.
2056 * c-lang.c (c_language_defn): Ditto.
2057 (cplus_language_defn): Ditto.
2058 (asm_language_defn): Ditto.
2059 (minimal_language_defn): Ditto.
2060 * p-lang.c (pascal_language_defn): Ditto.
2061 * m2-lang.c (m2_language_defn): Ditto.
2062 * objc-lang.c (objc_language_defn): Ditto.
2064 * jv-lang.c (exp_descriptor_java): New variable, containing
2065 Java-specific expression evaluator.
2066 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2068 * scm-lang.c (exp_descriptor_scm): New variable, containing
2069 Scheme-specific expression evaluator.
2070 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2072 * objc-lang.c (print_object_command): Take evaluate_exp from the
2075 * Makefile.in (eval.o): Add dependency on parser-defs.h.
2077 * eval.c: Include parser-defs.h for the full declaration of
2079 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2081 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2083 * parser-defs.h (operator_length): Declare.
2085 * parse.c (length_of_subexp): Use operator_length to get operator
2086 lengths and arities for operators.
2087 Move most code to new operator_length function.
2088 (operator_length): New function absorbing most code from
2090 (prefixify_subexp): Remove large case and use operator_length instead.
2091 (parse_exp_1): Use renamings:
2092 dump_prefix_expression => dump_raw_expression and
2093 dump_postfix_expression => dump_prefix_expression.
2095 * expression.h (dump_prefix_expression): Rename to ...
2096 (dump_raw_expression): New name.
2097 (dump_postfix_expression): Rename to ...
2098 (dump_prefix_expression): New name.
2100 * expprint.c (dump_subexp): Make global. Add comment.
2101 Move most existing code to dump_subexp_body.
2102 (dump_subexp_body): New function.
2103 (dump_prefix_expression): Rename to dump_raw_expression.
2104 Remove attempt to print the expression via print_expression: it can't
2105 work before the expression is prefixified.
2106 (dump_raw_expression): Renamed from dump_prefix_expression.
2107 (dump_postfix_expression): Rename to dump_prefix_expression, since
2108 that's what it does.
2109 Remove 'note' parameter, since this routine must be used on
2110 prefixified expression.
2111 (dump_prefix_expression): Renamed from dump_postfix_expression.
2113 2003-09-22 Jim Blandy <jimb@redhat.com>
2115 * dwarf2read.c (read_array_type): When building the type for an
2116 array of unspecified length, make sure to choose the upper bound
2117 so that the array's total length comes out to be zero --- that's
2118 how we represent such arrays.
2120 2003-09-22 Michael Chastain <mec@shout.net>
2122 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2124 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2126 * top.c (quit_force): Fix indirect call to quit_target so
2127 a struct qt_args pointer is passed.
2129 2003-09-22 Andrew Cagney <cagney@redhat.com>
2131 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2132 * arch-utils.c (init_frame_pc_noop): Delete function.
2133 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2135 * mips-tdep.c (mips_gdbarch_init): Ditto.
2136 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2137 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2139 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2140 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2142 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2144 2003-09-22 Anthony Green <green@redhat.com>
2146 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2149 2003-09-20 Andrew Cagney <cagney@redhat.com>
2151 * breakpoint.c: Eliminate ARGSUSED.
2152 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2153 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2154 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2155 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2156 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2157 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2158 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2159 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2160 * wince.c, remote-vx.c: Ditto.
2162 * cli/cli-script.c: Remove "register" attributes.
2163 * config/pa/tm-hppa.h: Ditto.
2164 * cli/cli-decode.c: Ditto.
2165 * cli/cli-cmds.c: Ditto.
2167 2003-09-19 Andrew Cagney <cagney@redhat.com>
2169 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2170 DEPRECATED_NPC_REGNUM.
2171 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2173 2003-09-19 Christopher Faylor <cgf@redhat.com>
2175 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2177 2003-09-19 Jim Blandy <jimb@redhat.com>
2179 * macrotab.c (macro_include): Use the correct comparison to find
2180 the appropriate place for this inclusion in the list.
2182 2003-09-19 Andrew Cagney <cagney@redhat.com>
2184 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2185 (DEPRECATED_HPUX_TEXT_END): Define.
2186 (deprecated_hpux_text_end): Declare.
2187 (struct target_ops): Declare opaque.
2188 * hppah-nat.c (text_end): Make static.
2189 (deprecated_hpux_text_end): New function.
2190 * exec.c (text_end): Delete global variable.
2191 (NEED_TEXT_START_END): Do not define.
2192 (exec_file_attach): Replace code computing "text_end" code with
2193 call to DEPRECATED_HPUX_TEXT_END.
2195 2003-09-19 Andrew Cagney <cagney@redhat.com>
2197 * utils.c (align_up, align_down): New functions.
2198 * defs.h (align_up, align_down): Declare.
2199 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2200 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2202 (round_up, round_down): Delete functions.
2203 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2205 (ROUND_DOWN, ROUND_UP): Delete macros.
2206 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2207 * h8300-tdep.c: Replace "round_up" and "round_down" with
2208 "align_up" and "align_down".
2209 (round_up, round_down): Delete macros.
2210 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2212 (ROUND_UP, ROUND_DOWN): Delete macros.
2214 2003-09-18 J. Brobecker <brobecker@gnat.com>
2216 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2217 hard-coded constant. Use the proper machine name instead.
2219 2003-09-17 Andrew Cagney <cagney@redhat.com>
2221 * sparc-tdep.c (legacy_register_name): Delete function.
2222 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2223 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2224 * infcmd.c (gdb_register_name): Delete variable.
2225 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2226 REGISTER_NAME and "tm.h".
2227 * gdbarch.h, gdbarch.c: Regenerate.
2228 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2229 REGISTER_NAMES in comments.
2230 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2231 * m68klinux-nat.c (regmap): Ditto.
2233 2003-09-17 Jim Blandy <jimb@redhat.com>
2235 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2237 2003-09-17 Andrew Cagney <cagney@redhat.com>
2239 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2240 (ppcnbsd_init_abi): Set "use_struct_convention" to
2241 "ppcnbsd_use_struct_convention".
2243 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2245 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2246 * gdbarch.h, gdbarch.c: Regenerate.
2247 (stabs_argument_has_addr): New architecture method.
2248 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2249 * arch-utils.c: Include "buildsym.h".
2250 (default_stabs_argument_has_addr): New function.
2251 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2252 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2254 2003-09-17 Andrew Cagney <cagney@redhat.com>
2256 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2257 * gdbarch.h, gdbarch.c: Regenerate.
2258 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2259 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2260 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2261 * sparcnbsd-tdep.c: Update.
2263 2003-09-17 Andrew Cagney <cagney@redhat.com>
2265 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2266 * gdbarch.h, gdbarch.c: Regenerate.
2267 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2268 * d10v-tdep.c, frame.c: Update.
2269 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2270 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2271 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2272 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2273 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2274 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2275 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2276 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2277 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2278 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2279 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2280 * config/pa/nm-hppah.h: Update.
2282 2003-09-16 Andrew Cagney <cagney@redhat.com>
2284 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2285 "use_struct_convention" to "ppc_linux_use_struct_convention".
2286 (ppc_linux_use_struct_convention): New function.
2287 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2288 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2289 "rs6000_use_struct_convention".
2290 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2292 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2295 2003-09-16 Andrew Cagney <cagney@redhat.com>
2297 * buildsym.c: Remove more occurances of "register".
2298 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2299 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2300 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2301 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2302 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2303 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2304 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2305 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2307 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2309 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2310 numbers to enumeration values.
2311 * sh-tdep.c: Accomodate above change.
2312 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2313 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2314 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2315 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2316 (IS_FPUSH): Rename from IS_FMOV.
2317 (sh_extract_struct_value_address): Remove useless comment.
2318 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2319 instead of own local values.
2320 (sh_dump_tdep): Remove.
2321 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2322 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2324 2003-09-15 Andrew Cagney <cagney@redhat.com>
2326 * doublest.c (convert_floatformat_to_doublest): No longer need to
2327 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2329 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2331 * values.c (unpack_double): Call floatformat_is_valid.
2333 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2335 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2336 ps_strings into a long.
2338 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2339 _initialize_am64fbsd_nat.
2341 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2343 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2344 associated with DW_AT_ranges attribute is out of bounds.
2346 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2348 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2350 2003-09-14 Michael Chastain <mec@shout.net>
2352 * config/m68k/nm-apollo68v.h: Delete.
2353 * config/m68k/xm-apollo68v.h: Delete.
2355 2003-09-14 Andrew Cagney <cagney@redhat.com>
2357 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2358 * dcache.c: Update copyrights and descriptions.
2359 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2361 2003-09-14 Andrew Cagney <cagney@redhat.com>
2363 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2364 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2366 2003-09-14 Andrew Cagney <cagney@redhat.com>
2368 * alpha-nat.c: Remove some occurances of "register".
2369 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2370 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2371 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2372 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2373 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2374 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2375 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2376 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2377 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2378 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2379 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2380 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2381 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2382 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2383 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2384 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2385 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2386 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2387 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2388 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2389 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2390 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2392 2003-09-13 Andrew Cagney <cagney@redhat.com>
2394 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2395 * ppc-tdep.h (struct regcache): Declare opaque.
2396 * objfiles.h (struct objfile_data): Declare opaque.
2397 * cp-support.h (struct objfile): Declare opaque.
2398 * linux-nat.h (target_waitstatus): Declare opaque.
2400 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2402 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2403 (stabs_argument_has_addr): New architecture method.
2404 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2405 * arch-utils.c: Include "buildsym.h".
2406 (default_stabs_argument_has_addr): New function.
2407 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2408 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2410 * cris-tdep.c (cris_gdbarch_init): Set
2411 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2412 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2413 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2414 * mips-tdep.c (mips_gdbarch_init): Likewise.
2415 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2416 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2418 2003-09-13 Andrew Cagney <cagney@redhat.com>
2420 * values.c (using_struct_return): Delete "function" and "funcaddr"
2422 * value.h (using_struct_return): Update declaration.
2423 * infcmd.c (finish_command_continuation): Update.
2424 (finish_command): Update.
2425 * infcall.c (call_function_by_hand): Update.
2426 * eval.c (evaluate_subexp_standard): Update.
2428 2003-09-13 Christopher Faylor <cgf@redhat.com>
2430 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2431 SSE registers since gdb will not operate correctly without this.
2432 Restore include file ordering munged in previous change.
2433 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2435 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2437 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2438 REG_STRUCT_HAS_ADDR.
2439 * gdbarch.c, gdbarch.h: Updated.
2440 * infcall.c (call_function_by_hand): Update.
2441 * stabsread.c (define_symbol): Updated.
2443 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2445 2003-09-12 Christopher Faylor <cgf@redhat.com>
2447 * win32-nat.c: Reorganize so that defines used by target headers are
2448 actually defined by the system headers.
2449 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2450 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2452 2003-09-12 Jim Blandy <jimb@redhat.com>
2454 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2455 the file has no .data, .bss, or .rodata sections. Instead wait
2456 until we see a variable alleged to live in one of those sections.
2458 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2459 .bss section, presume that any variables we find live in the
2462 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2463 offsets for global and static variables.
2465 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2466 symbol types are, by definition, in the .data section, so it is
2467 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2468 If there is no .data section, there should be no N_DATA or N_DATA
2471 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2473 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2474 (amd64fbsd_sigcontext_addr): Rewrite.
2475 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2476 with correct values.
2477 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2478 (amd64fbsd_init_abi): Fix typo.
2480 2003-09-12 Andrew Cagney <cagney@redhat.com>
2482 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2483 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2485 2003-09-12 Andrew Cagney <cagney@redhat.com>
2487 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2488 "entry_file_highpc". Update comments.
2489 * defs.h (deprecated_inside_entry_file): Rename
2490 "inside_entry_file".
2491 * blockframe.c (deprecated_inside_entry_file): Rename
2492 "inside_entry_file".
2493 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2494 * vax-tdep.c (vax_frame_chain): Update.
2495 * sh64-tdep.c (sh64_frame_chain): Update.
2496 * sh-tdep.c (sh_frame_chain): Update.
2497 * rs6000-tdep.c (rs6000_frame_chain): Update.
2498 * ns32k-tdep.c (ns32k_frame_chain): Update.
2499 * mips-tdep.c (mips_frame_chain): Update.
2500 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2501 * m32r-tdep.c (m32r_frame_this_id): Update.
2502 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2503 * frv-tdep.c (frv_frame_this_id): Update.
2504 * d10v-tdep.c (d10v_frame_this_id): Update.
2505 * cris-tdep.c (cris_frame_chain): Update.
2506 * blockframe.c (legacy_frame_chain_valid): Update.
2507 * avr-tdep.c (avr_frame_this_id): Update.
2508 * arm-tdep.c (arm_prologue_this_id): Update.
2509 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2510 * objfiles.c (objfile_relocate): Update.
2511 * mipsread.c (mipscoff_symfile_read): Update.
2512 (mipscoff_symfile_read): Update.
2513 * mdebugread.c (parse_partial_symbols): Update.
2514 * dwarfread.c (read_file_scope): Update.
2515 * dwarf2read.c (read_file_scope): Update.
2516 * dbxread.c (read_dbx_symtab): Update.
2517 (read_dbx_symtab): Update.
2518 * coffread.c (complete_symtab): Update.
2520 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2522 * top.c (quit_target): New static helper function.
2523 (quit_force): Moved code to quit_target(). Call quit_target()
2524 via catch_errors() to catch errors during quit.
2526 2003-09-11 David Carlton <carlton@kealia.com>
2528 * buildsym.c (finish_block): Use allocate_block to allocate the
2530 * mdebugread.c (new_block): Add FIXME.
2532 2003-09-11 David Carlton <carlton@kealia.com>
2534 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2535 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2536 (recursive_dump_type): Ditto.
2537 * printcmd.c (print_formatted): Ditto.
2538 * typeprint.c (print_type_scalar): Ditto.
2539 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2540 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2541 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2542 maint_cplus_cmd_list.
2543 * cp-support.c: Make maint_cplus_cmd_list extern.
2544 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2546 (lookup_symbol_file): Look in possible namespace blocks when
2548 (initialize_namespace_symtab): New.
2549 (get_possible_namespace_block, free_namespace_block)
2550 (check_possible_namespace_symbols)
2551 (check_possible_namespace_symbols_loop)
2552 (check_one_possible_namespace_symbol)
2553 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2554 (_initialize_cp_namespace): Ditto.
2555 * block.h: Declare allocate_block.
2556 * block.c (allocate_block): New.
2557 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2559 * symfile.h: Update declaration of add_psymbol_to_list.
2560 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2562 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2563 scan_partial_symbols_call.
2564 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2566 (add_partial_symbol): If necessary, scan mangled names for names
2568 (add_partial_namespace): Add NAMESPACE argument; generate partial
2569 symbols associated to namespaces.
2570 (add_partial_enumeration): Add NAMESPACE argument.
2571 (new_symbol): Allow namespace syms.
2572 (read_namespace): Generate namespace syms.
2573 * objfiles.h: Add opaque declaration of struct symtab.
2574 (struct objfile): Add cp_namespace_symtab member.
2575 * objfiles.c (allocate_objfile): Set
2576 objfile->cp_namespace_symtab.
2577 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2578 dictionary_h, command_h.
2580 2003-09-11 Andrew Cagney <cagney@redhat.com>
2582 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2583 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2584 near the function's end.
2585 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2586 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2587 regcache_raw_write_signed to set SP_REGNUM.
2589 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2591 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2592 orig_addrs is set up properly.
2594 2003-09-11 Andrew Cagney <cagney@redhat.com>
2596 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2597 * gdbarch.h, gdbarch.c: Re-generate.
2598 * infcall.c (call_function_by_hand): Update.
2599 * hppa-tdep.c (hppa_push_arguments): Update.
2600 * ada-lang.c (place_on_stack): Update.
2601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2602 * sparc-tdep.c (sparc_gdbarch_init): Update.
2603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2604 * hppa-tdep.c (hppa_gdbarch_init): Update.
2605 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2608 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2610 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2611 register do need a frame.
2613 2003-09-11 Andrew Cagney <cagney@redhat.com>
2615 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2616 buildable since GDB 5.0.
2617 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2618 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2619 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2620 * irix4-nat.c: Delete file.
2621 * config/mips/irix4.mh: Delete file.
2622 * config/mips/irix3.mh: Delete file.
2623 * config/mips/irix3.mt: Delete file.
2624 * config/mips/tm-irix3.h: Delete file.
2625 * config/mips/nm-irix3.h: Delete file.
2626 * config/mips/xm-irix3.h: Delete file.
2627 * config/mips/nm-irix4.h: Delete file.
2628 * config/mips/xm-irix4.h: Delete file.
2629 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2631 2003-09-10 J. Brobecker <brobecker@gnat.com>
2633 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2634 * Makefile.in (hppa-tdep.o): Update dependencies.
2636 2003-09-10 James E Wilson <wilson@specifixinc.com>
2638 * MAINTAINERS: Change my e-mail address. Move to paper trail
2641 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2643 * MAINTAINERS (frv): New ISA entry.
2645 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2647 * frv-tdep.c (dis-asm.h): Include.
2648 * Makefile.in (frv-tdep.o): Update dependencies.
2650 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2652 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2653 Fix typo for high range of floating registers.
2655 2003-09-09 David Carlton <carlton@kealia.com>
2657 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2658 highpc initialization here out of scan_partial_symbols.
2659 (scan_partial_symbols): Restructure into a recursive version,
2660 calling add_partial_namespace and add_partial_enumeration when
2662 (add_partial_namespace): New.
2663 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2665 2003-09-09 Andrew Cagney <cagney@redhat.com>
2667 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2668 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2669 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2670 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2672 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2673 (rs6000_push_dummy_call): Set the "TOC" register.
2675 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2676 methods "max_register_raw_size", "max_register_virtual_size" or
2677 "register_virtual_size".
2679 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2681 * MAINTAINERS: Update my e-mail address.
2683 2003-09-09 Andrew Cagney <cagney@redhat.com>
2685 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2686 (rs6000_push_dummy_call): Store the struct return address.
2687 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2689 2003-09-09 Andrew Cagney <cagney@redhat.com>
2691 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2692 "ppc_sysv_abi_push_arguments".
2693 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2694 "ppc_sysv_abi_push_arguments".
2695 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2696 instead of "push_arguments".
2697 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2699 2003-09-09 Andrew Cagney <cagney@redhat.com>
2701 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2702 instead of CALL_DUMMY_ADDRESS.
2704 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2706 * p-lang.c: Eliminate "register".
2708 * expprint.c: Ditto.
2711 * language.c: Ditto.
2714 * scm-lang.c: Ditto.
2715 * objc-lang.c: Ditto.
2717 2003-09-09 Nick Clifton <nickc@redhat.com>
2719 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2721 2003-09-04 Andrew Cagney <cagney@redhat.com>
2723 * avr-tdep.c: Include "dis-asm.h".
2724 * cris-tdep.c: Include "dis-asm.h".
2725 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2726 instead of corresponding typedef.
2727 * h8300-tdep.c: Include "dis-asm.h".
2728 * ia64-tdep.c: Include "dis-asm.h".
2729 * i386-tdep.c: Include "dis-asm.h".
2730 (i386_print_insn): Use "struct disassemble_info" instead of
2731 corresponding typedef.
2732 * m68k-tdep.c: Include "dis-asm.h".
2733 * mcore-tdep.c: Include "dis-asm.h".
2734 * mips-tdep.c: Include "dis-asm.h".
2735 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2736 instead of corresponding typedef.
2737 * ns32k-tdep.c: Include "dis-asm.h".
2738 * s390-tdep.c: Include "dis-asm.h".
2739 * sparc-tdep.c: Include "dis-asm.h".
2740 * vax-tdep.c: Include "dis-asm.h".
2741 * v850-tdep.c: Include "dis-asm.h".
2742 * mn10300-tdep.c: Include "dis-asm.h".
2743 * rs6000-tdep.c: Include "dis-asm.h".
2744 * xstormy16-tdep.c: Include "dis-asm.h".
2745 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2746 print_insn_xstormy16.
2747 * Makefile.in (v850-tdep.o): Update dependencies.
2748 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2749 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2750 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2751 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2752 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2753 (gdbarch_h): Remove $(dis_asm_h).
2754 * disasm.c: Include "dis-asm.h".
2755 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2756 corresponding typedef.
2757 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2758 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2759 * gdbarch.sh: Do not include "dis-asm.h".
2760 (struct disassemble_info): Declare opaque.
2761 (TARGET_PRINT_INSN): Update declaration.
2762 * gdbarch.h, gdbarch.c: Re-generate.
2764 2003-09-08 Andrew Cagney <cagney@redhat.com>
2766 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2767 CALL_DUMMY_ADDRESS, change to a predicate.
2768 * gdbarch.h, gdbarch.c: Re-generate.
2769 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2770 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2771 * infcall.c (call_function_by_hand): Ditto.
2772 * sparc-tdep.c (sparc_push_return_address): Ditto.
2773 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2774 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2775 CALL_DUMMY_ADDRESS with entry_point_address.
2776 * v850-tdep.c (v850_push_return_address): Ditto.
2777 * s390-tdep.c (s390_push_return_address): Ditto.
2778 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2779 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2780 * mcore-tdep.c (mcore_push_return_address): Ditto.
2781 * cris-tdep.c (cris_push_return_address): Ditto.
2782 * arm-tdep.c (arm_push_return_address): Ditto.
2784 2003-09-08 Andrew Cagney <cagney@redhat.com>
2786 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2787 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2788 and REG_UNMODIFIED to REG_SAME_VALUE.
2789 (execute_cfa_program): Update.
2790 (dwarf2_frame_cache): Update. Initialize table to
2791 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2793 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2795 2003-09-08 Andrew Cagney <cagney@redhat.com>
2797 * gnu-nat.c: Remove "inline" function attribute.
2798 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2800 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2802 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2805 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2807 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2808 (frame_extra_info): Rename this struct to frv_unwind_cache.
2809 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2810 Add fields ``prev_sp'' and ``base''.
2811 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2812 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2813 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2815 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2816 Revise all callers. Fill in the unwind cache argument and make
2817 other adjustments to account for new frame mechanisms.
2818 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2819 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2820 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2821 (frv_frame_unwind, frv_frame_base): New structs.
2822 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2823 additional arguments expected by this method and adjust function
2825 (frv_gdbarch_init): Remove calls to the following functions:
2826 set_gdbarch_deprecated_init_frame_pc(),
2827 set_gdbarch_deprecated_saved_pc_after_call(),
2828 set_gdbarch_deprecated_frame_chain(),
2829 set_gdbarch_deprecated_frame_saved_pc(),
2830 set_gdbarch_deprecated_frame_init_saved_regs(),
2831 set_gdbarch_deprecated_push_arguments(),
2832 set_gdbarch_deprecated_push_return_address(),
2833 set_gdbarch_deprecated_pop_frame(),
2834 set_gdbarch_deprecated_call_dummy_words(),
2835 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2836 set_gdbarch_deprecated_init_extra_frame_info(),
2837 set_gdbarch_deprecated_dummy_write_sp(), and
2838 set_gdbarch_deprecated_pc_in_call_dummy().
2839 Add calls to the following functions:
2840 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2841 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2842 frame_base_set_default().
2843 * Makefile.in (frv-tdep.o): Update dependencies.
2845 2003-09-09 Mark Kettenis <kettenis@gnu.org>
2847 * dwarf2-frame.c (read_encoded_value): Add support for
2848 DW_EH_PE_aligned encoding.
2850 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2852 * infrun.c (normal_stop): Don't print a message if the inferior
2855 2003-09-08 Jim Blandy <jimb@redhat.com>
2857 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2858 * dbxread.c: #include "gdb_assert.h".
2859 (read_dbx_symtab): If the objfile has no .data section, use the
2860 section index for the .bss section instead.
2862 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2864 * frame.c (deprecated_safe_get_selected_frame): New function.
2865 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2866 * findvar.c (read_var_value): Call it.
2868 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2870 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2871 (sh64-tdep.o): Add dependencies.
2872 * configure.tgt: Add FIXME to sh-*-linux*.
2873 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2874 (sh_gdbarch_init): Always set correct sh_show_regs function
2875 pointer. Call sh64_gdbarch_init() if machine type is sh5.
2876 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2877 * sh64-tdep.c: New file, containing all sh64 related code from
2879 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2880 * config/sh/linux.mt (TDEPFILES): Ditto.
2881 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2882 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2883 * config/sh/wince.mt (TDEPFILES): Ditto.
2885 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2887 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2888 (stop_wait_callback): Handle !lp->signalled also.
2889 (lin_lwp_has_pending, flush_callback): New functions.
2890 (lin_lwp_wait): Call flush_callback.
2891 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2892 (linux_proc_pending_signals): New function.
2893 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2895 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2897 From Nick Kelsey <nickk@ubicom.com>:
2898 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2899 when the stop PC is at the beginning of a function also.
2901 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2903 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2904 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2906 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2908 * sol-thread.c: Include "gdb_string.h".
2910 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2912 * gcore.c: Reorder include files in alphabetical order. Include
2913 "gdb_assert.h". Various coding style fixes.
2914 (derive_stack_segment, derive_heap_segment): Replace check for
2915 non-null BOTTOM and TOP with gdb_assert.
2916 (derive_heap_segment): Replace check for successful creation of
2917 ZERO with gdb_assert.
2918 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2920 2003-09-04 Andrew Cagney <cagney@redhat.com>
2922 * thread-db.c (verbose_dlsym): New function.
2923 (thread_db_load): Use verbose_dlsym
2924 (thread_db_new_objfile): Print that libthread_db was loaded, and
2925 that thread debugging was enabled.
2927 2003-09-04 Andrew Cagney <cagney@redhat.com>
2929 * configure.tgt: Add "mips64*-*-*" target. Delete
2930 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2931 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2932 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2933 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2934 mips*-sony-*, and mips64*-*-elf* targets.
2935 * config/mips/embedl.mt: Delete file.
2936 * config/mips/embedl64.mt: Delete file.
2937 * config/mips/mips.mt: Delete file.
2938 * config/mips/mips64.mt: Delete file.
2939 * config/mips/tm-embed.h: Delete file.
2940 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2941 * config/mips/embed64.mt: Delete out-of-date comment.
2943 2003-09-04 Andrew Cagney <cagney@redhat.com>
2945 * hppa-tdep.c (hppa_gdbarch_init): Set
2946 "have_nonsteppable_watchpoint".
2947 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2948 * mips-tdep.c (mips_dump_tdep): Do not print
2949 HAVE_NONSTEPPABLE_WATCHPOINT.
2950 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2951 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2952 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2953 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2955 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2957 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2958 unused code. Add comment.
2960 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2962 * breakpoint.c (watchpoint_check): Check for pc being in an
2963 epilogue if watchpoint frame couldn't be found.
2965 2003-09-04 Andrew Cagney <cagney@redhat.com>
2967 * Makefile.in: Re-generate all dependencies.
2969 2003-09-03 Andrew Cagney <cagney@redhat.com>
2971 * arch-utils.h (legacy_print_insn): Delete declaration.
2972 * arch-utils.c (legacy_print_insn): Delete function.
2973 * disasm.c (deprecated_tm_print_insn_info): Delete.
2974 (_initialize_disasm): Delete function, contained code initializing
2975 deprecated_tm_print_insn_info.
2976 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2977 (deprecated_tm_print_insn_info): Delete.
2978 (TARGET_PRINT_INSN): Do not provide a default.
2979 * gdbarch.h, gdbarch.c: Re-generate.
2981 2003-09-03 Andrew Cagney <cagney@redhat.com>
2983 * disasm.c (fprintf_disasm): New function.
2984 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2985 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2986 reverts 2003-08-14 change.
2987 (_initialize_disasm): Call "init_disassemble_info", instead of
2988 INIT_DISASSEMBLE_INFO_NO_ARCH.
2990 2003-09-03 Michael Snyder <msnyder@redhat.com>
2992 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2994 2003-09-03 Andrew Cagney <cagney@redhat.com>
2996 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2997 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2998 * symfile.c (syms_from_objfile): Update.
2999 (reread_symbols): `Update
3000 * exec.c (exec_file_attach): Update.
3001 (exec_file_attach): Update.
3002 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3004 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3006 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3008 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3010 (arm_get_cache): Delete macro.
3011 (struct arm_prologue_cache): Update comments. Make saved_regs into
3012 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3014 (thumb_scan_prologue): Update for cache changes. Don't call
3015 DEPRECATED_PC_IN_CALL_DUMMY.
3016 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3017 argument and use it in desperation search for our prologue. Do not
3018 search past the specified PC.
3019 (arm_make_prologue_cache): Simplify.
3021 (arm_prologue_this_id, arm_prologue_prev_register)
3022 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3023 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3024 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3025 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3026 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3028 (arm_frame_chain_valid, arm_find_callers_reg)
3029 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3030 (arm_pop_frame): Delete obsolete methods.
3031 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3033 (arm_gdbarch_init): Update for new frame methods. Register prologue
3034 and sigtramp unwinders. Set the default frame base method.
3036 * Makefile.in (arm-tdep.o): Update dependencies.
3037 * varobj.c (find_frame_addr_in_frame_chain): Call
3038 get_frame_base_address.
3039 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3041 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3043 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3044 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3045 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3046 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3047 Take NEXT_FRAME and CACHE arguments. Call
3048 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3049 Set unwound_pc in CACHE instead of modifying the frame argument.
3050 Don't bother checking the frame type when looking for sigtramp
3052 (arm_make_prologue_cache, arm_frame_chain)
3053 (arm_init_extra_frame_info): New functions.
3055 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3057 * arm-tdep.c (arm_get_cache): Define.
3058 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3059 unwound_sp, unwound_pc, and saved_regs.
3060 (thumb_scan_prologue): Take a cache instead of the frame.
3061 (arm_scan_prologue): Likewise.
3062 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3063 instead of a temporary frame.
3064 (arm_init_extra_frame_info): Allocate and use a cache.
3065 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3067 2003-09-03 Andrew Cagney <cagney@redhat.com>
3069 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3070 * config/mips/wince.mt (TM_CLIBS): Ditto.
3071 * config/sh/wince.mt (TM_CLIBS): Ditto.
3072 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3073 * config/sparc/sp64.mt (CC): Delete.
3075 2003-09-03 Andrew Cagney <cagney@redhat.com>
3077 * defs.h: Do not include "arch-utils.h".
3078 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3079 GDB_MULTI_ARCH_PURE.
3080 * configure.in (GDB_MULTI_ARCH): Do not define.
3081 * configure, config.in: Regenerate.
3082 * configure.tgt: Do not set variable "gdb_multi_arch".
3083 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3084 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3085 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3086 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3087 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3088 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3089 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3090 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3091 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3092 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3093 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3094 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3095 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3096 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3097 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3098 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3099 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3100 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3102 2003-08-30 Michael Chastain <mec@shout.net>
3104 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3105 * config/m68k/nm-hp300hpux.h: Delete.
3106 * config/m68k/tm-hp300hpux.h: Delete.
3107 * config/m68k/xm-hp300hpux.h: Delete.
3108 * config/m68k/xm-hp300bsd.h: Delete.
3109 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3110 tm-hp300hpux.h, xm-hp300hpux.h.
3111 * somsolib.c: Remove comment about hp300 shared libraries.
3113 2003-08-31 Mark Kettenis <kettenis@gnu.org>
3115 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3116 Only define PTRACE_GET_THREAD_AREA is not already defined.
3117 Various style fixes in code and comments and some additional
3118 spelling fixes in comments. Move after functions dealing with
3120 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3123 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3124 frame_unwind_register_unsigned instead of
3125 frame_unwind_unsigned_register.
3127 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3129 * configure.in: Search for gethostbyname in libnsl.
3130 * configure: Regenerated.
3132 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3134 * configure.in: Remove redundant AC_MSG_RESULT in check for
3135 uintptr_t in stdint.h.
3136 * configure: Regenerated.
3138 * amd64-nat.h (struct regcache): Add opaque declaration.
3140 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3141 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3142 Change "register array" to "register cache" in comments.
3143 (x86_64_linux_gregset64_reg_offset): New variable.
3144 (GETREGS_SUPPLIES): Remove macro.
3145 (supply_gregset): Call amd64_supply_native_gregset instead of
3146 x86_64_linux_supply_gregset.
3147 (fill_gregset): Rename `regno' to `regnum'. Call
3148 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3149 (store_regs): Rename `regno' to `regnum'.
3150 (store_fpregs): Rename `regno' to `regnum'.
3151 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3152 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3153 Reorganize function a bit.
3154 (store_inferior_registers): Rename `regno' to `regnum'. Use
3155 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3156 Reorganize function a bit.
3157 (_initialize_x86_64_linux_nat): New function.
3158 * config/i386/x86-64linux.mh.
3160 2003-08-29 Andrew Cagney <cagney@redhat.com>
3162 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3163 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3164 (target_remove_watchpoint): Delete macro.
3165 (target_insert_watchpoint): Delete macro.
3166 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3167 (remote_mips_stopped_by_watchpoint): Delete declaration.
3168 (remote_mips_remove_watchpoint): Delete declaration.
3169 (remote_mips_set_watchpoint): Delete declaration.
3170 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3171 * remote-mips.c (_initialize_remote_mips): Set
3172 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3173 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3174 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3175 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3176 (mips_stopped_by_watchpoint): Rename
3177 remote_mips_stopped_by_watchpoint.
3178 (mips_can_hardware_watchpoint): Rename
3179 remote_mips_can_use_hardware_watchpoint, update function
3182 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3184 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3185 USER_DS. We haven't given them a register number yet.
3187 * amd64-nat.h: New file.
3188 * amd64-nat.c: New file.
3189 * amd64fbsd-nat.c: Include "amd64-nat.h".
3190 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3191 (amd64fbsd32_r_reg_offset): New variable.
3192 (supply_gregset): Simply call amd64_supply_native_gregset.
3193 (fill_gregset): Rename `regno' to `regnum'. Simply call
3194 amd64_collect_native_gregset.
3195 (fill_fpregset): Rename `regno' to `regnum'.
3196 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3197 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3198 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3199 `fpregset_t'. Call amd64_supply_native_gregset instead of
3200 supply_gregset. Call x86_64_supply_fxsave instead of
3202 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3203 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3204 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3205 `fpregset_t'. Call amd64_collect_native_gregset instead of
3206 fill_gregset. Call x86_64_collect_fxsave instead of
3208 (_initialize_am64fbsd_nat): Initialize
3209 amd64_native_gregset32_reg_offset and
3210 amd64_native_gregset64_reg_offset.
3211 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3213 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3214 null pointer. Fix typo in comment.
3216 * regcache.c (supply_register): Reimplement to call
3217 regcache_raw_supply.
3218 (regcache_collect): Reimplement by calling regcache_raw_collect.
3220 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3222 * regcache.c (register_buffer): Consitify first argument.
3223 (regcache_raw_supply, regcache_raw_collect): New
3226 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3228 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3229 by Nathan J. Williams.
3231 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3233 * lin-lwp.c (wait_lwp): New function, copied from
3234 stop_wait_callback. Clean up.
3235 (stop_wait_callback): Use wait_lwp.
3237 2003-08-28 Andrew Cagney <cagney@redhat.com>
3239 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3240 flavour and disassembler options.
3241 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3242 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3243 deprecated_tm_print_insn_info.
3245 2003-08-27 Andrew Cagney <cagney@redhat.com>
3247 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3248 Use target_read_memory.
3249 (s390_get_frame_info): Update. Do not reference
3250 deprecated_tm_print_insn_info.
3251 (s390_check_function_end, s390_is_sigreturn): Ditto.
3253 2003-08-27 Andrew Cagney <cagney@redhat.com>
3255 * Makefile.in (cris-tdep.o): Update dependencies.
3256 * cris-tdep.c: Include "gdb_assert.h".
3257 (cris_gdbarch_init): Set print_insn.
3258 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3259 (cris_delayed_get_disassembler): Simplify, directly call the
3260 disassembler returned by cris_get_disassembler.
3261 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3262 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3263 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3264 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3265 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3266 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3267 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3268 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3269 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3270 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3271 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3272 (gdb_print_insn_sparc): Delete function.
3273 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3274 deprecated_tm_print_insn_info.
3275 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3276 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3277 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3279 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3280 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3281 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3282 (s390_gdbarch_init): Set print_insn.
3284 2003-08-27 Andrew Cagney <cagney@redhat.com>
3286 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3287 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3288 * infcall.c (call_function_by_hand): Convert the entry point
3289 address into a code address.
3291 2003-08-27 Andrew Cagney <cagney@redhat.com>
3293 * dsrec.c: Include "gdb_string.h".
3294 * Makefile.in (dsrec.o): Update dependencies.
3296 2003-08-27 Michael Chastain <mec@shout.net>
3298 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3300 2003-08-27 Andrew Cagney <cagney@redhat.com>
3302 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3303 (alpha_osf1_init_abi): Do not set call_dummy_address.
3305 2003-08-27 David Carlton <carlton@kealia.com>
3307 From Randolph Chung <tausq@debian.org>:
3308 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3309 compiles with -Wformat-nonliteral -Werror.
3311 2003-08-26 Jim Blandy <jimb@redhat.com>
3313 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3314 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3315 bfd_lookup_symbol, since we only want symbols in code sections.
3316 (look_for_base): Pass zero as the SECT_FLAGS argument to
3317 bfd_lookup_symbol, since we're not concerned about which section
3320 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3322 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3323 we are frameless or the return address register is already known.
3325 2003-08-26 Andrew Cagney <cagney@redhat.com>
3327 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3328 in size. Add comments.
3330 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3332 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3333 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3335 2003-08-26 Jason Merrill <jason@redhat.com>
3337 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3338 case out of #ifdef MIPS block.
3340 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3343 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3344 available before calling SECT_OFF_TEXT.
3345 * PROBLEMS: Remove description of java/1322.
3347 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3349 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3350 bof, and nat0-nat127 as pseudo-registers.
3351 (ia64_frame_cache): New struct used to cache frame info.
3352 (ia64_register_reggroup_p): New routine used to override default
3353 register grouping so registers without names are still saved and
3355 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3357 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3358 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3359 (ia64_alloc_frame_cache): New routine to create a new
3361 (examine_prologue): Change prototype to add next_frame pointer.
3362 Assume frameless until otherwise proven. Verify that the cfm for
3363 current frame matches the cfm that should occur for the prologues
3364 alloc insn and if equal, mark as not frameless. At end of routine,
3365 if not frameless, calculate registers for the previous frame and store
3366 in the cache, if a cache is provided.
3367 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3368 and pass 0 for next_frame.
3369 (ia64_store_return_value): Change to use convert_typed_floating()
3370 instead of calling ia64_convert_to_raw().
3371 (ia64_extract_return_value): Change to use convert_typed_floating()
3372 instead of calling ia64_convert_to_virtual().
3373 (ia64_frame_cache): New routine to support new frame model.
3374 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3375 (ia64_frame_sniffer): Ditto.
3376 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3377 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3378 (ia64_sigtramp_frame_prev_register): Ditto.
3379 (ia64_sigtramp_frame_sniffer): Ditto.
3380 (ia64_frame_base_address): Ditto.
3381 (ia64_extract_struct_value_address): Change to issue error message.
3382 (ia64_frame_align): New routine to align sp.
3383 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3384 (ia64_push_arguments): Removed. Logic moved to
3385 ia64_push_dummy_call().
3386 (ia64_push_return_address): Ditto.
3387 (ia64_unwind_dummy_id): New function.
3388 (ia64_unwind_pc): Ditto.
3389 (ia64_convert_register_p): Ditto.
3390 (ia64_register_to_value): Ditto.
3391 (ia64_value_to_register): Ditto.
3392 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3393 (ia64_register_byte, ia64_register_raw_size): Ditto.
3394 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3395 (ia64_saved_pc_after_call): Ditto.
3396 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3397 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3398 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3399 (ia64_register_convert_to_raw): Ditto.
3400 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3401 (ia64_init_extra_frame_info): Ditto.
3402 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3403 (ia64_gdbarch_init): Remove registering of deprecated functions that
3404 are no longer used. Add registration of new gdbarch functions.
3405 Remove registering deprecated_write_sp. Replace
3406 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3407 Delete set_gdbarch_deprecated_register_convertible(),
3408 set_gdbarch_deprecated_register_convert_to_virtual(), and
3409 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3410 set_gdbarch_deprecated_register_size(),
3411 set_gdbarch_deprecated_register_bytes(),
3412 set_gdbarch_pcregnum(),
3413 set_gdbarch_deprecated_register_byte(),
3414 set_gdbarch_deprecated_register_raw_size(),
3415 set_gdbarch_deprecated_max_register_raw_size(),
3416 set_gdbarch_deprecated_register_virtual_size(),
3417 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3418 Replace set_gdbarch_deprecated_extract_return_value() with
3419 set_gdbarch_extract_return_value(). Remove calls to:
3420 set_gdbarch_deprecated_saved_pc_after_call();
3421 set_gdbarch_deprecated_frame_chain(),
3422 set_gdbarch_deprecated_frame_saved_pc(),
3423 set_gdbarch_deprecated_frame_init_saved_regs(),
3424 set_gdbarch_deprecated_get_saved_register(),
3425 set_gdbarch_deprecated_call_dummy_words(),
3426 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3427 set_gdbarch_deprecated_init_extra_frame_info(),
3428 set_gdbarch_deprecated_frame_args_address(),
3429 set_gdbarch_deprecated_frame_locals_address(),
3430 and set_gdbarch_deprecated_dummy_write_sp().
3431 Add set_gdbarch_convert_register_p(),
3432 set_gdbarch_register_to_value(),
3433 set_gdbarch_value_to_register(),
3434 set_gdbarch_push_dummy_call(),
3435 set_gdbarch_frame_align(),
3436 set_gdbarch_unwind_dummy_id(),
3437 set_gdbarch_unwind_pc(),
3438 frame_unwind_append_sniffer(),
3439 frame_unwind_append_sniffer(),
3440 and frame_base_set_default().
3442 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3444 * configure.tgt: Document need for special "mipsisa64" handling.
3445 (mipsisa64*-*-linux64): Handle as target linux64.
3446 (mipsisa64*-*-*): Handle as target embed64.
3448 2003-08-18 Michael Chastain <mec@shout.net>
3450 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3453 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3455 * i387-tdep.h: Update copyright date.
3456 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3458 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3459 CFLAGS games to reflect reality.
3461 2003-08-24 Andrew Cagney <cagney@redhat.com>
3463 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3464 GDB_MULTI_ARCH is always non-zero.
3465 * osabi.c (_initialize_gdb_osabi): Ditto.
3466 (gdbarch_init_osabi): Ditto.
3467 * sparc-tdep.c: Ditto for #if code.
3469 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3471 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3473 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3475 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3476 x86_64_supply_fxsave.
3477 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3478 x86_64_supply_fxsave.
3479 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3480 x86_64_supply_fxsave.
3482 2003-08-23 Andreas Jaeger <aj@suse.de>
3484 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3487 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3489 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3490 i387_supply_register.
3491 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3492 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3494 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3496 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3498 * i386bsd-nat.c (supply_fpregset): Adjust call to
3500 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3501 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3503 (store_inferior_registers): Remove extraneous whitespace. Call
3504 i387_fill_fsave instead of fill_fpregset.
3505 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3506 (supply_fpregset): Likewise.
3507 * i386v4-nat.c (supply_fpregset): Adjust call to
3509 * i386-interix-nat.c (supply_fpregset): Adjust call to
3511 * i386-linux-nat.c (supply_fpregset): Adjust call to
3513 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3514 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3515 i387supply_fsave and i387_supply_fxsave.
3516 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3517 Incorporate code from `i387_supply_register.
3518 (i387_supply_register): Remove.
3519 (i387_supply_fxsave): Add `regnum' argument.
3521 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3523 (i387_supply_register): remove prototype.
3526 2003-08-22 Michael Chastain <mec@shout.net>
3528 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3529 Add lines for files in gdb/testsuite/gdb.cp/* that are
3530 still not 8.3 unique.
3532 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3534 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3535 TYPE_VPTR_FIELDNO is valid.
3537 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3539 * utils.c (set_width_command): Remove prototypes.
3540 (set_screen_size): New prototype.
3541 (init_page_info): Simplify by fetching the screen size from
3542 Readline. Call set_screen_size.
3543 (set_screen_size): New function.
3544 (set_width): Add missing whitespace in comment.
3545 (set_width_command): Call set_screen_size.
3546 (set_height_command): New function.
3547 (initialize_utils): Fix formatting. Make "set height" command
3548 call set_height_command. Remove redundant code that turns off
3549 pagination if output isn't a terminal. Remove redundant call to
3552 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3554 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3555 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3556 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3557 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3559 (sparc64_register_info): Give the reister with number
3560 SPARC64_STATE_REGNUM a name.
3561 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3563 (sparc64_push_dummy_call): Take BIAS into account when checking
3565 (sparc_software_single_step): Remove assertions that check whether
3566 NPC and NNPC were zero.
3567 (sparc_supply_rwindow): Make public. Merge functionality with
3568 sparc64_supply_rwindow.
3569 (sparc_fill_rwindow): Make public. Merge functionality with
3570 sparc64_fill_rwindow.
3571 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3572 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3573 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3574 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3575 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3577 * reggroups.c: Add whitespace after declarations of local
3578 variables in functions.
3580 2003-08-21 Michael Chastain <mec@shout.net>
3582 * gdbtypes.h: Change array bound type from an int to enum.
3584 2003-08-21 Andrew Cagney <cagney@redhat.com>
3586 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3587 * config/sparc/tm-sparc.h: Ditto.
3588 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3590 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3592 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3594 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3595 (register_objfile_data, set_objfile_data, objfile_data): New
3597 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3599 (allocate_objfile): Call objfile_alloc_data.
3600 (free_objfile): Call objfile_free_data.
3601 (struct objfile_data): New.
3602 (struct objfile_data_registration): New.
3603 (struct objfile_data_registry): New.
3604 (objfile_data_registry): New variable.
3605 (register_objfile_data): New function.
3606 (objfile_alloc_data, objfile_free_data): New functions.
3607 (set_objfile_data, objfile_data): New functions.
3608 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3609 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3610 (_initialize_dwarf2_frame): New function and prototype.
3612 2003-08-21 Andrew Cagney <cagney@redhat.com>
3614 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3615 a specific architecture.
3616 * arch-utils.h (set_architecture_from_arch_mach): Delete
3618 (target_architecture_hook): Delete declaration.
3619 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3620 (default_float_format): Assume GDB_MULTI_ARCH.
3621 (default_double_format): Assume GDB_MULTI_ARCH.
3622 (set_endian_from_file): Delete function.
3623 (arch_ok): Delete function.
3624 (set_arch): Delete function.
3625 (set_architecture_from_arch_mach): Delete function.
3626 (set_architecture_from_file): Delete function.
3627 (set_architecture): Assume GDB_MULTI_ARCH.
3628 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3630 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3632 Rewrite FreeBSD/sparc64 native configuration.
3633 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3634 * sparc64fbsd-nat.c: New file.
3635 * sparc64fbsd-tdep.c: New file.
3636 * sparc64-tdep.c sparc64-tdep.h: New files.
3637 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3638 sparc64fbsd-tdep.o): New dependencies.
3639 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3640 and sparc64fbsd-tdep.c.
3641 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3642 * config/sparc/fbsd.mh: Remove copyright notice.
3643 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3645 * config/sparc/fbsd.mt: Remove copyright notice.
3646 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3647 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3648 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3649 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3650 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3651 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3652 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3653 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3655 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3656 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3658 2003-08-21 Michael Chastain <mec@shout.net>
3660 * symtab.h: Add doco on the space critical structures and
3661 some measurements of space usage.
3663 2003-08-21 Michael Snyder <msnyder@redhat.com>
3665 * tracepoint.c (trace_dump_command): Trace break address
3666 is subject to DECR_PC_AFTER_BREAK.
3667 (set_traceframe_context): Make "trace_line" an int.
3668 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3670 2003-08-20 Michael Snyder <msnyder@redhat.com>
3672 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3673 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3674 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3676 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3677 functions, replace sh_push_dummy_call.
3678 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3680 2003-08-20 Michael Chastain <mec@shout.net>
3682 * gdbtypes.h (struct main_type): Rearrange to save space.
3684 2003-08-20 Michael Snyder <msnyder@redhat.com>
3686 * trad-frame.c: Comment typo fix.
3688 2003-08-20 Michael Snyder <msnyder@redhat.com>
3689 Kevin Buettner <kevinb@redhat.com>
3691 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3692 (frv_frame_init_saved_regs): Add declaration.
3693 (frame_extra_info): Add new field ``saved_regs''.
3694 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3695 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3696 Update frame related code.
3697 (frv_extract_struct_value_address): Adjust formatting.
3698 * Makefile.in (frv-tdep.o): Update dependencies.
3699 * config/frv/tm-frv.h (target_insert_watchpoint)
3700 (target_remove_watchpoint, target_insert_hw_breakpoint)
3701 (target_remove_hw_breakpoint): Delete these macros.
3702 (remote_insert_watchpoint, remote_remove_watchpoint)
3703 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3706 2003-08-20 Michael Chastain <mec@shout.net>
3708 * defs.h (ENUM_BITFIELD): New macro.
3709 * symtab.h (ENUM_BITFIELD): Use it.
3710 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3712 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3714 * MAINTAINERS (write after approval): Add myself.
3716 2003-08-18 Andrew Cagney <cagney@redhat.com>
3718 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3719 * gdbarch.h, gdbarch.c: Re-generate.
3720 * infcall.c (call_function_by_hand): Adjust the SP by
3721 frame_red_zone_size before allocating any stack space.
3722 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3723 * x86-64-tdep.c (x86_64_frame_align): New function.
3724 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3726 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3727 Remove code adjusting SP so that it skips over the Red Zone.
3729 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3731 * NEWS (New native configurations): Mention FreeBSD/amd64.
3733 2003-08-18 Andrew Cagney <cagney@redhat.com>
3735 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3736 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3738 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3740 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3742 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3744 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3746 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3748 * i386-linux-nat.c: Include "linux-nat.h".
3749 (child_post_startup_inferior): New function.
3751 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3753 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3754 at the start of a frameless function. This probably fixes PR
3757 2003-08-17 Michael Chastain <mec@shout.net>
3759 * symfile.c (find_sym_fns): Remove special case for apollo target.
3761 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3763 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3764 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3765 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3766 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3767 (linux_supports_tracevforkdone): New function.
3768 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3770 (child_follow_fork): Handle vfork.
3771 (linux_handle_extended_wait): Likewise. Also handle exec.
3772 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3773 * NEWS: Mention fork tracing.
3775 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3777 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3779 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3781 * Makefile.in (i386-linux-nat.o): Update dependencies.
3782 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3783 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3784 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3785 * i386-linux-nat.c: Include "linux-nat.h".
3786 (child_post_startup_inferior): New function.
3787 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3788 * infptrace.c (kill_inferior): Wrap in #ifdef.
3789 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3790 attaching to each LWP.
3791 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3792 (init_lin_lwp_ops): Fill in some more operations.
3793 * linux-nat.h (linux_enable_event_reporting)
3794 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3796 * linux-nat.c (linux_enable_event_reporting): New function.
3797 (child_post_attach, linux_child_post_startup_inferior)
3798 (child_post_startup_inferior, child_follow_fork)
3799 (linux_handle_extended_wait, kill_inferior): New functions.
3801 2003-08-16 Andrew Cagney <cagney@redhat.com>
3803 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3804 * gdbarch.h, gdbarch.c: Re-generate.
3806 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3808 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3810 2003-08-16 Andrew Cagney <cagney@redhat.com>
3812 * NEWS: Mention that "set prompt-escape-char" was deleted.
3813 * top.c (get_prompt_1): Delete function.
3814 (gdb_prompt_escape):
3815 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3816 prompt-escape-char" command.
3817 (MAX_PROMPT_SIZE): Delete macro.
3818 (get_prompt): Simplify, do not call get_prompt_1.
3820 2003-08-16 Andrew Cagney <cagney@redhat.com>
3822 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3823 -Werror. -Wformat-nonliteral problems.
3825 2003-08-15 J. Brobecker <brobecker@gnat.com>
3827 Further multiarching work mostly for hppa64-*-hpux11:
3828 * hppa-tdep.h: New file.
3829 * hppa-tdep.c: #include hppa-tdep.c.
3830 (hppa32_num_regs): Renamed from hppa_num_regs.
3831 (hppa64_num_regs): New constant.
3832 (hppa64_call_dummy_breakpoint_offset): New constant.
3833 (hppa32_call_dummy_length): New constant.
3834 (hppa64_call_dummy_length): New constant.
3835 (hppa32_stack_align): Make name 32bit explicit.
3836 (hppa32_register_virtual_type): Likewise.
3837 (hppa32_extract_return_value): Likewise.
3838 (hppa32_use_struct_convention): Likewise.
3839 (hppa32_store_return_value): Likewise.
3840 (hppa64_register_virtual_type): New function.
3841 (hppa64_extract_return_value): New function.
3842 (hppa64_use_struct_convention): New function.
3843 (hppa64_store_return_value): New function.
3844 (hppa_frame_locals_address): Remove declaration, function does
3846 (hppa_register_byte): Add support for PA64 ABI.
3847 (hppa_gdbarch_init): Add support for PA64 ABI.
3848 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3849 Make name 32bit explicit.
3850 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3851 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3852 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3853 (hppa64_hpux_frame_base_before_sigtramp): New function.
3854 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3855 * config/pa/tm-hppa64.h: Remove macros that are no longer
3856 necessary now that the gdbarch vector is properly setup.
3857 Transform some macros into function calls. Some minor cleanup.
3858 * config/pa/tm-hppah.h: Update function calls in macros
3859 following the function renaming in hppa-hpux-tdep.c.
3860 * Makefile.in (hppa_tdep_h): New variable.
3861 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3863 2003-08-14 Michael Snyder <msnyder@redhat.com>
3865 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3867 2003-08-13 J. Brobecker <brobecker@gnat.com>
3869 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3870 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3873 2003-08-13 Michael Snyder <msnyder@redhat.com>
3875 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3876 (frv_saved_pc_after_call): Use deprecated ftype.
3877 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3878 (frv_remote_translate_xfer_address): Remove.
3879 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3881 2003-08-13 J. Brobecker <brobecker@gnat.com>
3883 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3884 initialization after the common gdbarch initialization, not before.
3886 2003-08-13 J. Brobecker <brobecker@gnat.com>
3888 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3889 (ADDR_BITS_REMOVE): Remove, redundant.
3891 2003-08-13 J. Brobecker <brobecker@gnat.com>
3893 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3894 gdbarch method to clear the 2 low bits of text addresses.
3896 2003-08-12 Andrew Cagney <cagney@redhat.com>
3898 * Makefile.in (dsrec.o): Update dependencies.
3899 * dsrec.c: Include "gdb_assert.h".
3900 (make_srec): Use snprintf instead of sprintf, use a literal format
3903 2003-08-12 Andrew Cagney <cagney@redhat.com>
3905 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3906 FRAME_OBSTACK_ZALLOC.
3908 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3910 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3913 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3915 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3916 amd64fbsd_sc_reg_offset): Add extern declarations.
3917 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3920 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3922 * MAINTAINERS (write after approval): Update my mail address.
3924 2003-08-10 Andrew Cagney <cagney@redhat.com>
3926 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3928 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3930 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3931 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3932 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3933 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3934 i386bsd_sc_reg_offset): Add extern declarations.
3935 * i386obsd-nat.c: Include "i386-tdep.h"
3936 (_initialize_i386obsd_nat): Remove extern declarations.
3937 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3939 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3942 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3943 instead of frame_read_register.
3944 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3945 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3947 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3948 instead of frame_unwind_unsigned_register. Use
3949 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3950 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3951 instead of read_register. Use builtin_type_void_data_ptr instead
3952 of builtin_type_void_func_ptr when extracting the address of the
3954 (i386_extract_return_value, i386_store_return_value,
3955 i386_pseudo_register_read, i386_pseudo_register_write): Use
3956 register_size instead REGISTER_RAW_SIZE.
3958 2003-08-10 Andrew Cagney <cagney@redhat.com>
3960 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3961 sprintf. Make "name" constant.
3963 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3965 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3966 instead of frame_read_register.
3967 (i387_print_float_info): Use get_frame_register and
3968 get_frame_register_unsigned instead of frame_register_read.
3970 * i386fbsd-nat.c: Include "i386-tdep.h".
3971 (child_resume): Make `eflags' an ULONGEST. Use
3972 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3973 instead of register_read and register_write.
3975 * i386bsd-nat.c (fetch_inferior_registers,
3976 store_inferior_registers): Don't use && at the end of a line.
3977 (_initialize_i386bsd_nat): Fix typo.
3979 * frame.c (_initialize_frame): Add missing backslash.
3981 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3982 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3983 and supply_register instead of manipulating the register buffer
3986 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3987 * config/i386/nm-i386sol2.h
3988 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3990 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3991 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3992 instructions that GCC likes to mingle into the prologue. Fixes
3993 gdb/1253 and gdb/1255.
3995 2003-08-09 Andrew Cagney <cagney@redhat.com>
3998 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3999 * command.h (add_setshow_uinteger_cmd): Declare.
4000 * frame.c (set_backtrace_cmd): New function.
4001 (show_backtrace_cmd): New function.
4002 * frame.c (_initialize_frame): Replace "set/show
4003 backtrace-below-main" with "set/show backtrace past-main". Add
4004 command "set/show backtrace limit".
4005 (backtrace_past_main): Rename "backtrace_below_main".
4006 (backtrace_limit): New variable.
4007 (get_prev_frame): Update. Check the backtrace_limit.
4009 2003-08-09 Andrew Cagney <cagney@redhat.com>
4011 * defs.h (xstrprintf): Declare.
4012 * utils.c (xstrprintf): New function.
4013 * breakpoint.c (insert_breakpoints): Replace sprintf and
4014 non-literal format strings, with xstrprintf and cleanups.
4015 (delete_breakpoint,breakpoint_re_set): Ditto.
4016 (commands_command, insert_breakpoints): Ditto.
4017 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4018 (break_at_finish_command_1): Ditto.
4020 2003-08-09 Andrew Cagney <cagney@redhat.com>
4022 * MAINTAINERS (language support): List Adam Fedor as Objective C
4025 2003-08-08 J. Brobecker <brobecker@gnat.com>
4027 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4028 are now multiarched.
4030 2003-08-08 J. Brobecker <brobecker@gnat.com>
4032 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4033 longer necessary now that hppa64 is partially multiarch'ed.
4035 2003-08-08 Andrew Cagney <cagney@redhat.com>
4037 * interps.c (interp_set): Check for a NULL "old_interp".
4039 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4041 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4042 (install-only): Support DESTDIR.
4043 (uninstall): Likewise.
4044 (install-gdbtk): Likewise.
4046 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
4048 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4049 contains something meaningful at all times.
4051 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
4053 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4055 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4057 * MAINTAINERS (write after approval): Added self.
4059 2003-08-07 Andrew Cagney <cagney@redhat.com>
4061 * inferior.h (AT_SYMBOL): Define.
4062 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4063 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4064 * mips-tdep.c (mips_call_dummy_address): Delete function.
4065 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4066 set call_dummy_address.
4068 2003-08-07 Andrew Cagney <cagney@redhat.com>
4070 * language.c (op_error): Delete function.
4071 (binop_type_check): Delete function.
4072 * language.h (type_op_error, range_op_error): Delete macros.
4073 (op_error): Delete declaration.
4075 2003-08-07 Andrew Cagney <cagney@redhat.com>
4077 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4079 2003-08-07 Michal Ludvig <mludvig@suse.cz>
4081 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4082 (x86_64_push_arguments): Skip the red zone.
4084 2003-08-05 Andrew Cagney <cagney@redhat.com>
4086 * reggroups.c (reggroup_next): Check for the final entry.
4088 2003-08-04 Andrew Cagney <cagney@redhat.com>
4090 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4091 * cli/cli-script.c (define_command): Call query directly, instead
4092 of passing it a buffer.
4093 * ocd.c (ocd_error): Pass error a constant format string.
4094 * remote-mips.c (mips_error): Use fputs_filtered.
4096 * solib-svr4.c (_initialize_svr4_solib): Update
4097 register_gdbarch_data call.
4098 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4100 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4101 (register_gdbarch_data): Delete "free" parameter. Update
4103 * gdbarch.h, gdbarch.c: Re-generate.
4104 * reggroups.c (_initialize_reggroup): Update.
4105 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4106 * frame-base.c (_initialize_frame_base): Update.
4107 * frame-unwind.c (_initialize_frame_unwind): Update.
4108 * user-regs.c (_initialize_user_regs): Update.
4109 * remote.c (_initialize_remote): Update.
4110 * regcache.c (_initialize_regcache): Update.
4112 * regcache.c (xfree_regcache_descr): Delete function.
4113 (_initialize_regcache): Update call to register_gdbarch_data.
4114 (init_regcache_descr, init_legacy_regcache_descr): Use
4115 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4117 * remote.c (free_remote_state): Delete function.
4118 (_initialize_remote): Update register_gdbarch_data.
4119 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4120 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4122 2003-08-04 Andrew Cagney <cagney@redhat.com>
4124 * reggroups.c (struct reggroup_el): Define.
4125 (struct reggroups): Delete field "nr_group". Replace array
4126 "group" with a "first" to "last" linked list.
4127 (reggroups_init): Update. Allocate using gdbarch's obstack.
4128 (reggroups_free): Delete function.
4129 (add_group): Update. Add "el" parameter.
4130 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4131 (default_groups): Update.
4132 (reggroup_next): Replace reggroups.
4133 (reggroups_dump): Update.
4134 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4135 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4136 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4138 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4140 * Makefile.in (tui-interp.o): Update dependencies.
4142 2003-08-04 David Carlton <carlton@kealia.com>
4144 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4145 to internal_error call.
4146 * source.c (forward_search_command): Add "%s" format argument.
4147 (reverse_search_command): Ditto.
4148 * top.c (quit_confirm): Ditto.
4149 * cli/cli-setshow.c (do_setshow_command): Ditto.
4150 * cp-valprint.c (cp_print_class_method): Replace
4151 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4152 (cp_print_class_member): Ditto.
4153 * event-top.c (command_line_handler): Ditto.
4154 * linux-proc.c (linux_info_proc_cmd): Ditto.
4155 * p-typeprint.c (pascal_type_print_base): Ditto.
4156 * p-valprint.c (pascal_object_print_class_method): Ditto.
4157 (pascal_object_print_class_member): Ditto.
4158 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4159 * remote.c (remote_cisco_section_offsets): Ditto.
4160 * top.c (command_line_input): Ditto.
4161 * utils.c (vwarning,error_stream,quit): Ditto.
4162 * valprint.c (print_floating,print_binary_chars)
4163 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4165 2003-08-04 Andrew Cagney <cagney@redhat.com>
4167 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4169 2003-08-02 Andrew Cagney <cagney@redhat.com>
4171 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4172 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4175 2003-08-02 Andrew Cagney <cagney@redhat.com>
4177 * Makefile.in: Update all dependencies and definitions.
4179 2003-08-02 Adam Fedor <fedor@gnu.org>
4181 * linespec.c (is_objc_method_format): New function
4182 (decode_line_1, locate_first_half): Use it.
4185 2003-08-01 Andrew Cagney <cagney@redhat.com>
4187 * NEWS: Mention that m32r is multi-arch.
4188 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4189 * configure.tgt: Recognize m32r-*-*.
4190 * config/m32r/tm-m32r.h: Delete file.
4191 * config/m32r/m32r.mt: New file.
4192 * m32r-rom.c (m32r_upload_command): Use hostent only when
4193 gethostname succeeds, in order to avoid a compilation
4195 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4198 2003-08-01 Michael Snyder <msnyder@redhat.com>
4200 * sh-tdep.c (sh_frame_align): New gdbarch method.
4201 (sh_gdbarch_init): Set up frame_align method.
4203 2003-07-31 Michael Snyder <msnyder@redhat.com>
4205 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4206 which is already covered by the new frames infrastructure.
4208 2003-07-31 Andrew Cagney <cagney@redhat.com>
4210 * user-regs.c (struct user_reg): Add "next" link.
4211 (struct user_regs): Replace "user" with "first" and "last" links.
4212 (append_user_reg): Add pre-allocated "reg" parameter.
4213 (builtin_user_regs): Provide initial value for "last".
4214 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4215 (user_regs_init): Allocate memory from the gdbarch obstack.
4216 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4217 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4219 (usernum_to_user_reg): New function.
4220 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4221 (value_of_user_reg): Use usernum_to_user_reg.
4222 (user_regs_free): Delete function.
4223 (_initialize_user_regs): Update register_gdbarch_data call.
4225 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4227 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4229 2003-07-30 Michael Snyder <msnyder@redhat.com>
4231 * value.h (value_being_returned): Add a struct_addr argument.
4232 * infcall.c (call_function_by_hand): Pass struct_addr to
4233 value_being_returned.
4234 * infcmd.c (print_return_value): Pass zero as struct_addr.
4235 * values.c (value_being_returned): If struct_addr is passed,
4236 use it instead of trying to recover it from the inferior.
4238 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4240 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4241 the prologue analyzer won't need to attempt to extract the pc
4242 value from the woefully incomplete dummy frame.
4243 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4244 possible. Disable code which modifies the frame.
4246 2003-07-28 Andrew Cagney <cagney@redhat.com>
4248 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4250 (annotate_breakpoints_table, annotate_record): Ditto.
4251 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4252 (annotate_field_name_end, annotate_field_value): Ditto.
4253 (annotate_field_end, annotate_frame_source_begin): Ditto.
4254 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4255 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4256 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4257 (annotate_frame_address_end, annotate_frame_address): Ditto.
4258 (annotate_frame_args, annotate_frame_end): Ditto.
4259 (annotate_frame_where, annotate_arg_begin): Ditto.
4260 (annotate_arg_name_end, annotate_arg_value): Ditto.
4261 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4262 (annotate_function_call, annotate_signal_name): Ditto.
4263 (annotate_signal_string, annotate_signal_name_end): Ditto.
4264 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4265 (annotate_value_begin, annotate_value_history_value): Ditto.
4266 (annotate_value_history_end, annotate_value_end): Ditto.
4267 (annotate_display_begin, annotate_display_number_end): Ditto.
4268 (annotate_display_format, annotate_display_expression): Ditto.
4269 (annotate_display_expression_end, annotate_display_value): Ditto.
4270 (annotate_display_end, annotate_array_section_begin): Ditto.
4271 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4272 (annotate_elt, annotate_array_section_end): Ditto.
4274 2003-07-28 Andrew Cagney <cagney@redhat.com>
4276 * regcache.c (struct regcache_descr): Update comments on
4278 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4279 sizeof_raw_register_valid_p.
4280 (init_regcache_descr): Set nr_raw_registers and
4281 sizeof_raw_register_valid_p before calling
4282 init_legacy_regcache_descr.
4284 2003-07-28 Andrew Cagney <cagney@redhat.com>
4286 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4289 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4291 * thread.c (info_threads_command): Use get_selected_frame ().
4292 Check that there is at least one non-sentinel frame.
4294 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4296 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4297 (m68hc11_pop_frame): Remove.
4298 (m68hc11_frame_saved_pc): Remove.
4299 (m68hc11_frame_chain): Remove.
4300 (m68hc11_frame_init_saved_regs): Remove.
4301 (m68hc11_init_extra_frame_info): Remove.
4302 (m68hc11_store_struct_return): Remove.
4303 (m68hc11_saved_pc_after_call): Remove.
4305 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4307 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4308 frame unwind information.
4309 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4310 and adapted for frame unwinding.
4311 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4312 (m68hc11_unwind_pc): New function.
4313 (m68hc11_frame_unwind_cache): New function to analyze frames.
4314 (m68hc11_frame_this_id): New function to create new frame struct.
4315 (m68hc11_frame_prev_register): New function to unwind a register from
4317 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4318 (m68hc11_frame_p): New function for the above.
4319 (m68hc11_frame_base_address): New function to return fp of frame.
4320 (m68hc11_frame_args_address): Update for frame.
4321 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4322 (m68hc11_unwind_sp): New function.
4323 (m68hc11_unwind_dummy_id): New function.
4324 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4327 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4329 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4330 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4331 when we are beyond the current pc.
4333 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4335 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4336 from m68hc11_push_arguments.
4337 (m68hc11_push_arguments): Remove.
4338 (m68hc11_push_return_address): Remove.
4339 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4340 handlers; remove deprecated_extra_stack_alignment_needed.
4342 2003-07-27 Andrew Cagney <cagney@redhat.com>
4344 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4345 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4346 REAL_PC and not the pointer.
4347 * hppa-hpux-tdep.c: Include frame.h
4349 2003-07-27 Andrew Cagney <cagney@redhat.com>
4351 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4352 GDB_MULTI_ACH_PARTIAL.
4354 2003-07-27 Andrew Cagney <cagney@redhat.com>
4356 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4357 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4358 operator at start and not end of line.
4359 (decode_prologue): Ditto.
4360 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4361 frame_unwind_register_unsigned instead of
4362 frame_unwind_unsigned_register.
4363 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4365 (m32r_push_dummy_call): Use register_size instead of
4367 (m32r_frame_sniffer): Replace m32r_frame_p.
4368 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4369 * m32r-rom.c (report_transfer_performance): Delete extern
4371 (m32r_load, m32r_upload_command): Use print_transfer_performance
4372 instead of report_transfer_performance.
4373 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4374 / add_show_from_set.
4376 2003-07-26 Andrew Cagney <cagney@redhat.com>
4378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4379 store_return_value and extract_struct_value_address.
4381 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4384 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4385 NULL, default to the section containing PC.
4387 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4389 * NEWS: Mention "regs" deprecated for m68hc11 too.
4391 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4392 (m68hc11_print_register): New function to print out one register.
4393 (m68hc11_print_registers_info): New function to print registers.
4394 (show_regs): Deprecate and use the above.
4395 (m68hc11_gdbarch_init): Install the print_registers_info.
4397 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4399 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4400 that we have a SIGTRAP before returning non-zero.
4402 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4403 Elena Zannoni <ezannoni@redhat.com>
4405 * linespec.c (decode_line_2): Avoid crash if
4406 find_function_start_sal() returns empty record.
4408 2003-07-23 Andreas Schwab <schwab@suse.de>
4410 * ia64-tdep.c (ia64_print_insn): New function.
4411 (ia64_gdbarch_init): Set print_insn to it.
4412 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4413 deprecated_tm_print_insn_info.
4415 2003-07-22 Michael Snyder <msnyder@redhat.com>
4417 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4418 handle 8-bit returns (long long).
4419 (h8300h_extract_return_value): Ditto.
4420 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4422 2003-07-22 Andrew Cagney <cagney@redhat.com>
4424 * gdbarch.c Include "gdb_obstack.h".
4425 (struct gdbarch): Add an "obstack".
4426 (alloc_gdbarch_data): Allocate the gdbarch data using
4427 GDBARCH_OBSTACK_CALLOC.
4428 (free_gdbarch_data): Delete function.
4429 (gdbarch_obstack_zalloc): New function.
4430 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4431 Assert that the architecture is not initialized.
4432 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4433 vector from the obstack.
4434 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4435 architecture obstack.
4436 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4437 (set_gdbarch_data): Assert that the data is not initialized.
4438 (struct gdbarch_data): Delete member "free".
4439 (register_gdbarch_data): Do not initialize "free".
4440 * gdbarch.h, gdbarch.c: Re-generate.
4442 2003-07-22 Andrew Cagney <cagney@redhat.com>
4444 * configure.in (build_warnings): Add -Wformat-nonliteral.
4445 * configure: Re-generate.
4447 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4449 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4451 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4453 * findvar.c (read_var_value): Remove case for thread local storage
4454 variables. It is now entirely handled by the dwarf2 location
4456 * printcmd.c (address_info): Ditto.
4457 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4459 (struct symbol): Remove objfile field, which was used by
4460 LOC_THREAD_LOCAL_STATIC only.
4461 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4462 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4463 usage of objfile pointer.
4464 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4465 thread local variables.
4466 Add include of objfiles.h.
4467 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4469 * Makefile.in (dwarf2loc.o): Update dependencies.
4471 2003-07-22 Andrew Cagney <cagney@redhat.com>
4473 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4475 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4476 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4477 (struct value): Add opaque declaration.
4478 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4480 2003-07-21 Andrew Cagney <cagney@redhat.com>
4482 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4483 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4485 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4487 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4488 regcache_cooked_read_unsigned instead of read_register.
4489 (m68hc11_saved_pc_after_call): Likewise.
4490 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4491 instead of write_register.
4492 (m68hc11_register_type): New function.
4493 (m68hc11_register_virtual_type): Remove.
4494 (m68hc11_store_return_value): Convert to use the regcache.
4495 (m68hc11_extract_struct_value_address): Likewise.
4496 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4497 m68hc11_register_type; undeprecate store_return_value and
4498 extract_struct_value_address.
4500 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4502 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4503 and translate to use regcache.
4504 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4506 2003-07-18 Andrew Cagney <cagney@redhat.com>
4508 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4509 * gdbarch.h, gdbarch.c: Re-generate.
4510 * i386-tdep.c (i386_gdbarch_init): Do not set
4511 DWARF2_BUILD_FRAME_INFO.
4512 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4514 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4515 DWARF2_BUILD_FRAME_INFO.
4517 2003-07-18 Andrew Cagney <cagney@redhat.com>
4519 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4520 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4522 2003-07-18 Andrew Cagney <cagney@redhat.com>
4524 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4525 frame_unwind_address_in_block, instead of frame_pc_unwind.
4526 (dwarf2_frame_cache): Ditto.
4528 2003-07-18 Andrew Cagney <cagney@redhat.com>
4530 * user-regs.h (struct gdbarch): Declare opaque.
4531 * ui-out.h (struct ui_file): Declare opaque.
4532 * dwarf2-frame.h (struct frame_info): Declare opaque.
4534 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4536 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4538 (procfs_meminfo): Change strerror to safe_strerror.
4539 (procfs_can_run): Remove K&R badness.
4541 2003-07-17 Michael Snyder <msnyder@redhat.com>
4543 * remote-sim.c: Comment typo fix.
4545 2003-07-17 Andrew Cagney <cagney@redhat.com>
4547 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4549 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4550 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4551 GDB_MULTI_ARCH_PARTIAL.
4553 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4555 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4556 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4557 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4559 2003-07-16 Theodore A. Roth <troth@openavr.org>
4561 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4563 (avr_frame_unwind_cache): Don't unwind FP for main.
4565 Save the computed prev_sp.
4566 (avr_saved_regs_unwinder): Remove function.
4567 (avr_frame_prev_register): Use PC unwind logic from
4568 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4570 2003-07-16 Andrew Cagney <cagney@redhat.com>
4572 * frame-base.h (frame_base_p_ftype): Delete definition.
4573 (frame_base_append_predicate): Delete declaration.
4574 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4575 (frame_unwind_append_predicate): Delete declaration.
4576 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4577 (append_predicate): Delete parameter "p".
4578 (frame_unwind_append_predicate): Delete function.
4579 (frame_unwind_append_sniffer): Update call to append_predicate.
4580 (frame_unwind_free): Delete function.
4581 (_initialize_frame_unwind): Pass NULL as "free" to
4582 register_gdbarch_data.
4583 (frame_unwind_init): Append the dummy_frame_sniffer.
4584 (frame_unwind_find_by_frame): Simplify.
4585 * frame-base.c (struct frame_base_table): Delete field "p".
4586 (append_predicate): Delete parameter "p".
4587 (frame_base_append_predicate): Delete function.
4588 (frame_base_append_sniffer): Update call to append_predicate.
4589 (frame_base_free): Delete function.
4590 (frame_base_find_by_frame): Simplify.
4591 (_initialize_frame_base): Pass NULL as "free" to
4592 register_gdbarch_data.
4593 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4594 (x86_64_sigtramp_frame_sniffer): Replace
4595 "x86_64_sigtramp_frame_p".
4596 (x86_64_init_abi): Set the frame unwind sniffers.
4597 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4598 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4599 (m68k_gdbarch_init): Set the frame unwind sniffers.
4600 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4601 "i386_sigtramp_frame_p".
4602 (i386_frame_sniffer): Replace "i386_frame_p".
4603 (i386_gdbarch_init): Set the frame unwind sniffers.
4604 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4605 (avr_gdbarch_init): Set the frame unwind sniffers.
4606 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4607 "alpha_sigtramp_frame_p"
4608 (alpha_heuristic_frame_sniffer): Replace
4609 "alpha_heuristic_frame_p".
4610 (alpha_gdbarch_init): Set the frame unwind sniffers.
4611 (alpha_dwarf2_init_abi): Ditto.
4612 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4613 "alpha_debug_frame_p".
4614 (alpha_mdebug_frame_base_sniffer): Replace
4615 "alpha_mdebug_frame_base_p".
4616 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4617 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4618 (d10v_gdbarch_init): Set the frame unwind sniffer.
4619 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4620 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4621 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4622 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4623 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4624 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4626 2003-07-16 Michael Snyder <msnyder@redhat.com>
4628 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4629 should go thru sh_dsp_register_sim_regno, else the dsp regs
4630 will not get the right values.
4632 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4634 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4635 deprecated_store_floating by call to store_typed_floating.
4636 (sh_sh4_register_convert_to_raw): Substitute call to
4637 deprecated_extract_floating by call to extract_typed_floating.
4639 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4641 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4643 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4645 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4646 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4647 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4649 (do_pseudo_register): Remove.
4650 (sh_push_dummy_code): New function.
4651 (sh64_store_struct_return): Rename from sh_store_struct_return.
4652 Only called for sh64 now.
4653 (sh_extract_struct_value_address): Regcache'ify.
4654 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4655 and accomodate new tasks.
4656 (sh64_push_return_address): Rename from sh_push_return_address.
4657 Only called for sh64 now.
4658 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4660 (sh3e_sh4_extract_return_value): Regcache'ify.
4661 (sh_default_store_return_value): Ditto.
4662 (sh3e_sh4_store_return_value): Ditto.
4663 (sh_default_register_byte): Remove.
4664 (sh_sh4_register_byte): Remove.
4665 (sh_default_register_raw_size): Remove.
4666 (sh_sh4_register_raw_size): Remove.
4667 (sh_register_virtual_size): Remove.
4668 (sh_sh3e_register_virtual_type): Remove.
4669 (sh_sh3e_register_type): New function.
4670 (sh_sh4_register_virtual_type): Remove.
4671 (sh_sh4_register_type): New function.
4672 (sh_default_register_virtual_type): Remove.
4673 (sh_default_register_type): New function.
4674 (do_fv_register_info): Add parameters to accomodate call from
4675 sh_print_registers_info.
4676 (do_dr_register_info): Ditto.
4677 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4678 Add parameters to accomodate call from sh_print_registers_info.
4679 (sh_do_fp_register): Ditto.
4680 (sh64_do_pseudo_register): Call do_dr_register_info,
4681 do_fv_register_info and sh_do_fp_register with default parameters.
4682 (sh_do_register): Add parameters to accomodate call from
4683 sh_print_registers_info.
4684 (sh_print_register): Ditto.
4685 (sh_print_registers_info): Rename from sh_do_registers_info.
4686 Add parameters to be used as gdbarch_print_registers_info
4687 implementation. Accomodate removed do_pseudo_register function
4689 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4690 function pointer. Call sh_print_register with default parameters.
4691 (sh64_do_registers_info): Call sh_print_registers_info instead of
4692 sh_do_registers_info.
4693 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4694 detection of deprecated vs. non-deprecated functionality.
4695 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4696 function pointer assignments by direct function calls.
4698 2003-07-15 Andrew Cagney <cagney@redhat.com>
4700 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4701 (frame_register_unwind, create_new_frame): Ditto.
4702 (legacy_get_prev_frame, get_frame_type): Ditto.
4703 (get_frame_base_address): Use frame_base_find_by_frame.
4704 (get_frame_locals_address): Use frame_base_find_by_frame.
4705 (get_frame_args_address): Use frame_base_find_by_frame.
4706 * frame-base.h (frame_base_sniffer_ftype): Declare.
4707 (frame_base_append_sniffer): Declare.
4708 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4709 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4710 (frame_base_append_sniffer): New function.
4711 (frame_base_append_predicate): Add a NULL sniffer.
4712 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4713 (struct frame_base_table): Add "sniffer".
4714 (frame_base_free): Free the "sniffer" table.
4715 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4716 (frame_unwind_append_sniffer): Declare.
4717 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4718 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4719 (struct frame_unwind_table): Add "sniffer", delete "middle".
4720 (append_predicate): Add "sniffer" parameter, append the sniffer.
4721 (frame_unwind_init): Update append_predicate call.
4722 (frame_unwind_append_sniffer): New function.
4723 (frame_unwind_append_predicate): Update append_predicate call.
4724 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4726 2003-07-15 Andrew Cagney <cagney@redhat.com>
4728 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4729 before code inhibiting repeated unwind attempts. Add to
4730 commentary on that test's problems.
4731 * blockframe.c (inside_main_func): Look for "main" in the minimal
4733 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4736 2003-07-15 Andrew Cagney <cagney@redhat.com>
4738 * complaints.c (struct explanation): Define.
4739 (struct complaints): Change type of "explanation" to "struct
4741 (symfile_explanations): Convert to a "struct explanation" table.
4742 (vcomplaint): Update.
4744 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4746 * x86-64-linux-nat.c (regmap): Removed.
4747 (supply_gregset, fill_gregset): Call
4748 x86_64_linux_(fill,supply)_gregset functions.
4749 * x86-64-linux-tdep.c (USER_*): New defines.
4750 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4751 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4753 (fetch_core_registers): Ditto.
4754 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4755 * x86-64-linux-tdep.h: New file.
4756 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4758 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4760 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4762 * x86-64-tdep.c (x86_64_store_return_value): Use
4763 regcache_cooked_write_part instead of regcache_cooked_write.
4765 * configure.host: Add x86_64-*-freebsd*.
4766 * configure.tgt: Add x86_64-*-freebsd*.
4767 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4768 * amd64fbsd-nat.c: New file.
4769 * amd64fbsd-tdep.c: New file.
4770 * config/i386/nm-fbsd64.h: New file.
4771 * config/i386/fbsd64.mh: New file.
4772 * config/i386/fbsd64.mt: New file.
4774 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4776 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4777 `sc_regs_offset' and `sc_fpregs_offset'.
4778 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4779 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4780 (alpha_sigtramp_register_address): Rewrite to use new members of
4781 `struct gdbarch_tdep'.
4782 (alpha_gdbarch_init): Initialize new members of struct
4784 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4785 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4786 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4787 (alphafbsd_pc_in_sigtramp): Implement.
4788 (alphafbsd_sigtramp_offset): New function.
4789 (alphafbsd_sigcontext_addr): New function.
4790 (alphafbsd_init_abi): Initialize signal trampoline related members
4791 of `struct gdbarch_tdep'.
4792 (_initialize_alphafbsd_tdep): Add prototype.
4794 2003-07-11 Theodore A. Roth <troth@openavr.org>
4796 * Makefile.in (install-only): Quote sed expression when generating
4799 2003-07-11 Richard Henderson <rth@redhat.com>
4801 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4802 * dwarf2-frame.c: Include complaints.h.
4803 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4804 variable initialization; return NULL on error.
4805 (decode_frame_entry): New.
4807 2003-07-11 Andrew Cagney <cagney@redhat.com>
4809 * frame.h (frame_address_in_block): Delete declaration.
4810 * blockframe.c (frame_address_in_block): Delete function.
4811 (get_frame_block): Use get_frame_address_in_block.
4812 (block_innermost_frame): Ditto.
4813 * stack.c (print_frame, backtrace_command_1): Ditto.
4815 * frame.h (get_frame_address_in_block): Declare.
4816 (frame_unwind_address_in_block): Declare.
4817 * frame.c (frame_unwind_address_in_block): New function.
4818 (get_frame_address_in_block): New function.
4820 2003-07-10 Andrew Cagney <cagney@redhat.com>
4822 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4823 pre-default. Note: re-generate has no effect.
4825 2003-07-10 Andrew Cagney <cagney@redhat.com>
4827 * gdbarch.sh: When a variable, but not a function, compare against
4828 0. Fix problem in previous patch.
4829 * gdbarch.c: Re-generate.
4831 2003-07-10 Andrew Cagney <cagney@redhat.com>
4833 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4834 functions against NULL, not 0.
4835 * gdbarch.c: Re-generate.
4837 2003-07-10 Fred Fish <fnf@ninemoons.com>
4839 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4840 null string instead of a null pointer.
4841 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4843 2003-07-09 Michael Snyder <msnyder@redhat.com>
4845 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4847 2003-07-09 Mark Kettenis <kettenis@gnu.org>
4849 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4850 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4851 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4852 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4853 * x86-64-tdep.c: ... from here.
4855 2003-07-09 Andreas Schwab <schwab@suse.de>
4857 * m68k-tdep.h (enum struct_return): Define.
4858 (struct gdbarch_tdep): Add struct_return.
4859 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4860 bytes are padded to the right, not to the left. Pass struct value
4861 address in register %a1, not on stack.
4862 (m68k_use_struct_convention): New function.
4863 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4864 struct_return in tdep to pcc_struct_return.
4865 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4868 2003-07-09 Joel Brobecker <brobecker@gnat.com>
4870 * somread.c (som_symfile_offsets): Fix compilation error.
4872 2003-07-09 Andrew Cagney <cagney@redhat.com>
4874 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4875 Add comments about the checks.
4877 2003-07-08 Andrew Cagney <cagney@redhat.com>
4879 * Makefile.in: Make dependency section headers consistent.
4880 (config_h): Move to $BUILD headers section.
4881 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4882 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4883 (ada-exp.tab.c): Move to YACC/LEX section.
4884 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4885 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4887 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4889 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4890 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4891 of strerror with safe_strerror, use ISO C function definitions,
4892 and replace instances of sprintf with snprintf.
4894 2003-07-07 Andrew Cagney <cagney@redhat.com>
4896 * frame.c (get_prev_frame): Enable check for identical frames.
4897 Update comments. Update error messages.
4899 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4901 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4903 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4905 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4906 sort_symtab_syms, no longer necessary.
4908 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4910 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4912 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4914 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4915 (mips_register_byte): Likewise.
4917 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4919 * Makefile.in (sparc_tdep_h): New.
4920 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4921 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4922 * sparc-linux-nat.c: Include "sparc-tdep.h".
4923 * sparc-nat.c: Likewise.
4924 * sparc-tdep.c: Likewise.
4925 * sparc64nbsd-nat.c: Likewise.
4926 * sparcnbsd-nat.c: Likewise.
4927 * sparcnbsd-tdep.c: Likewise.
4928 * sparc-tdep.h: New file.
4929 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4930 and sparc_npc_regnum.
4932 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4934 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4935 (mips_linux_cannot_store_register): List supported instead of
4936 unsupported registers.
4938 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4940 * disasm.c (dump_insns): Separate instructions from addresses.
4942 2003-07-07 Andreas Schwab <schwab@suse.de>
4944 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4946 * m68k-tdep.c (NUM_FREGS): Delete.
4947 (SIG_PC_FP_OFFSET): Delete.
4948 (TARGET_M68K): Delete.
4949 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4950 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4951 P_MOVEL_SP, P_MOVEML_SP): Define.
4952 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4954 (m68k_register_raw_size): Delete.
4955 (m68k_register_virtual_size): Delete.
4956 (m68k_register_type): Renamed from m68k_register_virtual_type and
4957 add gdbarch argument.
4958 (m68k_store_struct_return): Delete.
4959 (m68k_deprecated_extract_return_value): Delete.
4960 (m68k_deprecated_extract_struct_value_address): Delete.
4961 (m68k_frame_chain): Delete.
4962 (m68k_frame_saved_pc): Delete.
4963 (m68k_fix_call_dummy): Delete.
4964 (m68k_push_dummy_frame): Delete.
4965 (m68k_pop_frame): Delete.
4966 (m68k_extract_return_value): New function.
4967 (m68k_store_return_value): Rewrite using regcache.
4968 (m68k_extract_struct_value_address): Rewrite using regcache.
4969 (m68k_push_dummy_call): New function.
4970 (struct m68k_frame_cache): Define.
4971 (m68k_alloc_frame_cache): New function.
4972 (m68k_analyze_frame_setup): New function.
4973 (m68k_analyze_register_saves): New function.
4974 (m68k_analyze_prologue): New function.
4975 (m68k_skip_prologue): Rewrite using above functions.
4976 (m68k_unwind_pc): New function.
4977 (m68k_frame_cache): New function.
4978 (m68k_frame_this_id): New function.
4979 (m68k_frame_prev_register): New function.
4980 (m68k_frame_unwind): New variable.
4981 (m68k_frame_p): New function.
4982 (m68k_sigtramp_frame_cache): New function.
4983 (m68k_sigtramp_frame_this_id): New function.
4984 (m68k_sigtramp_frame_prev_register): New function.
4985 (m68k_sigtramp_frame_unwind): New variable.
4986 (m68k_sigtramp_frame_p): New function.
4987 (m68k_frame_base_address): New function.
4988 (m68k_frame_base): New function.
4989 (m68k_unwind_dummy_id): New function.
4990 (fill_gregset): Use regcache_collect.
4991 (fill_fpregset): Likewise.
4992 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4994 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4995 deprecated_init_frame_pc, deprecated_store_struct_return,
4996 deprecated_extract_return_value, deprecated_store_return_value,
4997 deprecated_frame_chain, deprecated_frame_saved_pc,
4998 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4999 deprecated_register_virtual_size,
5000 deprecated_max_register_raw_size,
5001 deprecated_max_register_virtual_size,
5002 deprecated_register_virtual_type, deprecated_register_size,
5003 deprecated_register_byte, deprecated_register_bytes,
5004 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5005 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5006 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5007 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5008 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5009 deprecated_push_dummy_frame, deprecated_pop_frame,
5010 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5011 only if SYSCALL_TRAP is defined. Set extract_return_value,
5012 store_return_value, extract_struct_value_address, register_type,
5013 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5015 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5016 M68K_MAX_REGISTER_SIZE): Define.
5017 (struct m68k_sigtramp_info): Define.
5018 (struct gdbarch_tdep): Add get_sigtramp_info.
5019 * m68klinux-nat.c (fetch_register): Use register_size instead of
5020 REGISTER_RAW_SIZE. Don't put assignment in if.
5021 (store_register): Likewise.
5022 (fetch_inferior_registers): Likewise.
5023 (store_inferior_registers): Likewise.
5024 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5025 (m68k_linux_frame_saved_pc): Delete.
5026 (m68k_linux_sigcontext_reg_offset,
5027 m68k_linux_ucontext_reg_offset): Define.
5028 (m68k_linux_get_sigtramp_info): New function.
5029 (m68k_linux_extract_return_value): Rewrite using regcache.
5030 (m68k_linux_store_return_value): Likewise.
5031 (m68k_linux_extract_struct_value_address): Likewise.
5032 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5033 Don't set deprecated_frame_saved_pc,
5034 deprecated_extract_return_value, deprecated_store_return_value,
5035 deprecated_extract_struct_value_address. Set
5036 extract_return_value, store_return_value,
5037 extract_struct_value_address.
5039 2003-07-07 Andrew Cagney <cagney@redhat.com>
5041 * expprint.c: Include "user-regs.h" instead of "frame.h".
5042 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5043 frame_map_regnum_to_name.
5044 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5045 (frame_map_name_to_regnum): Simplify, call
5046 user_reg_map_name_to_regnum.
5047 (frame_map_regnum_to_name): Simplify, call
5048 user_reg_map_regnum_to_name.
5049 (frame_register_unwind): Update.
5050 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5051 (_initialize_frame_reg): Call user_reg_add_builtin.
5052 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5053 (value_of_register): Use value_of_user_reg.
5054 * eval.c (evaluate_subexp_standard): Update.
5055 * parse.c (write_dollar_variable): Update.
5056 * d10v-tdep.c (d10v_print_registers_info): Update.
5057 * infcmd.c (registers_info): Update.
5058 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5059 (builtin_regs_h): Delete macro.
5060 (user_regs_h): Define.
5061 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5062 (builtin-regs.o): Delete target.
5063 (user-regs.o): Specify dependencies.
5064 (expprint.o): Update dependencies.
5065 (findvar.o): Update dependencies.
5066 (frame.o): Update dependencies.
5067 (std-regs.o): Update dependencies.
5069 2003-07-06 Christopher Faylor <cgf@redhat.com>
5071 * win32-nat.c (solib_symbols_add): Use one variable for all section
5072 address stuff. Pass variable rather than address of variable to
5073 safe_symbol_file_add.
5075 2003-07-06 Andreas Schwab <schwab@suse.de>
5077 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5079 2003-07-04 Joel Brobecker <brobecker@gnat.com>
5081 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5083 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5085 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5087 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5089 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5090 * config/i386/nto.mh: New file.
5091 * config/i386/nm-nto.h: New file.
5092 * configure.host: Add i[3456]86-*-nto*.
5094 2003-07-03 Joel Brobecker <brobecker@gnat.com>
5096 * remote-vx.c (vx_add_symbols): Fix compilation error.
5098 2003-07-03 Andrew Cagney <cagney@redhat.com>
5100 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5101 * gdbarch.h, gdbarch.c: Re-generate.
5102 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5103 (legacy_register_name): Declare.
5104 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5105 (REGISTER_NAME): Define.
5106 * sparc-tdep.c (legacy_register_name): New function.
5107 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5108 (REGISTER_NAME): Define.
5109 (hppa64_register_name): Declare.
5110 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5111 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5112 (hppa64_register_name): New function.
5113 (hppa_register_name): New function.
5114 * arch-utils.c (legacy_register_name): Delete.
5115 * arch-utils.h (legacy_register_name): Delete.
5117 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5119 * cli/cli-interp.c (cli_interpreter_resume): Update the
5120 cli_uiout's stream to gdb_stdout.
5122 2003-07-03 Andrew Cagney <cagney@redhat.com>
5124 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5126 * gdbarch.h, gdbarch.c: Re-generate.
5127 * regcache.c (init_regcache_descr): Use legacy code when either
5128 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5130 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5132 * NEWS: Move "set logging" entry into GDB 6.0 section.
5134 2003-07-02 Jim Blandy <jimb@redhat.com>
5136 * s390-tdep.c (struct frame_extra_info): new member:
5137 'stack_bought_valid'.
5138 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5139 initialize fextra_info->stack_bought.
5140 (s390_frameless_function_invocation): Don't trust the value of
5141 fextra_info_ptr->stack_bought unless
5142 fextra_info->stack_bought_valid is set.
5144 New S390 prologue analyzer.
5145 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5146 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5147 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5148 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5149 compute_x_addr, s390_on_stack, s390_store,
5150 s390_get_signal_frame_info): New functions.
5151 (S390_NUM_SPILL_SLOTS): New macro.
5152 (s390_get_frame_info): Rewritten.
5153 (is_arg_reg): Deleted.
5155 Break out the decoding of S/390 instructions into separate
5156 functions, to make it more legible, and easier to check
5158 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5159 is_rx, is_rxe): New functions.
5160 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5161 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5162 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5163 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5164 enums for opcode values. (Is this an improvement?)
5166 2003-07-02 Andrew Cagney <cagney@redhat.com>
5168 * i386-tdep.c: Revert change committed as part of trad-frame code
5171 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5173 * breakpoint.c (insert_catchpoint): Make static.
5175 2003-07-02 Andreas Schwab <schwab@suse.de>
5177 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5178 former ia64_push_arguments and ia64_push_return_address, and use
5179 regcache functions instead of read/write_register.
5180 (ia64_gdbarch_init): Set push_dummy_call instead of
5181 deprecated_push_arguments and deprecated_push_return_address.
5183 2003-07-01 Andreas Jaeger <aj@suse.de>
5185 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5187 Set %rax only to number of SSE registers used.
5189 2003-07-01 Andrew Cagney <cagney@redhat.com>
5191 * trad-frame.h: Update comments, a -1 .addr is reserved.
5192 (trad_frame_value_p, trad_frame_addr_p): Declare.
5193 (trad_frame_reg_p): Declare.
5194 (trad_frame_set_value): Rename trad_frame_register_value.
5195 (trad_frame_set_unknown): Declare.
5196 * trad-frame.c (trad_frame_realreg_p): New function.
5197 (trad_frame_addr_p, trad_frame_value_p): New function.
5198 (trad_frame_set_unknown): New function.
5199 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5200 (trad_frame_prev_register): Use trad_frame_realreg_p,
5201 trad_frame_addr_p and trad_frame_value_p.
5202 (trad_frame_set_value): Rename trad_frame_register_value.
5203 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5204 and trad_frame_set_value.
5206 2003-06-30 Jim Blandy <jimb@redhat.com>
5208 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5209 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5210 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5211 for 16 registers, and then 32 more bytes.
5212 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5214 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5215 Move up in the file, since it's now used by is_simple_arg.
5216 (is_simple_arg): Don't assume registers are four bytes long.
5217 Exclude all double arguments. Extended floats are not simple
5219 (is_power_of_two): New function.
5220 (pass_by_copy_ref): Call is_power_of_two, and check that the
5221 length fits in a register, rather than listing all the acceptable
5222 sizes. Extended floats are not passed by reference.
5223 (s390_push_arguments): Don't assume registers are four bytes long.
5224 Reserve an argument register to point to the buffer for structures
5225 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5226 S390_STACK_FRAME_OVERHEAD.
5228 2003-06-30 Andreas Schwab <schwab@suse.de>
5230 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5231 format error message.
5233 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5235 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5237 2003-06-30 David Carlton <carlton@kealia.com>
5239 Band-aid for PR c++/1245.
5240 * Makefile.in (cp-support.o): Depend on complaints_h.
5241 * cp-support.c: Include complaints.h. Add declaration for
5242 find_last_component.
5243 (cp_find_first_component): Separate code into
5244 cp_find_first_component_aux.
5245 (cp_find_first_component_aux): Call demangled_name_complaint.
5246 (demangled_name_complaint): New.
5248 2003-06-30 Andrew Cagney <cagney@redhat.com>
5250 * remote.c (remote_write_bytes): Explicitly compute and then use
5251 the payload size. Update comments to reflect. Fixes problem of
5252 GDB not sending small packets as found by Fred Fish.
5254 2003-06-30 Andrew Cagney <cagney@redhat.com>
5256 * remote.c (remote_async_wait): Fix -Wformat problem.
5258 2003-06-29 Andrew Cagney <cagney@redhat.com>
5260 * remote.c (remote_wait): Call error, and not warning, when the
5262 (remote_async_wait): Ditto.
5264 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5266 * sparc-tdep.c (sparc_y_regnum): Make external again.
5268 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5270 * cli/cli-logging.c (pop_output_files): Add void to function
5273 2003-06-29 Andrew Cagney <cagney@redhat.com>
5275 * frame.c (frame_register_unwind): Use unsigned char when dumping
5276 the buffer contents.
5278 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5280 * cli/cli-logging.c: New file.
5281 * cli-out.c (struct ui_out_data): Add original_stream.
5282 (cli_redirect): New function.
5283 (cli_ui_out_impl): Add cli_redirect.
5284 (cli_out_new): Initialize original_stream.
5285 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5286 (uo_redirect, ui_out_redirect): New.
5287 * ui-out.h (struct ui_out_impl): Add redirect member.
5288 (redirect_ftype): New.
5289 (ui_out_redirect): Add prototype.
5290 * Makefile.in: Add rules for cli-logging.c.
5291 * NEWS: Mention "set logging".
5293 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5295 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5297 2003-06-27 Andrew Cagney <cagney@redhat.com>
5299 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5300 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5301 * avr-tdep.c (avr_call_dummy_address): Delete function.
5302 (avr_gdbarch_init): Do not set call_dummy_address.
5304 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5306 * symfile.c (syms_from_objfile): Move variables to inner block.
5307 Move the checks for the non-mainline case a bit earlier to avoid
5308 doing some useless computations.
5310 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5312 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5314 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5316 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5319 2003-06-26 Michael Chastain <mec@shout.net>
5321 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5322 gdb/testsuite/gdb.c++/pr-1210.exp.
5324 2003-06-26 Andrew Cagney <cagney@redhat.com>
5326 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5327 altivec_expression.h and altivec_registers.h.
5329 2003-06-26 Andrew Cagney <cagney@redhat.com>
5331 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5332 info->mach when MIPS16. Patch suggested by Fred Fish.
5334 2003-06-26 Andrew Cagney <cagney@redhat.com>
5336 * utils.c (internal_vproblem): Print the problem to a reason
5337 buffer and then pass to query. Make the msg variable more local.
5339 2003-06-26 Andrew Cagney <cagney@redhat.com>
5341 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5342 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5343 * gdbarch.h, gdbarch.c: Re-generate.
5344 * frame-base.c (default_frame_args_address): Update. Use
5345 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5347 (default_frame_locals_address): Ditto for
5348 DEPRECATED_FRAME_LOCALS_ADDRESS.
5349 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5350 (vax_frame_num_args): Update.
5351 (vax_gdbarch_init): Update.
5352 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5353 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5354 * mcore-tdep.c (mcore_gdbarch_init): Update.
5355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5356 * ia64-tdep.c (ia64_gdbarch_init): Update.
5357 * symtab.h (address_class): Update comments.
5358 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5359 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5360 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5361 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5362 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5363 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5364 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5365 * alpha-mdebug-tdep.c: Update.
5366 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5368 2003-06-26 Andreas Jaeger <aj@suse.de>
5370 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5371 of SSE registers so that varargs functions work. Rework handling
5372 of passing arguments on the stack.
5373 (x86_64_store_return_value): Return double and float values in SSE
5376 2003-06-24 Michael Chastain <mec@shout.net>
5378 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5379 the "constructor breakpoints ignored" bug.
5381 2003-06-25 David Carlton <carlton@kealia.com>
5383 * MAINTAINERS: Update e-mail address.
5385 2003-06-24 Jim Blandy <jimb@redhat.com>
5387 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5389 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5391 (ppc_linux_init_abi): Register it as the
5392 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5394 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5395 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5398 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5399 (ppc64_standard_linkage_target): Use it.
5401 2003-06-23 Andrew Cagney <cagney@redhat.com>
5403 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5404 for 0 "int0" and 4 "int32" sized registers.
5405 * gdbtypes.c (builtin_type_int0): Define.
5406 (build_gdbtypes): Initialize builtin_type_int0.
5407 * gdbtypes.h (builtin_type_int0): Declare.
5409 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5411 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5412 as characters are unsigned.
5414 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5417 * dwarfread.c (struct_type): Skip static fields without crashing.
5419 2003-06-22 Andrew Cagney <cagney@redhat.com>
5421 GDB 6.0 branch created.
5423 * PROBLEMS: Update. Empty.
5426 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5428 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5429 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5431 2003-06-22 Andrew Cagney <cagney@redhat.com>
5433 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5434 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5437 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5439 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5442 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5444 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5445 argument of val_print.
5446 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5447 to the address argument of baseclass_offset or target_read_memory.
5448 Do add it to the argument of cp_print_value_fields.
5450 2003-06-21 Andrew Cagney <cagney@redhat.com>
5452 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5453 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5454 instead of 0..NUM_REGS.
5455 (mips_register_reggroup_p): New function.
5456 (mips_pseudo_register_write): New function.
5457 (mips_pseudo_register_read): New function.
5458 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5459 based on the register's type.
5460 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5462 (mips_get_saved_register): Simplify. Assert that REGNO is a
5464 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5465 (mips_register_type): Replace mips_register_virtual_type. Map
5466 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5468 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5469 that the register is cooked / virtual.
5470 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5471 Only get the extra info when needed.
5472 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5473 (mips32_heuristic_proc_desc): Fetch the cooked register.
5474 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5475 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5476 (mips_print_register): Use gdbarch_register_type, instead of
5477 REGISTER_VIRTUAL_TYPE.
5478 (print_gp_register_row): Use gdbarch_register_type, instead of
5479 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5480 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5481 Print the pseudo / cooked registers.
5482 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5483 Print the pseudo / cooked registers.
5484 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5485 REG_NUM is pseudo / cooked.
5486 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5487 (mips_n32n64_xfer_return_value): Ditto.
5488 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5489 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5490 (mips_register_sim_regno): New function.
5491 (mips_gdbarch_init): Set deprecated_register_byte,
5492 register_group_p, pseudo_register_write, pseudo_register_read,
5493 register_sim_regno, and num_pseudo_regs. Set register_type,
5494 instead of register_virtual_type.
5495 * Makefile.in (mips-tdep.o): Update dependencies.
5496 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5497 REGISTER_VIRTUAL_TYPE.
5498 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5499 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5500 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5501 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5502 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5504 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5506 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5507 * cli/cli-cmds.c: Include "gdb_vfork.h".
5508 (shell_escape): Use vfork.
5510 2003-06-21 Andrew Cagney <cagney@redhat.com>
5512 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5513 32 bit floating-point register saves.
5515 * frame.h (deprecated_unwind_get_saved_register): Delete.
5516 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5517 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5518 and deprecated_get_next_frame_hack instead of
5519 deprecated_unwind_get_saved_register.
5521 * mips-tdep.c (mips_dump_tdep): Do not print
5522 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5524 * frame.c (get_frame_register): New function.
5525 (frame_unwind_register_signed): New function.
5526 (get_frame_register_signed): New function.
5527 (frame_unwind_register_unsigned): New function.
5528 (get_frame_register_unsigned): New function.
5529 * frame.h: Add comments on naming schema.
5530 (get_frame_register, frame_unwind_register_signed): Declare.
5531 (get_frame_register_signed, get_frame_register_signed): Declare.
5532 (frame_unwind_register_unsigned): Declare.
5533 (get_frame_register_unsigned): Declare.
5535 2003-06-20 Theodore A. Roth <troth@openavr.org>
5537 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5539 2003-06-20 Theodore A. Roth <troth@openavr.org>
5541 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5542 (avr_read_sp): Ditto.
5544 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5546 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5547 * config/arm/nm-linux.h: Likewise.
5548 * config/arm/tm-linux.h: Likewise.
5549 * config/ia64/nm-linux.h: Likewise.
5550 * config/ia64/tm-ia64.h: Likewise.
5551 * config/s390/tm-linux.h: Likewise.
5552 * config/s390/tm-s390.h: Likewise.
5553 * s390-nat.c: Likewise.
5554 * s390-tdep.c: Likewise.
5556 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5557 * config/ia64/linux.mt: Likewise.
5558 * config/m68k/linux.mh: Likewise.
5559 * config/mips/linux.mt: Likewise.
5560 * config/powerpc/linux.mh: Likewise.
5561 * config/sh/linux.mt: Likewise.
5563 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5565 * solib.c (solib_open): Change tests for whether to search
5566 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5569 2003-06-19 Theodore A. Roth <troth@openavr.org>
5571 * avr-tdep.c (avr_frame_address): Delete function.
5572 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5573 set_gdbarch_frame_args_address.
5575 2003-06-19 Andrew Cagney <cagney@redhat.com>
5577 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5578 (REGISTER_CONVERT_FROM_TYPE): Delete.
5579 (mips_register_convert_to_type): Delete declaration.
5580 (mips_register_convert_from_type): Delete declaration.
5581 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5584 2003-06-19 Michael Snyder <msnyder@redhat.com>
5586 * linux-nat.h: New file.
5587 * linux-nat.c: Include linux-nat.h.
5588 * lin-lwp.c: Include linux-nat.h.
5589 Move struct lwp_info def to linux-nat.h.
5590 * linux-proc.c: Include linux-nat.h.
5591 (linux_make_note_section): Iterate over lwps instead of threads.
5592 (linux_do_thread_registers): Use lwp instead of merged pid.
5593 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5594 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5595 Add dependency on linux_nat_h.
5597 2003-06-19 Theodore A. Roth <troth@openavr.org>
5599 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5601 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5603 * varobj.c (get_type, get_target_type): Use check_typedef.
5605 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5607 * breakpoint.c (insert_catchpoint): Call internal_error.
5609 2003-06-19 Theodore A. Roth <troth@openavr.org>
5611 * avr-tdep.c (avr_push_dummy_code): Delete function.
5612 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5614 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5616 * arch-utils.c (default_prepare_to_proceed): Remove.
5617 (generic_prepare_to_proceed): Remove.
5618 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5619 (generic_prepare_to_proceed): Remove prototype.
5620 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5621 * gdbarch.c: Regenerate.
5622 * gdbarch.h: Regenerate.
5623 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5624 * hppah-nat.c (hppa_switched_threads): Remove.
5625 * infrun.c (prepare_to_proceed): New static function, copied from
5626 generic_prepare_to_proceed. Remove select_it argument.
5627 (proceed): Call prepare_to_proceed.
5628 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5630 (ptrace_wait): Don't set the removed variables.
5631 (hppa_switched_threads): Remove.
5632 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5633 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5634 (lin_lwp_prepare_to_proceed): Remove prototype.
5635 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5636 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5638 2003-06-18 Theodore A. Roth <troth@openavr.org>
5640 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5642 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5643 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5644 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5645 (AVR_PROLOGUE_*): Enumerate prologue types.
5646 (struct frame_extra_info): Remove.
5647 (struct avr_unwind_cache): Define.
5648 (avr_write_sp): Delete function.
5649 (avr_read_fp): Ditto.
5650 (avr_init_extra_frame_info): Ditto.
5651 (avr_pop_frame): Ditto.
5652 (avr_frame_saved_pc): Ditto.
5653 (avr_saved_pc_after_call): Ditto.
5654 (avr_push_return_address): Ditto.
5655 (avr_frame_chain): Ditto.
5656 (avr_store_struct_return): Ditto.
5657 (avr_push_arguments): Ditto.
5658 (avr_scan_prologue): Update comments. Changed to set up the info for
5659 cache unwinding. Now returns end of prologue PC.
5660 (avr_skip_prologue): Better handling of functions lacking a prologue
5661 by using avr_scan_prologue.
5662 (avr_scan_arg_moves): New function.
5663 (avr_saved_regs_unwinder): Ditto.
5664 (avr_frame_unwind_cache): Ditto.
5665 (avr_unwind_pc): Ditto.
5666 (avr_frame_this_id): Ditto.
5667 (avr_frame_prev_register): Ditto.
5668 (avr_frame_p): Ditto.
5669 (avr_frame_base_address ): Ditto.
5670 (avr_unwind_dummy_id): Ditto.
5671 (avr_push_dummy_code): Ditto.
5672 (push_stack_item): Ditto.
5673 (pop_stack_item): Ditto.
5674 (avr_push_dummy_call): Ditto.
5675 (struct stack_item): Define.
5676 (avr_frame_unwind): Declare structure.
5677 (avr_frame_base): Ditto.
5678 (avr_gdbarch_init): Remove calls to
5679 set_gdbarch_deprecated_init_frame_pc,
5680 set_gdbarch_deprecated_target_read_fp,
5681 set_gdbarch_deprecated_dummy_write_sp,
5682 set_gdbarch_deprecated_fp_regnum,
5683 set_gdbarch_deprecated_push_arguments,
5684 set_gdbarch_deprecated_push_return_address,
5685 set_gdbarch_deprecated_pop_frame,
5686 set_gdbarch_deprecated_store_struct_return,
5687 set_gdbarch_deprecated_frame_init_saved_regs,
5688 set_gdbarch_deprecated_init_extra_frame_info,
5689 set_gdbarch_deprecated_frame_chain,
5690 set_gdbarch_deprecated_frame_saved_pc,
5691 set_gdbarch_deprecated_saved_pc_after_call.
5692 Add calls to set_gdbarch_push_dummy_call,
5693 set_gdbarch_push_dummy_code,
5694 frame_unwind_append_predicate,
5695 frame_base_set_default,
5696 set_gdbarch_unwind_dummy_id,
5697 set_gdbarch_unwind_pc.
5700 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
5702 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5703 registers for H8/300S.
5704 (h8300_print_registers_info): Ditto.
5705 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5707 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5709 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5710 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5711 (lin_lwp_wait): Likewise. Update comments.
5712 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5713 (pull_pid_from_list, linux_record_stopped_pid): New.
5715 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5717 * ada-lang.c (scan_discrim_bound): Name first argument.
5718 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5719 declared by ALL_BLOCK_SYMBOLS.
5721 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5723 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5724 ("regcache.h"): Include it.
5725 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5727 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5729 * NEWS: Mention gdbserver detach change and "disconnect" command.
5730 * infcmd.c (disconnect_command): New function.
5731 (_initialize_infcmd): Add ``disconnect'' command.
5732 * remote.c (remote_async_detach): Delete.
5733 (remote_detach): Merge remote_async_detach.
5734 (remote_disconnect): New.
5735 (init_remote_ops): Set to_disconnect.
5736 (init_remote_cisco_ops): Likewise.
5737 (init_remote_async_ops): Likewise. Use remote_detach.
5738 * target.c (cleanup_target): Default to_disconnect.
5739 (update_current_target): Inherit to_disconnect.
5740 (target_disconnect, debug_to_disconnect): New functions.
5741 (setup_target_debug): Set to_disconnect.
5742 * target.h (struct target_ops): Add to_disconnect.
5743 (target_disconnect): Add prototype.
5745 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5747 * breakpoint.c (insert_catchpoint): New function.
5748 (insert_breakpoints): Use catch_exceptions to call
5749 insert_catchpoint. Disable catchpoints if they fail to insert.
5751 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5753 * symfile.c (reread_symbols): Clear sym_private.
5755 2003-06-17 Andrew Cagney <cagney@redhat.com>
5757 * trad-frame.h (struct frame_info): Add opaque declaration.
5758 * remote-fileio.h (struct cmd_list_element): Add opaque
5760 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5763 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5765 * remote.c (remote_prepare_to_store): Replace call to
5766 deprecated_read_register_bytes with multiple regcache_raw_read
5769 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5771 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5772 (nto_find_and_open_solib): Likewise.
5773 (nto_init_solib_absolute_prefix): Likewise.
5774 (_initialize_nto_tdep): Fix indentation.
5776 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5778 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5780 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5782 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5784 2003-06-17 Jim Blandy <jimb@redhat.com>
5786 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5788 2003-06-16 Theodore A. Roth <troth@openavr.org>
5790 * avr-tdep.c (avr_extract_return_value): New function.
5791 (avr_gdbarch_init): Set extract_return_value method.
5793 2003-06-16 Andrew Cagney <cagney@redhat.com>
5795 * frame.h (deprecated_get_next_frame_hack): Declare.
5796 * frame.c (legacy_saved_regs_prev_register): Only require
5797 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5798 there are always saved regs.
5799 (deprecated_generic_get_saved_register): Do not require
5800 DEPRECATED_FRAME_INIT_SAVED_REGS.
5801 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5802 use frame ID unwind instead.
5803 (deprecated_get_next_frame_hack): New function.
5805 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5807 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5808 (h8300_push_dummy_call): ...this function. Some minor optimization.
5809 (h8300_push_return_address): Remove.
5810 (h8300_gdbarch_init): Remove calls to
5811 set_gdbarch_deprecated_dummy_write_sp,
5812 set_gdbarch_deprecated_push_arguments and
5813 set_gdbarch_deprecated_push_return_address.
5814 Add call to set_gdbarch_push_dummy_call.
5816 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5818 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5819 (E_PSEUDO_EXR_REGNUM): Ditto.
5820 (h8300_is_argument_spill): Check for instructions moving argument
5821 registers into safe registers.
5822 (h8300_skip_prologue): Check for stm instruction to push registers
5823 used for register variables onto stack.
5824 (gdb_print_insn_h8300): Remove.
5825 (h8300_examine_prologue): Add a comment.
5826 (h8300_register_name): Take pseudo registers into account.
5827 (h8300s_register_name): Ditto.
5828 (h8300sx_register_name): Ditto.
5829 (h8300_print_register): Ditto.
5830 (h8300_print_registers_info): Define "nice" printing order.
5831 (h8300_saved_pc_after_call): Take pseudo registers into account.
5832 (h8300_register_type): Ditto. Return type used for remote connection
5833 when requesting real CCR or EXR register, return actual type when
5834 requesting pseudo CCR or EXR.
5835 (h8300_pseudo_register_read): New function.
5836 (h8300_pseudo_register_write): Ditto.
5837 (h8300_dbg_reg_to_regnum): Ditto.
5838 (h8300s_dbg_reg_to_regnum): Ditto.
5839 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5840 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5841 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5842 set_gdbarch_print_insn architecture dependent.
5843 Call set_gdbarch_pseudo_register_read and
5844 set_gdbarch_pseudo_register_write.
5845 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5847 2003-06-16 Andrew Cagney <cagney@redhat.com>
5849 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5850 * gdbarch.h, gdbarch.c: Re-generate.
5851 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5852 * s390-tdep.c (s390_gdbarch_init): Update.
5853 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5854 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5855 * mips-tdep.c (mips_gdbarch_init): Update.
5856 * mcore-tdep.c (mcore_gdbarch_init): Update.
5857 * cris-tdep.c (cris_gdbarch_init): Update.
5858 * infcall.c (call_function_by_hand): Update.
5859 * ia64-tdep.c (ia64_push_arguments): Update comment.
5860 * frame.c (legacy_get_prev_frame): Do not assume
5861 SAVE_DUMMY_FRAME_TOS_P.
5862 * dummy-frame.c (find_dummy_frame): Update comment.
5864 2003-06-16 Andrew Cagney <cagney@redhat.com>
5866 * regcache.c (do_cooked_read): Do not use register_valid_p.
5868 2003-06-15 Theodore A. Roth <troth@openavr.org>
5870 * avr-tdep.c (avr_register_type): Remove a blank line.
5871 (avr_scan_prologue): Correct some comments.
5873 2003-06-15 Theodore A. Roth <troth@openavr.org>
5875 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5877 Properly scan prologues generated by gcc with the -mcall-prologues
5879 Add code to scan -mcall-prologues for mega devices.
5881 2003-06-15 Theodore A. Roth <troth@openavr.org>
5883 * avr-tdep.c (avr_register_byte): Delete function.
5884 (avr_register_raw_size): Delete function.
5885 (avr_register_virtual_size): Delete function.
5886 (avr_register_virtual_type): Delete function.
5887 (avr_register_type): New function.
5888 (avr_address_to_pointer): Remove unused code.
5889 (avr_read_fp): Need to read FP as two separate bytes due to change to
5890 avr_register_type() usage.
5891 (avr_gdbarch_init): Don't set deprecated_register_size.
5892 Don't set deprecated_register_bytes.
5893 Don't set deprecated_register_byte.
5894 Don't set deprecated_register_raw_size.
5895 Don't set deprecated_max_register_raw_size.
5896 Don't set deprecated_register_virtual_size.
5897 Don't set deprecated_max_register_virtual_size.
5898 Don't set deprecated_register_virtual_type.
5899 Set register_type method.
5901 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5903 * Makefile.in (linux-nat.o): Add rule.
5904 * linux-nat.c: New file.
5905 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5906 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5907 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5908 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5909 * config/arm/linux.mh (NATDEPFILES): Likewise.
5910 * config/i386/linux.mh (NATDEPFILES): Likewise.
5911 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5912 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5913 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5914 * config/mips/linux.mh (NATDEPFILES): Likewise.
5915 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5916 * config/s390/s390.mh (NATDEPFILES): Likewise.
5917 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5919 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5921 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5922 replace out-of-date comment.
5924 2003-06-15 Andrew Cagney <cagney@redhat.com>
5926 * rdi-share/host.h (Fail): Change to a varargs function.
5927 * remote-rdi.c (Fail): Update.
5929 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5931 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5932 (i386_convert_register_p, i386_register_to_value,
5933 i386_register_from_value): Handle types longer than 8 bytes.
5935 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5937 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5938 Move floating-point code to new function in i387-tdep.c.
5939 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5940 New functions containing code moved here from i386-tdep.c.
5941 * i387-tdep.h: Add opaque declaration for `struct type'.
5942 (i387_register_to_value, i387_value_to_register): New prototypes.
5943 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5944 (x86_64_init_abi): Set convert_register_p, register_to_value and
5945 value_to_register here.
5947 2003-06-14 Andrew Cagney <cagney@redhat.com>
5949 * mips-tdep.c (mips_register_to_value): Make static.
5950 (mips_value_to_register): Make static.
5951 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5952 * ia64-tdep.c (ia64_register_raw_size): Make static.
5953 (ia64_register_virtual_size): Make static.
5954 (ia64_register_byte): Make static.
5955 * i387-tdep.c: Include "i387-tdep.h".
5956 (print_387_control_word): Delete function.
5957 (print_387_status_word): Delete function.
5958 (print_387_status_bits): Delete function.
5959 (print_387_control_bits): Delete function.
5960 * Makefile.in (i387-tdep.o): Update dependencies.
5961 * rdi-share/host.h (Fail): Declare.
5962 * remote-rdi.c (Fail): Update to match declaration.
5964 2003-06-14 Andrew Cagney <cagney@redhat.com>
5966 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5967 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5968 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5969 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5970 * README: Delete reference to remote-array.
5971 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5972 (remote-array.o): Delete target.
5973 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5974 * remote-array.c: Delete file.
5976 2003-06-14 Andrew Cagney <cagney@redhat.com>
5977 Mark Kettenis <kettenis@gnu.org>
5979 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5980 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5981 parameter with "frame".
5982 * gdbarch.h, gdbarch.c: Re-generate.
5983 * frame.h (put_frame_register): Declare.
5984 * frame.c (put_frame_register): New function.
5985 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5986 (legacy_register_to_value): Rewrite, use "frame" to get the
5988 (legacy_value_to_register): Rewrite, use "frame" to find the
5989 register's location before storing.
5990 * arch-utils.h (legacy_convert_register_p): Update.
5991 (legacy_register_to_value, legacy_value_to_register): Update.
5992 * findvar.c (value_from_register): Rewrite, eliminate use of
5993 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5994 "frame" to REGISTER_TO_VALUE.
5995 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5996 lval_reg_frame_relative + lval_register branch of the switch. Do
5997 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5998 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5999 I386_EDI_REGNUM): New defines.
6000 (i386_next_regnum, i386_convert_register_p,
6001 i386_register_to_value, i386_value_to_register): New functions.
6002 (i386_register_convertible, i386_register_convert_to_virtual,
6003 i386_convert_to_raw): Remove functions.
6004 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6005 value_to_register instead of register_convertible,
6006 register_convert_to_virtual and register_convert_to_raw.
6007 * mips-tdep.c (mips_convert_register_p): New function.
6008 (mips_value_to_register): Replace mips_register_convert_from_type.
6009 (mips_register_to_value): Replace mips_register_convert_to_type.
6010 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6012 * alpha-tdep.c (alpha_convert_register_p): Update.
6013 (alpha_value_to_register): Update, store the register.
6014 (alpha_register_to_value): Update, fetch the register.
6016 2003-06-14 Theodore A. Roth <troth@openavr.org>
6018 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6019 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6020 Don't set deprecated_call_dummy_words.
6021 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6022 Don't set remote_translate_xfer_address.
6023 (avr_io_reg_read_command): Remove commented out debug printf.
6026 2003-06-14 Theodore A. Roth <troth@openavr.org>
6028 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6029 causes gdb to seg fault.
6031 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
6033 * sparc-nat.c (fetch_inferior_registers): Correct
6034 a reference to "registers".
6036 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6038 * Makefile.in (exc_request_U_h): Define
6039 (exc_request_S_h): Likewise.
6040 (msg_reply_S_h): Likewise.
6041 (msg_U_h): Likewise.
6042 (notify_S_h): Likewise.
6043 (process_reply_S_h): Likewise.
6044 (gnu-nat.o): Depend on gdb_obstack_h
6045 * gnu-nat.c: Include "gdb_obstack.h".
6047 2003-06-13 Andrew Cagney <cagney@redhat.com>
6049 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6050 * gdbarch.h, gdbarch.c: Re-generate.
6052 2003-06-13 Andrew Cagney <cagney@redhat.com>
6054 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6055 when deprecated REGISTER macros can be deleted.
6056 * gdbarch.h, gdbarch.c: Re-generate.
6058 2003-06-13 Jim Blandy <jimb@redhat.com>
6060 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6061 Linux entry point symbols for _dl_debug_state, too.
6063 2003-06-13 Andrew Cagney <cagney@redhat.com>
6065 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6066 available, do not use the FP register, and always save the TOS.
6067 * dummy-frame.c (dummy_frame_this_id): Do not assert
6068 SAVE_DUMMY_FRAME_TOS.
6069 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6070 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6071 (i386_push_dummy_call): Add 8 to the returned SP.
6072 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6073 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6074 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6075 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6076 (x86_64_push_dummy_call): Return "sp + 16".
6077 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6078 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6079 save_dummy_frame_tos.
6081 2003-06-13 Jim Blandy <jimb@redhat.com>
6083 * frv-tdep.c (frv_use_struct_convention): Delete static
6084 declaration for function deleted in my change of 2003-06-12.
6086 2003-06-13 Theodore A. Roth <troth@openavr.org>
6088 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6089 (avr_pointer_to_address): Shift code addrs left 1 bit.
6090 (avr_convert_from_func_ptr_addr): Delete function since operation is
6091 better handled by avr_address_to_pointer and avr_pointer_to_address.
6092 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6094 2003-06-13 Mark Kettenis <kettenis@gnu.org>
6096 From Kelley Cook <kelleycook@wideopenwest.com>:
6097 * configure.host: Accept i[34567]86 variants.
6098 * configure.tgt: Likewise.
6099 * nlm/configure.in: Likewise.
6100 * nlm/configure: Regenerated.
6102 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
6104 * arm-tdep.c (solib-svr4.h): Dont' include it.
6105 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6106 * arm-linux-tdep.c: ... here. Make static.
6107 (arm_linux_init_abi): Register it.
6108 (solib-svr4.h): Include it.
6109 * Makefile.in: Update dependencies.
6110 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6111 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6113 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6115 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6116 indicate registers used for return values.
6117 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6118 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6120 (h8300_init_extra_frame_info): Ditto.
6121 (h8300_frame_locals_address): Removed.
6122 (h8300_frame_args_address): Removed.
6123 (h8300_extract_return_value): Use new regcache structure. Only care
6125 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6126 (h8300_store_return_value): Use new regcache structure. Only care
6128 (h8300h_store_return_value): Same function for 32 bit CPUs.
6129 (h8300_store_struct_return): Removed.
6130 (h8300_extract_struct_value_address): Use new regcache structure.
6131 (h8300h_extract_struct_value_address): Removed.
6132 (h8300_push_dummy_code): New function.
6133 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6134 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6135 set_gdbarch_store_return_value architecture dependent.
6136 Call set_gdbarch_push_dummy_code and
6137 set_gdbarch_extract_struct_value_address.
6138 Remove calls to set_gdbarch_frame_args_address,
6139 set_gdbarch_frame_locals_address,
6140 set_gdbarch_deprecated_store_struct_return,
6141 set_gdbarch_deprecated_extract_return_value,
6142 set_gdbarch_deprecated_extract_struct_value_address,
6143 set_gdbarch_deprecated_call_dummy_words and
6144 set_gdbarch_deprecated_sizeof_call_dummy_words.
6146 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6148 * h8300-tdep.c (h8300_register_byte): Remove.
6149 (h8300h_register_byte): Remove.
6150 (h8300_register_virtual_type): Remove. Substitute by...
6151 (h8300_register_type): New function.
6152 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6153 (h8300h_extract_struct_value_address): Ditto.
6154 (h8300_gdbarch_init): Drop calls to
6155 set_gdbarch_deprecated_register_byte and
6156 set_gdbarch_deprecated_register_virtual_type.
6157 Add call to set_gdbarch_register_type.
6159 2003-06-13 Andrew Cagney <cagney@redhat.com>
6161 * gdbarch.sh: Update comments on registers.
6162 (deprecated_register_byte): Rename register_byte.
6163 (deprecated_register_raw_size): Rename register_raw_size.
6164 (deprecated_register_virtual_size): Rename register_virtual_size.
6165 (deprecated_register_virtual_type): Rename register_virtual_type.
6166 * gdbarch.h, gdbarch.c: Re-generate.
6167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6168 * vax-tdep.c (vax_gdbarch_init): Update.
6169 * v850-tdep.c (v850_gdbarch_init): Update.
6170 * sparc-tdep.c (sparc_gdbarch_init): Update.
6171 * sh-tdep.c (sh_gdbarch_init): Update.
6172 * s390-tdep.c (s390_gdbarch_init): Update.
6173 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6174 * ns32k-tdep.c: Update.
6175 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6176 * mips-tdep.c (mips_gdbarch_init): Update.
6177 * mcore-tdep.c (mcore_gdbarch_init): Update.
6178 * m68k-tdep.c (m68k_gdbarch_init): Update.
6179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6180 * ia64-tdep.c (ia64_gdbarch_init): Update.
6181 * hppa-tdep.c (hppa_gdbarch_init): Update.
6182 * h8300-tdep.c (h8300_gdbarch_init): Update.
6183 * frv-tdep.c (frv_gdbarch_init): Update.
6184 * cris-tdep.c (cris_gdbarch_init): Update.
6185 * avr-tdep.c (avr_gdbarch_init): Update.
6186 * alpha-tdep.c (alpha_gdbarch_init): Update.
6187 * arm-tdep.c (arm_gdbarch_init): Update.
6189 2003-06-13 Andrew Cagney <cagney@redhat.com>
6191 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6192 mips_o32_use_struct_convention with always_use_struct_convention.
6194 2003-06-12 David Carlton <carlton@kealia.com>
6196 * cp-namespace.c (cp_set_block_scope): Comment out
6197 processing_has_namespace_info branch.
6199 2003-06-12 Jim Blandy <jimb@redhat.com>
6201 Recognize and skip 64-bit PowerPC Linux linkage functions.
6202 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6203 insn_pattern, insns_match_pattern, d_field, ds_field): New
6204 functions, macros, and types for working with PPC instructions.
6205 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6206 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6207 ppc64_skip_trampoline_code): New functions, variables, and macros
6208 for recognizing and skipping linkage functions.
6209 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6210 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6212 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6213 register offsets for both the 32- and 64-bit interfaces.
6215 Actually finish the job started by my change of 2003-05-29.
6216 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6217 other #definition of this.
6218 (ppc_linux_skip_trampoline_code): Remove declaration.
6219 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6221 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6224 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6225 'long' on ppc64-*-linux*.
6227 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6228 isn't #defined, assume the register doesn't exist: act as if
6229 tdep->ppc_mq_regnum were -1.
6231 * configure.host, configure.tgt: Add entries for
6232 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6234 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6237 * arch-utils.c (always_use_struct_convention): New function.
6238 * arch-utils.h (always_use_struct_convention): New prototype.
6239 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6240 (alpha_gdbarch_init): Register always_use_struct_convention,
6241 instead of alpha_use_struct_convention.
6242 * cris-tdep.c (cris_use_struct_convention): Delete.
6243 (cris_gdbarch_init): Register always_use_struct_convention,
6244 instead of cris_use_struct_convention.
6245 * frv-tdep.c (frv_use_struct_convention): Delete.
6246 (frv_gdbarch_init): Register always_use_struct_convention,
6247 instead of frv_use_struct_convention.
6248 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6249 (h8300_gdbarch_init): Register always_use_struct_convention,
6250 instead of h8300_use_struct_convention.
6251 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6252 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6253 instead of mips_o32_use_struct_convention.
6255 2003-06-12 Andrew Cagney <cagney@redhat.com>
6257 * wince.c: Include "mips-tdep.h".
6258 * mips-tdep.h (mips_next_pc): Declare.
6259 * mcore-tdep.c: Make more local functions static.
6260 * Makefile.in (wince.o): Update dependencies.
6262 2003-06-12 David Carlton <carlton@kealia.com>
6264 * symtab.c (lookup_symbol_aux_minsyms): Replace
6265 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6266 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6267 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6268 SYMBOL_NATURAL_NAME.
6270 2003-06-12 Andreas Schwab <schwab@suse.de>
6272 * Makefile.in (tuiDisassem.o): Update dependencies.
6274 2003-06-12 David Carlton <carlton@bactrian.org>
6276 * symtab.h: Delete declaration of make_symbol_overload_list.
6277 Add declaration of lookup_partial_symbol.
6278 * symtab.c (remove_params): Move to cp-support.c.
6279 (overload_list_add_symbol, make_symbol_overload_list)
6280 (sym_return_val_size, sym_return_val_index): Ditto.
6281 (lookup_partial_symbol): Make extern.
6282 * cp-support.h: Add declaration of make_symbol_overload_list.
6283 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6284 symtab.h, and block.h.
6285 (remove_params): Move here from symtab.c.
6286 (overload_list_add_symbol, make_symbol_overload_list)
6287 (sym_return_val_size, sym_return_val_index): Ditto.
6288 * valops.c: Include cp-support.h.
6289 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6290 frame_h, and block_h.
6291 (valops.o): Depend on cp_support_h.
6293 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6295 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6296 substitute by NUM_REGS throughout.
6297 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6298 (h8300s_register_name): New function for H8S registers.
6299 (h8300sx_register_name): Ditto for H8SX registers.
6300 (h8300_print_register): Revise register printing, avoid depending
6302 (h8300_register_byte): Only care for H8/300 registers.
6303 (h8300h_register_byte): New function for any other architecture.
6304 (h8300_register_raw_size): Remove.
6305 (h8300_register_virtual_type): Revise to return actually useful
6307 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6308 (h8300h_extract_struct_value_address): New function for any other
6310 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6311 set_gdbarch_register_name, set_gdbarch_register_byte,
6312 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6313 Remove calls to set_gdbarch_deprecated_register_size,
6314 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6315 set_gdbarch_deprecated_max_register_raw_size,
6316 set_gdbarch_register_virtual_size and
6317 set_gdbarch_deprecated_max_register_virtual_size entirely.
6318 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6319 set_gdbarch_long_double_bit.
6321 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6323 * doublest.c (convert_doublest_to_floatformat): When dealing
6324 with the implied integer bit, only alter mant_bits if we are
6325 processing a full 32 bits of mantissa.
6327 2003-06-11 David Carlton <carlton@bactrian.org>
6329 * dictionary.h: New.
6330 * dictionary.c: New.
6331 * block.h: Add opaque declaration for struct dictionary.
6332 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6334 (BLOCK_DICT): New macro.
6335 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6336 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6338 (ALL_BLOCK_SYMBOLS): Update definition.
6339 * Makefile.in (SFILES): Add dictionary.c.
6340 (dictionary_h): New.
6341 (COMMON_OBS): Add dictionary.o.
6342 (dictionary.o): New.
6343 (ada-lang.o): Depend on dictionary_h.
6344 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6345 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6346 (mi-cmd-stack.o): Ditto.
6347 (gdbtk-cmds.o): Update dependencies.
6348 (gdbtk-stack.o): Ditto.
6349 * ada-lang.c: Include dictionary.h.
6350 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6351 (fill_in_ada_prototype, debug_print_block): Ditto.
6352 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6353 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6355 * mdebugread.c: Include dictionary.h.
6356 (struct parse_stack): Delete 'maxsyms' member.
6357 (parse_symbol): Update calls to new_block. Delete calls to
6358 shrink_block. Use dictionary methods.
6359 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6360 Update calls to new_symtab. Don't maintain maxsyms data.
6361 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6362 (add_symbol): Just call dict_add_symbol.
6363 (new_symtab): Delete 'maxsyms' argument.
6364 (new_symtab): Update calls to new_block.
6365 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6366 (shrink_block): Delete function.
6367 (fixup_sigtramp): Update call to new_block. Add symbol via
6369 * jv-lang.c: Include dictionary.h.
6370 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6371 appropriately. Set class_symtab->free_func. Make sure the
6372 blockvector is big enough to hold two blocks.
6373 (add_class_symtab_symbol): Use dictionary methods.
6374 (free_class_block): New function.
6375 (type_from_class): Replace explicit iteration by
6377 * symtab.h (struct symtab): Replace 'free_ptr' method by
6379 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6381 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6383 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6384 Include dictionary.h.
6385 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6386 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6388 * objfiles.c: Include dictionary.h.
6389 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6390 * buildsym.c: Include dictionary.h.
6391 (finish_block): Use dictionary methods.
6392 (end_symtab): Set free_func to NULL, not free_ptr.
6393 * tracepoint.c: Include dictionary.h.
6394 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6395 (scope_info): Ditto.
6396 * stack.c: Include dictionary.h.
6397 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6398 (print_block_frame_labels, print_frame_arg_vars)
6399 (print_frame_args): Ditto.
6400 * symmisc.c (free_symtab_block): Use dictionary methods.
6401 (dump_symtab): Ditto.
6402 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6403 Include dictionary.h.
6404 * symfile.h: Delete declarations of sort_block_syms,
6406 * symfile.c (sort_block_syms): Delete.
6407 (sort_symtab_syms): Delete.
6408 * symtab.c: Include dictionary.h.
6409 (lookup_block_symbol): Use dictionary iterators.
6410 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6411 (search_symbols, make_symbol_completion_list): Ditto.
6412 (make_symbol_overload_list): Ditto.
6413 * valops.c (value_of_local): Use dict_empty.
6414 Include dictionary.h.
6416 2003-06-11 J. Brobecker <brobecker@gnat.com>
6418 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6420 2003-06-11 David Carlton <carlton@bactrian.org>
6422 * block.h (BLOCK_SHOULD_SORT): Delete.
6423 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6425 * ada-lang.c (ada_add_block_symbols): Ditto.
6426 * symfile.c (sort_block_syms): Delete.
6427 (sort_symtab_syms): Ditto.
6428 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6430 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6431 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6432 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6433 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6434 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6435 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6436 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6438 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6440 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6443 2003-06-11 Andrew Cagney <cagney@redhat.com>
6445 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6446 REGISTER_CONVERTIBLE.
6447 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6448 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6449 * gdbarch.h, gdbarch.c: Re-generate.
6450 * arch-utils.h (deprecated_register_convertible_not): Rename
6451 generic_register_convertible_not.
6452 * arch-utils.c (deprecated_register_convertible_not): Rename
6453 generic_register_convertible.
6454 (legacy_convert_register_p, legacy_register_to_value): Update.
6455 * sh-tdep.c (sh64_push_arguments): Update.
6456 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6457 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6458 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6459 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6460 * arch-utils.c (legacy_value_to_register): Update.
6461 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6462 (rs6000_register_convert_to_raw): Make parameter "from" const.
6463 * mips-tdep.c (mips_gdbarch_init): Update.
6464 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6465 * infcmd.c (default_print_registers_info): Update.
6466 * ia64-tdep.c (ia64_gdbarch_init): Update.
6467 (ia64_register_convert_to_raw): Make parameter "from" const.
6468 * i386-tdep.c (i386_gdbarch_init): Update.
6469 (i386_register_convert_to_raw): Update.
6471 2003-06-11 Andrew Cagney <cagney@redhat.com>
6473 * remote-fileio.c: Include "remote-fileio.h".
6474 * Makefile.in (remote-fileio.o): Update dependencies.
6475 (remote_fileio_h): Fix typo.
6477 2003-06-11 Andrew Cagney <cagney@redhat.com>
6479 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6480 (xstormy16_save_dummy_frame_tos): Make static.
6481 (_initialize_xstormy16_tdep): Add declaration.
6482 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6483 * v850-tdep.c: Make local functions static.
6484 (_initialize_v850_tdep): Add declaration.
6485 * sparc-tdep.c: Make local functions static.
6486 (_initialize_sparc_tdep): Add declaration.
6487 * sh-tdep.c: Make local functions static.
6488 (_initialize_sh_tdep): Add declaration.
6489 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6490 * s390-tdep.c: Make local functions static.
6491 (_initialize_s390_tdep): Add declaration.
6492 * dbxread.c (find_stab_function_addr): Make static.
6493 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6494 * ocd.c (_initialize_remote_ocd): Add declaration.
6495 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6496 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6497 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6498 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6499 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6500 * remote-array.c (_initialize_array): Add declaration.
6501 (_initialize_remote_monitors): Add declaration.
6502 * remote-mips.c: Make local functions static.
6503 (_initialize_remote_mips): Add declaration.
6504 * mcore-tdep.c: Make all local functions static.
6505 (_initialize_mcore_tdep): Add declaration.
6506 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6507 * abug-rom.c (_initialize_abug_rom): Add declaration.
6508 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6509 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6510 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6511 * remote-est.c (_initialize_est): Add declaration.
6512 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6513 (m68hc11_call_dummy_address): Make static.
6514 * ia64-tdep.c: Make local functions static.
6515 (_initialize_ia64_tdep): Add declaration.
6516 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6517 * monitor.c (monitor_wait_filter): Make static.
6518 (_initialize_remote_monitors): Add declaration.
6519 * remote-hms.c (_initialize_remote_hms): Add declaration.
6520 * remote-e7000.c (fetch_regs_from_dump): Make static.
6521 (expect_n): Make static.
6522 (_initialize_remote_e7000): Add declaration.
6523 * ser-e7kpc.c: Always include "defs.h".
6524 (_initialize_ser_e7000pc): Add declaration.
6525 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6526 * cris-tdep.c: Make all but one function static.
6527 (_initialize_cris_tdep): Add declaration.
6528 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6529 * solib.c (update_solib_list): Make static.
6530 (_initialize_solib): Add declaration.
6531 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6532 (_initialize_avr_tdep): Add declaration.
6533 * remote-rdi.c (voiddummy): Make static.
6534 (_initialize_remote_rdi): Add declaration.
6535 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6536 * remote-rdp.c (send_rdp): Make static.
6537 (_initialize_remote_rdp): Add declaration.
6538 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6540 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6542 * remote-fileio.c: Make ari happy.
6544 2003-06-10 J. Brobecker <brobecker@gnat.com>
6546 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6547 fetching the trailing bytes of the buffer we are about to write.
6549 2003-06-10 Andrew Cagney <cagney@redhat.com>
6551 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6552 * Makefile.in (remote-fileio.o): Update dependencies.
6553 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6554 include <setjmp.h>, or <sys/types.h> conditional on USG.
6555 (remote_fio_jmp_buf): Delete global variable.
6557 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6558 Martin M. Hunt <hunt@redhat.com>
6560 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6561 (SFILES): Add remote-fileio.c.
6562 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6563 dependencies for building remote.o.
6564 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6565 * remote-fileio.h: New header file defining remote File-I/O interface.
6566 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6567 static storage class.
6568 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6570 (_initialize_remote): Call initialize_remote_fileio().
6571 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6572 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6573 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6574 (captured_main): Initialize new ui_files.
6575 * ui-file.c: Add read and fgets input functions.
6576 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6577 (null_file_read): New function.
6578 (ui_file_read): New function.
6579 (set_ui_file_read): New function.
6580 (stdio_file_read): New function.
6581 * ui-file.h: New type ui_file_read_ftype.
6582 (set_ui_file_read): Declare.
6583 (ui_file_read): Declare.
6585 2003-06-09 Andrew Cagney <cagney@redhat.com>
6587 * frame.h (deprecated_unwind_get_saved_register): Rename
6588 generic_unwind_get_saved_register, update comments.
6589 * mips-tdep.c (mips_get_saved_register): Update.
6590 * frame.c (deprecated_unwind_get_saved_register): Update.
6592 2003-06-09 Andrew Cagney <cagney@redhat.com>
6594 * vax-tdep.c (vax_frame_locals_address): Delete function.
6595 (vax_gdbarch_init): Do not set frame_locals_address.
6596 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6597 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6598 * s390-tdep.c (s390_frame_args_address): Delete function.
6599 (s390_gdbarch_init): Do not set frame_args_address or
6600 frame_locals_address.
6601 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6602 (ns32k_gdbarch_init): Do not set frame_locals_address.
6603 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6604 (hppa_frame_locals_address): Delete function.
6605 (hppa_gdbarch_init): Do not set frame_args_address, or
6606 frame_locals_address.
6607 * arm-tdep.c (arm_frame_args_address): Delete.
6608 (arm_frame_locals_address): Delete.
6609 (arm_gdbarch_init): Do not set frame_args_address, or
6610 frame_locals_address.
6612 2003-06-09 Andrew Cagney <cagney@redhat.com>
6614 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6615 * gdbarch.h, gdbarch.c: Re-generate.
6616 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6617 * arch-utils.c (frame_num_args_unknown): Delete function.
6618 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6619 (frame_info): Use FRAME_NUM_ARGS_P.
6620 * arm-tdep.c (arm_frame_num_args): Delete function.
6621 (arm_gdbarch_init): Do not set frame_num_args.
6622 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6623 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6624 (hppa_gdbarch_init): Do not set frame_num_args.
6625 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6626 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6627 frame_num_args to default frame_num_args_unknown.
6628 * v850-tdep.c (v850_gdbarch_init): Ditto.
6629 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6630 * sh-tdep.c (sh_gdbarch_init): Ditto.
6631 * s390-tdep.c (s390_gdbarch_init): Ditto.
6632 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6633 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6634 * mips-tdep.c (mips_gdbarch_init): Ditto.
6635 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6636 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6638 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6639 * i386-tdep.c (i386_gdbarch_init): Ditto.
6640 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6641 * frv-tdep.c (frv_gdbarch_init): Ditto.
6642 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6643 * cris-tdep.c (cris_gdbarch_init): Ditto.
6644 * avr-tdep.c (avr_gdbarch_init): Ditto.
6645 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6647 2003-06-09 Andrew Cagney <cagney@redhat.com>
6649 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6650 (print_frame_args): Moved to "stack.c".
6651 * stack.c: Include "gdb_assert.h".
6652 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6653 (print_frame_args): Moved from "printcmd.c".
6654 * frame.h (print_frame_args): Delete declaration.
6655 * Makefile.in (stack.o): Update dependencies.
6657 2003-06-08 Andrew Cagney <cagney@redhat.com>
6659 * frame.c (get_prev_frame): Remove reference to
6660 frame_args_address_correct in comments.
6661 * frame-base.c (default_frame_args_address): Delete code
6662 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6663 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6664 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6665 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6666 (vax_frame_args_address_correct): Delete declaration.
6668 2003-06-08 Andrew Cagney <cagney@redhat.com>
6670 * gdbarch.sh (UNWIND_SP): Add.
6671 * gdbarch.h, gdbarch.c: Re-generate.
6672 * frame.c (frame_sp_unwind): New function.
6673 (get_frame_sp): New function.
6674 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6675 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6676 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6678 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6679 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6681 2003-06-08 Andrew Cagney <cagney@redhat.com>
6683 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6686 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6687 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6688 * config/m68k/tm-sun3.h: Update.
6689 * config/m68k/tm-m68klynx.h: Update.
6690 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6692 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6693 trad_frame". Update comments.
6694 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6695 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6696 (trad_frame_register_value, trad_frame_prev_register): Update.
6698 2003-06-08 Andrew Cagney <cagney@redhat.com>
6700 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6701 from GCC's acinclude.m4.
6702 * configure.in: Check for getopt's delcaration.
6703 * aclocal.m4, config.in, configure: Re-generate.
6704 * main.c (error_init): Delete declaration.
6705 * defs.h (error_init): Declare.
6706 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6707 (rs6000_convert_from_func_ptr_addr): Make static.
6708 (_initialize_rs6000_tdep): Add declaration.
6709 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6710 (show_commands, set_verbose, show_history): Delete declaration.
6711 * top.h (set_verbose): Add declaration.
6712 (show_history, set_history, show_commands): Add declaration.
6713 (do_restore_instream_cleanup): Add declaration.
6714 * objc-lang.c (specialcmp): Make static.
6715 (print_object_command): Make static.
6716 (find_objc_msgsend): Make static.
6717 (find_objc_msgcall_submethod_helper): Make static.
6718 (find_objc_msgcall_submethod): Make static.
6719 (_initialize_objc_language): Add declaration.
6720 (find_implementation_from_class): Make static.
6721 (find_implementation): Make static.
6722 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6723 * objc-lang.h (lookup_struct_typedef): Add declaration.
6724 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6725 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6726 (do_restore_user_call_depth): Make static.
6727 (do_restore_instream_cleanup): Delete declaration.
6728 (dont_repeat): Delete declaration.
6729 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6730 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6731 * reggroups.c (_initialize_reggroup): Add declaration.
6732 * cp-support.c (_initialize_cp_support): Add declaration.
6733 * cp-abi.c (_initialize_cp_abi): Add declaration.
6734 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6735 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6736 (_initialize_gnu_v3_abi): Add declaration.
6737 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6738 (_initialize_gnu_v2_abi): Add declaration.
6739 * frame-base.c (_initialize_frame_base): Add declaration.
6740 * doublest.c (floatformat_from_length): Make static.
6741 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6742 * frame.c (create_sentinel_frame): Make static.
6743 (_initialize_frame): Add declaration.
6744 * top.c (do_catch_errors): Make static.
6745 (gdb_rl_operate_and_get_next_completion): Make static.
6746 * typeprint.c: Include "typeprint.h".
6747 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6748 (sentinel_frame_this_id): Make static.
6749 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6750 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6751 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6752 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6753 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6754 * maint.c (maintenance_print_architecture): Make static.
6755 * signals/signals.c (_initialize_signals): Add declaration.
6756 * std-regs.c (_initialize_frame_reg): Add declaration.
6757 * jv-exp.y (push_variable): ISO C definition.
6758 (push_qualified_expression_name): Ditto.
6759 * memattr.c (_initialize_mem): Add declaration.
6760 * remote.c (remote_check_watch_resources): Make static.
6761 (remote_stopped_by_watchpoint): Make static.
6762 (remote_stopped_data_address): Make static.
6763 * d10v-tdep.c (nr_dmap_regs): Make static.
6764 (a0_regnum): Make static.
6765 (d10v_frame_unwind_cache): Make static.
6766 (d10v_frame_p): Make static.
6767 * osabi.c (show_osabi): Make static.
6768 (_initialize_gdb_osabi): Add extern declaration.
6769 * gdbtypes.c (make_qualified_type): Make static.
6770 (safe_parse_type): Make static.
6771 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6772 * macrotab.c (macro_bcache_free): Make static.
6773 * interps.c (interp_set_quiet): Make static.
6774 (interpreter_exec_cmd): Make static.
6775 * stack.h (select_frame_command): New file.
6776 * stack.c: Include "stack.h".
6777 (select_frame_command_wrapper): Delete function.
6778 (select_frame_command): Make global.
6779 * infcall.c: Include "infcall.h".
6780 * linespec.c: Include "linespec.h".
6781 * symfile.c (sections_overlap): Make static.
6782 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6783 * charset.c (_initialize_charset): Add missing prototype.
6784 * regcache.c (init_legacy_regcache_descr): Make static.
6785 (do_regcache_xfree): Make static.
6786 (regcache_xfer_part): Make static.
6787 (_initialize_regcache): Add missing prototype.
6788 * breakpoint.c (parse_breakpoint_sals): Make static.
6789 (breakpoint_sals_to_pc): Make static.
6790 * interps.h (clear_interpreter_hooks): ISO C declaration.
6791 * Makefile.in (stack_h): Define.
6792 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6793 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6795 2003-06-08 Andrew Cagney <cagney@redhat.com>
6797 * Makefile.in (d10v-tdep.o): Update dependencies.
6798 (SFILES): Add trad-frame.c.
6799 (trad_frame_h): Define.
6800 (COMMON_OBS): Add trad-frame.o.
6801 (trad-frame.o): Specify dependencies.
6802 * d10v-tdep.c: Include "trad-frame.h".
6803 (saved_regs_unwinder): Delete function.
6804 (d10v_frame_prev_register): Use trad_frame_prev_register.
6805 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6806 trad_frame", delete "regs" and "prev_sp".
6807 (prologue_find_regs): Use trad-frame.
6808 * trad-frame.h, trad-frame.c: New files.
6810 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6812 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6814 2003-06-07 Adam Fedor <fedor@gnu.org>
6816 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6817 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6818 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6819 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6820 resolve_msgsend_super, resolve_msgsend_super_stret):
6823 2003-06-07 Andrew Cagney <cagney@redhat.com>
6825 * symfile.h: Re-indent, clean up comments.
6827 2003-06-07 Andrew Cagney <cagney@redhat.com>
6829 * inferior.h (deprecated_write_sp): Replace
6830 generic_target_write_sp.
6831 * regcache.c (deprecated_write_sp): Replace
6832 generic_target_write_sp.
6833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6834 * vax-tdep.c (vax_gdbarch_init): Update.
6835 * v850-tdep.c (v850_gdbarch_init): Update.
6836 * sparc-tdep.c (sparc_gdbarch_init): Update.
6837 * sh-tdep.c (sh_gdbarch_init): Update.
6838 * s390-tdep.c (s390_gdbarch_init): Update.
6839 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6840 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6841 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6842 * mcore-tdep.c (mcore_gdbarch_init): Update.
6843 * m68k-tdep.c (m68k_gdbarch_init): Update.
6844 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6845 * ia64-tdep.c (ia64_gdbarch_init): Update.
6846 * h8300-tdep.c (h8300_gdbarch_init): Update.
6847 * frv-tdep.c (frv_gdbarch_init): Update.
6848 * cris-tdep.c (cris_gdbarch_init): Update.
6849 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6851 2003-06-07 Andrew Cagney <cagney@redhat.com>
6853 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6854 Assert that PC_REGNUM is valid.
6855 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6857 2003-06-07 Andrew Cagney <cagney@redhat.com>
6859 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6860 * gdbarch.h, gdbarch.c: Regenerate.
6861 * mn10300-tdep.c: Include "gdb_assert.h".
6862 (mn10300_read_fp): New function.
6863 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6864 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6865 * ia64-tdep.c: Include "gdb_assert.h".
6866 (ia64_read_fp): New function.
6867 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6868 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6869 * regcache.c (generic_target_read_sp): Delete function.
6870 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6871 * inferior.h (generic_target_read_sp): Delete declaration.
6872 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6873 generic_target_read_sp.
6874 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6875 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6876 * sh-tdep.c (sh_gdbarch_init): Ditto.
6877 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6878 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6880 2003-06-07 Andrew Cagney <cagney@redhat.com>
6882 * gdbarch.sh: Comment each field of startup_gdbarch.
6883 * gdbarch.h, gdbarch.c: Re-generate.
6885 2003-06-07 Andrew Cagney <cagney@redhat.com>
6887 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6888 * gdbarch.h, gdbarch.c: Re-generate.
6889 * regcache.c: Update comments on read_pc et.al.
6890 (generic_target_read_pc): Delete function.
6891 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6892 * inferior.h (generic_target_read_pc): Delete declaration.
6893 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6894 generic_target_read_pc.
6895 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6896 * sh-tdep.c (sh_gdbarch_init): Ditto.
6897 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6898 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6900 2003-06-07 Andrew Cagney <cagney@redhat.com>
6902 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6903 "index" with "special_local_sect". Use strcmp instead of STREQ.
6904 Append period to coments.
6906 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6908 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6909 (elfstab_offset_sections): Likewise.
6910 * gdb-stabs.h (stab_section_info): Likewise.
6911 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6912 * objfiles.c (objfile_relocate): Likewise.
6913 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6914 * remote.c (get_offsets): Likewise.
6915 (remote_cisco_objfile_relocate): Likewise.
6916 * somread.c (som_symfile_offsets): Likewise.
6917 * symfile.c (alloc_section_addr_info): New function.
6918 (build_section_addr_info_from_section_tab): Use it.
6919 (free_section_addr_info): Adjust.
6920 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6921 (syms_from_objfile): Allocate local_addr dynamically.
6922 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6924 (add_symbol_file_command): Allocate sect_opts dynamically.
6925 (reread_symbols): Avoid use of SECT_OFF_MAX.
6926 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6927 (alloc_section_addr_info): Declare it.
6928 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6929 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6931 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6933 2003-06-06 Andrew Cagney <cagney@redhat.com>
6935 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6936 (d10v_frame_unwind_cache): Do not set "return_pc".
6938 2003-06-06 Michael Snyder <msnyder@redhat.com>
6940 * h8300-tdep.c: Make tidy (long lines).
6942 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6944 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6945 to regcache_collect().
6947 2003-06-05 J. Brobecker <brobecker@gnat.com>
6949 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6950 pc_in_sigtramp multiarch method.
6951 (hppa_hpux_som_init_abi): Use it.
6952 (hppa_hpux_elf_init_abi): Likewise.
6953 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6954 macro has been multiarched.
6955 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6956 macro here, as hppa64 isn't multiarched yet.
6958 2003-06-05 Andrew Cagney <cagney@redhat.com>
6960 * Makefile.in (value_h): Add $(frame_h).
6961 * value.h: Include "frame.h".
6962 (struct value): Replace "frame_addr" with "frame_id".
6963 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6964 * values.c (allocate_value): Use VALUE_FRAME_ID.
6965 (value_copy): Use VALUE_FRAME_ID.
6966 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6967 * valops.c (value_assign): Update. Use frame_find_by_id.
6969 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6971 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6974 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6976 * thread-db.c (check_event): For create/death event breakpoints,
6977 loop through all messages to ensure that we read the message
6978 corresponding to the breakpoint we are at.
6980 2003-06-04 Michael Snyder <msnyder@redhat.com>
6982 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6984 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6986 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6987 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6988 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6989 when handling .eh_frame sections.
6991 2003-06-04 J. Brobecker <brobecker@gnat.com>
6993 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6994 prepare_to_proceed procedure instead of the hppa-specific one.
6995 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6997 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6999 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7000 * config.in: Regenerated.
7001 * configure.in: Add test for syscall function and check for
7002 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7003 * configure: Regenerated.
7004 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7006 (kill_lwp): New function that uses tkill syscall or
7007 uses kill, depending on whether threading model is nptl or not.
7008 All callers of kill() changed to use kill_lwp().
7009 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7010 see if all threads have already exited in the nptl model.
7011 (stop_and_resume_callback): New callback function used by the
7012 lin_lwp_wait thread exit handling code.
7013 (stop_wait_callback): Check for threads already having exited and
7014 delete such threads fromt the lwp list when discovered.
7015 (stop_callback): Don't assert retcode of kill call.
7017 Roland McGrath <roland@redhat.com>
7018 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7021 2003-06-03 Richard Henderson <rth@redhat.com>
7023 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7024 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7025 (alpha_sigtramp_frame_prev_register): Likewise.
7026 (alpha_heuristic_frame_prev_register): Likewise.
7027 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7029 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7030 alpha-specific register id names.
7031 (alpha_mdebug_frame_unwind_cache): Likewise.
7032 (alpha_mdebug_frame_prev_register): Likewise.
7034 2003-06-03 Richard Henderson <rth@redhat.com>
7036 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7037 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7038 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7039 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7041 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7042 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7043 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7045 * alpha-linux-tdep.c: Remove unnecessary includes.
7046 * Makefile.in (alpha-linux-tdep.o): Update.
7048 2003-06-03 Richard Henderson <rth@redhat.com>
7050 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7051 (alphabsd_fill_fpreg): Likewise.
7053 2003-06-03 J. Brobecker <brobecker@gnat.com>
7055 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7056 references to struct frame_info fields by calls to the equivalent
7057 accessors. Necessary now that frame_info is opaque.
7059 2003-06-03 J. Brobecker <brobecker@gnat.com>
7061 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7062 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7063 structure, field no longer exists.
7065 2003-06-03 J. Brobecker <brobecker@gnat.com>
7067 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7068 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7070 2003-06-03 J. Brobecker <brobecker@gnat.com>
7072 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7073 references to struct frame_info fields by calls to the equivalent
7074 accessors. Necessary now that frame_info is opaque.
7076 2003-06-03 J. Brobecker <brobecker@gnat.com>
7078 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7079 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7080 structure, field no longer exists.
7082 2003-06-03 Theodore A. Roth <troth@openavr.org>
7084 * remote.c (init_remote_state): Compute sizeof_g_packet by
7085 accumulation of the size of all registers instead of blindly using
7086 DEPRECATED_REGISTER_BYTES.
7088 2003-06-03 Michael Snyder <msnyder@redhat.com>
7090 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7091 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7094 2003-06-03 J. Brobecker <brobecker@gnat.com>
7096 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7097 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7099 2003-06-03 Andrew Cagney <cagney@redhat.com>
7101 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7102 (sparc_convert_to_raw): Delete function.
7103 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7104 register_convert_to_virtual.
7106 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7108 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7109 layer if not dealing with a statically-linked threaded program.
7111 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7113 * solib.c (solib_open): Update comment to reflect actual search order.
7115 2003-06-03 Andrew Cagney <cagney@redhat.com>
7117 * frame.c (get_frame_memory_signed): New function.
7118 (get_frame_memory, get_frame_memory_unsigned): New function.
7119 (get_frame_arch): New function.
7120 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7121 (get_frame_memory, get_frame_unsigned_memory): Declare.
7122 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7123 get_frame_memory_unsigned and get_frame_arch.
7124 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7126 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7128 * MAINTAINERS (write after approval): Add myself.
7130 2003-06-03 Jim Blandy <jimb@redhat.com>
7132 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7133 elements of gregset_t are 64 bits each, but access registers
7134 are still 32 bits, so they're packed two per gregset_t
7135 element. Unpack/pack them properly.
7137 2003-06-02 David Carlton <carlton@bactrian.org>
7139 * linespec.c (find_methods): Break out code into
7140 add_matching_methods and add_constructors.
7141 (add_matching_methods): New.
7142 (add_constructors): Ditto.
7144 2003-06-02 Andrew Cagney <cagney@redhat.com>
7146 * sparc-tdep.c (sparc_print_registers): Delete call to
7147 REGISTER_CONVERTIBLE.
7148 (sparc_gdbarch_init): Do not set register_convertible.
7149 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7150 * frv-tdep.c (frv_gdbarch_init): Ditto.
7151 * cris-tdep.c (cris_gdbarch_init): Ditto.
7153 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7155 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7156 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7157 (syms_from_objfile): Ditto.
7159 2003-06-03 Andreas Schwab <schwab@suse.de>
7161 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7162 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7164 2003-06-02 Richard Henderson <rth@redhat.com>
7166 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7167 a member of all_reggroup.
7169 2003-06-02 Richard Henderson <rth@redhat.com>
7171 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7172 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7173 (alpha_lds, alpha_sts): New.
7174 (alpha_convert_register_p): Change from _register_convertible.
7175 (alpha_register_to_value): Change from _convert_to_virtual;
7176 restructure and fail for type sizes other than 4 or 8.
7177 (alpha_value_to_register): Similarly.
7178 (alpha_extract_return_value): Use alpha_sts.
7179 (alpha_store_return_value): Use alpha_lds.
7180 (alpha_gdbarch_init): Update hooks.
7182 2003-06-02 Richard Henderson <rth@redhat.com>
7184 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7186 (alpha_sigtramp_register_address): Likewise.
7188 2003-06-02 Richard Henderson <rth@redhat.com>
7190 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7191 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7192 * alpha-tdep.h: Declare them.
7194 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7195 Remove zerobuf. Don't error on UNIQUE.
7196 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7197 (ALPHA_REGSET_UNIQUE): Provide default.
7198 (supply_gregset): Use alpha_supply_int_regs.
7199 (fill_gregset): Use alpha_fill_int_regs.
7200 (supply_fpregset): Use alpha_supply_fp_regs.
7201 (fill_fpregset): Use alpha_fill_fp_regs.
7202 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7203 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7204 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7205 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7206 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7207 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7209 2003-06-02 Richard Henderson <rth@redhat.com>
7211 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7213 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7214 (alpha_store_return_value): Likewise.
7216 2003-06-02 David Carlton <carlton@math.stanford.edu>
7218 * block.c (contained_in): Add 'const' to arguments.
7219 (block_function): Ditto.
7220 * block.h: Update declarations for block_function and
7223 2003-06-02 David Carlton <carlton@math.stanford.edu>
7225 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7226 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7227 * p-valprint.c (pascal_val_print): Ditto.
7228 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7230 2003-06-02 Richard Henderson <rth@redhat.com>
7232 * alpha-tdep.c (alpha_push_dummy_call): Use
7233 builtin_type_ieee_double_little instead of builtin_type_double.
7235 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7236 sign-extension of 32-bit values.
7237 (alpha_store_return_value): Similarly.
7239 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7240 (alpha_extract_return_value): Likewise.
7241 (alpha_store_return_value): Likewise.
7243 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7244 (alpha_store_return_value): Error on IEEE Quad floats.
7246 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7247 (alpha_extract_struct_value_address): Likewise.
7248 (alpha_store_return_value): Likewise.
7249 (alpha_store_struct_return): Remove.
7250 (alpha_gdbarch_init): Update hook registration to match.
7252 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7253 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7254 macros where appropriate.
7255 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7256 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7258 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7259 for SP, GP; void_func_ptr for PC; non-language-specific types
7261 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7263 2003-06-02 Richard Henderson <rth@redhat.com>
7265 * top.h (lim_at_start): Declare.
7266 * main.c (captured_main): Set it.
7267 * top.c (lim_at_start): Define.
7268 (command_loop): Use it instead of &environ.
7269 * event-top.c (command_handler): Likewise.
7271 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7273 * mipsnbsd-tdep.c: Update copyright years.
7274 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7276 2003-06-01 Richard Henderson <rth@redhat.com>
7278 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7279 (alpha-linux-tdep.o): Update dependencies.
7280 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7281 * alpha-mdebug-tdep.c: Remove unneeded includes.
7283 2003-06-01 Richard Henderson <rth@redhat.com>
7285 * alpha-tdep.c (alpha_register_reggroup_p): New.
7286 (alpha_gdbarch_init): Register it.
7288 2003-06-02 Andrew Cagney <cagney@redhat.com>
7290 * dwarfread.c: Eliminate "register"
7291 (decode_die_type): Eliminate assignment within "if".
7292 (struct_type, decode_array_element_type): Ditto.
7293 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7294 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7295 (decode_modified_type, completedieinfo): Ditto.
7296 * block.c: Eliminate "register".
7297 (blockvector_for_pc_sect): Eliminate assignment within "if".
7298 * cp-support.h (struct symbol): Opaque declaration.
7299 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7301 2003-06-01 Richard Henderson <rth@redhat.com>
7303 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7304 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7306 2003-06-01 Adam Fedor <fedor@gnu.org>
7308 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7309 * gdbarch.[ch]: Regenerate.
7310 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7311 (hppa_gdbarch_init): Set it in the gdbarch vector.
7312 * i386-tdep.c (i386_fetch_pointer_argument): New
7313 (i386_gdbarch_init): Set it into gdbarch.
7314 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7315 (rs6000_gdbarch_init): Set it in gdbarch.
7316 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7317 (sparc_gdbarch_init): Set it in gdbarch.
7319 2003-06-01 Andrew Cagney <cagney@redhat.com>
7321 * defs.h (extract_address): Delete declaration.
7322 * findvar.c (extract_address): Delete function.
7323 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7324 extract_address with the inline equivalent,
7325 extract_unsigned_integer.
7326 (xstormy16_extract_struct_value_address): Ditto.
7327 (xstormy16_pointer_to_address): Ditto.
7328 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7329 * v850-tdep.c (v850_push_arguments): Ditto.
7330 (v850_extract_return_value): Ditto.
7331 (v850_extract_struct_value_address): Ditto.
7332 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7333 (sparcnbsd_get_longjmp_target_64): Ditto.
7334 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7335 (get_longjmp_target): Ditto.
7336 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7337 (sh64_extract_struct_value_address): Ditto.
7338 (sh_push_arguments): Ditto.
7339 (sh64_push_arguments): Ditto.
7340 * remote-vxsparc.c (vx_read_register): Ditto.
7341 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7342 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7343 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7344 * mipsv4-nat.c (get_longjmp_target): Ditto.
7345 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7346 * mips-nat.c (get_longjmp_target): Ditto.
7347 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7348 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7349 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7350 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7351 * irix5-nat.c (get_longjmp_target): Ditto.
7352 * irix4-nat.c (get_longjmp_target): Ditto.
7353 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7354 (ia64_push_arguments): Ditto.
7355 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7356 * h8300-tdep.c (h8300_push_arguments): Ditto.
7357 (h8300_store_return_value): Ditto.
7358 (h8300_extract_struct_value_address): Ditto.
7359 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7360 (frv_push_arguments): Ditto.
7361 * avr-tdep.c (avr_pointer_to_address): Ditto.
7362 (avr_push_arguments): Ditto.
7363 * arm-tdep.c (arm_push_dummy_call): Ditto.
7364 (arm_get_longjmp_target): Ditto.
7365 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7366 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7367 (alpha_get_longjmp_target): Ditto.
7369 * solib-irix.c (extract_mips_address): Inline extract_address,
7370 replacing it with extract_signed_integer.
7371 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7372 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7373 (first_link_map_member, open_symbol_file_object): Ditto.
7374 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7375 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7376 (LM_NEXT, LM_NAME): Ditto.
7378 2003-06-01 Richard Henderson <rth@redhat.com>
7380 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7381 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7382 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7383 (alpha_cannot_store_register): Likewise.
7384 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7385 * alpha-nat.c (supply_gregset): Likewise.
7386 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7388 2003-06-01 Andrew Cagney <cagney@redhat.com>
7390 * infcall.c (call_function_by_hand): Update comment on
7391 DEPRECATED_DUMMY_WRITE_SP.
7393 * mips-tdep.c (mips_gdbarch_init): Do not set
7394 deprecated_dummy_write_sp.
7395 (mips_eabi_push_dummy_call): Set the SP register.
7396 (mips_o64_push_dummy_call): Set the SP register.
7397 (mips_o32_push_dummy_call): Set the SP register.
7398 (mips_n32n64_push_dummy_call): Set the SP register.
7400 2003-06-01 Richard Henderson <rth@redhat.com>
7402 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7403 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7404 (supply_gregset): Likewise.
7405 * alpha-tdep.c (alpha_store_return_value): Likewise.
7406 (alpha_get_longjmp_target): Likewise.
7407 (alpha_register_name): Constify array.
7408 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7409 deprecated_register_size, deprecated_register_bytes,
7410 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7411 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7412 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7414 2003-06-01 Richard Henderson <rth@redhat.com>
7416 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7417 from arg_reg_buffer to regcache to avoid double conversion.
7419 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7421 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7423 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7424 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7426 2003-06-01 Richard Henderson <rth@redhat.com>
7428 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7429 (decode_frame_entry): Set it. Skip FDE augmentation.
7431 2003-06-01 Richard Henderson <rth@redhat.com>
7433 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7434 not overlapping PC_REGNUM.
7436 2003-06-01 Richard Henderson <rth@redhat.com>
7438 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7439 alpha_push_arguments. Don't dump argument register data to
7440 the target stack. Fix float and 128-bit long double semantics.
7441 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7442 (alpha_fix_call_dummy): Remove.
7443 (alpha_call_dummy_words): Remove.
7444 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7446 2003-06-01 Richard Henderson <rth@redhat.com>
7448 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7450 2003-06-01 Andrew Cagney <cagney@redhat.com>
7452 * mips-tdep.c (is_mips16_addr): New function.
7453 (make_mips16_addr, unmake_mips16_addr): New functions.
7454 (pc_is_mips16, mips_fetch_instruction): Use.
7455 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7456 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7457 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7458 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7460 * config/mips/tm-mips.h: Update copyright.
7461 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7462 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7463 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7464 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7465 (TM_PRINT_INSN_MACH): Delete.
7466 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7468 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7469 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7470 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7471 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7472 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7473 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7474 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7475 mips*-*-riscos* and mips*-*-sysv* onto mips.
7476 * config/mips/mips64.mt: New file.
7477 * config/mips/mips.mt: New file.
7478 * config/mips/littlemips.mt: Delete file.
7479 * config/mips/decstation.mt: Delete file.
7480 * config/mips/vr4300el.mt: Delete file.
7481 * config/mips/vr5000el.mt: Delete file.
7482 * config/mips/vr5000.mt: Delete file.
7483 * config/mips/vr4100.mt: Delete file.
7484 * config/mips/vr4xxxel.mt: Delete file.
7485 * config/mips/vr4300.mt: Delete file.
7486 * config/mips/vr4xxx.mt: Delete file.
7487 * config/mips/bigmips.mt: Delete file.
7488 * config/mips/bigmips64.mt: Delete file.
7489 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7490 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7491 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7492 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7493 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7495 * config/mips/tm-irix3.h: Ditto.
7496 * config/mips/tm-mipsv4.h: Ditto.
7497 * config/mips/tm-embed.h: Ditto.
7498 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7500 * config/mips/tm-vr5000el.h: Delete file.
7501 * config/mips/tm-tx39l.h: Delete file.
7502 * config/mips/tm-vr4300el.h: Delete file.
7503 * config/mips/tm-vr4xxxel.h: Delete file.
7504 * config/mips/tm-vr4300.h: Delete file.
7505 * config/mips/tm-vr4100.h: Delete file.
7506 * config/mips/tm-vr4xxx.h: Delete file.
7507 * config/mips/tm-vr5000.h: Delete file.
7508 * config/mips/tm-embedl64.h: Delete file.
7509 * config/mips/tm-embedl.h: Delete file.
7510 * config/mips/tm-embed64.h: Delete file.
7511 * config/mips/tm-bigmips64.h: Delete file.
7512 * config/mips/tm-bigmips.h: Delete file.
7514 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7517 * shnbsd-nat.c: Include "sh-tdep.h".
7519 From Richard Henderson <rth@redhat.com>:
7520 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7522 2003-05-31 Andrew Cagney <cagney@redhat.com>
7524 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7525 forward declaration.
7526 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7527 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7528 (mips_find_saved_regs): Use set_reg_offset.
7529 (mips_frame_init_saved_regs): Delete function.
7530 (mips_pop_frame): Call mips_find_saved_regs instead of
7531 DEPRECATED_FRAME_INIT_SAVED_REGS.
7533 2003-05-31 Andrew Cagney <cagney@redhat.com>
7535 * mips-tdep.c (mips_gdbarch_init): Do not set
7536 deprecated_max_register_raw_size, register_virtual_size, and
7537 deprecated_max_register_virtual_size.
7539 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7541 * i386-tdep.c: Include "dwarf2-frame.h".
7542 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7543 * Makefile.in (i386-tdep.o): Update dependencies.
7545 * dwarf2-frame.c, dwarf2-frame.h: New files.
7546 * Makefile.in (SFILES): Add dwarf2-frame.c.
7547 (dwarf2_frame_h): Define.
7548 (COMMON_OBS): Add dwarf2-frame.o.
7549 (dwarf2-frame.o): Add dependencies.
7551 2003-05-31 Andreas Jaeger <aj@suse.de>
7553 * x86-64-linux-nat.c: Fix comment.
7555 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7557 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7560 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7561 have a sigcontext_addr handler.
7562 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7563 sigcontext_addr handler.
7565 2003-05-31 Andrew Cagney <cagney@redhat.com>
7567 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7568 (print_fp_register_row): Replace do_fp_register_row.
7569 (mips_print_fp_register): Add "file" and "frame" parameters.
7570 (mips_print_register): Add "file" and "frame" parameters.
7571 (mips_print_registers_info): Replace mips_do_registers_info.
7572 (mips_gdbarch_init): Set print_registers_info instead of
7573 deprecated_do_registers_info.
7574 (mips_read_fp_register_single): Add "frame" parameter.
7575 (mips_read_fp_register_double): Add "frame" parameter.
7577 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7579 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7580 Fixes a bug where GDB would print the wrong register names for
7581 targets without SSE.
7583 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7584 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7587 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7588 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7589 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7592 From Michal Ludvig <mludvig@suse.cz>:
7593 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7595 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7596 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7597 I386_ST0_REGNUM): Move here from...
7598 * i386-tdep.c: ... here.
7599 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7600 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7601 registers if possible.
7602 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7603 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7605 (i386bsd_sc_reg_offset): New variable.
7606 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7607 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7609 (i386fbsd_sc_reg_offset): New variable.
7610 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7612 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7614 (i386fbsd4_sc_reg_offset): New variable.
7615 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7616 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7618 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7619 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7620 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7622 (i386nbsd_sc_reg_offset): New variable.
7623 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7624 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7626 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7628 (i386obsd_sc_reg_offset): New variable.
7629 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7630 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7632 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7633 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7634 for frame pointer offset in `struct sigcontext'.
7636 2003-05-31 Andrew Cagney <cagney@redhat.com>
7638 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7639 architecture methods call_dummy_words, sizeof_call_dummy_words,
7640 push_return_address, store_struct_return, and fix_call_dummy. Set
7641 push_dummy_call instead of deprecated_push_arguments.
7642 (mips_store_struct_return): Delete function.
7643 (mips_fix_call_dummy): Delete function.
7644 (mips_push_return_address): Delete function.
7645 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7646 RA_REGNUM and T9_REGNUM.
7647 (mips_n32n64_push_dummy_call): Ditto for
7648 mips_n32n64_push_arguments.
7649 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7650 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7652 2003-05-31 Andrew Cagney <cagney@redhat.com>
7654 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7655 "dummy_addr" to "bp_addr".
7656 * infcall.c (call_function_by_hand): Pass "funaddr" to
7657 gdbarch_push_dummy_call.
7658 * gdbarch.h, gdbarch.c: Re-generate.
7659 * i386-tdep.c (i386_push_dummy_call): Update.
7660 * arm-tdep.c (arm_push_dummy_call): Update.
7661 * d10v-tdep.c (d10v_push_dummy_call): Update.
7663 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7665 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7666 variable declarations.
7667 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7668 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7669 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7670 x86_64_init_frame_pc, x86_64_init_frame_pc,
7671 x86_64_function_has_prologue): Remove prototypes.
7672 (X86_64_NUM_GREGS): New define.
7673 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7674 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7675 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7676 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7677 XMM1_REGNUM): Remove defines.
7678 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7679 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7680 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7681 X86_64_XMM1_REGNUM): New defines.
7682 (struct x86_64_register_info): Renamed from `struct
7683 register_info'. Remove `size' member.
7684 (x86_64_register_info_table): Remove variable.
7685 (x86_64_register_info): New variable.
7686 (X86_64_NUM_REGS): New define.
7687 (X86_64_NUM_GREGS): Remove define.
7688 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7689 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7691 (x86_54_dwarf2_reg_to_regnum): Remove function.
7692 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7693 (x86_64_dwarf_reg_to_regnum): New function.
7694 (x86_64_register_name): Rewrite.
7695 (x86_64_register_raw_size): Remove function.
7696 (x86_64_register_byte_table): Remove variable.
7697 (x86_64_register_byte): Remove function.
7698 (x86_64_register_virtual_type): Remove function.
7699 (x86_64_register_type): New function.
7700 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7701 x86_64_register_convert_to_raw): Remove functions.
7702 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7703 (x86_64_use_struct_convention): Make static. Adjust for renamed
7705 (x86_64_frame_init_saved_regs): Remove function.
7706 (x86_64_push_arguments): Make static. Change to accept a regcache
7708 (x86_64_store_return_value, x86_64_extract_return_value): Make
7709 static. Rewrite based on i386 counterparts.
7710 (x86_64_push_dummy_call): New function.
7711 (X86_64_NUM_SAVED_REGS): New define.
7712 (x86_64_register_number): Remove function.
7713 (x86_64_store_struct_return): Remove function.
7714 (x86_64_frameless_function_invocation,
7715 x86_64_function_has_prologue): Remove functions.
7716 (PROLOG_BUFSIZE): Remove define.
7717 (struct x86_64_frame_cache): New structure.
7718 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7719 x86_64_frame_cache, x86_64_frame_this_id,
7720 x86_64_frame_prev_register, x86_64_frame_p,
7721 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7722 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7724 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7726 (x86_64_skip_prologue): Rewrite in terms of
7727 x86_64_analyze_prologue.
7728 (x86_64_frame_base_address): New function.
7729 (x86_64_frame_base): New variable.
7730 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7731 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7732 set deprecated_fp_regnum, deprecated_register_size,
7733 deprecated_register_bytes, register_raw_size, register_byte,
7734 register_virtual_type, register_convertiable,
7735 register_convert_to_virtual, convert_to_raw,
7736 deprecated_get_saved_register, deprecated_target_read_fp,
7737 deprecated_push_arguments, deprecated_push_return_address,
7738 deprecated_pop_frame, deprecated_store_struct_return,
7739 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7740 frameless_function_invocation, deprecated_frame_saved_pc,
7741 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7742 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7743 deprecated_init_frame_pc and virtual_frame_pointer. Call
7744 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7745 and x86_64_frame_p. Call frame_base_set_default to register
7747 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7748 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7749 (_initialize_x86_64_tdep): Remove function.
7750 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7751 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7752 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7754 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7755 (x86_64_linux_sigcontext_addr): Rewrite.
7756 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7757 x86_64_linux_frame_saved_pc): Remove functions.
7758 (x86_64_linux_pc_in_sigtramp): Renamed from
7759 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7761 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7763 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7764 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7765 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7766 (x86_64_regmap): Rename to regmap.
7767 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7769 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7771 (x86_64_fxsave_offset): Remove function.
7772 (supply_fpregset): Simply call x86_64_supply_fxsave.
7773 (fill_fpregset): Simply call x86_64_fill_fxsave.
7774 (fetch_inferior_registers, store_inferior_registers): Avoid
7775 asignment in if-statement.
7776 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7777 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7778 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7779 (fetch_core_registers): Remove function.
7780 (linux_elf_core_fns): Remove.
7781 (offsetoff): Don't define.
7782 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7783 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7784 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7786 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7787 protection against multiple includes instead of NM_X86_64_h. Add
7788 various comments. Include "config/nm-linux.h". Don't include
7790 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7791 GET_THREAD_SIGNALS): Remove defines.
7792 (x86_64_register_u_addr, kernel_u_size,
7793 lin_thread_get_thread_signals): Remove prototypes.
7794 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7795 [HAVE_LINK_H]: Don't include "solib.h".
7796 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7797 * config/i386/tm-x86-64linux.h: Fix comments.
7798 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7799 x86-64-tdep.o): Update dependencies.
7801 2003-05-30 Andrew Cagney <cagney@redhat.com>
7803 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7804 Change parameter type to a "struct regcache *".
7806 * gdbarch.sh: Regardless of the multi-arch level, always define
7807 the macro when not already defined.
7808 * gdbarch.h, gdbarch.c: Re-generate.
7810 2003-05-30 Richard Henderson <rth@redhat.com>
7812 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7813 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7814 (alpha_mdebug_frame_this_id): Likewise.
7815 (alpha_mdebug_frame_prev_register): Likewise.
7816 (alpha_mdebug_frame_base_address): Likewise.
7817 (alpha_mdebug_frame_locals_address): Likewise.
7818 (alpha_mdebug_frame_args_address): Likewise.
7819 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7820 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7821 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7823 (alpha_heuristic_frame_this_id): Make static.
7824 (alpha_heuristic_frame_prev_register): Likewise.
7825 (alpha_heuristic_frame_base_address): Likewise.
7826 * alpha-tdep.h: Update.
7828 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7830 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7831 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7833 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7834 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7835 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7836 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7837 I386_ST0_REGNUM): New defines.
7838 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7839 codestream_get): Remove define.
7840 (codestream_next_addr, condestream_addr, condestream_buf,
7841 codestream_off, codestream_cnt): Remove variables.
7842 (codestream_fill, codestream_seek, codestream_read): Remove
7844 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7846 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7847 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7848 i386_frame_saved_pc, i386_saved_pc_after_call,
7849 i386_frame_num_args, i386_frame_init_saved_regs,
7850 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7851 i386_push_arguments): Remove functions.
7852 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7853 functionality. Use i386_analyze_prologue instead of
7854 i386_get_frame_setup.
7855 (I386_NUM_SAVED_REGS): New define.
7856 (struct i386_frame_cache): New structure.
7857 (i386_alloc_frame_cache, i386_analyze_struct_return,
7858 i386_skip_probe, i386_analyze_frame_setup,
7859 i386_analyze_register_saves, i386_analyze_prologue,
7860 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7861 i386_frame_prev_register, i386_sigtramp_frame_cache,
7862 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7863 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7864 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7866 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7868 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7869 I386_EAX_REGNUM and I386_EDX_REGNUM.
7870 (i386_extract_return_value, i386_store_return_value): Use
7871 I386_ST0_REGNUM where appropriate.
7872 (i386_extract_struct_value_address): Rewrite to use extract_address.
7873 (i386_svr4_pc_in_sigtramp): Add comment.
7874 (i386_svr4_sigcontext_addr): Rewrite.
7875 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7877 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7878 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7879 of new defines. Set push_dummy_call, don't set
7880 deprecated_push_arguments, deprecated_push_return_address,
7881 deprecated_pop_frame. Don't set parm_boundary. Don't set
7882 deprecated_frame_chain, deprecated_frame_saved_pc,
7883 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7884 save_dummy_frame_tos, unwind_pc. Call
7885 frame_unwind_append_predicate and frame_base_set_default. Don't
7886 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7887 Don't set frameless_function_invocation. Don't set
7888 deprecated_register_bytes, deprecated_register_size,
7889 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7890 * i386-linux-tdep.c: Fix formatting in some comments.
7891 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7892 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7893 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7894 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7895 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7896 redundant parentheses.
7897 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7898 (i386_linux_sigcontext_addr): Use it. Rewrite.
7899 (find_minsym_and_objfile): Change name of second argument.
7900 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7901 changed. Use frame_pc_unwind instead of
7902 DEPRECATED_SAVED_PC_AFTER_CALL.
7903 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7904 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7905 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7907 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7909 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7910 (_initialize_i386_cygwin_tdep): New prototype.
7911 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7912 deprecated_frame_chain_valid.
7913 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7914 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7915 Rely on the SVR4 defaults.
7916 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7917 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7919 2003-05-30 Andrew Cagney <cagney@redhat.com>
7921 * infcall.c (call_function_by_hand): Always call
7922 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7924 2003-05-30 Richard Henderson <rth@redhat.com>
7926 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7929 2003-05-29 Jim Blandy <jimb@redhat.com>
7931 Use gdbarch methods for solib stuff on PowerPC Linux.
7932 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7933 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7935 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7936 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7937 giving the same effect as the #definitions above.
7939 2003-05-29 Adam Fedor <fedor@gnu.org>
7941 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7942 (find_implementation_from_class): Replace it with the standard
7943 case i.e. do nothing.
7945 2003-05-29 Richard Henderson <rth@redhat.com>
7947 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7948 (alpha_linux_sigtramp_offset): Use it. Make static.
7949 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7950 update for new frame model.
7951 * alpha-mdebug-tdep.c: New file.
7952 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7953 (alpha_osf1_init_abi): Install it.
7954 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7955 (linked_proc_desc_table): Remove.
7956 (alpha_frame_past_sigtramp_frame): Remove.
7957 (alpha_dynamic_sigtramp_offset): Remove.
7958 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7959 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7960 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7961 (push_sigtramp_desc): Remove.
7962 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7963 (alpha_cannot_store_register): Likewise.
7964 (alpha_sigcontext_addr): Remove.
7965 (alpha_find_saved_regs): Remove.
7966 (alpha_frame_init_saved_regs): Remove.
7967 (alpha_init_frame_pc_first): Remove.
7968 (read_next_frame_reg): Remove.
7969 (alpha_frame_saved_pc): Remove.
7970 (alpha_saved_pc_after_call): Remove.
7971 (temp_proc_desc, temp_saved_regs): Remove.
7972 (alpha_about_to_return): Remove.
7973 (cached_proc_desc): Remove.
7974 (alpha_frame_chain): Remove.
7975 (alpha_print_extra_frame_info): Remove.
7976 (alpha_init_extra_frame_info): Remove.
7977 (alpha_frame_locals_address): Remove.
7978 (alpha_frame_args_address): Remove.
7979 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7980 (alpha_push_dummy_frame): Remove.
7981 (alpha_pop_frame): Remove.
7982 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7983 (alpha_read_insn): New.
7984 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7985 for different insn encodings.
7986 (alpha_in_lenient_prologue): Remove.
7987 (struct alpha_sigtramp_unwind_cache): New.
7988 (alpha_sigtramp_frame_unwind_cache): New.
7989 (alpha_sigtramp_register_address): New.
7990 (alpha_sigtramp_frame_this_id): New.
7991 (alpha_sigtramp_frame_prev_register): New.
7992 (alpha_sigtramp_frame_unwind): New.
7993 (alpha_sigtramp_frame_p): New.
7994 (struct alpha_heuristic_unwind_cache): New.
7995 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7996 don't count nop insns that occur between functions.
7997 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7998 heuristic_proc_desc, but without the mdebug wrapping.
7999 (alpha_heuristic_frame_this_id): New.
8000 (alpha_heuristic_frame_prev_register): New.
8001 (alpha_heuristic_frame_unwind): New.
8002 (alpha_heuristic_frame_p): New.
8003 (alpha_heuristic_frame_base_address): New.
8004 (alpha_heuristic_frame_base): New.
8005 (alpha_unwind_dummy_id): New.
8006 (alpha_unwind_pc): New.
8007 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8008 frame related deprecated initializations; install replacements.
8009 (alpha_dump_tdep): Remove.
8010 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8011 (alpha_read_insn, alpha_after_prologue,
8012 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8013 alpha_heuristic_frame_prev_register,
8014 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8015 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8016 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8017 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8019 2003-05-29 Andrew Cagney <cagney@redhat.com>
8021 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8022 dependant on the availability of ASSERT_FUNCTION.
8023 (ASSERT_FUNCTION): Do not define when there is no function name.
8025 2003-05-29 Kevin Buettner <kevinb@redhat.com>
8027 From Jimi X <jimix@watson.ibm.com>:
8028 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8030 2003-05-28 Jim Blandy <jimb@redhat.com>
8032 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8033 argument to ptrace to int; the system headers should give it the
8034 right type, and pointers don't fit in ints on powerpc64-*-*.
8036 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8038 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8041 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8043 * stabsread.c (dbx_lookup_type): Make static.
8045 (add_undefined_type): Ditto.
8046 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8049 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8051 * hpread.c (hpread_has_name): Make static.
8052 (hpread_psymtab_to_symtab): Ditto.
8053 (file_exists): Ditto.
8054 (hpread_call_pxdb): Ditto.
8055 (hpread_pxdb_needed): Ditto.
8056 (hpread_quick_traverse): Ditto.
8057 (hpread_get_header): Ditto.
8058 (hpread_get_lntt): Ditto.
8059 (hpread_get_slt): Ditto.
8062 2003-05-25 Andreas Schwab <schwab@suse.de>
8064 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8065 stack_align and deprecated_extra_stack_alignment_needed.
8066 (m68k_stack_align): Delete.
8068 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8069 (m68k_register_virtual_size): Likewise.
8070 (altos_skip_prologue): Remove obsolete function.
8071 (isi_frame_num_args): Likewise.
8072 (news_frame_num_args): Likewise.
8073 (m68k_fix_call_dummy): Make static.
8074 (m68k_push_dummy_frame): Likewise.
8075 (m68k_pop_frame): Likewise.
8076 (m68k_skip_prologue): Likewise.
8077 (m68k_frame_init_saved_regs): Likewise.
8078 (m68k_saved_pc_after_call): Likewise.
8079 (m68k_get_longjmp_target): Make multi-arch.
8080 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8081 structure. Register m68k_get_longjmp_target if enabled.
8082 * m68k-tdep.h (struct gdbarch_tdep): Define.
8083 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8085 * Makefile.in (config.status): Also depend on configure.tgt
8087 (m68klinux-tdep.o): Update dependencies.
8088 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8089 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8090 (M68K_LINUX_JB_PC): Define.
8091 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8092 and take additional parameter.
8093 (m68k_linux_sigtramp_saved_pc): Update.
8094 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8095 m68k_linux_pc_in_sigtramp, in_plt_section,
8096 find_solib_trampoline_target.
8097 * config/m68k/tm-linux.h: Don't include any tm headers.
8098 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8099 (JB_ELEMENT_SIZE): Likewise.
8101 (GET_LONGJMP_TARGET): Likewise.
8102 (IN_SIGTRAMP): Likewise.
8103 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8105 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8107 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8108 (sparc32_push_arguments): Re-implement by calling
8109 sparc32_do_push_arguments.
8111 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8113 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8114 SPARC_O1_REGNUM): New defines.
8115 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8116 (sparc32_store_return_value): New function.
8117 (sparc_extract_struct_value_address): Rewrite to operate on a
8119 (sparc_gdbarch_init): Don't set
8120 deprecated_extract_struct_value_address. Set
8121 extract_struct_value_address instead. Don't set
8122 deprecated_extract_return_value and deprecated_store_return_value
8123 for 32-bit targets. Set extract_return_value and
8124 store_return_value instead.
8125 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8126 DEPRECTAED_EXTRACT_RETURN_VALUE,
8127 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8128 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8129 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8130 (sparc_store_return_value): Remove prototype.
8131 (sparc32_store_return_value): New prototype.
8132 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8135 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8137 * sparcnbsd-tdep.c: Include "gdb_string.h".
8139 2003-05-23 Andrew Cagney <cagney@redhat.com>
8141 * p-valprint.c (pascal_val_print): Replace extract_address with
8142 the inline equivalent extract_unsigned_integer.
8143 * jv-valprint.c (java_value_print): Ditto.
8144 * ada-valprint.c (ada_val_print_1): Ditto.
8145 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8147 2003-05-23 Theodore A. Roth <troth@openavr.org>
8149 * blockframe.c (frameless_look_for_prologue): Remove unused
8150 after_prologue variable.
8152 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8154 * blockframe.c (get_pc_function_start): Rewrite to avoid
8155 asignments in if-statements.
8157 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8159 Committed by Elena Zannoni <ezannoni@redhat.com>.
8160 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8161 files, don't relocate absolute symbols (and do use mst_abs).
8163 2003-05-23 Andrew Cagney <cagney@redhat.com>
8165 * objc-lang.c: Include "gdb_assert.h".
8166 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8167 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8168 (gdb_check, gdb_check_fatal): Delete functions.
8169 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8171 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8172 * Makefile.in (objc-lang.o): Update dependencies.
8174 2003-05-22 Ian Lance Taylor <ian@airs.com>
8176 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8177 with fprintf_filtered, not fprintf_unfiltered.
8179 2003-05-22 Andrew Cagney <cagney@redhat.com>
8181 * stack.c (frame_info): Inline extract_address, replacing it with
8182 extract_unsigned_integer.
8183 * findvar.c (unsigned_pointer_to_address): Ditto.
8184 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8185 * dwarf2expr.c (dwarf2_read_address): Ditto.
8186 * frame.c (frame_pc_unwind): Update comment.
8187 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8189 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8191 * infptrace.c (detach): Call print_sys_errmsg rather than
8192 perror_with_name to issue warning message when errno is non-zero
8193 after calling ptrace detach.
8195 2003-05-21 J. Brobecker <brobecker@gnat.com>
8197 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8198 macro definitions from here...
8199 * hppa-tdep.c: ...to there.
8201 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8203 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8204 register_ptrace_addr(). Fix all callers.
8206 2003-05-21 Andreas Schwab <schwab@suse.de>
8208 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8210 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8212 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8213 (_initialize_m68k_linux_tdep): New function.
8214 (m68k_linux_frame_saved_pc): Make static.
8215 (m68k_linux_extract_return_value): Likewise.
8216 (m68k_linux_store_return_value): Likewise.
8217 (m68k_linux_extract_struct_value_address): Likewise.
8218 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8220 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8221 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8222 (DEPRECATED_FRAME_SAVED_PC): Remove.
8224 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8226 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8227 regset numbering rather than our own.
8229 2003-05-19 David Carlton <carlton@bactrian.org>
8231 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8233 2003-05-19 David Carlton <carlton@bactrian.org>
8235 Partial fix for PR c++/827.
8236 * cp-support.h: Include symtab.h.
8237 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8238 * cp-namespace.c: Update contributors.
8239 (cp_lookup_symbol_nonlocal): New.
8240 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8241 (lookup_symbol_file): Ditto.
8242 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8243 * block.h: Declare block_scope, block_using, block_global_block.
8244 * block.c (block_scope): New.
8245 (block_using, block_global_block): Ditto.
8246 * Makefile.in (cp_support_h): Depend on symtab_h.
8247 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8249 2003-05-19 David Carlton <carlton@bactrian.org>
8251 * language.h (struct language_defn): Add 'la_value_of_this'
8252 and 'la_lookup_symbol_nonlocal' members.
8253 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8254 lookup_symbol_static, lookup_symbol_global,
8255 lookup_symbol_aux_block.
8256 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8257 if we should search fields of this and how to do static/global
8259 (lookup_symbol_aux_block): Make extern.
8260 (basic_lookup_symbol_nonlocal): New.
8261 (lookup_symbol_static, lookup_symbol_global): Ditto.
8262 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8263 'la_lookup_symbol_nonlocal' members.
8264 * c-lang.c (c_language_defn, cplus_language_defn)
8265 (asm_language_defn, minimal_language_defn): Ditto.
8266 * jv-lang.c (java_language_defn): Ditto.
8267 * language.c (unknown_language_defn, auto_language_defn)
8268 (local_language_defn): Ditto.
8269 * m2-lang.c (m2_language_defn): Ditto.
8270 * objc-lang.c (objc_language_defn): Ditto.
8271 * scm-lang.c (scm_language_defn): Ditto.
8272 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8273 * p-lang.c (pascal_language_defn): Ditto for both.
8274 * Makefile.in (f-lang.o): Depend on value_h.
8277 2003-05-19 David Carlton <carlton@bactrian.org>
8279 * block.h: Declare block_static_block.
8280 * block.c (block_static_block): New.
8281 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8282 lookup_symbol_aux_local, calling block_static_block instead.
8283 (lookup_symbol_aux_local): Delete 'static_block' argument.
8285 2003-05-19 David Carlton <carlton@bactrian.org>
8287 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8289 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8291 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8292 register numbers mapping.
8294 2003-05-18 Adam Fedor <fedor@gnu.org>
8296 * symtab.c (completion_list_objc_symbol): New function.
8297 (make_symbol_completion_list): Use it to add ObjC symbols
8298 when looking though the list.
8299 (language_search_unquoted_string): New function.
8300 (make_file_symbol_completion_list): Use it.
8302 2003-05-18 Andreas Schwab <schwab@suse.de>
8304 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8306 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8307 as m68k_linux_extract_return_value.
8308 (DEPRECATED_STORE_RETURN_VALUE): Define as
8309 m68k_linux_store_return_value.
8310 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8311 m68k_linux_extract_struct_value_address.
8312 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8313 get_next_frame, get_frame_base, get_frame_pc.
8314 (m68k_linux_frame_saved_pc): Use get_frame_base.
8315 (m68k_linux_extract_return_value): New function.
8316 (m68k_linux_store_return_value): New function.
8317 (m68k_linux_extract_struct_value_address): New function.
8318 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8320 * c-exp.y (typebase): Remove duplicate occurence of
8321 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8322 of lookup_signed_typename.
8324 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8326 * dwarf2loc.c (find_location_expression): Change type of second
8327 argument to `size_t *'.
8328 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8331 2003-05-18 David Carlton <carlton@bactrian.org>
8333 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8334 'linkage_name'. Add comment.
8335 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8337 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8338 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8339 (lookup_block_symbol): Ditto.
8341 2003-05-16 Andrew Cagney <cagney@redhat.com>
8343 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8344 * gdbarch.h, gdbarch.c: Re-generate.
8345 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8346 * TODO (REGISTER_BYTES): Delete reference.
8347 * alpha-tdep.c (alpha_gdbarch_init): Update.
8348 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8349 * x86-64-tdep.c (x86_64_init_abi): Update.
8350 * vax-tdep.c (vax_gdbarch_init): Update.
8351 * v850-tdep.c (v850_gdbarch_init): Update.
8352 * sparc-tdep.c (sparc_gdbarch_init): Update.
8353 * sh-tdep.c (sh_gdbarch_init): Update.
8354 * s390-tdep.c (s390_gdbarch_init): Update.
8355 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8356 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8357 (ns32k_gdbarch_init_32382): Update.
8358 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8359 * mcore-tdep.c (mcore_gdbarch_init): Update.
8360 * m68k-tdep.c (m68k_gdbarch_init): Update.
8361 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8362 * ia64-tdep.c (ia64_gdbarch_init): Update.
8363 * i386-tdep.c (i386_gdbarch_init): Update.
8364 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8365 * hppa-tdep.c (hppa_gdbarch_init): Update.
8366 * h8300-tdep.c (h8300_gdbarch_init): Update.
8367 * frv-tdep.c (frv_gdbarch_init): Update.
8368 * cris-tdep.c (cris_gdbarch_init): Update.
8369 * avr-tdep.c (avr_gdbarch_init): Update.
8370 * arm-tdep.c (arm_gdbarch_init): Update.
8371 * sparc-tdep.c (sparc_pop_frame): Update.
8372 * rs6000-tdep.c (rs6000_pop_frame): Update.
8373 * remote.c (init_remote_state): Update.
8374 (remote_prepare_to_store): Update.
8375 * remote-vx.c (vx_prepare_to_store): Update.
8376 * remote-sds.c (sds_fetch_registers): Update.
8377 (sds_prepare_to_store): Update.
8378 * remote-array.c: Update.
8379 * regcache.c (init_legacy_regcache_descr): Update.
8380 (init_regcache_descr): Update.
8381 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8382 (mips_o64_extract_return_value): Update.
8383 * irix5-nat.c (fetch_core_registers): Update.
8384 * irix4-nat.c (fetch_core_registers): Update.
8385 * i386-tdep.h: Update.
8386 * hppa-tdep.c (pa_do_registers_info): Update.
8387 (pa_do_strcat_registers_info): Update.
8388 * cris-tdep.c (cris_register_bytes_ok): Update.
8389 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8390 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8391 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8392 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8393 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8394 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8395 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8396 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8397 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8398 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8399 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8400 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8401 (REGISTER_BYTES_OK): Update.
8402 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8403 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8405 2003-05-16 Ian Lance Taylor <ian@airs.com>
8407 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8408 (vax_print_insn, print_insn_arg): Remove static functions.
8409 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8410 print_insn_vax from opcodes library.
8411 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8413 2003-05-15 Andrew Cagney <cagney@redhat.com>
8415 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8416 * target.h (memory_breakpoint_from_pc): Delete declaration.
8417 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8418 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8419 * monitor.c (monitor_insert_breakpoint): Use
8420 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8421 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8422 * gdbarch.h, gdbarch.c: Re-generate.
8423 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8424 (sparc_gdbarch_init): Set breakpoint_from_pc to
8425 sparc_breakpoint_from_pc.
8426 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8427 (BREAKPOINT_FROM_PC): Define.
8428 (sparc_breakpoint_from_pc): Declare.
8429 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8430 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8431 (BREAKPOINT_FROM_PC): Define.
8432 (BREAKPOINT): Delete macro.
8433 * target.h: Update comment.
8434 * s390-tdep.c (s390_gdbarch_init): Update comments.
8435 * remote.c: Update comments.
8436 * remote-mips.c: Update comments.
8437 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8438 * mem-break.c: Update comment.
8439 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8440 (ia64_memory_insert_breakpoint): Update.
8441 * config/sparc/tm-sparc.h: Update comment.
8442 * config/pa/tm-hppa64.h: Update comment.
8443 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8444 (rs6000_breakpoint_from_pc): Update.
8445 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8446 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8447 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8448 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8449 (mips_breakpoint_from_pc): Update.
8450 (mips_dump_tdep): Update.
8452 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8453 * minsyms.c (lookup_minimal_symbol): Inline
8454 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8456 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8457 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8458 * p-lang.c (pascal_printstr): Ditto.
8459 * objc-lang.c (objc_printstr): Ditto.
8460 * m2-lang.c (m2_printstr): Ditto.
8461 * jv-valprint.c (java_print_value_fields): Ditto.
8462 * f-lang.c (f_printstr): Ditto.
8463 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8464 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8465 for repeat_count_threshold.
8466 * Makefile.in (cp-valprint.o): Update dependencies.
8468 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8470 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8471 (examine_prologue): Support looking through leaf functions, knowing
8472 they start with mov r2,r12. Support skipping over indirect stores
8473 of the input registers. Upon hitting a non-nop branch instruction
8474 or predicated instruction, bail out by setting lim_pc to the current
8475 pc value in the loop. At the end, if the lim_pc value is still
8476 beyond our calculated value and we have trust_limit set,
8477 use the lim_pc value.
8479 2003-05-15 Andrew Cagney <cagney@redhat.com>
8481 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8482 generic_find_dummy_frame.
8483 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8484 (deprecated_generic_find_dummy_frame): Update.
8485 (deprecated_read_register_dummy): Update.
8486 * frame.c (deprecated_generic_get_saved_register): Update.
8488 2003-05-15 Theodore A. Roth <troth@openavr.org>
8490 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8491 (avr_gdbarch_init): Set breakpoint_from_pc method.
8493 2003-05-15 Andrew Cagney <cagney@redhat.com>
8495 * regcache.c (build_regcache): Set deprecated_register_valid
8497 (deprecated_grub_regcache_for_register_valid): Delete function.
8498 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8501 2003-05-15 David Carlton <carlton@bactrian.org>
8503 Committed by Elena Zannoni <ezannoni@redhat.com>
8504 * symtab.c (lookup_symbol_aux): Delete calls to
8505 lookup_symbol_aux_minsyms.
8506 (lookup_symbol_aux_minsyms): Comment out function and
8507 prototype. Delete lookup by mangled name.
8509 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8511 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8512 correctly indicate an empty stack and ``stack_allocated'' to the
8513 indicate the number of elements initially allocated.
8514 (dwarf_expr_grow_stack): Simplify method for computing new
8515 stack size. Don't loop infinitely if ``stack_len'' is zero.
8516 (execute_stack_op): Move ``ctx->in_reg'' initialization
8517 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8518 be used in conjuction with DW_OP_piece. Revise error message
8521 2003-05-14 Theodore A. Roth <troth@openavr.org>
8523 * MAINTAINERS: Update my email address.
8524 * avr-tdep.c: Ditto.
8526 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8528 * symtab.h (enum domain_enum): Rename from namespace_enum.
8529 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8530 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8531 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8532 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8533 TYPES_NAMESPACE, METHODS_NAMESPACE.
8534 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8535 (struct symbol, struct partial_symbol): Rename field
8536 'namespace_enum namespace' to 'domain_enum domain'.
8537 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8538 Delete old define kludge for namespace.
8540 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8541 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8542 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8543 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8544 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8545 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8546 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8547 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8548 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8549 occurrences of the above.
8551 2003-05-14 Ian Lance Taylor <ian@airs.com>
8553 * Makefile.in (install-only): Use $(SHELL) when running
8556 2003-05-13 Ian Lance Taylor <ian@airs.com>
8558 * MAINTAINERS (write after approval): Add myself.
8560 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8561 second and third arguments.
8562 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8563 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8565 2003-05-13 Andrew Cagney <cagney@redhat.com>
8567 * defs.h (store_address): Delete declaration.
8568 findvar.c (store_address): Delete function.
8569 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8570 store_unsigned_integer.
8571 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8572 * v850-tdep.c (v850_push_arguments): Ditto.
8573 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8574 * sh-tdep.c (sh64_get_saved_register): Ditto.
8575 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8576 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8577 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8578 (mips_get_saved_register): Ditto.
8579 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8580 (find_func_descr, ia64_push_arguments): Ditto.
8581 * i386-tdep.c (i386_push_arguments): Ditto.
8582 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8583 * frv-tdep.c (frv_push_arguments): Ditto.
8584 * frame.c (legacy_saved_regs_prev_register): Ditto.
8585 (deprecated_generic_get_saved_register): Ditto.
8586 * findvar.c (unsigned_address_to_pointer): Ditto.
8587 * dwarf2read.c (dwarf2_const_value): Ditto.
8588 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8589 * alpha-tdep.c (alpha_push_arguments): Ditto.
8591 2003-05-12 J. Brobecker <brobecker@gnat.com>
8593 * NEWS: Mention that the hppa-hpux port has been partially
8594 multiarched (32bit ABIT only, so far).
8596 2003-05-11 Andrew Cagney <cagney@redhat.com>
8598 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8599 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8600 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8601 sim/testsuite/sim/arm/misaligned2.ms, and
8602 sim/testsuite/sim/arm/misaligned3.ms.
8603 * disasm.h (struct ui_file): Add opaque struct declaration.
8604 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8605 * frame.h (struct ui_file): Ditto.
8607 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8609 * value.h: Pretty print.
8611 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8613 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8615 2003-05-08 Andrew Cagney <cagney@redhat.com>
8617 * regcache.h (max_register_size): Delete declaration.
8618 * regcache.c (max_register_size): Delete function.
8619 (struct regcache_descr): Delete field "max_register_size".
8620 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8621 registers fit in MAX_REGISTER_SIZE.
8622 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8623 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8624 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8625 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8626 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8627 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8628 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8629 * dve3900-rom.c, hppa-tdep.c: Ditto.
8631 2003-05-08 David Carlton <carlton@math.stanford.edu>
8633 * valops.c (push_word): Fix typo.
8635 2003-05-08 Andrew Cagney <cagney@redhat.com>
8637 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8638 * gdbarch.h: Re-generate.
8639 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8640 (legacy_max_register_raw_size): Delete declaration.
8641 * regcache.c (legacy_max_register_raw_size): Delete function.
8642 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8643 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8644 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8645 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8646 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8647 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8648 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8649 * findvar.c, dwarf2cfi.c: Ditto.
8651 2003-05-08 Andrew Cagney <cagney@redhat.com>
8653 * mips-tdep.c (read_signed_register): New function, moved to here
8655 (read_signed_register_pid): Ditto.
8656 * regcache.c (read_signed_register_pid): Delete function, moved to
8658 (read_signed_register): Ditto.
8659 * regcache.h (read_signed_register): Delete declaration.
8660 (read_signed_register_pid): Delete declaration.
8662 2003-05-08 Andrew Cagney <cagney@redhat.com>
8664 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8665 * gdbarch.h: Re-generate.
8666 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8667 (legacy_max_register_virtual_size): Delete declaration.
8668 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8669 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8670 * tracepoint.c (memrange_sortmerge): Ditto.
8671 * sparc-tdep.c (sparc_print_registers): Ditto.
8672 * regcache.c (legacy_max_register_virtual_size): Delete function.
8674 2002-05-08 J. Brobecker <brobecker@gnat.com>
8676 * fork-child.c (escape_bang_in_quoted_argument): New function.
8677 (fork_inferior): Escape '!' characters in quoted arguments
8680 2003-05-08 J. Brobecker <brobecker@gnat.com>
8682 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8683 the language of the CU is not currently supported by GDB.
8685 2003-05-08 J. Brobecker <brobecker@gnat.com>
8687 * defs.h (language): Add language_minimal enum value.
8688 * c-lang.c (minimal_language_defn): New language definition.
8689 (_initialize_c_language): Add the new minimal language to the list
8690 of languages known to GDB.
8692 2003-05-08 Kevin Buettner <kevinb@redhat.com>
8694 * frame.c (get_frame_type): Don't attempt to lazily initialize
8695 frame's unwinder for legacy frames.
8697 2003-05-07 Andrew Cagney <cagney@redhat.com>
8699 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8700 and "regcache" parameters.
8701 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8703 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8705 * dwarf2read.c (dwarf_decode_lines): Only use output of
8706 check_cu_functions() when calling record_line(). Do not update
8707 the current address.
8709 2003-05-07 Andrew Cagney <cagney@redhat.com>
8711 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8714 2003-05-07 Jim Blandy <jimb@redhat.com>
8716 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8717 'maint info symtabs' and 'maint info psymtabs'.
8718 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8719 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8720 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8721 Declarations updated.
8722 * maint.c (maintenance_list_command): Delete.
8723 (_initialize_maint_cmds): Update calls to add_cmd.
8724 * gdbcmd.h (maintenancelistlist): Delete declaration.
8725 * cli/cli-cmds.c (maintenancelistlist): Delete.
8726 (init_cmd_lists): Don't initialize it.
8727 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8729 2003-05-07 Andrew Cagney <cagney@redhat.com>
8731 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8733 (d10v_print_registers_info): Update.
8734 (d10v_dmap_register, d10v_imap_register): Delete functions.
8735 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8736 and "imap_register".
8737 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8738 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8739 * arch-utils.c (generic_remote_translate_xfer_address): Add
8740 "regcache" and "gdbarch" parameters.
8741 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8742 parameter. Change class to multi-arch.
8743 * gdbarch.h, gdbarch.c: Re-generate.
8744 * remote.c (remote_xfer_memory): Use
8745 gdbarch_remote_translate_xfer_address.
8747 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8749 * infrun.c (prev_pc): Move declaration ahead of proceed().
8750 (proceed): Refresh prev_pc value before resuming.
8751 (stop_stepping): Remove code to refresh prev_pc.
8753 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8755 * nto-tdep.c: Removed stray comment.
8757 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8759 * i386-nto-tdep.c: Fix old K&R function definitions.
8760 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8761 Also change add_show_from_set() call to add_setshow_cmd().
8762 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8764 2003-05-05 Andrew Cagney <cagney@redhat.com>
8766 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8767 (fprint_dummy_frames): New function.
8768 (maintenance_print_dummy_frames): New function.
8769 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8770 * frame.c (fprint_frame_id): Make global.
8771 * frame.h (fprint_frame_id): Declare.
8772 * Makefile.in (dummy-frame.o): Update dependencies.
8774 2003-05-05 Andrew Cagney <cagney@redhat.com>
8776 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8777 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8778 SIZEOF_CALL_DUMMY_WORDS.
8779 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8780 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8781 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8782 CALL_DUMMY_BREAKPOINT_OFFSET.
8783 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8784 CALL_DUMMY_START_OFFSET.
8785 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8786 * gdbarch.h, gdbarch.c: Re-generate.
8787 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8788 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8789 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8790 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8791 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8792 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8793 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8794 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8795 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8796 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8797 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8798 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8799 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8800 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8801 * config/sparc/tm-sparc.h: Update.
8803 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8805 * configure.tgt: Add i[3456]86-*-nto*.
8806 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8807 * nto-tdep.c: New file. Neutrino target support routines.
8808 * nto-tdep.h: New file. Neutrino target header.
8809 * config/tm-qnxnto.h: New file.
8810 * config/i386/i386nto.mt: New file.
8811 * config/i386/tm-i386nto.h: New file.
8813 2003-05-04 Andrew Cagney <cagney@redhat.com>
8815 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8816 (load_infrun_state): Ditto.
8817 (struct thread_info): Drop "prev_func_name" field.
8818 * thread.c (load_infrun_state): Update.
8819 (save_infrun_state): Update.
8820 * infrun.c (prev_func_name): Delete variable.
8821 (init_wait_for_inferior): Do not clear prev_func_name.
8822 (stop_stepping, keep_going, context_switch): Do not swap
8824 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8825 instead of PC_IN_SIGTRAMP.
8827 2003-05-04 Andrew Cagney <cagney@redhat.com>
8829 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8830 REGISTER_BYTE with register_offset_hack.
8831 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8832 that REGISTER_BYTE is consistent with the regcache.
8833 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8834 * gdbarch.h, gdbarch.c: Regenerate.
8836 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8838 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8839 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8841 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8843 2003-05-03 J. Brobecker <brobecker@gnat.com>
8845 From Thierry Schneider <tpschneider1@yahoo.com>
8846 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8847 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8848 (mi-cmd-symbol.o): Add rule.
8850 2003-05-03 Andrew Cagney <cagney@redhat.com>
8852 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8853 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8854 * gdbarch.h, gdbarch.c: Re-generate.
8855 * d10v-tdep.c (d10v_push_dummy_code): New function.
8856 (d10v_gdbarch_init): Set push_dummy_code.
8857 * infcall.c (legacy_push_dummy_code): New function.
8858 (generic_push_dummy_code): New function.
8859 (push_dummy_code): New function.
8860 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8861 instead of dummy_addr, to push_dummy_call. Move call to
8862 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8864 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8866 2003-05-03 Andrew Cagney <cagney@redhat.com>
8868 * disasm.h (print_insn): Declare.
8869 * disasm.c (init_gdb_disassemble_info): New function.
8870 (gdb_disassembly): Call init_gdb_disassemble_info.
8871 (gdb_print_insn): New function.
8872 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8873 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8874 * mcore-tdep.c: Include "disasm.h"
8875 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8876 * d10v-tdep.c: Include "disasm.h".
8877 (display_trace): Call gdb_print_insn, instead of print_insn.
8878 (print_insn): Delete function.
8879 * printcmd.c: Include "disasm.h".
8880 (print_insn): Delete function.
8881 (print_formatted): Call gdb_print_insn, instead of print_insn.
8882 * Makefile.in (printcmd.o): Update dependencies.
8883 (mcore-tdep.o, d10v-tdep.o): Ditto.
8885 2003-05-02 Andrew Cagney <cagney@redhat.com>
8887 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8888 PC_REGNUM, re-indent.
8889 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8890 PC_REGNUM isn't set.
8892 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8893 * gdbarch.h, gdbarch.c: Re-generate.
8894 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8895 register_virtual_size, pc_regnum, or register_bytes.
8896 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8897 (d10v_register_type): Use D10V_PC_REGNUM.
8898 (d10v_print_registers_info, d10v_read_pc): Ditto.
8899 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8900 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8902 2003-05-02 David Carlton <carlton@bactrian.org>
8904 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8905 the name with mstrsave.
8907 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8909 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8910 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8911 (host_charset_name, target_charset_name): New vars for use by
8913 (host_charset_enum, target_charset_enum): New enums for set/show
8915 (set_charset_sfunc, set_host_charset_sfunc,
8916 set_target_charset_sfunc): New functions.
8917 (set_host_charset, set_target_charset): Make static.
8918 (list_charsets, set_host_charset_command,
8919 set_target_charset_command): Delete functions.
8920 (show_charset_command): Rewrite as....
8921 (show_charset): Hook this up with the set/show command mechanism.
8922 (_initialize_charset): Change names of charsets to match the
8923 set/show enums. Use host_charset_name and target_charset_name.
8924 Use set/show mechanism for charset, host-charset, target-charset
8925 commands. Do not make 'show host-charset' and 'show
8926 target-charset' be aliases of 'show charset'.
8928 * charset.h (set_host_charset, set_target_charset): Don't export,
8929 they are not used outside the file.
8931 2003-05-01 Andrew Cagney <cagney@redhat.com>
8933 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8934 (gdb_disassembly): Make "di" non static, always initialize and
8935 cleanup. Always use dis_asm_read_memory.
8936 (gdb_dis_asm_read_memory): Delete function.
8938 2003-05-01 Andrew Cagney <cagney@redhat.com>
8940 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8941 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8943 2003-04-30 Andrew Cagney <cagney@redhat.com>
8945 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8946 "tm_print_insn_info".
8947 (TARGET_PRINT_INSN_INFO): Delete macro.
8948 (dis_asm_read_memory): Delete function declaration.
8949 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8950 (tm_print_insn_info): Delete variable definition.
8951 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8952 * gdbarch.h, gdbarch.c: Re-generate.
8953 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8954 "deprecated_tm_print_insn_info".
8955 * mcore-tdep.c (mcore_dump_insn): Ditto.
8956 * mips-tdep.c (mips_gdbarch_init): Ditto.
8957 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8958 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8959 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8960 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8961 instead of TARGET_PRINT_INSN_INFO, add comment.
8962 * s390-tdep.c (s390_get_frame_info): Instead of
8963 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8964 (s390_check_function_end, s390_is_sigreturn): Ditto.
8965 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8966 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8967 * disasm.c: Include "gdbcore.h".
8968 (_initialize_disasm): New function, initialize
8969 "deprecated_tm_print_insn_info".
8970 (deprecated_tm_print_insn_info): New variable.
8971 (dis_asm_read_memory): Moved from "corefile.c", made static.
8972 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8973 * Makefile.in (disasm.o): Update dependencies.
8975 2003-04-30 Andrew Cagney <cagney@redhat.com>
8977 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8979 2003-04-29 Adam Fedor <fedor@gnu.org>
8981 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8982 * infcall.c (find_function_addr): Make non-static.
8983 * infcall.h (find_function_addr): Declare.
8984 * Makefile.in (eval.o): Update dependencies.
8986 2003-04-28 Adam Fedor <fedor@gnu.org>
8988 * symtab.c (symbol_find_demangled_name): Check for and demangle
8990 (symbol_init_demangled_name): Init for language_objc as well.
8992 2003-04-28 Andrew Cagney <cagney@redhat.com>
8994 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8995 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8996 * gdbarch.h, gdbarch.c: Re-generate.
8997 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8998 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8999 * inferior.h (deprecated_read_fp): Rename read_fp.
9000 (generic_target_read_fp): Delete declaration.
9001 * regcache.c (generic_target_read_fp): Delete function.
9002 (deprecated_read_fp): Replace read_fp, use
9003 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9004 * d10v-tdep.c (d10v_read_fp): Delete function.
9005 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9007 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9008 deprecated_target_read_fp to generic_target_read_fp.
9009 * sh-tdep.c (sh_gdbarch_init): Ditto.
9010 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9011 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9012 * frv-tdep.c (frv_gdbarch_init): Ditto.
9014 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9015 deprecated_fp_regnum.
9016 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9017 * vax-tdep.c (vax_gdbarch_init): Ditto.
9018 * v850-tdep.c (v850_gdbarch_init): Ditto.
9019 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9020 * sh-tdep.c (sh_gdbarch_init): Ditto.
9021 * s390-tdep.c (s390_gdbarch_init): Ditto.
9022 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9023 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9024 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9025 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9027 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9028 * i386-tdep.c (i386_gdbarch_init): Ditto.
9029 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9030 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9031 * frv-tdep.c (frv_gdbarch_init): Ditto.
9032 * cris-tdep.c (cris_gdbarch_init): Ditto.
9033 * avr-tdep.c (avr_gdbarch_init): Ditto.
9034 * arm-tdep.c (arm_gdbarch_init): Ditto.
9035 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9037 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9038 * v850-tdep.c (v850_gdbarch_init): Ditto.
9039 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9040 * sh-tdep.c (sh_gdbarch_init): Ditto.
9041 * s390-tdep.c (s390_gdbarch_init): Ditto.
9042 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9043 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9044 * mips-tdep.c (mips_gdbarch_init): Ditto.
9045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9046 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9047 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9048 * frv-tdep.c (frv_gdbarch_init): Ditto.
9049 * avr-tdep.c (avr_gdbarch_init): Ditto.
9050 * arm-tdep.c (arm_gdbarch_init): Ditto.
9052 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9053 DEPRECATED_FP_REGNUM.
9054 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9055 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9056 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9057 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9058 (sparc32_register_virtual_type): Ditto.
9059 * sh-tdep.c (sh64_frame_chain): Ditto.
9060 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9061 (sh_nofp_frame_init_saved_regs): Ditto.
9062 (sh64_nofp_frame_init_saved_regs): Ditto.
9063 (sh_fp_frame_init_saved_regs): Ditto.
9064 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9065 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9066 * procfs.c (procfs_fetch_registers): Ditto.
9067 (procfs_store_registers): Ditto.
9068 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9069 (store_inferior_registers, fetch_core_registers): Ditto.
9070 (fetch_kcore_registers, clear_regs): Ditto.
9071 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9072 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9073 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9074 * nlm/i386.c (do_status): Ditto.
9075 * mipsv4-nat.c (supply_gregset): Ditto.
9076 * mips-tdep.c: Ditto for comments.
9077 * mips-nat.c (fetch_inferior_registers): Ditto.
9078 (store_inferior_registers, fetch_core_registers): Ditto.
9079 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9080 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9081 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9082 (i386_do_pop_frame, i386_register_type): Ditto.
9083 * hppa-tdep.c (hppa_frame_chain): Ditto.
9084 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9085 (hppa_pop_frame, hppa_read_fp): Ditto.
9086 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9087 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9088 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9089 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9090 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9091 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9092 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9093 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9094 * blockframe.c: Ditto for comments.
9095 * arch-utils.h: Ditto for comments.
9096 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9097 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9098 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9099 * alpha-tdep.h: Ditto for comments.
9100 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9101 (alpha_cannot_store_register): Ditto.
9102 (alpha_push_dummy_frame): Ditto.
9103 * alpha-nat.c (supply_gregset): Ditto.
9105 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9106 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9107 * config/sparc/tm-sparc.h: Update comment.
9109 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9110 deprecated_read_fp instead of TARGET_READ_FP.
9111 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9112 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9113 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9114 deprecated_read_fp instead of read_fp.
9115 * s390-tdep.c (s390_push_arguments): Ditto.
9116 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9117 * frame.h: Ditto in comments.
9118 * frame.c (legacy_get_prev_frame): Ditto.
9119 * dummy-frame.c (dummy_frame_this_id): Ditto.
9120 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9122 2003-04-28 Andrew Cagney <cagney@redhat.com>
9124 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9125 * gdbarch.h, gdbarch.c: Re-generate.
9126 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9127 * vax-tdep.c (_initialize_vax_tdep): Update.
9128 * v850-tdep.c (_initialize_v850_tdep): Update.
9129 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9130 * s390-tdep.c (_initialize_s390_tdep): Update.
9131 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9132 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9133 * mips-tdep.c (_initialize_mips_tdep): Update.
9134 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9135 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9136 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9137 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9138 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9139 * frv-tdep.c (_initialize_frv_tdep): Update.
9140 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9141 (_initialize_cris_tdep): Update.
9142 * arch-utils.c (legacy_print_insn): Update.
9143 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9145 2003-04-26 Adam Fedor <fedor@gnu.org>
9147 * linespec.c (decode_objc): New function to decode ObjC calls
9148 (decode_line_1): Check for ObjC calls (using decode_objc)
9149 * Makefile (linespec.o): Update dependencies.
9151 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9153 * breakpoint.h (struct breakpoint_ops): New.
9154 (struct breakpoint): Add ops member.
9156 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9157 (mention): Use new breakpoint ops member.
9158 (set_raw_breakpoint): Initialize ops field to NULL.
9159 (print_exception_catchpoint, print_one_exception_catchpoint)
9160 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9161 (gnu_v3_exception_catchpoint_ops): New.
9162 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9164 2003-04-25 Adam Fedor <fedor@gnu.org>
9166 * Makefile.in (COMMON_OBS): Add objc-lang.o
9168 2003-04-25 Andrew Cagney <cagney@redhat.com>
9170 * d10v-tdep.c (print_insn): Delete function.
9171 (display_trace): Use TARGET_PRINT_INSN.
9172 (_initialize_d10v_tdep): Do not set tm_print_insn.
9173 (d10v_gdbarch_init): Set print_insn.
9175 2003-04-25 Andrew Cagney <cagney@redhat.com>
9177 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9178 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9179 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9180 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9181 (nr_dmap_regs, a0_regnum): ... new functions.
9182 (d10v_print_registers_info): Use a0_regnum, use register_size.
9183 (d10v_register_byte): Delete function.
9184 (d10v_register_raw_size): Delete function.
9185 (d10v_register_type): Use a0_regnum.
9186 (d10v_print_registers_info): Use a0_regnum.
9187 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9188 (d10v_gdbarch_init): Do not set register_byte or
9189 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9190 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9192 (trace_command): Use XCALLOC.
9193 (print_insn): Delete reference to tm_print_insn.
9194 (saved_regs_unwinder): Use store_unsigned_integer instead of
9196 * frame.h (FRAME_OBSTACK_CALLOC): Define
9198 2003-04-25 David Carlton <carlton@bactrian.org>
9200 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9202 2003-04-24 Adam Fedor <fedor@gnu.org>
9204 * objc-lang.c: Include "valprint.h"
9205 * Makefile.in (objc-lang.o): Update dependencies.
9207 2003-04-24 Adam Fedor <fedor@gnu.org>
9209 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9210 architecture dependant compilation and mark as unimplemented
9211 (until they get put in the gdbarch vector).
9213 2003-04-23 David Carlton <carlton@bactrian.org>
9215 * cp-support.c (cp_find_first_component): Accept 'operator' in
9218 2003-04-23 Andrew Cagney <cagney@redhat.com>
9220 * infcall.c (call_function_by_hand): Eliminate redundant
9221 indentation. Move "saved_async" and "old_cleanups" to where they
9224 2003-04-23 Andrew Cagney <cagney@redhat.com>
9226 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9227 and "buffer". Move the "name" code to where it is needed.
9229 2003-04-23 Andrew Cagney <cagney@redhat.com>
9231 * infcall.c (call_function_by_hand): Move variables "start_sp",
9232 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9233 code to ON_STACK switch branch.
9235 2003-04-23 Andrew Cagney <cagney@redhat.com>
9237 * infcall.c (call_function_by_hand): Make declaration of "i",
9238 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9241 2003-04-23 Andrew Cagney <cagney@redhat.com>
9243 * infcall.c (call_function_by_hand): Delete variable
9244 "n_method_args". Localize "param_type"'s declaration to the loop
9245 that it is used. Reinstate code assigning to said variable -
9246 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9247 Rationalize code using "param_type".
9249 2003-04-22 Andrew Cagney <cagney@redhat.com>
9251 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9252 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9253 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9254 to DEPRECATED_PUSH_RETURN_ADDRESS.
9256 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9258 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9259 on the DWARF2 register number prior to fetching a register.
9261 2003-04-22 J. Brobecker <brobecker@gnat.com>
9263 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9264 Update all the tests using SOFT_FLOAT considering the fact that
9265 this macro was always set to 0.
9266 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9267 considering the fact that this macro was always set to 0.
9268 * hppa-tdep.h (hppa_store_return_value): Likewise.
9269 (hppa_extract_return_value): Likewise.
9271 2003-04-22 J. Brobecker <brobecker@gnat.com>
9273 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9274 the hppa-pro target only.
9276 2003-04-21 J. Brobecker <brobecker@gnat.com>
9278 Ongoing multi-arch conversion effort for HP/UX:
9279 * config/pa/tm-hppa.h: Move all macro that are no longer
9280 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9281 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9283 2003-04-21 J. Brobecker <brobecker@gnat.com>
9285 * config/pa/tm-hppa.h: Obsolete a section that was only used
9288 2003-04-21 J. Brobecker <brobecker@gnat.com>
9290 Ongoing multi-arch conversion for HP/UX.
9291 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9292 if already defined (allows hppa64 to stay non-multiarched for now).
9293 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9295 2003-04-21 Andrew Cagney <cagney@redhat.com>
9297 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9299 2003-04-21 Andrew Cagney <cagney@redhat.com>
9301 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9302 "i386_num_mmx_regs".
9304 2003-04-21 Andrew Cagney <cagney@redhat.com>
9306 * infcall.c: New file.
9307 * infcall.h: New file.
9308 * valarith.c: Include "infcall.h".
9309 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9310 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9311 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9312 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9313 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9314 (SFILES): Add "infcall.c"
9315 (COMMON_OBS): Add "infcall.o".
9316 (infcall.o): Specify dependencies.
9317 * value.h (call_function_by_hand): Delete declaration.
9318 * inferior.h (run_stack_dummy): Delete declaration.
9319 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9320 (run_stack_dummy): Move to "infcall.c", merged into
9321 call_function_by_hand.
9322 * valops.c (call_function_by_hand): Moved to "infcall.c".
9323 (find_function_addr, value_arg_coerce): Ditto.
9324 (unwindonsignal_p, coerce_float_to_double): Ditto.
9325 (_initialize_valops): Move "set/show coerce-float-to-double", and
9326 "set/show unwindonsignal" commands to "infcall.c".
9327 * v850-tdep.c, target.h: Update comments.
9328 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9329 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9330 (sh64_init_extra_frame_info): Update comments.
9331 * mn10300-tdep.c: Update comments.
9332 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9333 * config/sparc/tm-sparc.h: Update comments.
9334 * breakpoint.h: Update comments.
9335 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9336 * arm-tdep.c: Update comment.
9338 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9340 * i386-tdep.c (i386_num_register_names): New variable.
9341 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9342 (MM0_REGNUM): Remove redundant parentheses in define.
9343 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9344 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9345 i386_mxcsr_regnum_p): Remove redundant parentheses.
9346 (i386_register_name): Use i386_num_register_names.
9348 * i386-tdep.c (i386_extract_return_value,
9349 i386_store_return_value): Correct check for availability of
9350 floating-point registers.
9352 * i386-tdep.c (i386_frame_num_args): Remove function.
9353 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9355 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9356 mmx_regnum_to_fp_regnum. Adjust all callers.
9358 * i386-tdep.c (i386_get_longjmp_target): Use
9359 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9360 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9363 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9365 * core-regset.c: Update comments to reflect reality. Re-order
9367 (fetch_core_registers): Use switch instead of if. Remove
9368 redundant prototype.
9370 2003-04-18 Jim Blandy <jimb@redhat.com>
9372 * s390-tdep.c (s390_frame_align): New function.
9373 (s390_gdbarch_init): Register it with the gdbarch object.
9375 2003-04-17 Richard Henderson <rth@redhat.com>
9377 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9379 2003-04-17 Michael Snyder <msnyder@redhat.com>
9380 Karen Bennet <bennet@redhat.com>
9382 Committed by Elena Zannoni <ezannoni@redhat.com>
9383 * gdb_gcore.sh: New script to create a core dump of a process.
9385 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9387 * values.c (value_being_returned): Don't fetch the return
9388 value if the return type is void.
9390 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9392 * thread-db.c: Reindented.
9394 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9396 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9397 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9424 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9426 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9427 the size of ``long double'' to 16, instead of 8.
9429 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9431 * i386-linux-nat.c: Add some whitespace to make things more
9433 (fetch_register, store_register, fetch_inferior_registers,
9434 store_inferior_registers): Get rid of assignment in if-statement.
9435 (store_register): Fix typo in error message.
9437 2003-04-16 Andrew Cagney <cagney@redhat.com>
9439 * utils.c (xmmalloc): Always allocate something, matches
9440 libiberty/xmalloc's semantics.
9441 (xmrealloc, xmcalloc): Ditto.
9443 2003-04-16 Andrew Cagney <cagney@redhat.com>
9445 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9447 (get_frame_type): Initialize unwind and type when needed.
9448 (get_frame_id, frame_register_unwind): Ditto.
9450 2003-04-16 Andrew Cagney <cagney@redhat.com>
9452 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9454 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9455 * sparcl-stub.c: Obsolete file.
9456 * config/sparc/tm-sparclet.h: Obsolete file.
9457 * sparclet-stub.c: Obsolete file.
9458 * sparclet-rom.c: Obsolete file.
9459 * sparcl-tdep.c: Obsolete file.
9460 * config/sparc/tm-sparclite.h: Obsolete file.
9461 * config/sparc/sparclite.mt: Obsolete file.
9462 * config/sparc/sparclet.mt: Obsolete file.
9463 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9464 sparc86x-*-* obsolete.
9466 2003-04-15 David Carlton <carlton@math.stanford.edu>
9468 * Makefile.in (SFILES): Add cp-namespace.c.
9469 (COMMON_OBS): Add cp-namespace.o.
9470 (block.o): Depend on gdb_obstack_h and cp_support_h.
9471 (buildsym.o): Depend on cp_support_h.
9472 (cp-namespace.o): New.
9473 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9474 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9475 (dwarf2read.o): Depend on cp_support_h.
9476 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9477 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9478 processing_current_namespace.
9479 (read_namespace): Update processing_current_namespace; check for
9480 anonymous namespaces.
9481 (dwarf2_name): New function.
9482 (dwarf2_extension): Ditto.
9483 * cp-support.h: Update copyright, contributors.
9484 Add inclusion guards.
9485 Add opaque declaration for structs obstack, block, symbol.
9486 (struct using_direct): New struct.
9487 Add declarations for cp_find_first_component,
9488 cp_entire_prefix_len, processing_has_namespace_info,
9489 processing_current_namespace, cp_is_anonymous,
9490 cp_add_using_directive, cp_initialize_namespace,
9491 cp_finalize_namespace, cp_set_block_scope,
9492 cp_scan_for_anonymous_namespaces.
9493 * cp-namespace.c: New file.
9494 * cp-support.c: Update copyright.
9495 Include ctype.h, gdb_assert.h, gdbcmd.h.
9496 New variable maint_cplus_cmd_list.
9497 (cp_find_first_component): New function.
9498 (cp_entire_prefix_len, maint_cplus_command)
9499 (first_component_command, _initialize_cp_support): Ditto.
9500 * buildsym.c: Include cp-support.h.
9501 New variable using_list.
9502 (add_symbol_to_list): Check for anonymous namespaces.
9503 (finish_block): Set block's scope.
9504 (start_symtab): Initialize C++ namespace support.
9505 (end_symtab): Finalize C++ namespace support.
9506 * block.h: Add opaque declarations for structs
9507 block_namespace_info, using_direct, and obstack.
9508 Add declarations for block_set_scope and block_set_using.
9509 (struct block): Add 'language_specific' member.
9510 (BLOCK_NAMESPACE): New macro.
9511 * block.c: Include gdb_obstack.h and cp-support.h.
9512 (struct block_namespace_info): New struct.
9513 (block_set_scope): New function.
9514 (block_set_using, block_initialize_namespace): Ditto.
9516 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9518 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9519 (locate_base): Return early if there aren't any link map offsets.
9520 (svr4_solib_create_inferior_hook): Warn if shared library support
9523 2003-04-14 David Carlton <carlton@math.stanford.edu>
9525 * symtab.c (symbol_set_names): Add prefix when storing Java names
9526 in hash table. Fix for PR java/1039.
9528 2003-04-14 David Carlton <carlton@math.stanford.edu>
9530 * symtab.c (symbol_set_names): Rename 'name' arg to
9531 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9532 * symtab.h: Change 'name' argument in declaration of
9533 symbol_set_names to 'linkage_name'.
9534 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9536 2003-04-14 Andrew Cagney <cagney@redhat.com>
9538 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9539 return the fully sign-extended register value.
9540 (get_frame_pointer): Ditto.
9541 (mips_pop_frame): Initialize "proc_desc" after checking for a
9544 2003-04-14 Andrew Cagney <cagney@redhat.com>
9546 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9547 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9548 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9549 (mips_push_register): Delete function.
9550 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9553 2003-04-14 Jim Blandy <jimb@redhat.com>
9555 * symmisc.c: #include "gdb_regex.h".
9556 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9558 * maint.c (maintenance_list_command): New function.
9559 (_initialize_maint_cmds): Register the above as commands.
9560 * symtab.h (maintenance_list_symtabs,
9561 maintenance_list_psymtabs): New declarations.
9562 * cli/cli-cmds.c (maintenancelistlist): New variable.
9563 (init_cmd_lists): Initialize it.
9564 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9565 * gdbcmd.h (maintenancelistlist): New declaration.
9566 * Makefile.in (symmisc.o): Update dependencies.
9568 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9570 * s390-nat.c: Include asm/types.h for addr_t.
9572 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9574 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9575 actually incoming type.
9577 2003-04-13 Andrew Cagney <cagney@redhat.com>
9579 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9580 get_next_frame and get_frame_saved_regs.
9582 2003-04-13 Andrew Cagney <cagney@redhat.com>
9584 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9585 of gdbarch_num_regs.
9587 2003-04-13 Andrew Cagney <cagney@redhat.com>
9589 * frame.h: Mention what replaced what in "struct frame_info".
9590 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9591 deprecated_update_frame_base_hack and
9592 deprecated_update_frame_pc_hack.
9593 * hppa-tdep.c: Ditto.
9595 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9597 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9598 to read_reg and update its comment. Remove regnum member.
9599 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9600 Don't call read_reg when setting in_reg. Call read_reg to get
9601 the frame base if it's in a register. Return the register number
9602 on the stack instead of in the context. Remove extra arguments
9604 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9605 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9606 the register number on the expression stack.
9607 (needs_frame_read_reg): Remove extra arguments.
9609 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9611 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9613 (execute_stack_op): All callers updated.
9614 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9615 * dwarf2loc.c (find_location_expression): New function.
9616 (dwarf_expr_frame_base): Call it.
9617 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9618 (dwarf2_tracepoint_var_ref): New function, broken out from
9619 locexpr_tracepoint_var_ref.
9620 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9622 (loclist_read_variable, loclist_read_needs_frame): New functions.
9623 (loclist_describe_location, loclist_tracepoint_var_ref): New
9625 (dwarf2_loclist_funcs): New struct location_funcs.
9626 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9627 (struct dwarf2_locexpr_baton): Add comments.
9628 (dwarf2_loclist_funcs): New extern.
9629 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9630 base_address and base_known.
9631 (dwarf_loc_buffer): New variable.
9632 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9633 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9634 (dwarf2_has_info): Initialize dwarf_loc_offset.
9635 (dwarf2_build_psymtabs): Read in .debug_loc.
9636 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9638 (psymtab_to_symtab_1): Likewise. Move base address calculation
9640 (dwarf2_get_pc_bounds): ... here. Use the base address from
9642 (dwarf2_symbol_mark_computed): Handle location lists.
9644 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9646 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9647 if the linkage name demangled successfully.
9649 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9651 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9652 disassmbly_flavour): Removed.
9654 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9656 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9658 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9660 2003-04-12 Andrew Cagney <cagney@redhat.com>
9662 * frame.h (struct frame_info): Move definition from here ...
9663 * frame.c (struct frame_info): ... to here.
9665 2003-04-12 Andrew Cagney <cagney@redhat.com>
9667 * gdbthread.h (save_infrun_state): Delete parameter
9669 (struct thread_info): Delete field "prev_func_start".
9670 (load_infrun_state): Ditto.
9671 * thread.c (load_infrun_state, save_infrun_state): Update.
9672 * infrun.c (prev_func_start): Delete variable.
9673 (context_switch, init_wait_for_inferior): Update.
9674 (stop_stepping, keep_going): Update.
9676 2003-04-12 Andrew Cagney <cagney@redhat.com>
9678 * gdbarch.sh: Add missing opaque declarations.
9679 * gdbarch.h: Regnerate.
9680 * symtab.h: Add missing opaque declarations.
9681 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9682 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9683 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9684 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9685 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9686 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9687 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9688 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9689 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9690 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9691 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9692 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9693 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9695 2003-04-11 Andrew Cagney <cagney@redhat.com>
9697 * frame.c (get_frame_id): Return this frame's "id".
9698 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9700 (legacy_saved_regs_this_id): Replace function body with
9702 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9703 FRAME_OBSTACK_ZALLOC.
9704 (create_new_frame): Mark the frame ID as valid.
9706 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9708 * Makefile.in (libbfd_h): Added missing setting.
9709 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9710 according to the selected ABI.
9712 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9714 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9716 2003-04-11 Andrew Cagney <cagney@redhat.com>
9718 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9719 SAVED_PC_AFTER_CALL.
9720 * gdbarch.h, gdbarch.c: Regenerate.
9721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9722 * x86-64-tdep.c (x86_64_init_abi): Update.
9723 * vax-tdep.c (vax_gdbarch_init): Update.
9724 * v850-tdep.c (v850_gdbarch_init): Update.
9725 * sparc-tdep.c (sparc_gdbarch_init): Update.
9726 * sh-tdep.c (sh_gdbarch_init): Update.
9727 * s390-tdep.c (s390_gdbarch_init): Update.
9728 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9729 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9730 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9731 * mips-tdep.c (mips_gdbarch_init): Update.
9732 * mcore-tdep.c (mcore_gdbarch_init): Update.
9733 * m68k-tdep.c (m68k_gdbarch_init): Update.
9734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9735 * ia64-tdep.c (ia64_gdbarch_init): Update.
9736 (ia64_saved_pc_after_call): Update declaration.
9737 * i386ly-tdep.c (i386lynx_init_abi): Update.
9738 * i386-tdep.c (i386_gdbarch_init): Update.
9739 * hppa-tdep.c (hppa_gdbarch_init): Update.
9740 * h8300-tdep.c (h8300_gdbarch_init): Update.
9741 * frv-tdep.c (frv_gdbarch_init): Update.
9742 * cris-tdep.c (cris_gdbarch_init): Update.
9743 * avr-tdep.c (avr_gdbarch_init): Update.
9744 * arm-tdep.c (arm_gdbarch_init): Update.
9745 * alpha-tdep.c (alpha_gdbarch_init): Update.
9746 * ns32knbsd-nat.c (frame_num_args): Update.
9747 * ns32k-tdep.c (umax_frame_num_args): Update.
9748 * mips-tdep.c (mips_init_frame_pc_first): Update.
9749 * infrun.c (step_over_function): Update.
9750 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9751 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9752 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9753 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9754 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9755 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9756 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9757 * arch-utils.c (init_frame_pc_default): Update.
9758 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9759 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9762 2003-04-11 Andrew Cagney <cagney@redhat.com>
9764 * i387-tdep.c: Update copyright.
9765 (i387_to_double): Delete function.
9766 (double_to_i387): Delete function.
9768 2003-04-10 Andrew Cagney <cagney@redhat.com>
9770 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9771 frame's function's address. Simplify.
9772 (d10v_frame_unwind_cache): Check that the frame's function is
9775 2003-04-10 Jim Blandy <jimb@redhat.com>
9777 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9778 call to set_gdbarch_deprecated_push_arguments.
9780 2003-04-10 Andrew Cagney <cagney@redhat.com>
9782 * frame.c (fprint_frame_id): New function.
9783 (fprint_frame_type, fprint_frame): New function.
9784 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9785 (create_sentinel_frame, get_frame_id): Ditto.
9786 (frame_id_p, frame_id_eq): Ditto.
9787 (frame_id_inner, create_new_frame): Ditto.
9788 (legacy_get_prev_frame, get_prev_frame): Ditto.
9789 (deprecated_update_frame_pc_hack): Ditto.
9790 (frame_register_unwind): Ditto.
9791 (deprecated_update_frame_base_hack): Ditto.
9793 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9795 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9796 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9797 frame_chain function.
9798 * Makefile.in: Add dependencies due to above change.
9800 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9802 * blockframe.c (legacy_frame_chain_valid): Move call to
9803 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9806 2003-04-09 Andrew Cagney <cagney@redhat.com>
9808 * frame.h (struct frame_id): Replace "pc" and "base" with
9809 "stack_addr" and "code_addr". Update comments.
9810 (frame_id_build): Update parameter names and comment.
9811 (struct frame_info): Replace "id_p" and "id" with "this_id".
9812 * dummy-frame.c (dummy_frame_this_id): Update.
9813 * breakpoint.c (print_one_breakpoint): Update.
9814 * frame.c (get_frame_id): Update.
9815 (get_frame_base, frame_id_build): Update.
9816 (create_sentinel_frame, legacy_get_prev_frame): Update.
9817 (deprecated_update_frame_base_hack): Update.
9818 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9819 (frame_id_inner): Ditto.
9821 2003-04-09 Andrew Cagney <cagney@redhat.com>
9823 * defs.h (gdb_print_host_address): Make "addr" parameter a
9825 * utils.c (gdb_print_host_address): Update.
9827 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9829 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9830 register number for R0 is 0.
9832 2003-04-09 J. Brobecker <brobecker@gnat.com>
9834 * frame.h (struct gdbarch): Add opaque structure definition
9835 to avoid a compilation warning on LynxOS 4.0.
9837 2003-04-09 Andrew Cagney <cagney@redhat.com>
9839 * frame.h (struct frame_info): Delete field "pc". Replace
9840 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9842 * frame.c (frame_pc_unwind): Update.
9843 (create_sentinel_frame): Do not set "pc".
9844 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9845 (get_frame_pc): Call frame_pc_unwind.
9846 (deprecated_update_frame_pc_hack): Update.
9847 (create_new_frame): Use "pc" not "->pc".
9849 2003-04-09 Andrew Cagney <cagney@redhat.com>
9851 * frame.c (get_frame_id): Eliminate code updating "frame".
9852 (legacy_get_prev_frame): Ditto.
9853 (get_frame_base): Return id.base directly.
9854 (deprecated_update_frame_base_hack): Update "id.base".
9855 * frame.h (struct frame_info): Delete field "frame".
9857 2003-04-09 Andrew Cagney <cagney@redhat.com>
9859 * NEWS: Mention that the "Sequent family" is obsolete.
9860 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9861 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9862 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9863 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9864 * config/i386/tm-ptx4.h: Obsolete file.
9865 * config/i386/tm-ptx.h: Obsolete file.
9866 * symm-tdep.c: Obsolete file.
9867 * config/i386/symmetry.mt: Obsolete file.
9868 * config/i386/tm-symmetry.h: Obsolete file.
9869 * symm-nat.c: Obsolete file.
9870 * config/i386/nm-symmetry.h: Obsolete file.
9871 * config/i386/xm-symmetry.h: Obsolete file.
9872 * config/i386/symmetry.mh: Obsolete file.
9873 * config/i386/nm-ptx4.h: Obsolete file.
9874 * config/i386/ptx4.mh: Obsolete file.
9875 * config/i386/ptx.mt: Obsolete file.
9876 * config/i386/ptx.mh: Obsolete file.
9877 * config/i386/xm-ptx4.h: Obsolete file.
9878 * config/i386/xm-ptx.h: Obsolete file.
9880 2003-04-09 Andrew Cagney <cagney@redhat.com>
9882 Obsolete mips*-*-mach3*.
9883 * NEWS: Mention that mips*-*-mach3* is obsolete.
9884 * m3-nat.c: Obsolete file.
9885 * config/nm-m3.h: Obsolete file.
9886 * config/mips/tm-mipsm3.h: Obsolete file.
9887 * config/mips/mipsm3.mt: Obsolete file.
9888 * config/mips/mipsm3.mh: Obsolete file.
9889 * config/mips/xm-mipsm3.h: Obsolete file.
9890 * mipsm3-nat.c: Obsolete file.
9891 * configure.host: Obsolete mips-dec-mach3*.
9892 * configure.tgt: Obsolete mips*-*-mach3*.
9894 2003-04-09 Andrew Cagney <cagney@redhat.com>
9896 * doublest.h: Update copyright.
9897 (deprecated_store_floating, deprecated_extract_floating): Rename
9898 store_floating and extract_floating. Update comments.
9899 * doublest.c: Update copyright.
9900 (extract_floating_by_length): Replace extract_floating.
9901 (store_floating_by_length): Replace store_floating.
9902 (deprecated_extract_floating): New function.
9903 (deprecated_store_floating): New function.
9904 (extract_typed_floating): Call extract_floating_by_length.
9905 (store_typed_floating): Call store_floating_by_length.
9906 * x86-64-tdep.c (x86_64_store_return_value): Update.
9907 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9908 (sh64_extract_return_value): Update.
9909 (sh_sh4_register_convert_to_virtual): Update.
9910 (sh_sh64_register_convert_to_virtual): Update.
9911 (sh_sh4_register_convert_to_raw): Update.
9912 (sh_sh64_register_convert_to_raw): Update.
9913 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9914 (rs6000_register_convert_to_raw): Update.
9915 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9916 (ia64_register_convert_to_raw): Update.
9917 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9918 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9919 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9920 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9921 (alpha_register_convert_to_raw): Update.
9923 2003-04-08 Andrew Cagney <cagney@redhat.com>
9925 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9926 * gdbarch.h, gdbarch.c: Re-generate.
9927 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9928 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9929 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9930 conditionally, use frame_pc_unwind as an alternative. Add
9932 * arch-utils.c (init_frame_pc_default): Only call
9933 SAVED_PC_AFTER_CALL when available.
9935 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9937 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9938 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9939 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9940 (start_remote): Ditto.
9941 (handle_inferior_event): Ditto.
9942 (save_inferior_status): Ditto.
9943 (restore_inferior_status): Ditto.
9944 * infcmd.c (attach_command): Ditto.
9945 * fork-child.c (startup_inferior): Ditto.
9946 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9947 * alpha-tdep.c (heuristic_proc_start): Ditto.
9948 * mips-tdep.c (heuristic_proc_start): Ditto.
9949 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9950 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9951 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9952 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9953 * remote-vx.c (vx_create_inferior): Ditto.
9955 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9957 * infrun.c (stop_soon_quietly): Make it an enum, to better
9958 override the default behavior of handle_inferior_event.
9959 (clear_proceed_status): Update uses of stop_soon_quietly to
9960 reflect that it is now an enum.
9961 (start_remote): Ditto.
9962 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9963 is set to handle the new GNU/Linux kernel behavior for
9964 attach/sigstop. Update uses of stop_soon_quietly.
9965 * inferior.h (enum stop_kind): New enum.
9966 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9967 Reset normal handle_inferior_event behavior, afterwards.
9968 * fork-child.c (startup_inferior): Update.
9969 * alpha-tdep.c (heuristic_proc_start): Update.
9970 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9971 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9972 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9973 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9974 * remote-vx.c (vx_create_inferior): Update.
9975 * mips-tdep.c (heuristic_proc_start): Update.
9977 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9979 * disasm.c (dump_insns): Move variables inside loop, or they will
9980 be freed more than once, causing wild memory corruptions.
9981 (gdb_disassembly): Look for the substring "-thread",
9982 instead of "-threads" in the target name, to make sure to find
9983 the 'multi-thread' target. Also, make sure we do the right thing
9984 with the "core" target.
9986 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9988 * mips-tdep.c (mips_print_fp_register): New function, created from
9989 do_fp_register_row(). Registers are now (also) printed as hex.
9990 Only one register is printed per row.
9991 (mips_print_register, do_fp_register_row): Print floating point
9992 registers with mips_print_fp_register().
9994 2003-04-06 Andrew Cagney <cagney@redhat.com>
9996 * valprint.h (inspect_it): Add extern declaration.
9997 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9998 (selectors_info, classes_info): Ditto.
9999 (find_objc_msgcall): Fix indentation.
10000 (objc_printstr): Delete extern declarations.
10002 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10004 2003-04-06 Andrew Cagney <cagney@redhat.com>
10006 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10008 * frame.c (legacy_saved_regs_this_id): Update.
10009 (legacy_get_prev_frame): Update.
10010 * xstormy16-tdep.c: Update comment.
10011 * sparc-tdep.c (sparc_frame_chain): Update comment.
10012 * blockframe.c (legacy_frame_chain_valid): Update.
10014 2003-04-06 Andrew Cagney <cagney@redhat.com>
10016 * valprint.c (val_print_type_code_int): Delete #ifdef
10017 PRINT_TYPELESS_INTEGER code.
10019 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10020 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10021 multi-arch definition.
10022 * gdbarch.h: Re-generate.
10024 2003-04-05 Andrew Cagney <cagney@redhat.com>
10026 Eliminate FRAME_FIND_SAVED_REGS.
10027 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10028 Change FSR parameter to a pointer.
10029 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10030 Assume FSR parameter is a pointer.
10031 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10032 Make fsr a pointer.
10033 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10034 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10035 saved_regs a pointer.
10036 (hppa_frame_saved_pc): Ditto.
10037 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10038 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10040 (restore_pc_queue): Make fsr a pointer.
10041 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10042 (hppa_frame_chain): Make saved_regs a pointer, call
10043 hppa_frame_init_saved_regs.
10044 * sparc-tdep.c: Include "gdb_assert.h".
10045 (sparc_frame_find_saved_regs): Replace internal_error with
10047 * remote-vxsparc.c (vx_read_register): Delete reference to
10048 FRAME_FIND_SAVED_REGS.
10049 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10050 * gdbarch.h: Regenerate.
10051 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10052 (deprecated_get_frame_saved_regs): Delete declaration.
10053 (struct frame_saved_regs): Delete definition.
10054 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10055 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10056 (hppa_frame_find_saved_regs): Delete declaration.
10057 (FRAME_FIND_SAVED_REGS): Delete macro.
10058 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10059 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10060 FRAME_FIND_SAVED_REGS in comment.
10062 2003-04-05 Andrew Cagney <cagney@redhat.com>
10064 * frame.c (frame_func_unwind, get_frame_func): New functions.
10065 * frame.h (get_frame_func, frame_func_unwind): Declare.
10066 (struct frame_info): Add field "prev_func" for caching the
10067 previous frame's function address.
10068 * arm-tdep.c (arm_frameless_function_invocation): Combine
10069 get_pc_function_start and get_frame_pc into get_frame_func.
10070 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10071 (sh64_nofp_frame_init_saved_regs): Ditto.
10072 * s390-tdep.c (s390_function_start): Ditto.
10073 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10074 (rs6000_frameless_function_invocation): Ditto.
10075 (rs6000_frame_saved_pc): Ditto.
10076 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10077 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10078 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10079 (i386_frame_init_saved_regs): Ditto.
10080 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10081 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10082 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10083 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10084 * blockframe.c (frameless_look_for_prologue): Ditto.
10086 2003-04-05 Andrew Cagney <cagney@redhat.com>
10088 * frame.c (legacy_get_prev_frame): Link prev to next at the
10089 function start. Update comments.
10091 2003-04-05 Andrew Cagney <cagney@redhat.com>
10093 * frame.c (get_frame_id): Update comment.
10094 (legacy_get_prev_frame): Update comment.
10095 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10096 * gdbarch.h: Regenerate.
10097 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10098 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10100 2003-04-05 Andrew Cagney <cagney@redhat.com>
10102 * stack.c (print_frame_info): Use get_frame_pc.
10104 2003-04-04 Andrew Cagney <cagney@redhat.com>
10106 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10107 the frame's type from the unwinder.
10108 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10109 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10110 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10111 (get_frame_base_address): Use get_frame_type.
10112 (get_frame_locals_address, get_frame_args_address): Ditto.
10113 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10114 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10115 (struct frame_info): Add comment explaining why the frame contains
10117 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10118 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10119 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10121 * frame-unwind.h: Include "frame.h".
10122 (struct frame_unwind): Add "type" field.
10123 * Makefile.in (frame_unwind_h): Add $(frame_h).
10125 2003-04-04 Andrew Cagney <cagney@redhat.com>
10127 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10128 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10129 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10131 (d10v_unwind_dummy_id): Use frame_id_build.
10132 * frame.c (find_frame_sal): Use get_frame_pc.
10133 (create_new_frame): Use deprecated_update_frame_pc_hack and
10134 deprecated_update_frame_base_hack.
10135 (create_sentinel_frame): Add comment about ->pc going away.
10136 (get_prev_frame): Add comment about ->pc going away.
10137 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10138 frame_id_build, deprecated_update_frame_pc_hack and
10139 deprecated_update_frame_base_hack.
10140 (select_frame): Use get_frame_pc.
10141 (legacy_saved_regs_this_id): Use frame_id_build.
10143 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10145 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10146 signed integer case.
10147 (classify_argument): Handle enumerations and references.
10149 2003-04-04 Andrew Cagney <cagney@redhat.com>
10151 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10154 2003-04-01 Adam Fedor <fedor@gnu.org>
10156 * gdb/objc-lang.c (selectors_info): Replace calls to
10157 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10158 SYMBOL_NATURAL_NAME.
10159 (classes_info, find_methods): Likewise.
10161 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10163 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10164 ``mach'' to the value determined by bfd_default_set_arch_mach().
10166 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10168 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10169 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10170 (mi-cmd-file.o): Update dependencies.
10172 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10174 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10175 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10177 2003-04-01 Adam Fedor <fedor@gnu.org>
10179 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10180 * language.h (struct language_defn): Add la_demangle.
10181 (language_demangle): Declare.
10182 * language.c (language_demangle): New function.
10183 (unk_lang_demangle): Likewise.
10184 (unknown_language_defn, auto_language_defn, local_language_defn):
10185 Add ukn_lang_demangle.
10186 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10187 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10188 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10189 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10190 * jv-lang.c (java_demangle): New function
10191 (java_language_defn): Use it for la_demangle element.
10192 * objc-lang.c (objc_demangle): Add options argument
10193 (objc_language_defn): Use objc_demangle for la_demangle element.
10194 * maint.c (maintenance_demangle): Replace switch with
10195 call to language_demangle.
10196 * utils.c (fprintf_symbol_filtered): Likewise.
10198 2003-04-01 Andrew Cagney <cagney@redhat.com>
10200 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10201 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10202 PRINT_TYPELESS_INTEGER.
10203 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10204 PUSH_RETURN_ADDRESS.
10206 2003-04-01 Andrew Cagney <cagney@redhat.com>
10208 * Makefile.in (d10v-tdep.o): Update dependencies.
10209 * d10v-tdep.c: Include "frame-base.h".
10210 (d10v_frame_unwind): Make constant.
10211 (d10v_frame_base_address): New function.
10212 (d10v_frame_base): New variable.
10213 (d10v_gdbarch_init): Set frame_base default.
10214 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10216 (d10v_frame_unwind_cache): Set and use "prev_sp".
10217 (d10v_frame_this_id): Use the previous frame's inner most stack
10218 address and this frame's func address for the frame ID. Use
10219 frame_id_build. Don't analyze beyond the current instruction.
10221 2003-04-01 Andrew Cagney <cagney@redhat.com>
10223 * frame.h (get_frame_locals_address, get_frame_args_address):
10224 Refer to the base address, instead of the address of the first
10225 local or parameter.
10227 2003-04-01 Andrew Cagney <cagney@redhat.com>
10229 Add frame debug info addresses:
10230 * frame-base.c: New file.
10231 * frame-base.h: New file.
10232 * frame.h (struct frame_base): Add opaque declaration.
10233 (get_frame_base): Update comment.
10234 (get_frame_base_address): Declare.
10235 (get_frame_locals_address): Declare.
10236 (get_frame_args_address): Declare.
10237 (struct frame_info): Add "base" and "base_cache". Update
10238 comments on the unwinder.
10239 * frame.c: Include "frame-base.h".
10240 (get_frame_locals_address): New function.
10241 (get_frame_base_address): New function.
10242 (get_frame_args_address): New function.
10243 * findvar.c (read_var_value): Use get_frame_locals_address and
10244 get_frame_args_address.
10245 * stack.c (frame_info): Use get_frame_locals_address and
10246 get_frame_args_address.
10247 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10248 moved to "frame-base.c".
10249 * printcmd.c (print_frame_nameless_args): Ditto.
10250 * symtab.h (address_class): Update comments.
10251 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10252 get_frame_base_address.
10253 * dwarf2expr.c (execute_stack_op): Ditto.
10254 * Makefile.in (frame_base_h): Define.
10255 (frame.o): Update dependencies.
10256 (frame-base.o): Add dependencies.
10257 (SFILES): Add frame-base.c.
10258 (COMMON_OBS): Add frame-base.o.
10260 2003-04-01 Andrew Cagney <cagney@redhat.com>
10262 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10263 CALL_DUMMY_LENGTH): Ditto.
10264 * gdbarch.c: Re-generate.
10265 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10266 (CALL_DUMMY_LENGTH): Delete macro.
10267 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10268 * arm-tdep.c (arm_gdbarch_init): Ditto.
10269 * avr-tdep.c (avr_gdbarch_init): Ditto.
10270 * cris-tdep.c (cris_gdbarch_init): Ditto.
10271 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10272 * frv-tdep.c (frv_gdbarch_init): Ditto.
10273 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10274 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10275 * i386-tdep.c (i386_gdbarch_init): Ditto.
10276 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10278 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10279 * mips-tdep.c (mips_gdbarch_init): Ditto.
10280 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10281 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10282 * s390-tdep.c (s390_gdbarch_init): Ditto.
10283 * sh-tdep.c (sh_gdbarch_init): Ditto.
10284 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10285 * v850-tdep.c (v850_gdbarch_init): Ditto.
10286 * vax-tdep.c (vax_gdbarch_init): Ditto.
10287 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10289 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10291 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10293 2003-04-01 Andrew Cagney <cagney@redhat.com>
10295 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10296 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10297 * gdbarch.h, gdbarch.c: Re-generate.
10298 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10299 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10300 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10301 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10302 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10303 * infcmd.c (run_stack_dummy): Simplify assuming
10304 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10305 * infrun.c (handle_inferior_event): Ditto.
10306 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10307 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10308 * arm-tdep.c (arm_gdbarch_init): Ditto.
10309 * avr-tdep.c (avr_gdbarch_init): Ditto.
10310 * cris-tdep.c (cris_gdbarch_init): Ditto.
10311 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10312 * frv-tdep.c (frv_gdbarch_init): Ditto.
10313 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10314 * i386-tdep.c (i386_gdbarch_init): Ditto.
10315 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10316 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10317 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10318 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10319 * mips-tdep.c (mips_gdbarch_init): Ditto.
10320 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10321 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10322 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10323 * s390-tdep.c (s390_gdbarch_init): Ditto.
10324 * sh-tdep.c (sh_gdbarch_init): Ditto.
10325 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10326 * v850-tdep.c (v850_gdbarch_init): Ditto.
10327 * vax-tdep.c (vax_gdbarch_init): Ditto.
10328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10330 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10332 * symfile.c (symfile_relocate_debug_section): Update call to
10333 bfd_simple_get_relocated_section_contents.
10335 2003-03-31 Andrew Cagney <cagney@redhat.com>
10337 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10338 * gdbarch.h, gdbarch.c: Regenerate.
10339 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10340 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10342 * frame.h (generic_fix_call_dummy): Delete declaration.
10343 * dummy-frame.h: Update comment.
10344 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10345 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10347 * sh-tdep.c (sh_gdbarch_init): Ditto.
10348 * s390-tdep.c (s390_gdbarch_init): Ditto.
10349 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10350 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10351 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10352 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10353 * i386-tdep.c (i386_gdbarch_init): Ditto.
10354 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10355 * frv-tdep.c (frv_gdbarch_init): Ditto.
10356 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10357 * cris-tdep.c (cris_gdbarch_init): Ditto.
10358 * avr-tdep.c (avr_gdbarch_init): Ditto.
10359 * arm-tdep.c (arm_gdbarch_init): Ditto.
10361 2003-03-31 J. Brobecker <brobecker@gnat.com>
10363 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10364 (INIT_FRAME_AP): Likewise.
10365 (EXTRA_FRAME_INFO): Likewise.
10367 2003-03-31 Andrew Cagney <cagney@redhat.com>
10369 * gdbarch.sh: Include "symfile.h".
10370 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10371 * gdbarch.h, gdbarch.c: Re-generate.
10372 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10374 call_dummy_address, the default is at entry_point_address.
10375 * v850-tdep.c (v850_gdbarch_init): Ditto.
10376 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10377 * sh-tdep.c (sh_gdbarch_init): Ditto.
10378 * s390-tdep.c (s390_gdbarch_init): Ditto.
10379 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10380 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10381 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10382 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10383 * i386-tdep.c (i386_gdbarch_init): Ditto.
10384 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10385 * frv-tdep.c (frv_gdbarch_init): Ditto.
10386 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10387 * cris-tdep.c (cris_gdbarch_init): Ditto.
10388 * arm-tdep.c (arm_gdbarch_init): Ditto.
10390 2003-03-31 Andrew Cagney <cagney@redhat.com>
10392 * gdbarch.sh (CALL_DUMMY_P): Delete.
10393 * gdbarch.h, gdbarch.c: Re-generate.
10394 * inferior.h (CALL_DUMMY_P): Delete macro.
10395 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10396 * vax-tdep.c (vax_gdbarch_init): Update.
10397 * v850-tdep.c (v850_gdbarch_init): Update.
10398 * sparc-tdep.c (sparc_gdbarch_init): Update.
10399 * sh-tdep.c (sh_gdbarch_init): Update.
10400 * s390-tdep.c (s390_gdbarch_init): Update.
10401 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10402 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10403 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10404 * mips-tdep.c (mips_gdbarch_init): Update.
10405 * mcore-tdep.c (mcore_gdbarch_init): Update.
10406 * m68k-tdep.c (m68k_gdbarch_init): Update.
10407 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10408 * ia64-tdep.c (ia64_gdbarch_init): Update.
10409 * i386-tdep.c (i386_gdbarch_init): Update.
10410 * h8300-tdep.c (h8300_gdbarch_init): Update.
10411 * frv-tdep.c (frv_gdbarch_init): Update.
10412 * d10v-tdep.c (d10v_gdbarch_init): Update.
10413 * cris-tdep.c (cris_gdbarch_init): Update.
10414 * breakpoint.c (deprecated_frame_in_dummy): Update.
10415 * avr-tdep.c (avr_gdbarch_init): Update.
10416 * alpha-tdep.c (alpha_gdbarch_init): Update.
10417 * arm-tdep.c (arm_gdbarch_init): Update.
10418 * dummy-frame.c (dummy_frame_this_id): Update comments.
10419 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10420 * frame.c (legacy_get_prev_frame): Ditto.
10421 * valops.c (call_function_by_hand): Delete function.
10422 (hand_function_call): Rename to call_function_by_hand
10424 2003-03-30 Andrew Cagney <cagney@redhat.com>
10426 2002-11-10 Klee Dienes <kdienes@apple.com>
10427 * value.h (struct value): Update comment.
10429 2003-03-30 Andrew Cagney <cagney@redhat.com>
10431 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10433 (d10v_gdbarch_init): Do not set fp_regnum.
10435 * frame.c (get_frame_base): Force ID initialization.
10436 (get_prev_frame): Move computation of the frame ID from here ...
10437 (get_frame_id): ... to here.
10438 (legacy_get_prev_frame): Mark the frame ID as valid.
10439 * frame.h (struct frame_info): Add field "id_p".
10441 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10443 * i386-tdep.c (i386_store_struct_return): Removed.
10444 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10446 2003-03-30 Andrew Cagney <cagney@redhat.com>
10448 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10449 * gdbarch.h, gdbarch.c: Regenerate.
10450 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10451 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10452 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10453 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10454 * i386-tdep.c (i386_gdbarch_init): Ditto.
10455 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10456 * cris-tdep.c (cris_gdbarch_init): Ditto.
10457 * vax-tdep.c (vax_gdbarch_init): Ditto.
10458 * s390-tdep.c (s390_gdbarch_init): Ditto.
10459 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10460 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10461 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10462 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10463 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10464 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10465 * sparc-tdep.c (sparc_gdbarch_init): Update.
10466 * sh-tdep.c (sh_gdbarch_init): Update.
10467 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10468 * mips-tdep.c (mips_gdbarch_init): Update.
10469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10470 * ia64-tdep.c (ia64_gdbarch_init): Update.
10471 * frv-tdep.c (frv_gdbarch_init): Update.
10472 * avr-tdep.c (avr_gdbarch_init): Update.
10473 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10474 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10475 instead of when push_dummy_call is not available.
10477 2003-03-30 Andrew Cagney <cagney@redhat.com>
10479 * infttrace.c: Include "gdbthread.h".
10480 (parent_attach_all): Fix function signature.
10481 (call_ptrace): Update call.
10482 * Makefile.in (infttrace.o): Update dependencies.
10484 2003-03-30 Andrew Cagney <cagney@redhat.com>
10486 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10487 PUSH_RETURN_ADDRESS.
10488 * gdbarch.h, gdbarch.c: Regenerate.
10489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10490 * x86-64-tdep.c (x86_64_init_abi): Update.
10491 * v850-tdep.c (v850_gdbarch_init): Update.
10492 * sparc-tdep.c (sparc_gdbarch_init): Update.
10493 * sh-tdep.c (sh_gdbarch_init): Update.
10494 * s390-tdep.c (s390_gdbarch_init): Update.
10495 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10496 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10497 * mips-tdep.c (mips_gdbarch_init): Update.
10498 * mcore-tdep.c (mcore_gdbarch_init): Update.
10499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10500 * ia64-tdep.c (ia64_gdbarch_init): Update.
10501 * i386-tdep.c (i386_gdbarch_init): Update.
10502 * h8300-tdep.c (h8300_gdbarch_init): Update.
10503 * frv-tdep.c (frv_gdbarch_init): Update.
10504 * cris-tdep.c (cris_gdbarch_init): Update.
10505 * avr-tdep.c (avr_gdbarch_init): Update.
10506 * arm-tdep.c (arm_gdbarch_init): Update.
10507 * valops.c (hand_function_call): Update.
10509 2003-03-29 Andrew Cagney <cagney@redhat.com>
10511 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10512 sizeof_call_dummy_words.
10513 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10515 * gdbarch.h: Regenerate.
10517 2003-03-29 Andrew Cagney <cagney@redhat.com>
10519 * infttrace.h: New file.
10520 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10521 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10522 (hpread_read_doc_function_type): Detect an initialized type1.
10523 (hpread_quick_traverse): Initialize mod_name_string.
10524 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10525 (som_solib_get_solib_by_pc): Declare.
10526 (so_lib_thread_start_addr): Declare.
10527 (no_shared_libraries): Declare.
10528 * somread.c (init_import_symbols): Make static. Add forward
10530 * config/pa/nm-hppah.h: Include "infttrace.h" for
10532 (hppa_insert_hw_watchpoint): Declare.
10533 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10534 * hppah-nat.c: Include "gdb_string.h".
10535 (parent_attach_all): Delete extern declaration, moved to
10537 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10539 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10540 * Makefile.in (infttrace_h): Define.
10541 (hpread.o): Update dependencies.
10542 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10543 * hppa-hpux-tdep.c: Include "gdb_string.h".
10544 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10545 * infrun.c (handle_inferior_event): Always initialize
10546 stepped_after_stopped_by_watchpoint. Add default and remove
10547 fallthrough in switch statement.
10548 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10550 (hppa_remove_hw_watchpoint): Ditto.
10552 2003-03-29 Andrew Cagney <cagney@redhat.com>
10554 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10557 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10559 * arm-tdep.c (arm_push_arguments): Delete.
10560 (struct stack_item): New type.
10561 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10562 (arm_store_struct_return): Delte.
10563 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10564 arm_push_arguments or arm_store_struct_return.
10566 2003-03-28 Andrew Cagney <cagney@redhat.com>
10568 * Makefile.in (d10v-tdep.o): Update dependencies.
10569 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10570 * d10v-tdep.c: Include "remote.h".
10571 (target_resume_hook): Delete extern declaration.
10572 (target_wait_loop_hook): Ditto.
10573 (tdisassemble_command): Eliminate assignment in "if" conditional.
10574 (d10v_ts2_register_sim_regno): Eliminate call to
10575 legacy_register_sim_regno.
10576 (d10v_ts3_register_sim_regno): Ditto.
10578 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10580 * thread.c: Reindented.
10581 * lin-lwp.c: Ditto.
10582 * linux-proc.c: Ditto.
10584 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10586 * MAINTAINERS (write after approval): Add myself.
10588 2003-03-27 Theodore A. Roth <troth@openavr.org>
10590 * objc-exp.y: Add missing semi-colons.
10592 2003-03-27 Andrew Cagney <cagney@redhat.com>
10594 * regcache.c (write_sp): Delete function and references.
10595 * inferior.h (write_sp): Delete declaration.
10596 * valops.c (hand_function_call): Replace write_sp with
10598 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10599 (sparc_pop_frame): Ditto.
10601 2003-03-27 Andrew Cagney <cagney@redhat.com>
10603 * NEWS: Mention removal of support for hppa*-*-bsd* and
10604 hppa*-*-osf* natives, and hppa*-*-pro* target.
10605 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10606 * config/pa/xm-pa.h: Obsolete file.
10607 * config/pa/xm-hppab.h: Obsolete file.
10608 * config/pa/nm-hppab.h: Obsolete file.
10609 * config/pa/tm-hppab.h: Obsolete file.
10610 * config/pa/tm-hppao.h: Obsolete file.
10611 * config/pa/nm-hppao.h: Obsolete file.
10612 * config/pa/tm-pro.h: Obsolete file.
10613 * config/pa/hppaosf.mt: Obsolete file.
10614 * config/pa/hppaosf.mh: Obsolete file.
10615 * config/pa/hppapro.mt: Obsolete file.
10616 * config/pa/hppabsd.mt: Obsolete file.
10617 * config/pa/hppabsd.mh: Obsolete file.
10618 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10619 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10622 2003-03-27 Andrew Cagney <cagney@redhat.com>
10624 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10625 push_arguments. Don't set push_return_address or write_sp.
10626 (d10v_push_dummy_call): Replace d10v_push_arguments.
10627 (d10v_push_return_address, d10v_write_sp): Delete function,
10628 handled by push_dummy_call.
10630 2003-03-26 Andrew Cagney <cagney@redhat.com>
10632 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10633 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10634 regcache and dummy_addr parameters.
10635 * gdbarch.h, gdbarch.c: Re-generate.
10636 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10637 available; assume it will handle stack alignment and return
10638 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10639 legacy_push_arguments.
10640 (legacy_push_arguments): Rename default_push_arguments.
10641 * value.h (legacy_push_arguments): Rename default_push_arguments.
10642 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10643 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10644 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10645 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10646 * config/i386/tm-symmetry.h: Update.
10647 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10648 * x86-64-tdep.c (x86_64_init_abi): Update.
10649 * v850-tdep.c (v850_gdbarch_init): Update.
10650 * sparc-tdep.c (sparc_gdbarch_init): Update.
10651 * sh-tdep.c (sh_gdbarch_init): Update.
10652 * s390-tdep.c (s390_gdbarch_init): Update.
10653 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10654 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10655 * mips-tdep.c (mips_gdbarch_init): Update.
10656 * mcore-tdep.c (mcore_gdbarch_init): Update.
10657 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10658 * ia64-tdep.c (ia64_gdbarch_init): Update.
10659 * i386-tdep.c (i386_gdbarch_init): Update.
10660 * hppa-tdep.c (hppa_gdbarch_init): Update.
10661 * h8300-tdep.c (h8300_gdbarch_init): Update.
10662 * frv-tdep.c (frv_gdbarch_init): Update.
10663 * d10v-tdep.c (d10v_gdbarch_init): Update.
10664 * cris-tdep.c (cris_gdbarch_init): Update.
10665 * avr-tdep.c (avr_gdbarch_init): Update.
10666 * arm-tdep.c (arm_gdbarch_init): Update.
10667 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10668 * alpha-tdep.c (alpha_gdbarch_init): Update.
10670 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10672 * signals/signals.c (do_target_signal_to_host): Correct realtime
10675 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10677 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10678 (struct sal_chain, map_catch_names): Remove.
10679 (catch_exception_command_1): Don't call
10680 handle_gnu_4_16_catch_command.
10682 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10684 From Mark Dettinger <dettinge@de.ibm.com>:
10685 * dwarf2cfi.c (read_2u): Increment pointer by two.
10687 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10689 * signals/signals.c: Fix typos in last change.
10691 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10693 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10694 not already defined. Use __SIGRTMIN if available.
10695 (target_signal_from_host): Remove SIGRTMIN block.
10696 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10697 the signal is within the realtime range.
10699 2003-03-25 Adam Fedor <fedor@gnu.org>
10701 * Makefile.in (infrun.o): Add $(language_h)
10702 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10703 for language specific trampolines.
10704 * language.h (struct language_defn): Add skip_trampoline.
10705 (skip_language_trampoline): Declare.
10706 * language.c (unk_lang_trampoline, skip_language_trampoline):
10708 (unknown_language_defn, auto_language_defn, local_language_defn):
10709 Add ukn_lang_trampoline.
10710 * ada-lang.c (ada_language_defn): Add NULL for language
10711 specific skip_trampoline.
10712 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10713 scm-lang.c: Likewise.
10714 * objc-lang.c (objc_skip_trampoline): New function.
10715 (objc_language_defn): Add objc_skip_trampoline.
10717 2003-03-25 Andrew Cagney <cagney@redhat.com>
10719 * frame.c (get_prev_frame): Delay validating a frame's ID -
10720 non-NULL, didn't go backwards - until an attempt to unwind it to
10721 the previous frame.
10723 2003-03-25 Andrew Cagney <cagney@redhat.com>
10725 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10726 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10727 * gdbarch.h, gdbarch.c: Re-generate.
10728 * config/sparc/tm-sparc.h
10729 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10730 * sparc-tdep.c (sparc_gdbarch_init): Set
10731 deprecated_extra_stack_alignment_needed.
10732 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10733 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10734 extra_stack_alignment_needed.
10735 * v850-tdep.c (v850_gdbarch_init): Ditto.
10736 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10737 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10738 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10739 * cris-tdep.c (cris_gdbarch_init): Ditto.
10740 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10743 2003-03-25 Andrew Cagney <cagney@redhat.com>
10745 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10746 STORE_STRUCT_RETURN.
10747 * gdbarch.h, gdbarch.c: Regenerate.
10748 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10749 (d10v_push_arguments): Set the struct return register.
10750 (d10v_gdbarch_init): Update.
10751 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10752 * x86-64-tdep.c (x86_64_init_abi): Update.
10753 * vax-tdep.c (vax_gdbarch_init): Update.
10754 * v850-tdep.c (v850_gdbarch_init): Update.
10755 * sparc-tdep.c (sparc_gdbarch_init): Update.
10756 * sh-tdep.c (sh_gdbarch_init): Update.
10757 * s390-tdep.c (s390_gdbarch_init): Update.
10758 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10759 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10760 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10761 * mips-tdep.c (mips_gdbarch_init): Update.
10762 * mcore-tdep.c (mcore_gdbarch_init): Update.
10763 * m68k-tdep.c (m68k_gdbarch_init): Update.
10764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10765 * ia64-tdep.c (ia64_gdbarch_init): Update.
10766 * i386-tdep.c (i386_gdbarch_init): Update.
10767 * hppa-tdep.c (hppa_gdbarch_init): Update.
10768 * h8300-tdep.c (h8300_gdbarch_init): Update.
10769 * frv-tdep.c (frv_gdbarch_init): Update.
10770 * cris-tdep.c (cris_gdbarch_init): Update.
10771 * avr-tdep.c (avr_gdbarch_init): Update.
10772 * arm-tdep.c (arm_gdbarch_init): Update.
10773 * alpha-tdep.c (alpha_gdbarch_init): Update.
10775 2003-03-25 Andrew Cagney <cagney@redhat.com>
10777 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10778 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10779 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10780 * gdbarch.h, gdbarch.c: Regenerate.
10781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10782 call_dummy_stack_adjust_p.
10783 * vax-tdep.c (vax_gdbarch_init): Ditto.
10784 * v850-tdep.c (v850_gdbarch_init): Ditto.
10785 * sh-tdep.c (sh_gdbarch_init): Ditto.
10786 * s390-tdep.c (s390_gdbarch_init): Ditto.
10787 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10788 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10789 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10790 * mips-tdep.c (mips_gdbarch_init): Ditto.
10791 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10792 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10794 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10795 * i386-tdep.c (i386_gdbarch_init): Ditto.
10796 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10797 * frv-tdep.c (frv_gdbarch_init): Ditto.
10798 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10799 * cris-tdep.c (cris_gdbarch_init): Ditto.
10800 * avr-tdep.c (avr_gdbarch_init): Ditto.
10801 * arm-tdep.c (arm_gdbarch_init): Ditto.
10802 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10803 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10804 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10805 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10806 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10807 call_dummy_stack_adjust_p.
10808 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10809 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10810 * sparc-tdep.c (sparc32_push_arguments): Update.
10811 * valops.c (hand_function_call): Update.
10813 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10815 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10816 set_gdbarch_char_signed.
10818 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10821 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10823 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10825 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10826 (_initialize_arm_tdep): Don't set tm_print_insn.
10828 2003-03-24 Adam Fedor <fedor@gnu.org>
10830 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10831 * objc-lang.h: Add multiple inclusion protection.
10832 (start_msglist, add_msglist, end_msglist): Additional declarations.
10834 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10836 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10837 value was renamed to ARM_FLOAT_SOFT_FPA.
10839 2003-03-23 Andrew Cagney <cagney@redhat.com>
10841 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10842 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10843 * gdbarch.h, gdbarch.c: Regenerate.
10844 * valops.c (hand_function_call): Update.
10845 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10846 * frame.c (legacy_saved_regs_this_id): Update.
10847 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10848 * dummy-frame.h: Update.
10849 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10850 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10851 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10852 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10853 * config/m68k/tm-sun3.h: Update.
10854 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10856 * x86-64-tdep.c (x86_64_init_abi): Update.
10857 * vax-tdep.c (vax_gdbarch_init): Update.
10858 * v850-tdep.c (v850_gdbarch_init): Update.
10859 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10860 * sh-tdep.c (sh_gdbarch_init): Update.
10861 * s390-tdep.c (s390_gdbarch_init): Update.
10862 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10863 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10864 (frame_get_saved_regs): Update.
10865 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10866 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10867 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10868 * mips-tdep.c (mips_gdbarch_init): Update.
10869 * mcore-tdep.c (mcore_gdbarch_init): Update.
10870 * m68k-tdep.c (m68k_gdbarch_init): Update.
10871 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10872 * ia64-tdep.c (ia64_gdbarch_init): Update.
10873 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10874 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10875 (i386_interix_back_one_frame): Update.
10876 * hppa-tdep.c (hppa_gdbarch_init): Update.
10877 (hppa_init_extra_frame_info): Update.
10878 * h8300-tdep.c (h8300_gdbarch_init): Update.
10879 * frv-tdep.c (frv_gdbarch_init): Update.
10880 * cris-tdep.c (cris_gdbarch_init): Update.
10881 * avr-tdep.c (avr_gdbarch_init): Update.
10882 * arm-tdep.c (arm_gdbarch_init): Update.
10883 * alpha-tdep.c (alpha_gdbarch_init): Update.
10885 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10887 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10888 (arm_get_fp_model): Declare.
10889 * arm-tdep.c (fp_model_strings): New string array.
10890 (arm_fp_model, current_fp_model): New variables.
10891 (arm_get_fp_model): New function.
10892 (arm_set_fp): New function.
10893 (set_fp_model_sfunc): New function.
10894 (show_fp_model): New function.
10895 (_initialize_arm_tdep): Add new command to set/show the FPU.
10896 (arm_extract_return_value): Use arm_get_fp_model.
10897 (arm_store_return_value): Likewise.
10898 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10899 to initialize the floating-point data types.
10900 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10903 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10905 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10906 the current setting of each value.
10907 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10908 new_set and new_show. Use add_setshow_cmd_full and
10909 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10910 commands and add new version as subcommands of "set/show arm".
10912 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10914 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10915 (set_arm_command, show_arm_command): New functions.
10916 (_initialize_arm_tdep): Add them.
10917 (num_disassembly_options): Renamed from num_flavor_options.
10918 (valid_disassembly_styles): Renamed from valid_flavors.
10919 (disassembly_style): Renamed from disassembly_flavor.
10920 (set_disassembly_style_sfunc): Renamed from
10921 set_disassembly_flavor_sfunc.
10922 (set_disassembly_style): Renamed from set_disassembly_flavor.
10923 (arm_othernames): Updated.
10924 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10925 command. Add "set/show arm disassembly" commands. Deprecate
10926 "othernames" command.
10928 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10930 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10931 (arm-tdep.o): Depend on elf_arm_h.
10933 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10935 * Makefile.in (coff_internal_h): Define.
10936 (arm-tdep.o): Update dependencies.
10938 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10940 * arm-tdep.c (prologue_cache): Delete.
10941 (check_prologue_cache, save_prologue_cache): Delete.
10942 (arm_scan_prologue): Don't check or update the prologue_cache.
10943 (arm_gdb_arch_init): Don't initialize it.
10944 (_initialize_arm_tdep): Likewise.
10946 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10948 * MAINTAINERS (tui): Maintainer of tui code.
10950 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10952 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10953 (i386-cygwin-tdep.o): Add dependencies.
10954 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10955 * i386-cygwin-tdep.c: New file.
10956 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10957 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10959 2003-03-20 Andrew Cagney <cagney@redhat.com>
10961 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10962 (handle_inferior_event): Remove code calling
10963 DYNAMIC_TRAMPOLINE_NEXTPC.
10965 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10966 already has a full path.
10968 * main.c (gdb_main): Return 1.
10969 (captured_main): Call error to report an invalid interpreter.
10971 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10972 * alpha-osf1-tdep.c: Include "gdb_string.h".
10974 2003-03-19 J. Brobecker <brobecker@gnat.com>
10976 Continuing work to convert the hppa targets to multiarch partial.
10978 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10979 method, now that hppa_push_dummy_frame has a conformant prototype.
10980 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10981 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10982 for the switch to multiarch partial.
10984 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10986 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10987 when iss is issNull.
10989 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10991 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10992 NUM_REGS bounds check.
10994 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10996 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10997 * mips-tdep.c (gdb_assert.h): Include.
10998 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10999 (mips_register_name): Handle integer registers explicitly. Add
11001 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11002 (mips_lsi33k_reg_names): Don't list integer registers; they're
11003 handled by mips_register_name() now.
11004 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11005 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11006 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11007 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11008 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11010 2003-03-18 Andrew Cagney <cagney@redhat.com>
11012 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11014 * gdbtypes.h (print_scalar_formatted): Update declaration.
11015 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11017 2003-03-18 J. Brobecker <brobecker@gnat.com>
11019 * infrun.c (observer.h): Add #include.
11020 (normal_stop): Add call to observer_notify_normal_stop.
11021 * Makefile.in (infrun.o): Add dependency on observer.h.
11023 2003-03-18 J. Brobecker <brobecker@gnat.com>
11025 Continuing work to convert the hppa targets to multiarch partial.
11026 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11027 parameter. Reformat comment.
11028 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11029 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11030 to match new profile.
11032 2003-03-18 J. Brobecker <brobecker@gnat.com>
11034 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11035 appear to be working in any case.
11037 2003-03-18 J. Brobecker <brobecker@gnat.com>
11039 * observer.c (observer_test_first_observer): New static variable.
11040 (observer_test_second_observer): Likewise.
11041 (observer_test_third_observer): Likewise.
11042 (observer_test_first_notification_function): New static function.
11043 (observer_test_second_notification_function): Likewise.
11044 (observer_test_third_notification_function): Likewise.
11046 2003-03-17 J. Brobecker <brobecker@gnat.com>
11048 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11049 * somsolib.c (gdb_assert.h): Likewise.
11050 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11051 (somsolib.o): Likewise.
11053 2003-03-17 Andrew Cagney <cagney@redhat.com>
11055 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11056 BFD. Simplify setting of di.endian.
11058 2003-03-17 Andrew Cagney <cagney@redhat.com>
11060 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11061 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11063 From Elena Zannoni <ezannoni@redhat.com>
11064 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11065 vector and floating-point parameters.
11066 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11068 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11070 2003-03-17 Fernando Nasser <fnasser@redhat.com>
11072 * MAINTAINERS: Remove my name from several maintainership roles.
11074 2003-03-17 Andrew Cagney <cagney@redhat.com>
11076 Fix frame off-by-one bug.
11077 * frame-unwind.h (frame_this_id_ftype): Replace
11078 frame_unwind_id_ftype.
11079 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11080 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11081 with "prev_register".
11082 * frame-unwind.c (frame_unwind_find_by_pc): Return
11083 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11085 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11086 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11087 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11088 (dummy_frame_unwind): Update.
11089 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11090 sentinel_frame_register_unwind.
11091 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11092 (sentinel_frame_unwinder): Update.
11093 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11094 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11095 * frame.c (create_sentinel_frame): Update. Initialize
11096 "prologue_cache" instead of "unwind_cache".
11097 (frame_register_unwind): Call this frame's prev_register with the
11098 next frame and this frame's prologue cache.
11099 (get_prev_frame): Simplify. Always call prev frame's this_id with
11100 this frame and prev frame's prologue cache. Document that this
11101 call is shifted one to the left when compared to the
11102 frame_register_unwind call.
11103 (legacy_saved_regs_prev_register): Replace
11104 frame_saved_regs_register_unwind.
11105 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11106 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11107 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11108 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11109 (d10v_frame_unwind): Update.
11110 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11111 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11112 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11113 "saved_regs" with "this_saved_regs".
11115 2003-03-16 Andrew Cagney <cagney@redhat.com>
11117 * frame.c (frame_pop): Don't call target_store_registers. Fix
11118 problem reported by Mark Kettenis.
11120 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11122 * i386-tdep.c (i386_register_type): Renamed from
11123 i386_register_virtual_type. Adjust function signature.
11124 (i386_gdbarch_init): Set register_type instead of
11125 deprecated_max_register_raw_size,
11126 deprecated_max_register_virtual_size and register_virtual_type.
11128 2003-03-14 Andrew Cagney <cagney@redhat.com>
11130 * frame.c (get_prev_frame): When a legacy frame, always call
11131 legacy_get_prev_frame. Simplify unwind code using assumption that
11132 the unwinder is new.
11133 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11134 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11135 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11137 2003-03-14 Andrew Cagney <cagney@redhat.com>
11139 * frame.c (get_saved_register): Delete function.
11140 * frame.h (get_saved_register): Delete declaration.
11141 * xstormy16-tdep.c: Update comment.
11142 * regcache.h: Update comments.
11143 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11144 get_saved_register and extract_address, use
11145 frame_read_unsigned_register.
11146 (sparc_frame_saved_pc): Ditto.
11147 (sparc_get_saved_register): Instead of get_saved_register, use
11149 (sparc_pop_frame): Ditto.
11150 * findvar.c: Update comments.
11151 (value_of_register): Call frame_register instead of
11152 get_saved_register.
11153 (value_from_register): Ditto.
11154 * config/sparc/tm-sparc.h: Update comment.
11155 * breakpoint.c: Update comment.
11157 2003-03-14 Andrew Cagney <cagney@redhat.com>
11159 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11160 GET_SAVED_REGISTER.
11161 * gdbarch.h, gdbarch.c: Re-generate.
11162 * frame.h: Update comments.
11163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11164 * x86-64-tdep.c (x86_64_init_abi): Update.
11165 * sparc-tdep.c (sparc_gdbarch_init): Update.
11166 * sh-tdep.c (sh_gdbarch_init): Update.
11167 * mips-tdep.c (mips_gdbarch_init): Update.
11168 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11169 * cris-tdep.c (cris_gdbarch_init): Update.
11170 * ia64-tdep.c (ia64_gdbarch_init): Update.
11171 * frame.c (frame_register): Update.
11172 (get_saved_register): Update.
11173 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11175 2003-03-13 Andrew Cagney <cagney@redhat.com>
11177 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11178 * gdbarch.h, gdbarch.c: Regenerate.
11179 * valops.c (hand_function_call): Update comment.
11180 * stack.c (return_command): Update comment.
11181 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11182 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11183 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11184 * x86-64-tdep.c (x86_64_init_abi): Update.
11185 * vax-tdep.c (vax_gdbarch_init): Update.
11186 * v850-tdep.c (v850_gdbarch_init): Update.
11187 * sparc-tdep.c (sparc_gdbarch_init): Update.
11188 * sh-tdep.c (sh_gdbarch_init): Update.
11189 * s390-tdep.c (s390_gdbarch_init): Update.
11190 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11191 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11192 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11193 * mips-tdep.c (mips_gdbarch_init): Update.
11194 * mcore-tdep.c (mcore_gdbarch_init): Update.
11195 * m68k-tdep.c (m68k_gdbarch_init): Update.
11196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11197 * ia64-tdep.c (ia64_gdbarch_init): Update.
11198 * i386-tdep.c (i386_gdbarch_init): Update.
11199 * hppa-tdep.c (hppa_gdbarch_init): Update.
11200 * h8300-tdep.c (h8300_gdbarch_init): Update.
11201 * frv-tdep.c (frv_gdbarch_init): Update.
11202 * cris-tdep.c (cris_gdbarch_init): Update.
11203 * avr-tdep.c (avr_gdbarch_init): Update.
11204 * arm-tdep.c (arm_gdbarch_init): Update.
11205 * alpha-tdep.c (alpha_gdbarch_init): Update.
11207 2003-03-13 Andrew Cagney <cagney@redhat.com>
11209 * frame.c (legacy_frame_p): New function.
11210 (get_prev_frame): Use legacy_frame_p.
11211 * frame.h (legacy_frame_p): Declare.
11213 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11215 * MAINTAINERS (write after approval): Alphabetically
11218 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11220 * MAINTAINERS (write after approval): Add myself.
11222 2003-03-12 Andrew Cagney <cagney@redhat.com>
11224 * frame.c (get_prev_frame): Rename the frame parameter to
11226 (get_next_frame, legacy_get_prev_frame): Ditto.
11228 2003-03-12 Andrew Cagney <cagney@redhat.com>
11230 * frame.c (get_current_frame): Check target_has_registers before
11231 checking target_has_stack.
11232 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11233 instead of deprecated_selected_frame.
11234 * findvar.c (value_of_register): Pass "frame", not
11235 deprecated_selected_frame, to value_of_builtin_reg.
11237 2003-03-12 Andrew Cagney <cagney@redhat.com>
11239 * regcache.c (regcache_cooked_write_signed): New function.
11240 (regcache_cooked_write_unsigned): New function.
11241 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11242 (regcache_cooked_read_signed): Fix regnum in range assertion.
11243 * regcache.h (regcache_cooked_write_signed): Declare.
11244 (regcache_cooked_write_unsigned): Declare.
11246 2003-03-12 Andrew Cagney <cagney@redhat.com>
11248 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11249 * gdbarch.h, gdbarch.c: Re-generate.
11250 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11251 * x86-64-tdep.h: Update.
11252 * x86-64-tdep.c (x86_64_init_abi): Update.
11253 * v850-tdep.c (v850_gdbarch_init): Update.
11254 * sparc-tdep.c (sparc_gdbarch_init): Update.
11255 * sh-tdep.c (sh_gdbarch_init): Update.
11256 * s390-tdep.c (s390_gdbarch_init): Update.
11257 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11258 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11259 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11260 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11261 * mips-tdep.c (mips_gdbarch_init): Update.
11262 * mcore-tdep.c (mcore_gdbarch_init): Update.
11263 * m68k-tdep.c (m68k_gdbarch_init): Update.
11264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11265 * ia64-tdep.c (ia64_gdbarch_init): Update.
11266 * i386-tdep.c (i386_gdbarch_init): Update.
11267 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11268 * hppa-tdep.c (hppa_gdbarch_init): Update.
11269 * h8300-tdep.c (h8300_gdbarch_init): Update.
11270 * frv-tdep.c (frv_gdbarch_init): Update.
11271 * cris-tdep.c (cris_gdbarch_init): Update.
11272 * avr-tdep.c (avr_gdbarch_init): Update.
11273 * arm-tdep.c (arm_gdbarch_init): Update.
11274 * alpha-tdep.c (alpha_gdbarch_init): Update.
11275 * sh-tdep.c (sh_init_extra_frame_info): Update.
11276 (sh64_init_extra_frame_info): Update.
11277 * ns32knbsd-nat.c (frame_num_args): Update.
11278 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11279 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11280 (xstormy16_frame_chain_valid): Update.
11281 * vax-tdep.c (vax_saved_pc_after_call): Update.
11282 * v850-tdep.c (v850_frame_chain): Update.
11283 (v850_pop_frame): Update.
11284 (v850_init_extra_frame_info): Update.
11285 * sparc-tdep.c (setup_arbitrary_frame): Update.
11286 * ns32k-tdep.c (umax_frame_num_args): Update.
11287 * s390-tdep.c (s390_pop_frame_regular): Update.
11288 * mn10300-tdep.c (mn10300_frame_chain): Update.
11289 (mn10300_pop_frame_regular): Update.
11290 (mn10300_init_extra_frame_info): Update.
11291 * mips-tdep.c (mips_init_frame_pc_first): Update.
11292 (mips_frame_chain): Update.
11293 (mips_pop_frame): Update.
11294 * mcore-tdep.c (mcore_frame_chain): Update.
11295 (mcore_pop_frame): Update.
11296 (mcore_init_extra_frame_info): Update.
11297 * arch-utils.c (init_frame_pc_default): Update.
11298 * m68k-tdep.c (isi_frame_num_args): Update.
11299 (delta68_frame_num_args): Update.
11300 (news_frame_num_args): Update.
11301 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11302 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11303 (alpha_frame_chain): Update.
11304 (alpha_pop_frame): Update.
11305 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11306 (hppa_init_extra_frame_info): Update.
11307 (hppa_frame_chain): Update.
11308 (hppa_frame_chain_valid): Update.
11309 * cris-tdep.c (cris_init_extra_frame_info): Update.
11310 * avr-tdep.c (avr_init_extra_frame_info): Update.
11311 * arm-tdep.c (arm_frame_chain_valid): Update.
11312 (arm_init_extra_frame_info): Update.
11313 (arm_pop_frame): Update.
11314 * frame.c (frame_pc_unwind): Update.
11315 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11316 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11317 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11318 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11319 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11320 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11322 2003-03-12 Andrew Cagney <cagney@redhat.com>
11324 Eliminate the need for POP_FRAME.
11325 * frame.c (do_frame_unwind_register): New function.
11326 (frame_pop): When no POP_FRAME, pop the frame using register
11327 unwind and a scratch regcache.
11328 (frame_saved_regs_pop): Delete function.
11329 (trad_frame_unwinder): Update.
11330 * d10v-tdep.c (d10v_frame_pop): Delete function.
11331 (d10v_frame_unwind): Update.
11332 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11333 (sentinel_frame_unwinder): Update.
11334 * dummy-frame.c (dummy_frame_pop): Delete function.
11335 (dummy_frame_unwind): Update.
11336 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11337 (struct frame_unwind): Update.
11339 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11341 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11342 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11343 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11344 Do range checks on register number obtained from debugging info.
11345 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11346 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11347 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11349 (do_fp_register_row): Fix typo which caused double type to be
11350 used when attempting to unpack a float.
11352 2003-03-11 J. Brobecker <brobecker@gnat.com>
11354 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11356 2003-03-11 Andrew Cagney <cagney@redhat.com>
11358 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11359 frame. Problem found by Corinna Vinschen.
11361 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11363 * doublest.c (floatformat_from_length): Accept also
11364 the real size of 'long double' type.
11366 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11368 From Klee Dienes <kdienes@apple.com>:
11369 * breakpoint.c (bpstat_copy): Copy the command lines as well
11370 as the old value, to match what is freed in bpstat_clear.
11372 2003-03-10 David Carlton <carlton@math.stanford.edu>
11374 * minsyms.c (add_minsym_to_hash_table): Replace
11375 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11376 (compare_minimal_symbols, compact_minimal_symbols)
11377 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11378 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11379 of DEPRECATED_SYMBOL_MATCHES_NAME.
11380 (lookup_minimal_symbol_solib_trampoline): Ditto.
11382 2003-03-10 Andrew Cagney <cagney@redhat.com>
11384 * regcache.h (regcache_cooked_read_ftype): Define.
11385 (regcache_save, regcache_restore): Add a cooked_read parameter.
11386 * regcache.c (regcache_save, regcache_restore): Update.
11387 (do_cooked_read): New function.
11388 (regcache_cpy): Pass do_cooked_read to regcache_save and
11391 2003-03-10 Andrew Cagney <cagney@redhat.com>
11393 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11394 * gdbarch.h, gdbarch.c: Re-generate.
11395 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11396 * x86-64-tdep.h: Update.
11397 * x86-64-tdep.c (x86_64_init_abi): Update.
11398 * v850-tdep.c (v850_gdbarch_init): Update.
11399 * sparc-tdep.c (sparc_gdbarch_init): Update.
11400 * sh-tdep.c (sh_gdbarch_init): Update.
11401 * s390-tdep.c (s390_gdbarch_init): Update.
11402 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11403 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11404 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11405 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11406 * mips-tdep.c (mips_gdbarch_init): Update.
11407 * mcore-tdep.c (mcore_gdbarch_init): Update.
11408 * m68k-tdep.c (m68k_gdbarch_init): Update.
11409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11410 * ia64-tdep.c (ia64_gdbarch_init): Update.
11411 * i386-tdep.c (i386_gdbarch_init): Update.
11412 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11413 * hppa-tdep.c (hppa_gdbarch_init): Update.
11414 * h8300-tdep.c (h8300_gdbarch_init): Update.
11415 * frv-tdep.c (frv_gdbarch_init): Update.
11416 * cris-tdep.c (cris_gdbarch_init): Update.
11417 * avr-tdep.c (avr_gdbarch_init): Update.
11418 * arm-tdep.c (arm_gdbarch_init): Update.
11419 * alpha-tdep.c (alpha_gdbarch_init): Update.
11420 * sh-tdep.c (sh_init_extra_frame_info): Update.
11421 (sh64_init_extra_frame_info): Update.
11422 * ns32knbsd-nat.c (frame_num_args): Update.
11423 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11424 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11425 (xstormy16_frame_chain_valid): Update.
11426 * vax-tdep.c (vax_saved_pc_after_call): Update.
11427 * v850-tdep.c (v850_frame_chain): Update.
11428 (v850_pop_frame): Update.
11429 (v850_init_extra_frame_info): Update.
11430 * sparc-tdep.c (setup_arbitrary_frame): Update.
11431 * ns32k-tdep.c (umax_frame_num_args): Update.
11432 * s390-tdep.c (s390_pop_frame_regular): Update.
11433 * mn10300-tdep.c (mn10300_frame_chain): Update.
11434 (mn10300_pop_frame_regular): Update.
11435 (mn10300_init_extra_frame_info): Update.
11436 * mips-tdep.c (mips_init_frame_pc_first): Update.
11437 (mips_frame_chain): Update.
11438 (mips_pop_frame): Update.
11439 * mcore-tdep.c (mcore_frame_chain): Update.
11440 (mcore_pop_frame): Update.
11441 (mcore_init_extra_frame_info): Update.
11442 * arch-utils.c (init_frame_pc_default): Update.
11443 * m68k-tdep.c (isi_frame_num_args): Update.
11444 (delta68_frame_num_args): Update.
11445 (news_frame_num_args): Update.
11446 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11447 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11448 (alpha_frame_chain): Update.
11449 (alpha_pop_frame): Update.
11450 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11451 (hppa_init_extra_frame_info): Update.
11452 (hppa_frame_chain): Update.
11453 (hppa_frame_chain_valid): Update.
11454 * cris-tdep.c (cris_init_extra_frame_info): Update.
11455 * avr-tdep.c (avr_init_extra_frame_info): Update.
11456 * arm-tdep.c (arm_frame_chain_valid): Update.
11457 (arm_init_extra_frame_info): Update.
11458 (arm_pop_frame): Update.
11459 * frame.c (frame_pc_unwind): Update.
11460 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11461 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11462 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11463 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11464 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11465 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11467 2003-03-10 Andrew Cagney <cagney@redhat.com>
11469 * gdbarch.sh (gdbarch_unwind_pc): New method.
11470 * gdbarch.h, gdbarch.c: Regenerate.
11471 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11472 but use read_pc and FRAME_SAVED_PC as fall backs.
11473 (frame_saved_regs_pc_unwind): Delete function.
11474 (trad_frame_unwinder): Update.
11475 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11476 (struct frame_unwind): Update.
11477 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11478 (dummy_frame_unwind): Update.
11479 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11480 (sentinel_frame_unwinder): Update.
11481 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11482 (d10v_frame_unwind): Update.
11483 (d10v_unwind_pc): New function.
11484 (d10v_gdbarch_init): Set unwind_pc.
11486 2003-03-10 Andrew Cagney <cagney@redhat.com>
11488 * gdbarch.h: Re-generate.
11490 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11492 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11495 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11497 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11499 2003-03-08 Andrew Cagney <cagney@redhat.com>
11501 * cli-out.c: Update copyright.
11502 (cli_out_data): Define typedef. Use instead of ui_out_data.
11504 2003-03-08 Andrew Cagney <cagney@redhat.com>
11506 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11509 2003-03-07 Andrew Cagney <cagney@redhat.com>
11511 * gdbarch.sh: Don't generate two macro definitions when an
11512 undefined macro taking no arguments.
11513 * gdbarch.h: Regenerate.
11515 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11517 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11518 (x86_64_unwind_dummy_id): New functions.
11519 (x86_64_init_abi): Register these two new functions.
11521 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11523 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11524 (x86_64_skip_prologue): Move prologue detection to
11526 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11528 2003-03-05 Andrew Cagney <cagney@redhat.com>
11530 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11531 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11532 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11533 to use unwind_dummy_id when a dummy frame.
11534 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11536 * gdbarch.h, gdbarch.c: Regneerate.
11538 2003-03-05 Andrew Cagney <cagney@redhat.com>
11540 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11541 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11542 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11545 2003-03-05 Andrew Cagney <cagney@redhat.com>
11547 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11548 (struct d10v_unwind_cache): Delete field "frameless". Replace
11549 "next_addr" with "sp_offset". Add "r11_offset".
11550 (d10v_frame_unwind_cache): Update.
11551 (prologue_find_regs): Update. When "mv r11, sp", save the
11552 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11553 RN was saved in r11_offset.
11555 2003-03-05 Andrew Cagney <cagney@redhat.com>
11557 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11558 cached PC value in the next frame.
11560 2003-03-05 Andrew Cagney <cagney@redhat.com>
11562 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11563 "id_unwind_cache" with "id".
11564 (frame_id_unwind): Delete declaration.
11565 * frame.c (frame_id_unwind): Delete function.
11566 (get_prev_frame): Call the frame id unwind method directly. Store
11567 the returned next frame's ID value in NEXT_FRAME. Note that there
11568 is a problem with the wrong unwind ID being called with the wrong
11571 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11573 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11575 2003-03-05 James Ingham <jingham@apple.com>
11576 Daniel Jacobowitz <drow@mvista.com>
11578 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11579 (auto_cp_abi): New variable.
11580 (current_cp_abi, num_cp_abis): Make static.
11581 (CP_ABI_MAX): Define.
11582 (cp_abis): Turn into an array.
11583 (value_virtual_fn_field): Fix formatting.
11584 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11586 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11587 (list_cp_abis, _initialize_cp_abi): New functions.
11588 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11589 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11590 switch_to_cp_abi. Update prototype for register_cp_abi.
11591 * Makefile.in (cp-abi.o): Update dependencies.
11592 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11593 instead of switch_to_cp_abi.
11594 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11596 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11598 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11600 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11602 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11603 * dwarf2loc.c: Include "regcache.h".
11604 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11606 * Makefile.in (dwarf2loc.o): Update dependencies.
11608 2003-03-04 Theodore A. Roth <troth@openavr.org>
11610 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11611 number of io registers reported by remote target is not a multiple of
11614 2003-03-04 David Carlton <carlton@math.stanford.edu>
11616 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11617 (lookup_symbol_aux_psymtabs): Update call to
11618 lookup_partial_symbol.
11619 (lookup_transparent_type, find_main_psymtab)
11620 (make_symbol_overload_list): Ditto.
11622 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11624 * MAINTAINERS (Write after approval): Update my email address.
11626 2003-03-03 Andrew Cagney <cagney@redhat.com>
11628 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11629 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11630 predicate. Replace MAX_REGISTER_RAW_SIZE.
11631 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11632 MAX_REGISTER_VIRTUAL_SIZE.
11633 * regcache.c (legacy_max_register_raw_size): New function.
11634 (legacy_max_register_virtual_size): New function.
11635 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11636 (MAX_REGISTER_RAW_SIZE): Define.
11637 (legacy_max_register_raw_size): Declare.
11638 (legacy_max_register_virtual_size): Declare.
11639 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11640 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11641 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11642 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11643 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11644 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11645 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11646 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11647 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11649 * vax-tdep.c (vax_gdbarch_init): Update.
11650 * v850-tdep.c (v850_gdbarch_init): Update.
11651 * sparc-tdep.c (sparc_gdbarch_init): Update.
11652 * sh-tdep.c (sh_gdbarch_init): Update.
11653 * s390-tdep.c (s390_gdbarch_init): Update.
11654 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11655 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11656 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11657 * mips-tdep.c (mips_gdbarch_init): Update.
11658 * mcore-tdep.c (mcore_gdbarch_init): Update.
11659 * m68k-tdep.c (m68k_gdbarch_init): Update.
11660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11661 * ia64-tdep.c (ia64_gdbarch_init): Update.
11662 * i386-tdep.c (i386_gdbarch_init): Update.
11663 * hppa-tdep.c (hppa_gdbarch_init): Update.
11664 * h8300-tdep.c (h8300_gdbarch_init): Update.
11665 * frv-tdep.c (frv_gdbarch_init): Update.
11666 * cris-tdep.c (cris_gdbarch_init): Update.
11667 * avr-tdep.c (avr_gdbarch_init): Update.
11668 * arm-tdep.c (arm_gdbarch_init): Update.
11669 * alpha-tdep.c (alpha_gdbarch_init): Update.
11670 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11671 max_register_raw_size or max_register_virtual_size.
11673 2003-03-03 David Carlton <carlton@math.stanford.edu>
11675 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11676 SYMBOL_MATCHES_NAME, add comment.
11677 (SYMBOL_MATCHES_NATURAL_NAME): New.
11678 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11679 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11680 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11681 * symtab.c (lookup_partial_symbol): Use
11682 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11684 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11685 SYMBOL_MATCHES_NAME.
11688 2003-03-03 David Carlton <carlton@math.stanford.edu>
11690 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11691 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11692 by regexp matching against SYMBOL_NATURAL_NAME.
11694 2003-03-03 David Carlton <carlton@math.stanford.edu>
11696 * linespec.c (find_method): Extract code into collect_methods.
11697 (collect_methods): New.
11699 2003-03-02 Mark Kettenis <kettenis@gnu.org>
11701 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11704 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11705 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11707 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11709 * arch-utils.c (generic_register_byte): Fix to use the loop index
11710 and not regnum when summing the size of all registers up to regnum.
11712 2003-03-01 Andrew Cagney <cagney@redhat.com>
11714 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11715 FRAME_INIT_SAVED_REGS.
11716 * gdbarch.h, gdbarch.c: Regenerate.
11717 * stack.c (frame_info): Update.
11718 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11719 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11720 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11721 * ns32k-tdep.c (ns32k_pop_frame): Update.
11722 * mips-tdep.c (mips_pop_frame): Update.
11723 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11724 * ia64-tdep.c (ia64_frame_chain): Update.
11725 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11726 (ia64_frameless_function_invocation): Update.
11727 (ia64_init_extra_frame_info): Update.
11728 (ia64_pop_frame_regular): Update.
11729 * frame.h (struct frame_info): Update comment.
11730 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11731 * frame.c (frame_saved_regs_register_unwind): Update.
11732 (frame_saved_regs_register_unwind): Update.
11733 (deprecated_generic_get_saved_register): Update.
11734 * cris-tdep.c: Update comment.
11735 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11737 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11738 * x86-64-tdep.c (x86_64_init_abi): Update.
11739 * vax-tdep.c (vax_gdbarch_init): Update.
11740 * v850-tdep.c (v850_gdbarch_init): Update.
11741 * sparc-tdep.c (sparc_gdbarch_init): Update.
11742 * sh-tdep.c (sh_gdbarch_init): Update.
11743 * s390-tdep.c (s390_gdbarch_init): Update.
11744 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11745 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11746 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11747 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11748 * mips-tdep.c (mips_gdbarch_init): Update.
11749 * mcore-tdep.c (mcore_gdbarch_init): Update.
11750 * m68k-tdep.c (m68k_gdbarch_init): Update.
11751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11752 * ia64-tdep.c (ia64_gdbarch_init): Update.
11753 * i386-tdep.c (i386_gdbarch_init): Update.
11754 * frv-tdep.c (frv_gdbarch_init): Update.
11755 * avr-tdep.c (avr_gdbarch_init): Update.
11756 * arm-tdep.c (arm_gdbarch_init): Update.
11757 * alpha-tdep.c (alpha_gdbarch_init): Update.
11759 2003-03-01 Andrew Cagney <cagney@redhat.com>
11761 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11762 option enum and switch. When no windows, set the interpreter to
11765 2003-03-01 Andrew Cagney <cagney@redhat.com>
11767 * main.c (captured_main): Replace magic option characters with an
11770 2003-03-01 Andrew Cagney <cagney@redhat.com>
11772 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11773 INIT_EXTRA_FRAME_INFO.
11774 * gdbarch.h, gdbarch.c: Regenerate.
11775 * arm-tdep.c: Update comments.
11776 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11777 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11778 * frame.h, avr-tdep.c: Ditto.
11779 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11780 (create_new_frame, legacy_get_prev_frame): Ditto.
11781 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11782 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11783 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11784 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11785 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11786 * v850-tdep.c (v850_gdbarch_init): Ditto.
11787 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11788 * sh-tdep.c (sh_gdbarch_init): Ditto.
11789 * s390-tdep.c (s390_gdbarch_init): Ditto.
11790 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11791 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11792 * mips-tdep.c (mips_gdbarch_init): Ditto.
11793 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11795 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11796 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11797 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11798 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11799 * frv-tdep.c (frv_gdbarch_init): Ditto.
11800 * cris-tdep.c (cris_gdbarch_init): Ditto.
11801 * avr-tdep.c (avr_gdbarch_init): Ditto.
11802 * arm-tdep.c (arm_gdbarch_init): Ditto.
11803 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11804 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11806 2003-03-01 Andrew Cagney <cagney@redhat.com>
11808 * gdbarch.sh (register_type): New function with predicate.
11809 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11810 * gdbarch.h, gdbarch.c: Re-generate.
11811 * arch-utils.c (generic_register_byte): Use generic_register_size.
11812 (generic_register_size): When available, use
11813 gdbarch_register_type.
11814 * regcache.c (init_regcache_descr): When available, initialize the
11815 register type array using gdbarch_register_type. If the
11816 architecture supplies gdbarch_register_type, do not use the legacy
11818 * d10v-tdep.c (d10v_register_type): Replace
11819 d10v_register_virtual_type.
11820 (d10v_gdbarch_init): Set register_type instead of
11821 register_virtual_type.
11823 2003-03-01 Andrew Cagney <cagney@redhat.com>
11825 * Makefile.in (ax-gdb.o): Update dependencies.
11826 * ax-gdb.c: Include "regcache.h".
11827 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11828 * findvar.c (value_of_register): Ditto.
11829 * infcmd.c (default_print_registers_info): Ditto.
11831 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11833 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11834 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11836 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11838 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11841 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11843 * Makefile.in (dwarf2loc.o): Update dependencies.
11844 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11845 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11846 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11847 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11848 (locexpr_tracepoint_var_ref): New function.
11849 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11851 2003-02-28 Andrew Cagney <cagney@redhat.com>
11853 * regcache.c (register_size): New function.
11854 * regcache.h (register_size): Declare
11855 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11856 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11858 2003-02-28 David Carlton <carlton@math.stanford.edu>
11860 * linespec.c (decode_compound): Extract code into find_method.
11861 (find_method): New.
11863 2003-02-28 J. Brobecker <brobecker@gnat.com>
11865 * Makefile.in: Add rules to build and link in observer.o.
11867 2003-02-27 J. Brobecker <brobecker@gnat.com>
11869 * observer.c: Minor comments edits.
11871 2003-02-27 J. Brobecker <brobecker@gnat.com>
11873 * observer.h, observer.c: New file.
11875 2003-02-27 Andrew Cagney <cagney@redhat.com>
11877 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11879 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11881 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11882 (M6812_OP_STS_EXT): Likewise.
11883 (m6811_prologue): Use the above to recognize prologue.
11884 (m6812_prologue): Likewise.
11886 2003-02-27 David Carlton <carlton@math.stanford.edu>
11888 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11890 (compare_psymbols): Ditto.
11891 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11893 2003-02-27 Michael Snyder <msnyder@redhat.com>
11895 * f-lang.c (build_fortran_types): New function.
11896 (_initialize_f_language): Gdbarch-register built-in fortran types.
11897 * doublest.c (extract_floating): Fix warning text.
11899 2003-02-27 Andrew Cagney <cagney@redhat.com>
11901 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11902 predicate. Replaces PUSH_DUMMY_FRAME.
11903 * gdbarch.h, gdbarch.c: Regnerate.
11904 * valops.c (hand_function_call): Update. Call
11905 generic_push_dummy_frame directly.
11906 * vax-tdep.c (vax_gdbarch_init): Update.
11907 * sparc-tdep.c (sparc_gdbarch_init): Update.
11908 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11909 * m68k-tdep.c (m68k_gdbarch_init): Update.
11910 * hppa-tdep.c (hppa_gdbarch_init): Update.
11911 * alpha-tdep.c (alpha_gdbarch_init): Update.
11912 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11913 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11914 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11916 push_dummy_frame to generic_push_dummy_frame.
11917 * v850-tdep.c (v850_gdbarch_init): Ditto.
11918 * sh-tdep.c (sh_gdbarch_init): Ditto.
11919 * s390-tdep.c (s390_gdbarch_init): Ditto.
11920 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11921 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11922 * mips-tdep.c (mips_gdbarch_init): Ditto.
11923 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11925 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11926 * i386-tdep.c (i386_gdbarch_init): Ditto.
11927 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11928 * frv-tdep.c (frv_gdbarch_init): Ditto.
11929 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11930 * cris-tdep.c (cris_gdbarch_init): Ditto.
11931 * avr-tdep.c (avr_gdbarch_init): Ditto.
11932 * arm-tdep.c (arm_gdbarch_init): Ditto.
11934 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11936 * mips-tdep.c (show_mips_abi): New function.
11937 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11938 command ``show mips abi''.
11940 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11942 From Elena Zannoni <ezannoni@redhat.com>
11943 * dbxread.c (process_one_symbol): Only record line 0 if one or
11944 more sline entries have been seen for the function.
11946 2003-02-26 Michael Chastain <mec@shout.net>
11948 * configure: Regenerate with autoconf 000227.
11950 2003-02-26 Michael Chastain <mec@shout.net>
11952 Close PR build/660.
11953 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11954 for old libc5/glibc.
11955 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11957 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11959 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11960 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11962 2003-02-26 Michael Chastain <mec@shout.net>
11964 * configure.in: New variable HAVE_UINTPTR_T.
11965 * configure, config.in: Regenerated.
11967 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11970 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11972 2003-02-25 Andrew Cagney <cagney@redhat.com>
11974 * frame.c (get_prev_frame): Add comment on check for
11975 inside_entry_func. Only check for inside_entry_file when not a
11976 dummy and not a sentinel. Check that the new frame is not inner
11979 2003-02-25 Andrew Cagney <cagney@redhat.com>
11981 * frame.c (frame_debug): New variable.
11982 (_initialize_frame): Add "set/show debug frame" command.
11983 (get_prev_frame): When frame_debug, print reason why unwind
11986 2003-02-25 Michael Chastain <mec@shout.net>
11988 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11989 to avoid uintptr_t definition problems.
11991 2003-02-25 David Carlton <carlton@math.stanford.edu>
11993 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11994 (SYMBOL_LINKAGE_NAME): Ditto.
11995 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11996 SYMBOL_LINKAGE_NAME.
11997 (struct general_symbol_info): Expand comment.
11998 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11999 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12000 (SYMBOL_MATCHES_REGEXP): Ditto.
12001 * symtab.c (symbol_natural_name): New function.
12002 * objfiles.h: Replace all uses of SYMBOL_NAME by
12003 DEPRECATED_SYMBOL_NAME.
12004 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12005 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12006 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12007 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12008 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12009 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12010 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12011 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12012 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12013 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12014 * ada-exp.y: Ditto.
12015 * ada-exp.y: Update copyright.
12016 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12017 * cp-valprint.c: Ditto.
12019 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12021 * infptrace.c (detach): Do not flag error if ptrace detach fails
12022 and errno is set to ESRCH.
12024 2003-02-24 Andrew Cagney <cagney@redhat.com>
12026 * infptrace.c (udot_info): Change type of udot_off to long. Use
12027 paddr when printing udot_off's value.
12029 2003-02-24 David Carlton <carlton@math.stanford.edu>
12031 * symtab.c (make_symbol_overload_list): Only read in partial
12032 symtabs containing a matching partial symbol.
12034 2003-02-24 David Carlton <carlton@math.stanford.edu>
12036 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12037 do the comparison, not strcmp.
12038 * symfile.c (compare_psymbols): Ditto.
12039 * defs.h: Declare strcmp_iw_ordered.
12040 * utils.c (strcmp_iw_ordered): New function.
12042 2003-02-24 Jim Blandy <jimb@redhat.com>
12044 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12045 support, shared libs): Remove my name from here, to better reflect
12048 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12050 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12051 (target_ops): Add to_have_continuable_watchpoint.
12052 * target.c (update_current_target): Add INHERIT line for
12053 to_have_continuable_watchpoint.
12054 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12055 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12056 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12057 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12059 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
12061 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12064 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12066 * solib.c (solib_open): Call target defined search function after
12067 failing with solib-search-path.
12068 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12069 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12071 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12073 * MAINTAINERS: Add myself to Write After section.
12075 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12077 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12079 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12081 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12082 (m68hc11_add_reggroups): New function.
12083 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12084 (m68hc11_gdbarch_init): Install the reggroups.
12085 (_initialize_m68hc11_tdep): Initialize them.
12087 2003-02-21 James E Wilson <wilson@tuliptree.org>
12089 * MAINTAINERS: Update my email address.
12091 2003-02-21 David Carlton <carlton@math.stanford.edu>
12093 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12095 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
12097 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12098 * symtab.h: Add opaque declarations of struct axs_value and
12100 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12101 (struct location_funcs): New type.
12102 (struct symbol): Add "loc" to aux_value.
12103 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12104 * dwarf2read.c: Include "dwarf2expr.h".
12105 (dwarf2_symbol_mark_computed): New function.
12106 (read_func_scope): Use it.
12107 (var_decode_location): New function.
12108 (new_symbol): Use it.
12109 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12111 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12112 (dwarf2expr_h, dwarf2loc_h): New variables.
12113 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12114 (dwarf2expr.o, dwarf2loc.o): New rules.
12115 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12116 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12118 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12119 * m2-exp.y (yylex): Likewise.
12120 * printcmd.c (address_info, print_frame_args): Likewise.
12121 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12122 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12123 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12124 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12125 * symtab.c (lookup_block_symbol): Likewise.
12127 2003-02-20 Adam Fedor <fedor@gnu.org>
12129 * symtab.h: Remove objc_specific struct
12130 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12131 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12132 Have language_objc use cplus_specific struct.
12134 2003-02-20 Tom Tromey <tromey@redhat.com>
12136 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12137 TYPE_NAME, when printing a String value. PR java/1075.
12139 2003-02-20 Adam Fedor <fedor@gnu.org>
12141 * objc-lang.h (find_methods): Remove declaration.
12142 * objc-lang.c (find_methods): Make static.
12144 2003-02-20 Christopher Faylor <cgf@redhat.com>
12146 * win32-nat.c (get_image_name): Check return value from
12148 (child_xfer_memory): Ditto.
12150 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12152 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12153 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12154 '${exec_prefix}' (in addition to the expansion thereof) as
12156 * configure: Rebuilt.
12158 2003-02-20 David Carlton <carlton@math.stanford.edu>
12160 * symtab.c (search_symbols): Revert the search_symbols part of my
12161 2002-12-23 patch. Add comment.
12163 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12165 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12166 * dbxread.c (elfstab_build_psymtabs): Don't call
12167 install_minimal_symbols.
12168 (stabsect_build_psymtabs): Likewise.
12169 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12171 * somread.c (som_symfile_read): Call install_minimal_symbols
12172 and do_cleanups earlier.
12173 * nlmread.c (nlm_symfile_read): Likewise.
12174 * mdebugread.c (elfmdebug_build_psymtabs): Call
12175 install_minimal_symbols and make appropriate cleanups.
12177 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12179 * solib.c (reload_shared_libraries): New function.
12180 (_initialize_solib): Add callbacks for ``set solib-search-path''
12181 and ``set solib-absolute-prefix''.
12183 2003-02-20 David Carlton <carlton@math.stanford.edu>
12185 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12187 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12188 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12189 * ada-typeprint.c (ada_typedef_print): Ditto.
12190 * ax-gdb.c (gen_var_ref): Ditto.
12191 * breakpoint.c (print_one_breakpoint): Ditto.
12192 * buildsym.c (finish_block): Ditto.
12193 * c-valprint.c (c_val_print): Ditto.
12194 * expprint.c (print_subexp): Ditto.
12195 * findvar.c (locate_var_value): Ditto.
12196 * infcmd.c (jump_command): Ditto.
12197 * linespec.c (decode_line_2, decode_compound): Ditto.
12198 * maint.c (maintenance_translate_address): Ditto.
12199 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12200 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12202 * p-valprint.c (pascal_val_print): Ditto.
12203 * stabsread.c (define_symbol): Ditto.
12204 * stack.c (print_frame, frame_info, print_block_frame_locals)
12205 (print_frame_arg_vars, return_command): Ditto.
12206 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12207 * symmisc.c (print_symbol): Ditto.
12208 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12209 (compare_search_syms, print_symbol_info, print_msymbol_info)
12210 (rbreak_command): Ditto.
12211 * tracepoint.c (tracepoints_info): Ditto.
12212 * typeprint.c (typedef_print): Ditto.
12213 * valops.c (value_of_variable, hand_function_call): Ditto.
12214 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12215 * ada-typeprint.c: Update Copyright.
12216 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12217 * tracepoint.c, cli/cli-cmds.c: Ditto.
12219 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12221 * frame.c (generic_unwind_get_saved_register): Make non-static.
12222 * frame.h (generic_unwind_get_saved_register): Declare.
12223 * mips-tdep.c (read_next_frame_reg): Fetch register from
12224 current regcache when frame is NULL.
12225 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12227 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12228 instead of frame_register_unwind().
12230 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12232 * remote-sim.c (gdbsim_insert_breakpoint)
12233 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12236 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12238 * remote.c (_initialize_remote): Add commands "set/show remote
12239 hardware-watchpoint-limit" and "set/show remote
12240 hardware-breakpoint-limit".
12241 (remote_hw_watchpoint_limit): Initialize to -1.
12242 (remote_hw_breakpoint_limit): Ditto.
12243 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12245 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12247 * coff-pe-read.c: New file - support reading of minimal symbols from a
12248 portable executable using the export table.
12249 * coff-pe-read.h: New file.
12250 * coffread.c: Include coff-pe-read.h.
12251 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12252 debugging symbols found.
12253 * Makefile.in (SFILES): Add coff-pe-read.o.
12254 (coff_pe_read_h): Define.
12255 (COMMON_OBS): Add coff-pe-read.o.
12256 (coffread.o): Add coff_pe_read_h dependency.
12257 (coff-pe-read.o): New target.
12259 2003-02-19 David Carlton <carlton@math.stanford.edu>
12261 * Makefile.in (SFILES): Add block.c.
12263 (COMMON_OBS): Add block.o.
12265 (x86-64-tdep.o): Add $(block_h).
12266 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12267 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12268 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12269 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12270 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12271 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12272 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12273 * value.h: Add opaque declaration for struct block.
12274 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12275 * ada-lang.h: Ditto.
12276 * x86-64-tdep.c: #include "block.h"
12277 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12278 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12279 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12280 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12281 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12282 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12283 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12284 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12285 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12286 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12287 * symtab.c (block_function): Ditto.
12288 (contained_in): Ditto.
12289 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12290 block.h. Add opaque declaration for struct block.
12291 * symtab.h: Move block_function and contained_in declarations to
12292 block.h. Add opaque declarations for struct block, struct
12294 (struct block): Move to block.h.
12295 (struct blockvector): Ditto.
12296 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12297 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12298 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12299 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12300 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12302 * block.c: New file.
12303 * block.h: New file.
12305 2003-02-19 Theodore A. Roth <troth@openavr.org>
12307 * avr-tdep.c (avr_extract_return_value): Remove function.
12308 (avr_store_return_value): Remove function.
12309 (avr_extract_struct_value_address): Remove function.
12310 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12312 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12314 * rs6000-tdep.c: Include "gdb_assert.h".
12315 (registers_e500): Add "acc" and "spefscr".
12316 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12317 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12318 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12320 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12322 2003-02-18 Keith Seitz <keiths@redhat.com>
12324 * Makefile.in: Add gdbtk-interps.c.
12326 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12328 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12329 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12331 2003-02-18 Andrew Cagney <cagney@redhat.com>
12333 * symtab.h (struct objfile): Add opaque declaration.
12335 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12337 From Jim Ingham <jingham@apple.com>:
12338 * dbxread.c (process_one_symbol): Use last_function_start rather
12339 than function_start_offset to find the real beginning of the
12340 current function. The latter is just the text section offset on
12341 some systems, the former is always the real function start.
12343 2003-02-17 Andrew Cagney <cagney@redhat.com>
12345 * configure.in: Revert ${target} != ${host}.
12347 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12349 * configure.in (Makefile): Use the test ${target} != ${host},
12350 instead of the absence of the "nm.h" file, to determine of the
12351 configuration non-native.
12352 * configure: Regenerate.
12354 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12356 From Brian Ford <ford@vss.fsi.com>
12358 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12359 conditionalize tui_active test.
12360 (lookup_cmd_1): Ditto.
12362 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12364 * configure.in: Add check for _etext.
12365 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12367 * config.in, configure: regenerated.
12369 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12371 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12373 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12375 * main.c (tui_version): Delete variable.
12376 (captured_main): When --tui, set interpreter_p to "tui" instead of
12377 enabling tui_version.
12378 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12380 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12381 * cli/cli-cmds.c (disassemble_command): Ditto.
12382 * defs.h (tui_version): Delete declaration.
12383 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12384 (tui-interp.o): Add rules.
12385 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12387 2003-02-14 Christopher Faylor <cgf@redhat.com>
12389 * win32-nat.c (register_loaded_dll): Correctly set address range for
12392 2003-02-12 Jason Molenda (jmolenda@apple.com)
12394 * symmisc.c (print_objfile_statistics): Include information about
12395 the number of psymtabs and symtabs in each object file.
12397 2003-02-13 Keith R Seitz <keiths@redhat.com>
12399 * main.h (struct captured_main_args): Add interpreter_p.
12400 * main.c (captured_main): Initialize interpreter_p from context.
12401 * gdb.c (main): Set interpreter_p argument.
12402 * Makefile.in (gdb.o): Add dependency for interps.h.
12404 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12406 * event-top.c (cli_command_loop): Delete declaration.
12407 (_initialize_event_loop): Delete function setting event_loop_hook.
12408 * event-top.h (cli_command_loop): Declare. Update copyright.
12409 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12410 * interps.c (current_interp_command_loop): When event_loop_p, call
12413 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12415 * interps.h (interp_command_loop_ftype): Change return type to
12418 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12420 * x86-64-tdep.c (x86_64_extract_return_value)
12421 (x86_64_store_return_value): Use regcache instead of regbuf.
12422 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12423 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12425 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12427 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12428 * aclocal.m4: Regenerate.
12429 * configure: Regenerate.
12431 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12432 TCL_LD_SEARCH_FLAGS.
12434 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12436 * dwarf2cfi.c: Reindented.
12438 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12440 * interps.c (clear_interpreter_hooks): Convert function definition
12443 2003-02-07 David Carlton <carlton@math.stanford.edu>
12445 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12447 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12449 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12450 (struct type): ...to here.
12451 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12453 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12454 (replace_type): Set length on all type variants for a given type.
12456 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12458 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12460 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12462 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12464 * Makefile.in (symm-nat.o): Update dependencies.
12465 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12466 (lynx-nat.o, ia64-linux-nat.): Ditto.
12467 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12468 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12469 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12471 * Makefile.in (inflow_h): Define.
12472 (procfs.o, inflow.o, procfs.o): Update dependencies.
12473 * inftarg.c (child_stop): Delete extern declaration of
12474 inferior_process_group. Include "inflow.h".
12475 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12476 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12477 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12478 (our_process_group, inferior_process_group): Extern declarations.
12480 * procfs.c: Include "gdb_assert.h".
12482 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12483 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12484 * jv-typeprint.c (java_type_print_base): Ditto.
12485 * typeprint.c (typedef_print): Eliminate STREQ.
12486 * cli/cli-script.c (define_command, define_command): Ditto.
12487 * main.c (captured_main): Ditto.
12488 * values.c (lookup_internalvar): Ditto.
12489 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12490 within `if' conditional.
12491 * linespec.c (decode_line_2): Ditto.
12492 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12493 (bfd_openw_with_cleanup): Ditto.
12495 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12497 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12498 legacy_extract_return_value and store_return_value to
12499 legacy_return_value.
12501 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12503 * win32-nat.c (get_relocated_section_addrs): New function. Find
12504 section load addresses for symbol handling in relocated DLLs.
12505 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12507 2003-02-05 Fred Fish <fnf@intrinsity.com>
12509 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12511 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12513 (angel_RDI_info): Ditto.
12514 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12516 (threads_continue_all_with_signals): Ditto.
12518 2003-02-05 Jim Ingham <jingham@apple.com>
12519 Keith Seitz <keiths@redhat.com>
12520 Elena Zannoni <ezannoni@redhat.com>
12521 Andrew Cagney <ac131313@redhat.com>
12523 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12524 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12525 (SUBDIR_MI_OBS): Add "mi-interp.o".
12526 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12527 (SFILES): Add "interps.c".
12528 (COMMON_OBS): Add "interps.o".
12529 (interps_h, mi_main_h): Define.
12530 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12531 (mi-main.o, main.o, event-top.o): Update dependencies.
12532 * cli/cli-interp.c: New file.
12533 * interps.h, interps.c: New files.
12534 * top.c: (gdb_init): Don't install the default interpreter, handed
12536 * main.c: Include "interps.h".
12537 (interpreter_p): Note that it should malloc'ed.
12538 (captured_command_loop): Call current_interp_command_loop.
12539 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12540 xfree and xstrdup when updating interpreter_p. Install the
12541 default interpreter. Add hack to stop mi1's copyright notice
12543 * event-top.h (gdb_setup_readline): Declare.
12544 (gdb_disable_readline): Declare.
12545 * event-top.c: Include "interps.h".
12546 (display_gdb_prompt): Call current_interp_display_prompt_p.
12547 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12548 gdb_stdlog, and gdb_stdtarg.
12549 (_initialize_event_loop): Don't call gdb_setup_readline.
12550 * cli-out.c (cli_out_set_stream): New function.
12551 * cli-out.h (cli_out_set_stream): Declare.
12553 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12555 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12556 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12557 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12558 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12559 config/i386/i386v42mp.mt: Removed.
12561 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12563 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12566 2003-02-05 Michael Chastain <mec@shout.net>
12568 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12569 2.12.1 and earlier versions.
12571 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12573 Remove orphaned hosts, targets and files.
12574 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12575 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12576 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12577 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12578 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12579 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12580 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12581 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12582 * config/sparc/tm-sp64sim.h: Delete.
12583 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12585 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12586 mips*-dec-mach3* targets.
12588 2003-02-04 Michael Chastain <mec@shout.net>
12590 * NEWS: Fix typo: sepcifying -> specifying.
12592 2003-02-04 Michael Chastain <mec@shout.net>
12594 * dwarfread.c: Add documentation on the state of dwarf-1,
12595 looking towards obsoletion.
12597 2003-02-03 Michael Chastain <mec@shout.net>
12599 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12600 gdb/testsuite/gdb.c++/pr-1023.exp.
12602 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12604 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12605 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12607 * utils.c (init_page_info): Delete reference to MPW in comments.
12608 * main.c (captured_main): Delete #ifdef MPW.
12610 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12612 * NEWS: Note that the m32r-*-elf* is obsolete.
12613 * monitor.c (monitor_expect): Obsolete reference to m32r.
12614 * configure.tgt: Mark m32r-*-elf* as obsolete.
12615 * MAINTAINERS: Mark m32k as obsolete.
12616 * m32r-rom.c: Obsolete file.
12617 * config/m32r/m32r.mt: Obsolete file.
12618 * config/m32r/tm-m32r.h: Obsolete file.
12619 * m32r-stub.c: Obsolete file.
12620 * m32r-tdep.c: Obsolete file.
12622 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12624 * NEWS: Mention that the z8k-zilog-none is obsolete.
12625 * MAINTAINERS: Mark z8k as obsolete.
12626 * configure.tgt: Obsolete the z8k-*-coff* target.
12627 * config/z8k/z8k.mt: Obsolete file.
12628 * config/z8k/tm-z8k.h: Obsolete file.
12629 * z8k-tdep.c: Obsolete file.
12631 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12633 * NEWS: Mention that the mn10200-elf is obsolete.
12634 * configure.tgt: Obsolete mn10200-*-* target.
12635 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12636 mention that the mn10200 is obsolete.
12637 * breakpoint.h: Ditto.
12638 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12639 * config/mn10200/mn10200.mt: Obsolete file.
12640 * config/mn10200/tm-mn10200.h: Obsolete file.
12641 * mn10200-tdep.c: Obsolete file.
12643 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12645 * MAINTAINERS: Mark h8500 as obsolete.
12646 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12647 * findvar.c (value_from_register): Ditto.
12648 * h8500-tdep.c: Mark file as obsolete.
12649 * config/h8500/h8500.mt: Ditto.
12650 * config/h8500/tm-h8500.h: Ditto.
12651 * NEWS: Mention that h8500 is obsolete.
12653 2003-02-04 David Carlton <carlton@math.stanford.edu>
12655 * objfiles.c (allocate_objfile): Always set name. Add comment at
12657 * jv-lang.c (get_dynamics_objfile): Add comment.
12659 2003-02-04 David Carlton <carlton@math.stanford.edu>
12661 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12662 * printcmd.c (build_address_symbolic): Replace uses of
12663 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12664 SYMBOL_NAME, and asm_demangle.
12667 2003-02-04 David Carlton <carlton@math.stanford.edu>
12669 * linespec.c (decode_compound): Extract code into
12671 (lookup_prefix_sym): New function.
12673 2003-02-04 David Carlton <carlton@math.stanford.edu>
12675 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12676 FLOAT_COERCION_BADNESS.
12677 * gdbtypes.c (rank_one_type): Replace all uses of
12678 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12680 2003-02-04 Jim Blandy <jimb@redhat.com>
12682 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12683 section, let dwarf_macinfo_section point to it, not
12686 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12688 Pointed out by Anton Blanchard <anton@samba.org>.
12689 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12690 (ppc_linux_at_sigtramp_return_path): Use it.
12692 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12694 * defs.h (streq): Add prototype.
12695 * utils.c (streq): New function.
12697 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12698 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12699 * mdebugread.c (new_symbol): Likewise.
12700 * stabsread.c (define_symbol): Likewise.
12701 * coffread.c (process_coff_symbol): Likewise.
12702 * dwarfread.c (new_symbol): Likewise.
12704 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12705 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12707 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12708 SYMBOL_INIT_DEMANGLED_NAME.
12709 * objfiles.c: Include "hashtab.h".
12710 (allocate_objfile): Call htab_set_functions_ex for the
12711 demangled_names_hash.
12712 (free_objfile): Call htab_delete for the demangled_names_hash.
12713 * objfiles.h (struct htab): Add declaration.
12714 (struct objfile): Add demangled_names_hash.
12715 * symfile.c: Include "hashtab.h".
12716 (reread_symbols): Call htab_delete for the demangled_names_hash.
12717 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12718 SYMBOL_NAME in the bcache.
12719 * symtab.c: Include "hashtab.h". Update comments.
12720 (create_demangled_names_hash, symbol_set_names): New functions.
12721 (symbol_find_demangled_name): New function, broken out from
12722 symbol_init_demangled_names.
12723 (symbol_init_demangled_names): Use it.
12724 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12725 (SYMBOL_SET_NAMES): New macro.
12726 (symbol_set_names): Add prototype.
12728 2003-02-03 Jim Blandy <jimb@redhat.com>
12730 Use a single, consistent representation for an empty minimal
12731 symbol table in an objfile.
12732 * objfiles.c (terminate_minimal_symbol_table): New function.
12733 (allocate_objfile): Call it.
12734 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12735 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12737 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12738 objfile has minimal symbols, compare minimal_symbol_count to zero,
12739 instead of comparing msymbols with NULL.
12740 * objfiles.c (have_minimal_symbols): Same.
12741 * solib-sunos.c (solib_add_common_symbols): Call
12742 terminate_minimal_symbol_table.
12743 * symfile.c (reread_symbols): Same.
12745 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12747 * s390-tdep.c (s390_address_class_type_flags)
12748 (s390_address_class_type_flags_to_name)
12749 (s390_address_class_name_to_type_flags): New functions.
12750 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12751 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12753 2003-02-03 Michael Snyder <msnyder@redhat.com>
12755 * arm-tdep.c: Fix spell-o in comment.
12757 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12759 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12760 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12761 error messages to contain BFD filename.
12763 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12765 Fix PR gdb/742 gdb/743 gdb/877
12766 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12767 (do_mixed_source_and_assembly): Use
12768 make_cleanup_ui_out_tuple_begin_end and
12769 make_cleanup_ui_out_tuple_begin_end.
12770 (do_mixed_source_and_assembly): Ditto.
12771 * thread.c (do_captured_list_thread_ids): Ditto.
12772 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12773 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12774 ui_out_tuple_end): Delete prototypes.
12775 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12776 ui_out_list_end, ui_out_tuple_end): Delete.
12778 From Kevin Buettner <kevinb@redhat.com>:
12779 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12780 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12781 (do_cleanup_table_end): New functions.
12782 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12783 Use cleanups to invoke_ui_out_tuple_end().
12784 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12785 * cli/cli-setshow.c (cmd_show_list): Use
12786 make_cleanup_ui_out_tuple_begin_end.
12788 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12790 * frame.c (frame_unwind_register): New function.
12791 (frame_unwind_unsigned_register): Use.
12792 (frame_unwind_signed_register): Use.
12793 (frame_read_register): New function.
12794 * frame.h (frame_unwind_register): Declare.
12795 (frame_read_register): Declare.
12797 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12798 and frame_unwind_register instead of read_memory, write_register
12799 and deprecated_write_register_bytes.
12801 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12803 * frame.h: Note that namelen can be negative.
12804 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12807 * NEWS: Mention that the d10v's `regs' command is deprecated.
12808 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12809 (d10v_print_registers_info): New function.
12810 (show_regs): Call d10v_print_registers_info.
12811 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12813 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12815 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12816 lost in the previous patch.
12818 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12820 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12821 * stack.c (print_frame_info_base): Output complete FRAME tuple
12822 for synthesized frames.
12824 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12826 * mips-nat.c (zerobuf): Delete.
12827 (fetch_inferior_registers): Alloc local zerobuf.
12828 (fetch_core_registers): Alloc local zerobuf.
12829 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12830 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12831 * thread-db.c (thread_db_store_registers): Ditto.
12832 * sh-tdep.c (sh_do_register): Ditto.
12833 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12834 * remote-sim.c (gdbsim_store_register): Ditto.
12835 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12836 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12837 * monitor.c (monitor_supply_register): Ditto.
12838 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12839 * mips-nat.c (fetch_inferior_registers): Ditto.
12840 * m68klinux-nat.c (fetch_register): Ditto.
12841 * lynx-nat.c (fetch_inferior_registers): Ditto.
12842 (fetch_inferior_registers): Ditto.
12843 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12844 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12845 (hpux_thread_store_registers): Ditto.
12846 * hppah-nat.c (fetch_register): Ditto.
12847 * hppab-nat.c (fetch_register): Ditto.
12848 * hppa-tdep.c (pa_register_look_aside): Ditto.
12849 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12850 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12852 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12854 * gdbarch.sh: Explictly specify all method levels. When a
12855 variable with an empty level, provide a non-multi-arch default.
12856 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12857 * gdbarch.h: Re-generate.
12858 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12859 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12861 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12863 * defs.h (host_pointer_to_address): Delete declaration.
12864 (address_to_host_pointer): Delete declaration.
12865 * utils.c (host_pointer_to_address): Delete function.
12866 (address_to_host_pointer): Delete function.
12867 * procfs.c (procfs_address_to_host_pointer): New function.
12868 * procfs.c (proc_set_watchpoint): Use.
12869 (procfs_can_use_hw_breakpoint): Update comments.
12870 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12871 (som_solib_add): Use.
12872 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12873 * hppa-tdep.c (unwind_command): Use.
12875 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12877 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12880 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12881 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12882 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12883 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12884 (define_symbol): Update.
12885 * symfile.c (generic_load): Remove references to nindy.
12886 * symtab.c: Remove references to nindy.
12888 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12890 * infcmd.c (print_float_info): Delete code conditional on
12892 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12893 * config/m68k/nm-apollo68b.h: Ditto.
12894 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12895 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12896 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12898 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12900 * config/i386/tm-i386os9k.h: Removed.
12902 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12903 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12904 they're identical to i[3456]86-*-sysv* now.
12905 * config/i386/i386v32.mh: Removed.
12906 * config/i386/xm-i386v32.h: Removed.
12907 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12909 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12911 * config/i386/i386dgux.mh: Removed.
12912 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12914 * configure.in: Fix typo.
12915 * configure: Regenerated.
12917 2003-01-31 David Carlton <carlton@math.stanford.edu>
12919 * dwarf2read.c (dwarf2_locate_sections): Set
12920 dwarf_ranges_section.
12922 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12924 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12925 * utils.c: Update comments documenting legitimate uses of PTR.
12927 * utils.c: Re-indent.
12929 * config/djgpp/fnchange.lst: Delete nindy files.
12930 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12931 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12932 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12933 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12934 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12935 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12936 * Makefile.in (init.c): Remove nindy references.
12937 (saber_gdb): Delete rule.
12938 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12939 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12941 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12942 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12943 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12944 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12945 nindy-share/stop.h.
12946 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12947 * saber.suppress: Delete file.
12949 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12951 * dbxread.c (stabs_data): New static variable.
12952 (fill_symbuf): Support an in-memory buffer for stabs data.
12953 (stabs_seek): New function.
12954 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12955 (read_ofile_symtab): Use stabs_seek.
12956 (elfstab_build_psymtabs): Take an asection* instead of
12957 an offset and size. Relocate the stabs data if necessary.
12958 Save the section* for dbx_psymtab_to_symtab.
12959 * dwarf2read.c: Add section variables for each debug section.
12960 (dwarf2_locate_sections): Fill them in.
12961 (dwarf2_read_section): Take an asection* argument.
12962 Relocate the section contents if necessary.
12963 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12964 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12965 it to dwarf2_read_section.
12966 (dwarf2_build_frame_info): Update callers.
12967 * elfread.c (elf_symfile_read): Update call to
12968 elfstab_build_psymtabs.
12969 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12970 (DBX_STAB_SECTION): New macro.
12971 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12972 * symfile.c (symfile_dummy_outputs): New function.
12973 (symfile_relocate_debug_section): New function.
12974 * symfile.h (symfile_relocate_debug_section): Add prototype.
12976 2003-01-31 Richard Henderson <rth@redhat.com>
12978 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12979 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12980 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12981 * alpha-tdep.c (alpha_register_name): Add "unique".
12982 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12983 (ALPHA_UNIQUE_REGNUM): New.
12984 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12986 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12988 * README: Remove reference to Ericsson 1800 monitor.
12989 * Makefile.in (remote-es.o): Delete rule.
12990 (ALLDEPFILES): Delete remote-es.c.
12991 * remote-es.c: Delete file.
12992 * config/m68k/es1800.mt: Delete file.
12993 * config/djgpp/fnchange.lst: Update.
12994 * configure.tgt: Delete m68*-ericsson-* target.
12996 2003-01-31 Adam Fedor <fedor@gnu.org>
12998 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12999 Remove duplicate/shadowing variable of same name.
13001 2003-01-30 Jim Blandy <jimb@redhat.com>
13003 * symfile.c (find_separate_debug_file): Assert that the objfile's
13004 directory name we compute ends with a slash, and then assume that
13005 that's so everywhere we use it.
13007 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
13009 * valops.c (value_assign): Flush frame cache after stores to memory
13012 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13014 * Makefile.in (mon960-rom.o): Delete rule.
13015 * mon960-rom.c: Delete file.
13017 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13019 * d10v-tdep.c: Include "frame-unwind.h".
13020 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13022 (next_addr, uses_frame): Delete.
13023 (struct d10v_unwind_cache): Define.
13024 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13025 Use info instead of next_addr and uses_frame globals.
13026 (d10v_frame_init_saved_regs): Delete function.
13027 (d10v_init_extra_frame_info): Delete function.
13028 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13029 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13030 init_frame_pc or frame_saved_pc.
13031 (d10v_pop_frame): Delete function.
13032 (do_d10v_pop_frame): Delete function.
13033 (d10v_frame_chain): Delete function.
13034 (d10v_frame_chain_valid): Delete function.
13035 (d10v_frame_pc_unwind): New function.
13036 (d10v_frame_id_unwind): New function.
13037 (saved_regs_unwinder): New function.
13038 (d10v_frame_register_unwind): New function.
13039 (d10v_frame_pop): New function.
13040 (d10v_frame_unwind): New variable.
13041 (d10v_frame_p): New function.
13042 (d10v_frame_saved_pc): Delete function.
13043 * Makefile.in (d10v-tdep.o): Update dependencies.
13045 2003-01-30 J. Brobecker <brobecker@gnat.com>
13047 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13048 causing some regressions due to a change in the default value
13051 2003-01-29 Richard Henderson <rth@redhat.com>
13052 Elena Zannoni <ezannoni@redhat.com>
13053 Daniel Jacobowitz <drow@mvista.com>
13056 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
13058 (RANGES_SECTION): New.
13059 (dwarf_ranges_buffer): New variable.
13060 (struct comp_unit_head): Add member "die".
13061 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13062 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13063 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13064 (dwarf2_locate_sections): Likewise.
13065 (dwarf2_build_psymtabs): Read .debug_ranges.
13066 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13067 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13068 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13069 Look for DW_AT_ranges and return the bounding box.
13071 2003-01-29 Brian Ford <ford@vss.fsi.com>
13073 * win32-nat.c (cygwin_pid): Removed as unused.
13074 (child_attach): Try fall back to Cygwin pid.
13076 2003-01-29 Jim Blandy <jimb@redhat.com>
13078 * objfiles.h (struct objfile): Doc fix.
13080 2003-01-29 Andrew Cagney <ac131313@redhat.com>
13082 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13083 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13084 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13085 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13086 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13087 (FRAME_SAVED_PC): Change to a function with predicate.
13088 * gdbarch.h, gdbarch.c: Re-generate.
13090 2003-01-28 Andrew Cagney <ac131313@redhat.com>
13092 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13094 * complaints.c (complain): Delete function.
13095 * complaints.h (struct deprecated_complaint): Delete definition.
13096 (complain): Delete declaration.
13098 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13100 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13103 2003-01-27 Andrew Cagney <ac131313@redhat.com>
13105 * sentinel-frame.h, sentinel-frame.c: New files.
13106 * Makefile.in (frame.o): Update dependencies.
13107 (SFILES): Add sentinel-frame.c.
13108 (sentinel_frame_h): Define.
13109 (COMMON_OBS): Add sentinel-frame.o.
13110 (sentinel-frame.o): Specify dependencies.
13111 * frame.c: Include "sentinel-frame.h".
13112 (frame_register_unwind): Rewrite assuming that there is always a a
13114 (frame_register, generic_unwind_get_saved_register): Ditto.
13115 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13116 (create_sentinel_frame, unwind_to_current_frame): New functions.
13117 (get_current_frame): Rewrite using create_sentinel_frame and
13118 unwind_to_current_frame. When possible, always create a frame.
13119 (create_new_frame): Set next to the sentinel frame.
13120 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13121 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13122 ID cache when necessary.
13123 (frame_saved_regs_id_unwind): Use frame_relative_level.
13124 (deprecated_generic_get_saved_register): Use frame_relative_level,
13125 get_frame_saved_regs, get_frame_pc, get_frame_base and
13127 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13130 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13132 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13134 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13136 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13137 (maintenance_set_profile_cmd): Use error () instead of warning ().
13139 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13141 * configure.in: Check that -pg works if using --enable-profiling.
13142 Check for monstartup and _mcleanup regardless of --enable-profiling.
13143 * maint.c: Check for monstartup and _mcleanup before using them.
13144 * config.in: Regenerated.
13145 * configure: Regenerated.
13147 2003-01-24 Nick Clifton <nickc@redhat.com>
13149 * Add sh2e support:
13151 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13153 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13154 (sh2e_show_regs): New.
13155 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13156 * config/sh/tm-sh.h: Added sh2e to comments.
13158 2003-01-23 Jim Blandy <jimb@redhat.com>
13160 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13161 symbols found)" message here; we haven't checked for a separate
13162 debug info file yet, so we don't know yet.
13163 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13164 we've looked everywhere. Also, there's no need to print a special
13165 message when we're loading the separate debug info file: the one
13166 symbol_file_add prints is fine.
13168 2003-01-23 Alexander Larsson <alexl@redhat.com>
13169 Jim Blandy <jimb@redhat.com>
13171 Add support for executables whose debug info has been separated
13172 out into a separate file, leaving only a link behind.
13173 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13174 and separate_debug_objfile_backlink.
13175 (put_objfile_before): New declaration.
13176 * symfile.c: #include "filenames.h".
13177 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13178 debug info in a separate file, read that, too. Save the addrs
13179 argument, so we can use it again to read the separated debug info;
13180 syms_from_objfile modifies the table we pass it.
13181 (reread_symbols): After re-reading an objfile, call
13182 reread_separate_symbols to refresh its separate debug info
13183 objfile, if it has one.
13184 (reread_separate_symbols, find_separate_debug_file,
13185 get_debug_link_info, separate_debug_file_exists): New functions.
13186 (debug_file_directory): New global var.
13187 (_initialize_symfile): Initialize debug_file_directory, and
13188 provide the new `set debug-file-directory' command to let the user
13190 * objfiles.c (free_objfile): If this objfile has its debug info in
13191 a separate objfile, free that one too. If this is itself a
13192 separate debug info objfile, clear our parent's backlink.
13193 (put_objfile_before): New function.
13194 * utils.c (gnu_debuglink_crc32): New function.
13195 * defs.h (gnu_debuglink_crc32): New declaration.
13196 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13197 * configure.in: Handle --with-separate-debug-dir config option.
13198 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13199 * acconfig.h (DEBUGDIR): New macro.
13200 * configure, aclocal.m4, config.in: Regenerated.
13202 2003-01-22 Jim Blandy <jimb@redhat.com>
13204 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13205 like the old symbol_file_add, but taking new arguments: you can
13206 now pass in either a `struct section_addr_info' list to say where
13207 each section is loaded, or a `struct section_offsets' table. Pass
13208 these new arguments through to syms_from_objfile as appropriate.
13209 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13210 with the appropriate quiescent values for the new arguments.
13212 * symfile.c: #include "gdb_assert.h".
13213 (syms_from_objfile): Add the ability to pass in a section offset
13214 table directly, as an alternative to the section_addr_info table.
13215 Document arguments better.
13216 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13217 * symfile.h (syms_from_objfile): Update declaration.
13218 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13220 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13222 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13224 Original patch by Tom Tromey <tromey@cygnus.com> and
13225 Jason Molenda <jmolenda@apple.com>.
13226 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13227 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13228 * NEWS: Mention profiling.
13229 * configure.in (--enable-gdbtk): Fix typo.
13230 (--enable-profiling): New. Set PROFILE_CFLAGS.
13231 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13233 (profiling_state): New variable.
13234 (mcleanup_wrapper): New function.
13235 (_initialize_maint): Remove NOTYET, fix call to
13236 add_setshow_boolean_cmd for "maint set profile".
13237 * configure: Regenerated.
13239 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13241 * Makefile.in (install-gdbtk): Install PNG images too.
13243 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13245 * exec.c (text_start): Delete global variable.
13246 (exec_file_attach): Make text_start local to the function.
13247 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13248 * valops.c (hand_function_call): Delete code that handles
13249 BEFORE_TEXT_END and AFTER_TEXT_END.
13250 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13251 of CALL_DUMMY_LOCATION.
13252 * gdbarch.c: Regenerate.
13253 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13254 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13255 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13256 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13257 (text_end): Delete extern declaration.
13259 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13261 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13262 * blockframe.c (backtrace_below_main): Move to "frame.c".
13263 (frame_chain_valid): Delete check for backtrace_below_main.
13264 (_initialize_blockframe): Delete initialization, move ``set
13265 backtrace-below-main'' command to "frame.c".
13266 (do_flush_frames_sfunc): Delete function.
13267 * frame.c: Include "command.h" and "gdbcmd.h".
13268 (frame_type_from_pc): New function.
13269 (create_new_frame): Use frame_type_from_pc.
13270 (legacy_get_prev_frame): New function.
13271 (get_prev_frame): Rewrite. When an old style frame, call
13272 legacy_get_prev_frame. Otherwize, unwind the PC first.
13273 (_initialize_frame): Add ``set backtrace-below-main'' command.
13274 * Makefile.in (frame.o): Update dependencies.
13276 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13278 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13279 DEPRECATED_REGISTERS_INFO.
13281 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13283 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13284 Maintainers'. Update `Various Maintainers'.
13286 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13288 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13289 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13290 Suppress actual parameters when `-'.
13291 * gdbarch.h, gdbarch.c: Regenerate.
13293 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13295 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13296 code handling dummy frames.
13298 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13300 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13301 (struct frame_unwind): Add field pop.
13302 * frame.h (frame_pop): Declare.
13303 * frame.c (frame_saved_regs_pop): New function.
13304 (trad_frame_unwinder): Add frame_saved_regs_pop.
13305 (frame_pop): New function.
13306 * dummy-frame.c (dummy_frame_pop): New function.
13307 (discard_innermost_dummy): New function.
13308 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13309 (dummy_frame_unwind): Add dummy_frame_pop.
13310 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13311 * valops.c (hand_function_call): Ditto.
13312 * stack.c (return_command): Ditto.
13314 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13316 * cris-tdep.c: Fix function declaration indentation.
13317 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13318 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13319 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13320 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13321 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13322 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13324 2003-01-18 Michael Chastain <mec@shout.net>
13326 * README (Unpacking and Installation -- quick overview):
13327 Warn against ".../gdb-5.3/gdb/configure".
13329 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13331 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13332 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13333 (struct frame_unwind): Declare opaque.
13334 (dummy_frame_p): Declare function.
13335 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13336 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13337 * dummy-frame.c: Include "frame-unwind.h".
13338 (dummy_frame_p): New function.
13339 (dummy_frame_unwind): New variable.
13340 * frame.c: Include "frame-unwind.h".
13341 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13342 to use the new unwind field.
13343 (set_unwind_by_pc): Delete function.
13344 (create_new_frame, get_prev_frame): Set unwind field using
13345 frame_unwind_find_by_pc.
13346 (trad_frame_unwind, trad_frame_unwinder): New variables.
13347 * frame.h (trad_frame_unwind): Declare variable.
13348 (frame_id_unwind_ftype): Delete declaration.
13349 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13350 (struct frame_unwind): Declare opaque.
13351 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13352 register_unwind with a single unwind pointer.
13353 * frame-unwind.h, frame-unwind.c: New files.
13354 * Makefile.in (SFILES): Add frame-unwind.c.
13355 (frame_unwind_h): Define.
13356 (COMMON_OBS): Add frame-unwind.o.
13357 (frame-unwind.o): Specify dependencies.
13358 (frame.o, dummy-frame.o): Update dependencies.
13360 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13362 * ada-valprint.c: Eliminate PTR.
13363 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13364 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13365 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13366 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13367 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13368 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13369 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13371 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13373 * main.c (captured_main): Don't use PTR.
13374 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13375 * gdbtypes.c (lookup_primitive_typename): Ditto.
13376 (lookup_struct_elt_type): Ditto.
13377 * f-valprint.c (info_common_command): Ditto.
13378 (list_all_visible_commons): Ditto.
13379 * jv-typeprint.c (java_type_print_base): Ditto.
13381 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13382 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13383 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13384 i386-interix-nat.c and i386-interix-tdep.c. Rename
13385 m68klinux-nat.c and m68klinux-tdep.c. Rename
13386 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13387 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13388 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13389 * main.c (captured_main): Use xfree, not free.
13391 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13393 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13394 ID back using a parameter.
13395 * frame.c (frame_id_unwind): Update call.
13396 (frame_saved_regs_id_unwind): Update.
13397 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13398 * dummy-frame.h (struct frame_id): Add opaque declaration.
13399 (dummy_frame_id_unwind): Update declaration.
13401 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13403 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13405 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13407 * MAINTAINERS (Stephen P. Smith): Updated email address.
13409 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13412 * breakpoint.c (until_break_command): Add new argument. Use it to
13413 decide whether to stop only at the current frame or not.
13414 * breakpoint.h (until_break_command): Update prototype.
13415 * infcmd.c (until_command): Add new argument to until_break_command
13417 (advance_command): New function.
13418 (_initialize_infcmd): Update help string for 'until' command.
13419 Add new 'advance' command.
13421 2003-01-14 David Carlton <carlton@math.stanford.edu>
13423 * linespec.c (decode_line_1): Normalize comments.
13424 (set_flags): Ditto.
13425 (locate_first_half): Ditto.
13426 (decode_compound): Ditto.
13427 (symtab_from_filename): Ditto.
13428 (decode_all_digits): Ditto.
13429 (decode_dollar): Ditto.
13430 (find_methods): Ditto.
13431 (find_toplevel_char): Ditto.
13433 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13435 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13436 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13437 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13438 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13439 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13440 * language.c, language.h, m32r-tdep.c: Update copyright.
13441 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13442 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13443 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13444 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13445 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13446 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13448 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13450 * stabsread.h (process_later, resolve_cfront_continuation):
13452 Update copyright years.
13453 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13454 Update copyright year.
13455 * dbxread.c(struct cont_elem): Obsolete.
13456 (process_later, process_now): Obsolete functions.
13457 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13458 Update copyright year.
13459 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13460 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13461 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13462 (parse_partial_symbols): Obsolete cfront support.
13464 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13466 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13467 read_cfront_baseclasses, read_cfront_member_functions,
13468 resolve_cfront_continuation,read_cfront_static_fields,
13469 copy_cfront_struct_fields): Obsolete functions.
13470 (define_symbol, read_one_struct_field): Obsolete cfront support.
13471 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13472 Update Copyright year.
13474 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13476 * stack.c (print_frame_info, print_stack_frame_base_stub,
13477 print_stack_frame_base, show_and_print_stack_frame_stub,
13478 show_and_print_stack_frame, print_only_stack_frame_stub,
13479 print_only_stack_frame): Delete functions.
13480 (print_stack_frame_stub): Call print_frame_info instead of
13481 print_frame_info_base.
13482 (print_frame_info_base): Rename to print_frame_info.
13483 (backtrace_command_1): Call print_frame_info, instead of
13484 print_frame_info_base.
13485 (current_frame_command): Call print_stack_frame, instead of
13486 print_only_stack_frame.
13487 (frame_command): Call print_stack_frame, instead of
13488 show_and_print_stack_frame.
13489 (up_command): Ditto.
13490 (down_command): Ditto.
13491 * frame.h (print_only_stack_frame): Delete prototype.
13492 * infrun.c (normal_stop): Call print_stack_frame, instead of
13493 show_and_print_stack_frame.
13494 * thread.c (info_threads_command): Call print_stack_frame, instead
13495 of print_only_stack_frame.
13497 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13499 * README (Graphical interface to GDB): Update URL. Point at
13502 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13505 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13507 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13510 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13512 * thread-db.c (attach_thread): Prototype.
13513 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13514 thread information (ti), and valid flags (th_valid, ti_valid).
13515 (attach_thread): Move target_pid_to_str call to after the thread
13516 is added to GDB's list. Initialize the cache.
13517 (thread_get_info_callback, thread_db_map_id2thr)
13518 (thread_db_get_info): New functions.
13519 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13520 (thread_db_store_registers, thread_db_thread_alive)
13521 (thread_db_get_thread_local_address): Use them.
13522 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13523 of calling error() for threads in unknown state.
13525 (clear_lwpid_callback): New function.
13526 (thread_db_resume): Use it to clear the cache.
13528 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13530 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13531 (resume_callback): Remove dead code.
13533 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13535 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13537 * gdbarch.h, gdbarch.c: Regenerate.
13538 * stack.c (frame_info): Only initialize the saved registers when
13539 FRAME_INIT_SAVED_REGS_P.
13540 * frame.c (frame_saved_regs_register_unwind): Assert
13541 FRAME_INIT_SAVED_REGS_P.
13542 (deprecated_generic_get_saved_register): Ditto.
13544 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13546 * source.c (openp): Squelch warning about "filename".
13548 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13550 * source.c (openp): If the file does not exist don't necessarily
13553 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13556 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13557 (integer_types_same_name_p): New function.
13558 (rank_one_type): Use it.
13559 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13561 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13563 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13565 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13566 * configure.in: Add --with-sysroot.
13567 * configure: Regenerated.
13568 * main.c (gdb_sysroot): New variable.
13569 (captured_main): Initialize gdb_sysroot.
13570 * defs.h (gdb_sysroot): New extern declaration.
13571 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13573 2003-01-12 Michael Chastain <mec@shout.net>
13575 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13577 2003-01-12 Michael Chastain <mec@shout.net>
13579 * top.c (print_gdb_version): Bump copyright year to 2003.
13581 2003-01-12 David Carlton <carlton@bactrian.org>
13583 * linespec.c (symtab_from_filename): Rename variable 's' to
13586 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13588 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13590 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13592 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13594 * d10v-tdep.c: Include "gdb_assert.h".
13595 (d10v_store_return_value): Rewrite to match current interface.
13596 (d10v_extract_struct_value_address): Ditto.
13597 (d10v_extract_return_value): Ditto.
13598 (d10v_gdbarch_init): Set store_restore_value,
13599 extract_struct_value_address and extract_return_value.
13601 2003-01-12 J. Brobecker <brobecker@gnat.com>
13603 * hpread.c (set_namestring): New procedure replacing the
13604 SET_NAMESTRING macro.
13605 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13606 by calls to set_namestring.
13608 2003-01-11 J. Brobecker <brobecker@gnat.com>
13610 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13611 a compilation warning.
13612 (hpread_process_one_debug_symbol): Likewise.
13614 2003-01-10 David Carlton <carlton@math.stanford.edu>
13616 * linespec.c (decode_line_1): Rename variable 's' to
13618 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13619 (decode_dollar): Ditto.
13620 (decode_variable): Ditto.
13621 (symbol_found): Ditto.
13623 2003-01-09 Michael Chastain <mec@shout.net>
13625 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13627 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13629 * win32-nat.c (set_process_privilege): New function.
13630 (child_attach): Call set_process_privilege() to enable the
13631 SE_DEBUG_NAME user privilege if available in process token.
13633 2003-01-10 J. Brobecker <brobecker@gnat.com>
13635 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13636 compilation error in the previous revision.
13638 2003-01-09 David Carlton <carlton@math.stanford.edu>
13640 * linespec.c: Update copyright.
13642 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13644 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13645 than inferior_ptid.
13646 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13648 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13650 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13652 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13653 (frame_saved_regs_zalloc): Update.
13654 (frame_saved_regs_register_unwind): Update.
13655 (create_new_frame): Update.
13656 (get_prev_frame): Update.
13657 (frame_extra_info_zalloc): Update.
13658 (deprecated_get_frame_saved_regs): Update.
13659 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13660 * cris-tdep.c: Update comment.
13662 * somsolib.h: Fix function indentation.
13663 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13664 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13665 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13666 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13667 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13669 * infrun.c (follow_fork): Use ISO C definition.
13670 * expprint.c (print_subexp): Use xfree instead of free.
13671 * charset.c: Include "gdb_string.h" instead of <string.h>.
13672 (register_iconv_charsets): Use ISO C definition.
13673 (host_charset, target_charset): Ditto.
13674 * Makefile.in (charset.o): Update dependencies.
13675 (mi-cmd-env.o): Update dependencies.
13677 2003-01-08 Andrew Cagney <cagney@redhat.com>
13679 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13682 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13684 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13685 build directories. Save edited gdb output in Mbuild.log. If a
13686 build fails, remove any final GDB executable.
13688 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13690 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13691 replacing hex constants with function names and stripping leading
13692 file name directory prefixes.
13694 2003-01-08 Andrew Cagney <cagney@redhat.com>
13696 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13699 2003-01-08 David Carlton <carlton@math.stanford.edu>
13701 * linespec.c (decode_line_1): Move code into decode_variable.
13702 (decode_variable): New function.
13704 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13706 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13708 2003-01-08 Andrew Cagney <cagney@redhat.com>
13710 * cris-tdep.c (cris_frame_init_saved_regs): Use
13711 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13713 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13714 (sh64_nofp_frame_init_saved_regs): Ditto.
13715 (sh_fp_frame_init_saved_regs): Ditto.
13716 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13717 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13718 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13719 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13721 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13723 * minsyms.c (lookup_minimal_symbol): Update comment.
13724 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13725 (lookup_minimal_symbol_solib_trampoline): Likewise.
13727 2003-01-08 Andrew Cagney <cagney@redhat.com>
13729 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13730 frame_relative_level.
13732 * alpha-tdep.c: Use get_frame_extra_info.
13733 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13734 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13735 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13736 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13738 * alpha-tdep.c: Use get_next_frame.
13739 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13740 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13741 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13742 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13743 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13744 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13745 * xstormy16-tdep.c: Ditto.
13747 2003-01-07 Andrew Cagney <cagney@redhat.com>
13749 * alpha-tdep.c: Use get_frame_base.
13750 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13751 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13752 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13753 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13754 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13755 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13756 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13757 * config/sparc/tm-sparc.h: Ditto.
13759 2003-01-07 Andrew Cagney <cagney@redhat.com>
13761 * frame.c (deprecated_get_frame_context): New function.
13762 (deprecated_set_frame_context): New function.
13763 * frame.h (deprecated_get_frame_context): Declare.
13764 (deprecated_set_frame_context): Declare.
13765 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13766 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13768 2003-01-07 Andrew Cagney <cagney@redhat.com>
13770 * frame.c (deprecated_set_frame_next_hack): New function.
13771 (deprecated_set_frame_prev_hack): New function.
13772 * frame.h (deprecated_set_frame_next_hack): Declare.
13773 (deprecated_set_frame_prev_hack): Declare.
13774 * mcore-tdep.c (analyze_dummy_frame): Use
13775 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13776 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13778 2003-01-07 David Carlton <carlton@math.stanford.edu>
13780 * linespec.c (decode_line_1): Move code into decode_dollar.
13781 (decode_dollar): New function.
13783 2003-01-07 Andrew Cagney <cagney@redhat.com>
13785 * arm-tdep.c (arm_init_extra_frame_info): Use
13786 deprecated_update_frame_base_hack.
13787 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13788 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13789 (fix_frame_pointer): Ditto.
13790 (mn10300_analyze_prologue): Ditto.
13792 2003-01-07 Andrew Cagney <cagney@redhat.com>
13794 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13795 extra_info using frame_extra_info_zalloc.
13796 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13797 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13798 (sh64_init_extra_frame_info): Ditto.
13799 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13800 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13801 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13802 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13803 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13804 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13805 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13806 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13807 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13808 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13809 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13810 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13812 * mn10300-tdep.c (analyze_dummy_frame): Use
13813 deprecated_set_frame_extra_info_hack.
13814 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13816 2003-01-07 J. Brobecker <brobecker@gnat.com>
13818 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13819 class is not scText. These do not define "real" procedures.
13820 (parse_partial_symbols): Likewise.
13822 2003-01-06 Michael Snyder <msnyder@redhat.com>
13824 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13826 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13828 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13829 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13830 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13831 deprecated_frame_xmalloc_with_cleanup.
13832 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13833 deprecated_frame_xmalloc.
13834 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13835 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13837 2003-01-06 Andrew Cagney <cagney@redhat.com>
13839 * x86-64-linux-tdep.c: Include "osabi.h".
13840 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13842 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13844 2003-01-06 Andrew Cagney <cagney@redhat.com>
13846 * MAINTAINERS (Target Instruction Set Architectures): Update
13847 arm-elf. Can be built with -Werror, has been multiarched.
13849 * value.h (unpack_long): Make buffer parameter constant.
13850 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13851 * scm-lang.h (scm_parse): Ditto.
13852 * defs.h (extract_typed_address, extract_address): Ditto.
13853 (extract_long_unsigned_integer): Ditto.
13854 * inferior.h (unsigned_pointer_to_address): Ditto.
13855 (signed_pointer_to_address): Ditto.
13856 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13857 * gdbarch.h, gdbarch.c: Regenerate.
13858 * findvar.c (extract_long_unsigned_integer): Update.
13859 (extract_address): Update.
13860 (extract_typed_address): Update.
13861 (unsigned_pointer_to_address): Update.
13862 * values.c (unpack_long): Update.
13863 (unpack_double): Update.
13864 (unpack_pointer): Update.
13865 (unpack_field_as_long): Update.
13866 * d10v-tdep.c (d10v_pointer_to_address): Update.
13867 * avr-tdep.c (avr_pointer_to_address): Update.
13868 * scm-lang.c (scm_unpack): Update.
13869 * findvar.c (signed_pointer_to_address): Update.
13871 2003-01-06 Michal Ludvig <mludvig@suse.cz>
13873 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13874 since it is in i386-tdep.c.
13876 2003-01-06 J. Brobecker <brobecker@gnat.com>
13878 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13879 failure introduced in the previous change.
13881 2003-01-05 Michael Chastain <mec@shout.net>
13883 * README: Remove references to deleted remote-*.c files:
13884 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13885 remote-nrom.c, remote-os9k.c, remote-udi.c.
13887 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13889 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13890 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13891 i386_get_longjmp_target.
13893 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13895 * arm-tdep.c (prologue_cache): Change to a pointer.
13896 (_initialize_arm_tdep): Allocate prologue_cache.
13897 (check_prologue_cache): Update.
13898 (save_prologue_cache): Update.
13899 (arm_gdbarch_init): Update.
13901 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13903 * stabsread.c (update_method_name_from_physname): Call complaint()
13906 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13908 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13909 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13910 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13912 * blockframe.c: Include "gdbcmd.h" and "command.h".
13913 (backtrace_below_main): New variable.
13914 (file_frame_chain_valid, func_frame_chain_valid)
13915 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13916 (generic_func_frame_chain_valid): Remove functions.
13917 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13918 (_initialize_blockframe): New function.
13919 * Makefile.in (blockframe.o): Update dependencies.
13920 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13921 comment. Call frame_chain_valid ().
13922 * frame.h: Remove old prototypes. Add prototype for
13923 frame_chain_valid and update comments to match.
13924 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13925 Remove old comment.
13926 * gdbarch.h: Regenerated.
13927 * gdbarch.c: Regenerated.
13929 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13930 set_gdbarch_frame_chain_valid.
13931 * avr-tdep.c (avr_gdbarch_init): Likewise.
13932 * cris-tdep.c (cris_gdbarch_init): Likewise.
13933 * frv-tdep.c (frv_gdbarch_init): Likewise.
13934 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13935 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13936 (i386_nw_init_abi): Likewise.
13937 (i386_gdbarch_init): Likewise.
13938 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13940 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13941 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13942 * mips-tdep.c (mips_gdbarch_init): Likewise.
13943 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13944 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13945 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13946 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13947 * s390-tdep.c (s390_gdbarch_init): Likewise.
13948 * sh-tdep.c (sh_gdbarch_init): Likewise.
13949 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13950 * v850-tdep.c (v850_gdbarch_init): Likewise.
13951 * vax-tdep.c (vax_gdbarch_init): Likewise.
13952 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13954 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13955 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13956 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13957 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13958 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13959 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13960 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13961 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13963 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13965 * Makefile.in (acconfig_h): Remove incorrect macro.
13966 (config_h): Define.
13967 (osabi.o): Update dependencies.
13968 * configure.tgt: Set gdb_osabi based on target triplet.
13969 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13970 * configure: Regenerated.
13971 * config.in: Regenerated.
13972 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13973 (GDB_OSABI_DEFAULT): Define if not already defined.
13974 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13975 (set_osabi_string): New variables.
13976 (gdbarch_register_osabi): Add new OS ABI to
13977 gdb_osabi_available_names.
13978 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13979 (set_osabi, show_osabi): New functions.
13980 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13982 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13984 * arch-utils.c (gdbarch_info_init): Set osabi to
13985 GDB_OSABI_UNINITIALIZED.
13986 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13987 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13988 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13989 * gdbarch.c: Regenerated.
13990 * gdbarch.h: Regenerated.
13991 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13993 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13994 * osabi.h (enum gdb_osabi): Move to defs.h.
13995 (gdbarch_init_osabi): Update prototype.
13996 * defs.h (enum gdb_osabi): Moved here.
13997 * Makefile.in: Update dependencies.
13999 * alpha-tdep.h: Don't include "osabi.h".
14000 (struct gdbarch_tdep): Remove osabi member.
14001 * alpha-tdep.c: Include "osabi.h".
14002 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14003 iterate over arches. Update call to gdbarch_init_osabi.
14004 (alpha_dump_tdep): Don't dump osabi.
14005 * alpha-linux-tdep.c: Include "osabi.h".
14006 * alpha-osf1-tdep.c: Include "osabi.h".
14007 * alphafbsd-tdep.c: Include "osabi.h".
14008 * alphanbsd-tdep.c: Include "osabi.h".
14010 * arm-tdep.h: Don't include "osabi.h".
14011 (struct gdbarch_tdep): Remove osabi member.
14012 * arm-tdep.c: Include "osabi.h".
14013 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14014 iterate over arches. Update call to gdbarch_init_osabi.
14015 (arm_dump_tdep): Don't dump osabi.
14016 * arm-linux-tdep.c: Include "osabi.h".
14017 * armnbsd-tdep.c: Include "osabi.h".
14019 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14020 Update call to gdbarch_init_osabi.
14022 * i386-tdep.h: Don't include "osabi.h".
14023 (struct gdbarch_tdep): Remove osabi member.
14024 * i386-tdep.c: Include "osabi.h".
14025 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14026 iterate over arches. Update call to gdbarch_init_osabi.
14027 (i386_dump_tdep): Don't dump osabi.
14028 * i386-linux-tdep.c: Include "osabi.h".
14029 * i386-sol2-tdep.c: Include "osabi.h".
14030 * i386bsd-tdep.c: Include "osabi.h".
14031 * i386gnu-tdep.c: Include "osabi.h".
14032 * i386ly-tdep.c: Include "osabi.h".
14033 * i386nbsd-tdep.c: Include "osabi.h".
14034 * i386obsd-tdep.c: Include "osabi.h".
14036 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14037 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14038 check osabi when iterating over arches. Update call to
14039 gdbarch_init_osabi.
14040 (mips_dump_tdep): Don't dump osabi.
14042 * ns32k-tdep.h: Don't include "osabi.h".
14043 (struct gdbarch_tdep): Remove.
14044 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14045 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14046 allocate tdep. Update call to gdbarch_init_osabi.
14047 (ns32k_dump_tdep): Remove.
14048 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14049 * ns32knbsd-tdep.c: Include "osabi.h".
14051 * ppc-tdep.h: Don't include "osabi.h".
14052 (struct gdbarch_tdep): Remove osabi member.
14053 * rs6000-tdep.c: Include "osabi.h".
14054 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14055 osabi when iterating over arches. Update call to
14056 gdbarch_init_osabi.
14057 (rs6000_dump_tdep): Don't dump osabi.
14058 * ppc-linux-tdep.c: Include "osabi.h".
14059 * ppcnbsd-tdep.c: Include "osabi.h".
14061 * sh-tdep.h: Don't include "osabi.h".
14062 (struct gdbarch_tdep): Remove osabi member.
14063 * sh-tdep.c: Include "osabi.h".
14064 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14065 iterate over arches. Update call to gdbarch_init_osabi.
14066 (sh_dump_tdep): Don't dump osabi.
14067 * shnbsd-tdep.c: Include "osabi.h".
14069 * sparc-tdep.c: Include "osabi.h".
14070 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14071 iterate over arches. Update call to gdbarch_init_osabi.
14072 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14075 * vax-tdep.h: Don't include "osabi.h".
14076 (struct gdbarch_tdep): Remove.
14077 * vax-tdep.c: Include "osabi.h".
14078 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14079 iterate over arches. Don't allocate tdep. Update call
14080 to gdbarch_init_osabi.
14081 (vax_dump_tdep): Remove.
14082 (_initialize_vax_tdep): Update call to gdbarch_register.
14084 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14086 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14088 (breakpoint_re_set_one): Don't fetch the value for a disabled
14091 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14093 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14094 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14095 (COERCE_FLOAT_TO_DOUBLE): Remove.
14096 * gdbarch.c: Regenerate.
14097 * gdbarch.h: Regenerate.
14098 * Makefile.in: Remove value_h from gdbarch_h.
14099 * valops.c (coerce_float_to_double): New variable.
14100 (default_coerce_float_to_double): Remove.
14101 (standard_coerce_float_to_double): Remove.
14102 (value_arg_coerce): Use coerce_float_to_double.
14103 (_initialize_valops): Add "set coerce-float-to-double".
14104 * value.h (default_coerce_float_to_double): Remove prototype.
14105 (standard_coerce_float_to_double): Remove prototype.
14107 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14109 * mdebugread.c (parse_symbol): Likewise.
14110 * stabsread.c (define_symbol): Mark all functions as prototyped.
14112 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14113 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14114 set_gdbarch_coerce_float_to_double.
14115 * arm-tdep.c (arm_gdbarch_init): Likewise.
14116 * frv-tdep.c (frv_gdbarch_init): Likewise.
14117 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14118 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14119 * mips-tdep.c (mips_gdbarch_init): Likewise.
14120 (mips_coerce_float_to_double): Remove.
14121 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14122 (rs6000_coerce_float_to_double): Remove.
14123 * s390-tdep.c (s390_gdbarch_init): Likewise.
14124 * sh-tdep.c (sh_gdbarch_init): Likewise.
14125 (sh_coerce_float_to_double): Remove.
14126 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14127 (sparc_coerce_float_to_double): Remove.
14128 * v850-tdep.c (v850_gdbarch_init): Likewise.
14129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14130 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14131 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14132 (hppa_coerce_float_to_double): Remove prototype.
14133 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14135 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14137 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14139 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14141 Suggested by Stewart Brown <sb24@avaya.com>:
14142 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14143 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14144 (c_type_print_varspec_suffix): Likewise.
14146 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14148 * configure.in: Don't set and AC_SUBST SUBDIRS.
14149 * configure: Regenerated.
14151 * configure.in: Remove code dealing with shared libraries.
14152 * Makefile.in: Remove HLDFLAGS and HLDENV.
14153 * configure: Regenerated.
14155 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14157 * frame.c (deprecated_frame_xmalloc): New function.
14158 (deprecated_set_frame_saved_regs_hack): New function.
14159 (deprecated_set_frame_extra_info_hack): New function.
14160 * frame.h (deprecated_frame_xmalloc): Declare.
14161 (deprecated_set_frame_saved_regs_hack): Declare.
14162 (deprecated_set_frame_extra_info_hack): Declare.
14164 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14166 * configure.in: Move code that provides the --enable-gdbtk option
14167 right after the code that handles the --enable-tui option, and
14168 polish it somewhat.
14169 * configure: Regenerated.
14171 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14172 AC_CHECK_FUNCS and remove the old check for pread64.
14173 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14174 * acconfig.h (_GNU_SOURCE): Add.
14175 (HAVE_PREAD64): Remove.
14176 * configure, aclocal.m4, config.in: Regenerated.
14178 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14180 * alpha-tdep.c: Use get_frame_saved_regs.
14181 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14182 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14183 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14184 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14185 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14187 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14189 * configure.in: Remove all use of the SUBDIRS variable; add
14190 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14191 code providing the --enable-multi-ice option, and move it right in
14192 front of the code that checks whether gdbserver is supported.
14194 * configure: Regenerated.
14195 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14198 2003-01-03 Andrew Cagney <cagney@redhat.com>
14200 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14201 * avr-tdep.c, cris-tdep.c: Ditto.
14202 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14203 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14205 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14207 * configure.in: Remove --enable-netrom option.
14208 * configure: Regenerated.
14210 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14212 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14213 declaration for `struct re_pattern_buffer' instead.
14214 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14216 2003-01-03 J. Brobecker <brobecker@gnat.com>
14218 * mdebugread.c (parse_symbol): Count until the stEnd matching
14219 the structure name.
14221 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14223 * configure.in: Remove --with-cpu option.
14224 subscripts. Remove evil changequotes here.
14225 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14226 * config.in, configure: Regenerated.
14228 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14229 * configure.in: Cleanup section that sources GDB and BFD configure
14230 subscripts. Remove evil changequotes here.
14231 * config.in, configure: Regenerated.
14233 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14235 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14236 frame accessor methods.
14237 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14238 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14239 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14240 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14241 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14242 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14243 * z8k-tdep.c: Ditto.
14245 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14247 * configure.in: Remove UI_OUT configuration code.
14248 * ada-lang.c: Update assuming UI_OUT is always true.
14249 * Makefile.in (UIOUT_CFLAGS): Remove.
14250 * configure: Regenerated.
14251 * TODO: Remove blurb about elimination of -DUI_OUT.
14253 * configure.in: Move code that provides the --enable-gdbcli,
14254 --enable-gdbmi options right before the code that handles the
14255 --enable-tui option. Polish a bit.
14256 * configure: Regenerated.
14258 * configure.in: Rewrite check for GNU regex and the
14259 --without-included regex option, and move it into the "Checks for
14260 library functions" section. This makes us use the system regex
14261 again by default on systems with version 2 of the GNU C library.
14262 This was apparently broken.
14263 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14264 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14265 * config.in, configure: Regenerated.
14267 * configure.in: Move code that provides the --enable-tui option
14268 before the "Checks for libraries" section. Polish the code
14269 somewhat and set need_curses to yes if we build the TUI. Rewrite
14270 code that looks for a library providing termcap functionality to
14271 match more closely what's done in the Readline library, and move
14272 it into to the "Checks for libraries" section.
14273 * configure: Regenerated.
14274 * Makefile.in (TERMCAP): Remove variable.
14275 * config/i386/go32.mh (TERMCAP): Remove variable.
14277 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14279 * MAINTAINERS: Mention gdb_mbuild.sh.
14280 * gdb_mbuild.sh: Rewrite.
14282 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14284 * configure.in: Fix typo in last change.
14285 * config.in, configure: Regenerated.
14287 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14289 * valarith.c (value_binop): Delete obsolete code and comments.
14290 * configure.host: Ditto.
14291 * buildsym.h (make_blockvector): Ditto.
14292 * buildsym.c (make_blockvector): Ditto.
14293 * defs.h (enum language): Ditto.
14294 (chill_demangle): Ditto.
14295 * elfread.c (elf_symtab_read): Ditto.
14296 * dwarfread.c (CHILL_PRODUCER): Ditto.
14297 (set_cu_language): Ditto.
14298 (handle_producer): Ditto.
14299 * expprint.c (print_subexp): Ditto.
14300 * gdbtypes.c (chill_varying_type): Ditto.
14301 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14302 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14303 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14304 (chill_varying_type): Ditto.
14305 * language.h (_LANG_chill): Ditto.
14306 * language.c (binop_result_type, integral_type): Ditto.
14307 (character_type, string_type, structured_type): Ditto.
14308 (lang_bool_type, binop_type_check): Ditto.
14309 * stabsread.h (os9k_stabs): Ditto.
14310 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14311 (define_symbol, read_type, read_struct_fields): Ditto.
14312 (read_array_type, read_enum_type, read_huge_number): Ditto.
14313 (read_range_type, start_stabs): Ditto.
14314 * symfile.c (init_filename_language_table): Ditto.
14315 (add_psymbol_with_dem_name_to_list): Ditto.
14316 * symtab.c (symbol_init_language_specific): Ditto.
14317 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14318 * symtab.h (struct general_symbol_info): Ditto.
14319 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14320 * typeprint.c (typedef_print): Ditto.
14321 * utils.c (fprintf_symbol_filtered): Ditto.
14322 * valops.c (value_cast, search_struct_field, value_slice): Delete
14324 (varying_to_slice): Delete function.
14325 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14326 (varying_to_slice): Delete declaration.
14327 * MAINTAINERS: Update.
14329 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14331 * configure.in: Reorganize "Checks for library functions section"
14332 a bit. Remove check for `btowc' and `isascii' functions.
14333 * configure: Regenerated.
14335 * acconfig.h (_MSE_INT_H): Remove.
14336 * configure.in: Create "Checks for header files" section, and move
14337 appropriate tests there. Don't check for objlist.h, wchar.h,
14338 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14339 misdetection fix. Also add "Checks for types", "Checks for
14340 compiler characteristics" and "Checks for library functions"
14342 * config.in, configure: Regenerated.
14344 * configure.in: Create "Checks for programs" section, and move
14345 appropriate tests there.
14347 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14349 * configure.in: Create "Checks for libraries" section, and move
14350 appropriate tests there. Cleanup check for wctype in libw. Use
14351 AC_SEARCH_LIBS to see whether we need libsocket.
14352 * configure: Regenerated.
14354 For older changes see ChangeLog-2002
14360 version-control: never