1 2003-11-12 Michael Snyder <msnyder@redhat.com>
3 * sh64_tdep.c: Regularize some names.
4 (sh_sh64_register_name): Rename to sh64_register_name.
5 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
6 (sh_sh64_register_byte): Rename to sh64_register_byte.
7 (sh_sh64_build_float_register_type):
8 Rename to sh64_build_float_register_type.
9 (sh_sh64_register_convert_to_virtual):
10 Rename to sh64_register_convert_to_virtual.
11 (sh_sh64_register_convert_to_raw):
12 Rename to sh64_register_convert_to_raw.
14 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
15 sh64_media_reg_base_num, sh64_compact_reg_base_num,
16 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
17 sh64_extract_return_value, sh64_show_media_regs,
18 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
19 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
20 sh64_pseudo_register_read, sh64_pseudo_register_write,
21 sh64_do_pseudo_register, sh_compact_print_registers_info):
22 Delete unused variable 'tdep'.
24 * sh64-tdep.c: Coding standard and spelling comment fixes.
25 (sh64_extract_return_value): Replace deprecated_store_floating
26 with store_typed_floating.
27 (sh_sh64_register_convert_to_raw): Replace
28 deprecated_store_floating with store_typed_floating.
29 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
30 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
31 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
32 sh64_extract_struct_value_address, sh64_pop_frame,
33 sh64_extract_return_value, sh64_store_return_value,
34 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
35 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
36 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
37 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
38 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
39 deprecated_register_virtual_type, deprecated_register_raw_size,
40 deprecated_max_register_raw_size, or
41 deprecated_max_register_virtual_size. Instead, just set
42 gdbarch_register_type.
43 (sh_sh64_register_raw_size): Delete.
44 (sh_sh64_register_virtual_size): Delete.
46 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
48 * dwarf2read.c (struct dwarf2_cu): New type.
50 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
51 dwarf2_cu structure to pass down.
53 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
54 (add_partial_enumeration, locate_pdi_sibling, process_die)
55 (read_file_scope, read_func_scope)
56 (read_lexical_block_scope, dwarf2_get_pc_bounds)
57 (dwarf2_add_field, dwarf2_attach_fields_to_type)
58 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
59 (read_structure_scope, read_enumeration, read_array_type)
60 (read_common_block, read_namespace, read_tag_pointer_type)
61 (read_tag_ptr_to_member_type, read_tag_reference_type)
62 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
63 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
64 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
65 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
66 (read_full_die. read_attribute_value, read_attribute)
67 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
68 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
69 (die_containing_type, type_at_offset, tag_type_to_type)
70 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
71 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
73 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
76 * breakpoint.c (insert_bp_location): Fix a logic error by returning
77 0 after a catchpoint fails.
79 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
81 * mips-tdep.c (msymbol_size): Delete.
83 2003-11-07 Michael Chastain <mec@shout.net>
85 * symtab.h (struct minimal_symbol): Add size.
87 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
88 Rename to record_minimal_symbol.
89 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
90 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
91 (install_minimal_symbols): Ditto.
92 * objfiles.c (terminate_minimal_symbol_table): Ditto.
93 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
94 * m68hc11-tdep.c: Ditto.
98 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
100 * MAINTAINERS: Change my e-mail address.
102 2003-11-10 Andrew Cagney <cagney@redhat.com>
104 * gdbarch.sh (return_value): Replace "inval" and "outval" with
105 "readbuf" and "writebuf".
106 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
107 * d10v-tdep.c (d10v_return_value): Ditto.
108 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
109 (ppc_sysv_abi_broken_return_value): Ditto.
110 (ppc64_sysv_abi_return_value): Ditto.
111 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
112 (ppc_sysv_abi_return_value): Ditto.
113 (ppc_sysv_abi_broken_return_value): Ditto.
114 (ppc64_sysv_abi_return_value): Ditto.
115 * values.c (register_value_being_returned): Update call.
116 * stack.c (return_command): Update call.
117 * gdbarch.h, gdbarch.c: Re-generate.
119 * target.h (struct target_ops): Order xfer buffer parameters "read
120 write" not "write read".
121 * bfd-target.c (target_bfd_xfer_partial): Update.
122 * remote.c (remote_xfer_partial): Update.
123 * inftarg.c (child_xfer_partial): Update.
124 * target.c (default_xfer_partial): Update.
125 (target_read_partial, target_write_partial): Update.
126 (debug_to_xfer_partial): Update.
128 * arch-utils.h, arch-utils.c: Fix typo in comment.
130 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
131 (gdbarch_from_bfd): Call gdbarch_find_by_info.
132 (set_gdbarch_from_file): Call
133 "deprecated_current_gdbarch_select_hack".
135 2003-11-09 Andrew Cagney <cagney@redhat.com>
137 * arch-utils.c (gdbarch_update_p): New function.
138 * gdbarch.sh (gdbarch_update_p): Delete function.
139 (find_arch_by_info, gdbarch_find_by_info): New functions.
140 (deprecated_current_gdbarch_select_hack): New function.
141 * gdbarch.c: Re-generate.
143 * gdbarch.sh (clear_gdbarch_swap): Delete function.
144 (swapout_gdbarch_swap): Delete function.
145 (swapin_gdbarch_swap): Delete function.
146 (init_gdbarch_swap): Delete function.
147 (initialize_non_multiarch): Delete function.
148 (current_gdbarch_swap_in_hack): New function.
149 (current_gdbarch_swap_out_hack): New function.
150 (current_gdbarch_swap_init_hack): New function.
151 * gdbarch.c: Re-generate.
153 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
154 parameter to "current_gdbarch". Add comment explaining why.
155 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
156 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
157 * gdbarch.c: Re-generate.
159 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
160 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
161 * config/s390/xm-linux.h: Delete file.
162 * config/m88k/xm-delta88v4.h: Delete stray.
164 * Makefile.in (arch-utils.o): Update dependencies.
165 * arch-utils.c: Include "osabi.h".
166 (gdbarch_info_fill): New function.
167 * arch-utils.h (gdbarch_info_fill): Declare.
168 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
169 * gdbarch.c: Re-generate.
171 2003-11-09 Mark Kettenis <kettenis@gnu.org>
172 David S. Miller <davem@redhat.com>
174 * glibc-tdep.c, glibc-tdep.h: New files.
175 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
176 * config/i386/linux.mt (TDEPFILES): Likewise.
177 * i386-linux-tdep.c (glibc-tdep.h): Include.
178 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
179 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
180 * arm-linux-tdep.c (glibc-tdep.h): Include.
181 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
182 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
183 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
184 (glibc_tdep_h): Define.
185 (glibc-tdep.o): Add dependencies.
186 (arm-linux-tdep.o): Update dependencies.
187 (i386-linux-tdep.o): Likewise.
189 2003-11-09 Andrew Cagney <cagney@redhat.com>
191 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
192 * config/mips/nm-irix6.h: Delete file.
193 * config/mips/nm-linux.h: Update copyright.
194 (MIPS_GNULINUX_TARGET): Delete macro.
195 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
196 * config/mips/xm-irix6.h: Delete file.
197 * config/mips/linux.mh (XM_FILE): Delete definition.
198 * config/mips/xm-linux.h: Delete file.
200 2003-11-09 Andrew Cagney <cagney@redhat.com>
202 * d10v-tdep.c (d10v_return_value): New function.
203 (d10v_use_struct_convention): Delete function.
204 (d10v_store_return_value): Delete function.
205 (d10v_extract_struct_value_address): Delete function.
206 (d10v_gdbarch_init): Set "return_value" instead of
207 "extract_return_value", "store_return_value",
208 "extract_struct_value_address", and "use_struct_convention".
209 (RET1_REGNUM): Delete const.
211 2003-11-09 Mark Kettenis <kettenis@gnu.org>
213 From David S. Miller <davem@redhat.com>:
214 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
215 * gdbarch.c, gdbarch.h: Regenerated.
216 * arch-utils.c (generic_skip_solib_resolver): New function.
217 * arch-utils.h (generic_skip_solib_resolver): New prototype.
218 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
220 2003-11-07 Andrew Cagney <cagney@redhat.com>
222 * top.c (print_gdb_version): Replace STREQ with strcmp.
223 * valops.c (value_struct_elt_for_reference): Ditto.
224 (value_struct_elt_for_reference): Ditto.
225 * symtab.c (gdb_mangle_name): Ditto.
226 (find_line_symtab): Ditto.
227 * symmisc.c (maintenance_print_symbols): Ditto.
228 * symfile.c (symbol_file_command): Ditto.
229 * stabsread.c (define_symbol, read_type): Ditto.
230 (cleanup_undefined_types, scan_file_globals): Ditto.
231 * solib.c (solib_map_sections): Ditto.
232 * solib-svr4.c (bfd_lookup_symbol): Ditto.
233 * rs6000-tdep.c (skip_prologue): Ditto.
234 * p-valprint.c (pascal_value_print): Ditto.
235 (pascal_object_is_vtbl_ptr_type): Ditto.
236 * objfiles.c (in_plt_section): Ditto.
237 * minsyms.c (lookup_minimal_symbol): Ditto.
238 (compact_minimal_symbols): Ditto.
239 (find_solib_trampoline_target): Ditto.
240 * mdebugread.c (parse_type): Ditto.
241 * language.c (set_language_command): Ditto.
242 (set_type_command, set_range_command): Ditto.
243 * f-lang.c (add_common_block): Ditto.
244 (add_common_block): Ditto.
245 (find_first_common_named): Ditto.
246 (patch_all_commons_by_name): Ditto.
247 * elfread.c (elf_locate_sections): Ditto.
248 (elf_locate_sections): Ditto.
249 (elfstab_offset_sections): Ditto.
250 * dwarf2read.c (dwarf2_locate_sections): Ditto.
251 * dbxread.c (add_old_header_file): Ditto.
252 (find_corresponding_bincl_psymtab): Ditto.
253 (read_dbx_symtab, process_one_symbol): Ditto.
254 * coffread.c (patch_opaque_types): Ditto.
255 * cli/cli-decode.c (delete_cmd): Ditto.
256 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
257 * c-typeprint.c (c_type_print_base): Ditto.
258 * breakpoint.c (bpstat_stop_status): Ditto.
259 (clear_command, breakpoint_re_set_one): Ditto.
261 2003-11-07 Andrew Cagney <cagney@redhat.com>
263 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
264 * bcache.c (struct bstring): Make "length" an unsigned short, add
266 (struct bcache): Add "half_hash_error_count".
267 (bcache): Compute and save the "half_hash". Compare the
268 "half_hash" before comparing the length. Update
269 half_hash_error_count.
271 2003-11-07 Andrew Cagney <cagney@redhat.com>
273 * inftarg.c (child_xfer_partial): New function
274 (init_child_ops): Set "to_xfer_partial".
276 2003-11-07 Andrew Cagney <cagney@redhat.com>
278 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
279 set "return_value" instead of "use_struct_convention".
280 (ppc_linux_use_struct_convention): Delete function.
281 (ppc_linux_return_value): New function.
282 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
283 (ppc_sysv_abi_broken_return_value): New function.
284 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
285 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
287 (ppc_sysv_abi_extract_return_value): Delete function.
288 (ppc_sysv_abi_broken_extract_return_value): Delete function.
289 (ppc_sysv_abi_store_return_value): Delete function.
290 (ppc_sysv_abi_broken_store_return_value): Delete function.
291 (ppc_sysv_abi_use_struct_convention): Delete function.
292 (ppc64_sysv_abi_use_struct_convention): Delete function.
293 (ppc64_sysv_abi_extract_return_value): Delete function.
294 (ppc64_sysv_abi_store_return_value): Delete function.
295 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
296 (ppcnbsd_init_abi): Set "return_value", instead of
297 "use_struct_convention", "extract_return_value", and
298 "store_return_value".
299 (ppcnbsd_use_struct_convention): Delete function.
300 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
301 (ppc_sysv_abi_return_value): Declare.
302 (ppc_sysv_abi_broken_return_value): Declare.
303 (ppc_sysv_abi_use_struct_convention): Delete.
304 (ppc_sysv_abi_store_return_value): Delete.
305 (ppc_sysv_abi_extract_return_value): Delete.
306 (ppc_sysv_abi_broken_store_return_value): Delete.
307 (ppc_sysv_abi_broken_extract_return_value): Delete.
308 (ppc64_sysv_abi_use_struct_convention): Delete.
309 (ppc64_sysv_abi_extract_return_value): Delete.
310 (ppc64_sysv_abi_store_return_value): Delete.
311 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
312 set "return_value" instead of "extract_return_value",
313 "store_return_value", and "use_struct_convention".
315 2003-11-07 Mark Kettenis <kettenis@gnu.org>
317 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
319 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
322 2003-11-07 Mark Kettenis <kettenis@gnu.org>
324 * fbsd-proc.c: Fix formatting.
326 2003-11-06 Kevin Buettner <kevinb@redhat.com>
328 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
330 (new_variant): Set name for iacc0_regnum.
331 (frv_register_name): Accommodate pseudo-registers.
332 (frv_register_type): Add case for iacc0_regnum.
333 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
334 (frv_gdbarch_init): Set number of pseudo registers. Establish
335 pseudo-register read/write methods.
337 2003-11-06 Andrew Cagney <cagney@redhat.com>
339 * valops.c (destructor_name_p): Replace STREQN with strncmp.
340 * top.c (command_line_input): Ditto.
341 * objc-exp.y (yylex): Ditto.
342 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
343 * jv-exp.y (yylex): Ditto.
344 * f-exp.y (yylex): Ditto.
345 * event-top.c (command_line_handler): Ditto.
346 * environ.c (get_in_environ): Ditto.
347 (set_in_environ): Ditto.
348 * dwarfread.c (handle_producer): Ditto.
349 * dbxread.c (process_one_symbol): Ditto.
350 * c-typeprint.c (c_type_print_base): Ditto.
351 * c-exp.y (yylex): Ditto.
353 2003-11-06 Andrew Cagney <cagney@redhat.com>
354 Jeff Johnston <jjohnstn@redhat.com>
356 * target.c (add_target): Only set "to_xfer_partial" when NULL.
357 (init_dummy_target): Set "to_xfer_partial".
359 2003-11-06 Andrew Cagney <cagney@redhat.com>
361 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
364 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
366 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
369 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
371 * breakpoint.c (remove_breakpoint): Take an bp_location
372 instead of a breakpoint argument. Check the bp_location's type.
373 Fix a reversed condition for hardware breakpoints.
375 (insert_bp_location): Update call to remove_breakpoint.
376 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
377 (remove_hw_watchpoints): Likewise.
378 (reattach_breakpoints): Likewise.
379 (detach_breakpoints): Likewise.
380 (delete_breakpoint): Likewise.
382 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
384 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
385 (beakpoint_init_inferior): Likewise.
386 (breakpoint_here_p): Likewise. Only check addresses for software
387 or hardware breakpoints.
388 (breakpoint_inserted_here_p): Likewise.
389 (breakpoint_thread_match): Likewise. Correct comment.
390 (bpstat_have_active_hw_watchpoints): Likewise.
391 (check_duplicates): Likewise.
393 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
395 * breakpoints.c (insert_bp_location): New function, broken out
396 from insert_breakpoints. Work on an bp_location instead of a
398 (insert_breakpoints): Use it.
400 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
402 * breakpoint.h (struct bp_location): Add section.
403 (struct breakpoint): Remove section.
404 * breakpoint.c (insert_breakpoints, remove_breakpoint)
405 (breakpoint_here_p, breakpoint_inserted_here_p)
406 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
407 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
408 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
411 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
413 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
414 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
416 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
418 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
419 arguments. Initialize owner and type for the new breakpoint
421 (set_raw_breakpoint): Update call to allocate_bp_location.
423 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
425 * breakpoint.h (struct bp_location): Add a chain pointer.
426 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
428 (bp_location_chain): New variable.
429 (allocate_bp_location): New function.
430 (set_raw_breakpoint): Use it.
431 (delete_breakpoint): Remove ->loc from the bp_location_chain.
433 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
435 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
436 (struct breakpoint): Remove address, shadow_contents, inserted,
437 requested_address, and duplicate. Add a struct bp_location.
438 * breakpoint.c (condition_command, read_memory_nobpt)
439 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
440 (reattach_breakpoints, update_breakpoints_after_exec)
441 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
442 (breakpoint_init_inferior, breakpoint_here_p)
443 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
444 (breakpoint_thread_match, bpstat_stop_status)
445 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
446 (describe_other_breakpoints, check_duplicates)
447 (make_breakpoint_permanent, create_thread_event_breakpoint)
448 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
449 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
450 (watch_command_1, print_one_exception_catchpoint)
451 (clear_command, breakpoint_re_set_one): Adjust member accesses to
452 use the breakpoint's ->loc.
453 (set_raw_breakpoint): Likewise. Initialize ->loc.
454 (delete_breakpoint): Likewise. Free ->loc.
456 2003-11-05 Andrew Cagney <cagney@redhat.com>
458 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
460 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
461 * config/i386/tm-cygwin.h
462 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
463 * config/powerpc/tm-linux.h
464 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
465 (at_subroutine_call_instruction_target): Delete declaration.
466 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
467 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
468 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
470 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
471 "struct bfd_section" and "struct bfd".
472 * target.h (struct section_table): Ditto.
473 * rs6000-nat.c (xcoff_relocate_core): Ditto.
474 * solib-svr4.c (elf_locate_base): Ditto.
475 * pa64solib.c (dld_cache_t): Ditto.
476 * objfiles.h (struct obj_section): Ditto.
477 * objfiles.c (add_to_objfile_sections): Ditto.
478 * exec.c (bfdsec_to_vmap): Ditto.
479 (add_to_section_table): Ditto.
480 (build_section_table): Ditto.
481 * corelow.c (get_core_register_section): Ditto.
482 * coffread.c (find_linenos): Ditto.
483 * elfread.c (elf_interpreter): Delete #if0'd function.
485 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
486 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
487 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
488 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
490 * arch-utils.h (generic_cannot_extract_struct_value_address):
492 * wince.c (_initialize_wince): Fix multi-line string.
493 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
495 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
497 * top.c (execute_command): Fix broken logic for command execution
498 while inferior is running in async mode.
500 2003-11-06 Mark Kettenis <kettenis@gnu.org>
502 * dwarf2-frame.c (execute_cfa_program): Mark register as
503 REG_SAVED_REG for DW_CFA_register opcode.
505 2003-11-05 Mark Kettenis <kettenis@gnu.org>
507 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
508 %rsp, %rip and %eflags to match ABI-change.
510 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
512 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
513 (ia64_gdbarch_init): Don't bother calculating the os.
514 Instead use the gdbarch_info struct and look at the osabi field.
515 Also use gdbarch_list_lookup_by_info() to look for a
518 2003-11-05 Kevin Buettner <kevinb@redhat.com>
520 * frv-tdep.c (frv_register_byte): Delete.
521 (frv_extract_return_value, frv_store_return_value)
522 (frv_extract_struct_value_address): Don't call frv_register_byte().
523 Convert to non-deprecated form.
524 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
525 Convert calls to set_gdbarch_deprecated_extract_return_value(),
526 set_gdbarch_deprecated_store_return_value(), and
527 set_gdbarch_deprecated_extract_struct_value_address() into
528 non-deprecated forms.
530 2003-11-05 Andrew Cagney <cagney@redhat.com>
532 * mips-tdep.c (mips_dump_tdep): Do not print
533 PRINT_EXTRA_FRAME_INFO.
534 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
535 Rename PRINT_EXTRA_FRAME_INFO.
536 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
537 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
538 (mips_print_extra_frame_info): Delete declaration.
539 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
541 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
543 * coffread.c (coff_symtab_read): Remove passing of info parameter
544 to prim_record_minimal_symbol_and_info.
546 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
548 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
549 (decode_base_type): Delete ifdeffed out code.
551 2003-11-04 Andrew Cagney <cagney@redhat.com>
553 * symtab.c (find_active_alias): Delete function.
554 (lookup_block_symbol): Delete alias code.
555 * stabsread.c (resolve_live_range): Delete function.
556 (add_live_range): Delete function.
557 (resolve_symbol_reference): Delete function.
558 (define_symbol): Delete live range and alias code.
559 (scan_file_globals): Delete alias code.
560 * symtab.h (SYMBOL_RANGES): Delete macro.
561 (struct range_list): Delete structure.
562 (struct symbol): Delete field "ranges".
563 (SYMBOL_ALIASES): Delete macro.
564 (struct alias_list): Delete structure.
565 (struct symbol): Delete field "aliases".
567 2003-11-04 Michael Snyder <msnyder@redhat.com>
569 * MAINTAINERS: Remove myself as owner of breakpoints and
572 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
574 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
575 (sh_sh4al_dsp_register_name): Ditto.
576 (sh4_nofpu_show_regs): Ditto.
577 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
578 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
580 2003-11-03 Andrew Cagney <cagney@redhat.com>
582 * bcache.c: Include "gdb_assert.h".
583 (struct bcache): Add fields "expand_count" and
585 (expand_hash_table): Update the expand counts.
586 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
587 on object sizes and hashes.
588 * Makefile.in (bcache.o): Update dependencies.
590 2003-11-03 Andrew Cagney <cagney@redhat.com>
592 * exec.c (xfer_memory): Eliminate xfer_fn.
594 2003-10-31 Kevin Buettner <kevinb@redhat.com>
596 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
597 (opcodes/frv-desc.h): Include.
598 (iacc0h_regnum, iacc0l_regnum): Define.
599 (last_spr_regnum, frv_num_regs): Update.
600 (new_variant): Don't supply default names for holes in the SPRs.
601 Supply names for iacc0h_regnum and iacc0l_regnum.
602 (frv_register_type): Use symbolic constants first_fpr_regnum and
603 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
604 builtin_type_int instead of builtin_type_int32.
605 (frv_register_sim_regno): New function.
606 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
607 * Makefile.in (gdb_sim_frv_h): Define.
608 (frv-tdep.o): Update dependencies.
610 2003-10-31 Andrew Cagney <cagney@redhat.com>
612 * avr-tdep.c (avr_frame_this_id): Do not call
613 deprecated_inside_entry_file.
614 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
615 * m32r-tdep.c (m32r_frame_this_id): Ditto.
616 * d10v-tdep.c (d10v_frame_this_id): Ditto.
617 * arm-tdep.c (arm_prologue_this_id): Ditto.
618 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
620 2003-10-31 Jim Blandy <jimb@redhat.com>
622 * elfread.c (elf_symtab_read): Allocate correct number of tail
623 elements to sectinfo structure. (Fix from Woody LaRue.)
625 2003-10-31 Andrew Cagney <cagney@redhat.com>
627 * stack.c (return_command): Use get_frame_type, instead of
628 CALL_DUMMY_HAS_COMPLETED.
629 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
630 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
632 2003-10-31 Mark Kettenis <kettenis@gnu.org>
634 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
635 explicitly specify size of array.
636 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
639 2003-10-31 Andrew Cagney <cagney@redhat.com>
641 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
643 (s390_gdbarch_init): Set extract_struct_value_address.
644 * arch-utils.c (generic_cannot_extract_struct_value_address):
646 * arch-utils.h (generic_cannot_extract_struct_value_address):
649 2003-10-31 Mark Kettenis <kettenis@gnu.org>
651 * i386-linux-nat.c (fetch_core_registers): Remove.
652 (linux_elf_core_fns): Remove.
653 (_initialize_i386_linux_nat): Remove.
655 2003-10-31 Andrew Cagney <cagney@redhat.com>
657 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
659 (exec_entry_point): New function.
660 (enable_break): Create a "tmp_bfd_target", use that and
661 entry_point_address when computing the relocation offset.
662 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
663 * Makefile.in (solib-svr4.o): Update dependencies.
665 2003-10-31 Andrew Cagney <cagney@redhat.com>
667 * defs.h (XZALLOC): Define.
668 * target.h (struct target_ops): Add "to_data";
669 * bfd-target.h, bfd-target.c: New files.
670 * Makefile.in (SFILES): Add "bfd-target.c".
671 (COMMON_OBS): Add "bfd-target.o".
672 (bfd-target.o): Specify dependencies.
673 (bfd_target_h): Define.
674 * defs.h (XZALLOC): Define.
676 2003-10-31 Andrew Cagney <cagney@redhat.com>
678 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
679 adjust_breakpoint_address.
680 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
681 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
682 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
683 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
685 2003-10-31 Andrew Cagney <cagney@redhat.com>
687 * target.h (struct target_ops): Replace "to_read_partial" and
688 "to_write_partial" with "to_xfer_partial". Update comments.
689 * target.c (debug_to_write_partial): Delete function.
690 (debug_to_xfer_partial): Replace debug_to_read_partial.
691 (add_target, update_current_target, setup_target_debug): Set
692 "to_xfer_partial" instead of "to_read_partial" and
694 (default_xfer_partial): Replace "default_write_partial".
695 (default_read_partial): Delete.
696 (target_read_partial, target_write_partial): Call
698 * remote.c (init_remote_ops): Set "to_xfer_partial".
699 (init_remote_async_ops): Ditto.
700 (remote_xfer_partial): Replace "remote_read_partial".
702 2003-10-31 Mark Kettenis <kettenis@gnu.org>
704 * i386-tdep.c (i386_supply_fpregset): Support floating-point
705 registers in `fxsave' format.
706 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
708 2003-10-30 Mark Kettenis <kettenis@gnu.org>
710 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
711 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
712 TDEP->gregset_num_regs and tdep->sizeof_gregset.
714 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
715 specify size of array.
716 (i386_linux_init_abi): Remove initialization of
717 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
718 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
720 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
721 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
724 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
727 2003-10-29 Mark Kettenis <kettenis@gnu.org>
729 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
730 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
733 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
735 * corelow.c: Include "arch-utils.h", "regset.h" and
737 (core_gdbarch): New variable.
738 (sniff_core_bfd): Don't sniff if we have support for register sets
740 (core_close): Reset CORE_GDBARCH.
741 (core_open): Initialize CORE_GDBARCH.
742 (get_core_register_section): Use register sets if they are
743 supported by CORE_GDBARCH.
744 (get_core_registers): Don't print error message if we have support
745 for register sets in CORE_GDBARCH.
747 2003-10-29 Andrew Cagney <cagney@redhat.com>
749 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
750 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
752 2003-10-29 Mark Kettenis <kettenis@gnu.org>
754 * objfiles.h (clear_objfile_data): New prototype.
755 * objfiles.c (clear_objfile_data): New function.
756 * symfile.c (reread_symbols): Clear per-objfile data.
758 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
760 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
761 printf_unfiltered instead of printf_filtered for output messages.
762 (add_symbol_file_command): Ditto.
763 (reread_symbols): Ditto.
764 (overlay_auto_command): Ditto.
765 (overlay_manual_command): Ditto.
766 (overlay_off_command): Ditto.
768 2003-10-27 Mark Kettenis <kettenis@gnu.org>
770 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
771 (gdbarch_from_bfd): New function.
772 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
773 deprecated_select_gdbarch_hack.
774 * arch-utils.h (gdbarch_from_bfd): New prototype.
776 2003-10-27 Andrew Cagney <cagney@redhat.com>
778 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
779 arch_info. Use warning instead of fprintf_filtered. Do not use
780 deprecated bfd_printable_arch_mach.
782 2003-10-26 Kevin Buettner <kevinb@redhat.com>
784 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
786 (frv_register_type): Rename from frv_register_virtual_type. Add
787 ``struct gdbarch *'' parameter.
788 (frv_gdbarch_init): Delete calls to the following functions:
789 set_gdbarch_deprecated_size(),
790 set_gdbarch_deprecated_register_bytes(),
791 set_gdbarch_deprecated_register_raw_size(),
792 set_gdbarch_deprecated_max_register_raw_size(),
793 set_gdbarch_deprecated_register_virtual_size(),
794 set_gdbarch_deprecated_max_register_virtual_size(),
795 set_gdbarch_deprecated_register_virtual_size(),
796 set_gdbarch_deprecated_register_virtual_type().
797 Add call to function set_gdbarch_register_type().
799 2003-10-26 Mark Kettenis <kettenis@gnu.org>
801 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
802 FDOFF_REGNUM): Remove defines.
803 * win32-nat.c (do_child_fetch_inferior_registers): Include
805 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
806 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
807 undefine I387_ST0_REGNUM.
809 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
810 * x86-64-tdep.c (x86_64_store_return_value): Use
811 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
813 Change register numbers to enumartion values.
814 * i386-tdep.h (enum i386_regnum): New.
815 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
816 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
817 I386_ST0_REGNUM): Remove defines.
818 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
819 I386_EDI_REGNUM): Remove defines.
821 2003-10-24 Andrew Cagney <cagney@redhat.com>
823 * target.c: Include "gdbcore.h".
824 (get_target_memory, get_target_memory_unsigned): New functions.
825 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
826 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
827 Use get_target_memory_unsigned.
828 * Makefile.in (target.o): Update dependencies.
830 2003-10-24 Andrew Cagney <cagney@redhat.com>
832 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
833 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
834 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
835 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
836 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
838 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
839 (can_run_code_for): Use the OO term "singleton".
841 2003-10-23 Andrew Cagney <cagney@redhat.com>
843 * Makefile.in (stack.o): Add $(regcache_h).
844 * stack.c: Include "regcache.h"
845 (return_command): Rewrite. Use get_frame_id and
846 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
847 about unhandled return-values.
848 * value.h (set_return_value): Delete declaration.
849 * values.c (set_return_value): Delete function.
851 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
853 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
854 (pseudo_regs): Add comment regarding register stack registers.
855 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
856 (floatformat_valid): New static routine.
857 (floatformat_ia64_ext): Add name field and set up is_valid routine
858 to floatformat_valid().
859 (examine_prologue): For the previous cfm, use
860 frame_unwind_register()
861 if the cfm is not stored in a register-stack register. Save the
862 previous cfm value in the prev_cfm field. Add debug output.
863 (ia64_frame_this_id): Use frame_id_build_special() to also register
864 the bsp. Add debug output.
865 (ia64_sigtramp_frame_this_id): Ditto.
866 (ia64_frame_prev_register): Look at cache saved_regs for a few more
867 registers and also add some checks for framelessness before accepting
868 current register values for fields such as return address. For cfm,
869 use the cached prev_cfm field if available. Add comment to explain
870 PSR logic. Add debug output.
871 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
872 as part of initialization.
873 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
874 calculated. Cache the bsp and cfm values.
875 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
876 instead of using ia64_frame_prev_register() which doesn't expect most
877 registers to be saved. The saved values for bsp and sp
878 can be taken from the cache. Add debug output.
879 (ia64_push_dummy_call): Use frame_id_build_special() to also register
882 2003-10-23 Jim Blandy <jimb@redhat.com>
884 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
885 architecture the current arch can run code for --- but not if it's
887 (can_run_code_for): New function.
889 2003-10-22 James E Wilson <wilson@specifixinc.com>
891 * MAINTAINERS: Move myself from paper trail section back to write
892 after approval section.
894 2003-10-22 Andrew Cagney <cagney@redhat.com>
897 * win32-nat.c: Include "exec.h".
898 * solib.c: Include "exec.h".
899 * target.h (build_section_table): Delete declaration.
900 * somsolib.c: Include "exec.h".
901 (exec_ops): Delete extern declaration.
902 * rs6000-nat.c: Update copyright. Include "exec.h".
903 (exec_ops): Delete extern declaration.
904 * pa64solib.c: Update copyright. Include "exec.h".
905 (exec_ops): Delete extern declaration.
906 * exec.c: Update copyright. Include "exec.h".
907 * corelow.c: Update dependencies. Include "exec.h".
908 * Makefile.in (exec_h): Define.
909 (exec.o, somsolib.o): Update dependencies.
910 (pa64solib.o, corelow.o): Update dependencies.
912 2003-10-22 Andrew Cagney <cagney@redhat.com>
914 * target.c: Include "gdb_assert.h" (target_read): Call
915 "target_read_partial", not "target_write_partial".
916 (default_read_partial, default_write_partial): New function.
917 (target_read_partial, target_write_partial): Simplify, assume that
918 there is always a read/write method.
919 (update_current_target, add_target): Always set "to_read_partial"
920 and "to_write_partial".
921 (target_write, target_read): Fail on a zero byte transfer.
922 * Makefile.in (target.o): Update dependencies.
923 * target.h: Update copyright date.
924 (target_object): Fix typo.
926 2003-10-22 Andrew Cagney <cagney@redhat.com>
928 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
929 multi-arch method, add "targ" parameter.
930 (struct target_ops): Declare.
931 * gdbarch.h, gdbarch.c: Re-generate.
932 * Makefile.in (c-valprint.o): Update dependencies.
933 * arch-utils.h: Update copyright.
934 (convert_from_func_ptr_addr_identity): Declare.
935 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
936 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
937 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
938 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
939 * infcall.c (find_function_addr, call_function_by_hand): Update.
940 * c-valprint.c: Include "target.h".
941 (print_function_pointer_address): Update.
943 2003-10-22 Andrew Cagney <cagney@redhat.com>
945 * target.c (target_close): New function.
946 (debug_to_close): Use "target_close".
947 (push_target): Use "target_close".
948 (unpush_target): Use "target_close".
949 (pop_target): Use "target_close".
950 * target.h (struct target_ops): Add "to_xclose".
951 (target_open): Delete macro. Move comment to "to_open".
952 (target_close): Replace macro with function that takes a target.
953 * top.c (quit_target): Pass "current_target" to "target_close".
955 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
957 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
958 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
959 * symtab.h (lookup_minimal_symbol_text): Update.
960 * breakpoint.c (create_overlay_event_breakpoint,
961 create_longjmp_breakpoint): Update callers.
962 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
963 * symtab.c (find_pc_sect_line): Ditto.
965 2003-10-21 Andrew Cagney <cagney@redhat.com>
967 * target.c (errno): Delete extern declaration.
969 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
971 * ia64-tdep.c: Change all occurrences of
972 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
973 (ia64_frame_prev_register): Minor whitespace change.
975 2003-10-20 Michael Chastain <mec@shout.net>
977 * config/djgpp/fnchange.lst: Add lines for:
978 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
979 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
980 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
981 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
982 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
983 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
984 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
986 2003-10-20 Andrew Cagney <cagney@redhat.com>
988 * values.c (register_value_being_returned): Update comments. Use
989 "gdbarch_return_value" when available.
990 (using_struct_return): Ditto.
991 (set_return_value): Ditto. Use "gdbarch_return_value" when
992 available.. Print a warning, and not an error, when an unhandled
993 return type is encountered.
994 * infcmd.c: Include "gdb_assert.h".
995 (print_return_value): When gdbarch_return_value_p, and using
996 struct return, assume that the value is not available.
997 * defs.h (return_value_convention): Define.
998 * gdbarch.sh (gdbarch_return_value): New predicate method.
999 * gdbarch.h, gdbarch.c: Re-generate
1000 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1002 2003-10-20 Andrew Cagney <cagney@redhat.com>
1004 * symtab.c: Replace "struct sec" with "struct bfd_section".
1005 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1007 2003-10-19 Michael Chastain <mec@shout.net>
1009 * config/djgpp/fnchange.lst: Add lines for:
1010 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1011 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1012 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1014 2003-10-19 Mark Kettenis <kettenis@gnu.org>
1016 * amd64fbsd-nat.c (fetch_inferior_registers,
1017 store_inferior_registers): Remove functions.
1018 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1020 2003-10-18 Mark Kettenis <kettenis@gnu.org>
1022 Add NetBSD/amd64 native configuration:
1023 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1024 * amd64nbsd-tdep.c: New file.
1025 * amd64nbsd-nat.c: New file.
1026 * amd64bsd-nat.c: New file.
1027 * config/i386/nbsd64.mh: New file.
1028 * config/i386/nbsd64.mt: New file.
1029 * configure.host: Add x86_64-*-netbsd*.
1030 * configure.tgt: Add x86_64-*-netbsd*.
1031 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1033 * NEWS (New native configurations): Mention NetBSD/amd64.
1035 2003-10-17 Michael Chastain <mec@shout.net>
1037 * config/djgpp/fnchange.lst: Remove dead lines for:
1038 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1039 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1040 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1041 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1042 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1043 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1044 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1045 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1046 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1047 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1048 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1049 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1050 gdb/config/sparc/tm-sparclite.h,
1051 gdb/gdbtk/generic/ChangeLog-2001,
1052 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1053 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1054 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1055 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1056 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1057 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1058 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1059 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1060 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1061 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1062 itcl/iwidgets3.0.0/demos/fileselectionbox,
1063 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1064 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1065 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1066 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1067 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1068 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1069 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1070 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1071 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1072 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1073 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1074 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1075 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1076 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1077 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1078 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1079 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1080 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1081 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1082 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1083 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1084 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1085 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1086 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1087 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1088 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1089 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1090 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1091 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1092 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1093 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1094 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1095 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1096 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1097 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1098 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1099 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1100 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1101 itcl/iwidgets3.0.0/demos/scrolledframe,
1102 itcl/iwidgets3.0.0/demos/scrolledhtml,
1103 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1104 itcl/iwidgets3.0.0/demos/scrolledtext,
1105 itcl/iwidgets3.0.0/demos/selectionbox,
1106 itcl/iwidgets3.0.0/demos/selectiondialog,
1107 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1108 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1109 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1110 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1111 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1112 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1113 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1114 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1115 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1116 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1117 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1118 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1119 itcl/iwidgets3.0.0/doc/selectionbox.n,
1120 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1121 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1122 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1123 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1124 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1125 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1126 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1127 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1128 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1129 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1130 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1131 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1132 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1133 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1134 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1135 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1136 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1137 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1138 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1139 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1140 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1141 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1142 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1143 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1144 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1145 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1146 itcl/iwidgets3.0.0/tests/selectionbox.test,
1147 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1148 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1149 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1150 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1151 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1152 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1153 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1154 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1155 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1156 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1157 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1158 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1159 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1160 tk/mac/tkMacProjects.sit.hqx.
1162 2003-10-17 Andrew Cagney <cagney@redhat.com>
1164 * target.c (target_section_by_addr): New function.
1165 (do_xfer_memory): Use "target_section_by_addr".
1166 * target.h (target_section_by_addr): Declare.
1168 * target.h (struct target_ops): Add "to_read_partial" and
1169 "to_write_partial", delete "to_query".
1170 (target_read_partial, target_write_partial): Declare.
1171 (target_read, target_write): Declare.
1172 (target_query): Delete macro.
1173 * target.c (target_read_partial): New function.
1174 (target_write_partial, target_read, target_write): New function.
1175 (update_current_target): Delete inheritance of "to_query". Add
1176 comments about "to_read_partial" and "to_write_partial".
1177 (debug_to_partial_read, debug_to_partial_write): New functions.
1178 (debug_to_query): Delete function.
1179 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1180 instead of "to_query".
1181 * remote.c (remote_read_partial): Replace "remote_query".
1182 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1183 (init_remote_async_ops): Ditto.
1184 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1185 "target_read_partial" instead of "target_query".
1186 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1187 Use "target_read_partial" instead of "target_query".
1189 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1191 * frame.h (struct frame_id): Add new field: special_addr.
1192 (frame_id_build_special): New prototype.
1193 * frame.c (frame_id_build_special): New function.
1194 (frame_id_build): Change to call frame_id_build_special().
1195 (frame_id_eq): Change to also test special_addr field.
1196 (frame_id_inner): Update comment.
1198 2003-10-17 Andrew Cagney <cagney@redhat.com>
1200 * target.c (update_current_target): Perform the target cleanup.
1201 Put the target stack beneath the squashed "current_target".
1202 (add_target): Delete disabled call to "cleanup_target".
1203 (cleanup_target): Delete function.
1204 (push_target, unpush_target): Do not call "cleanup_target".
1206 2003-10-17 Andrew Cagney <cagney@redhat.com>
1208 * target.c (target_stack): Change to a static target_ops.
1209 (update_current_target): Walk the "struct target_ops" stack.
1210 (pop_target, do_xfer_memory, target_info): Ditto.
1211 (find_target_beneath): Ditto.
1212 (push_target): Rewrite to use the "struct target_ops" stack.
1213 (unpush_target): Ditto.
1214 * target.h (struct target_stack_item): Delete definition.
1215 (target_stack): Delete declaration.
1216 (struct target_ops): Add field "beneath".
1218 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1220 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1222 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1223 (h8300_examine_prologue): Use h8300_normal_mode flag
1224 (h8300_gdbarch_init): Set architecture info for normal mode
1226 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1228 * remote.c (remote_protocol_vcont): New variable.
1229 (set_remote_protocol_vcont_packet_cmd): New function.
1230 (show_remote_protocol_vcont_packet_cmd): New function.
1231 (init_all_packet_configs): Handle remote_protocol_vcont.
1232 (remote_vcont_probe): New function.
1233 (remote_vcont_resume): New function.
1234 (remote_resume): Use it.
1235 (remote_async_resume): Call remote_resume.
1236 (_initialize_remote): Add verbose-resume packet commands.
1238 2003-10-16 Andrew Cagney <cagney@redhat.com>
1240 * infrun.c (handle_inferior_event): Add comment about
1241 "frame_id_inner" being too weak.
1243 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1245 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1246 second parameter, which is always null. Remove
1247 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1248 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1250 * somsolib.c (som_solib_create_inferior_hook,
1251 som_solib_desire_dynamic_linker_symbols): Update callers.
1252 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1254 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1256 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1257 debug interface, SDI (Scalable Debug Interface).
1258 * NEWS: Mention m32r SDI protocol was supported.
1259 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1260 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1262 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1264 * ia64-linux-tdep.c: Include gdbcore.h.
1265 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1266 (ia64_linux_sigcontext_register_addr): Find the address of the
1267 sigcontext area stored in the sigframe instead of using
1268 a magic offset constant.
1270 2003-10-15 Andrew Cagney <cagney@redhat.com>
1272 * remote.c (remote_search): Delete function.
1273 * target.h (target_search): Delete disabled macro.
1274 (struct target_ops): Delete disabled field "to_search".
1276 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1278 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1279 instead of deprecated_inside_entry_file().
1281 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1283 * sh-tdep.c: Fix copy/paste hangover in comment.
1284 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1286 (sh3e_sh4_extract_return_value): Ditto.
1288 2003-10-13 Richard Henderson <rth@redhat.com>
1290 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1291 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1292 match c_val_print a bit closer.
1294 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1296 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1297 (frv_gdbarch_adjust_breakpoint_address): New function.
1298 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1301 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1303 * breakpoint.h (struct breakpoint): Add new member
1304 ``requested_address''.
1305 * breakpoint.c (breakpoint_adjustment_warning)
1306 (adjust_breakpoint_address): New static functions.
1307 (print_it_typical): Issue warning if breakpoint's address is different
1308 from its requested address.
1309 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1310 (breakpoint_re_set_one): Set breakpoint's
1311 ``requested_address'' field. Set ``address'' field to the
1312 result of calling adjust_breakpoint_address() on the requested
1315 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1317 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1318 * gdbarch.h, gdbarch.c: Regenerate.
1320 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1322 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1325 * i386fbsd-tdep.c: New file.
1326 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1327 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1328 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1330 (_initialize_i386fbsd_tdep): New function.
1331 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1332 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1333 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1334 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1336 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1337 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1338 to initialize TDEP->sc_num_regs.
1339 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1340 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1341 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1342 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1343 FreeBSD ELF OS/ABI's here.
1344 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1345 (i386fbsd-tdep.o): New target.
1346 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1347 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1349 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1350 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1351 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1352 in initialization of TDEP->sc_num_regs.
1354 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1355 (x86_64_init_abi): Initialize regset_from_core_section if
1358 * i386-tdep.c (i386_regset_from_core_section): New function.
1359 (i386_gdbarch_init): Initialize regset_from_core_section if
1361 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1363 * i386-tdep.h (struct regset): Declare opaque.
1365 * gdbarch.sh (regset_from_core_section): New method.
1366 (struct regset): Declare opaque.
1367 * gdbarch.c, gdbarch.h: Regenerated.
1369 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1371 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1372 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1373 Correct test for pc within section.
1375 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1377 * gdbarch.sh: Remove trailing whitepsace from comments.
1379 2003-10-08 Roland McGrath <roland@redhat.com>
1381 * gcore.c (make_mem_sec): Function removed, folded into ...
1382 (gcore_create_callback): ... here. To omit a section, clear its
1383 SEC_LOAD bit rather than zeroing its size.
1384 Omit read-only sections only if they correspond to a known disk file.
1385 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1387 2003-10-10 Michael Snyder <msnyder@redhat.com>
1389 * d10v-tdep.c: Fix typo in comment.
1391 2003-10-10 Andrew Cagney <cagney@redhat.com>
1393 * rs6000-tdep.c (e500_store_return_value): Delete function.
1394 (e500_extract_return_value): Delete function.
1395 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1396 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1397 "ppc_sysv_abi_restore_return_value" where applicable.
1398 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1399 (ppc_sysv_abi_extract_return_value): Declare.
1400 (ppc_sysv_abi_broken_store_return_value): Declare.
1401 (ppc_sysv_abi_broken_extract_return_value): Declare.
1402 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1403 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1405 (do_ppc_sysv_return_value): New function.
1406 (ppc_sysv_abi_extract_return_value): New function.
1407 (ppc_sysv_abi_store_return_value): New function.
1408 (ppc_sysv_abi_broken_extract_return_value): New function.
1409 (ppc_sysv_abi_broken_store_return_value): New function.
1410 (ppc_sysv_abi_use_struct_convention): Call
1411 do_ppc_sysv_return_value.
1413 2003-10-10 J. Brobecker <brobecker@gnat.com>
1415 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1416 to lookup the main function symbol.
1418 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1420 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1422 (sh_push_dummy_call_fpu): Fix argument passing rules.
1423 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1425 (sh3e_sh4_store_return_value): Ditto.
1427 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1429 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1432 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1434 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1435 more readable code. Accomodate passing of bitfields.
1437 2003-10-10 Andrew Cagney <cagney@redhat.com>
1439 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1440 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1441 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1442 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1443 (ppc64_sysv_abi_push_dummy_call): New function.
1444 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1445 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1446 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1448 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1450 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1452 * d10v-tdep.c: Ditto.
1453 * h8300-tdep.c: Ditto.
1454 * remote-e7000.c: Ditto.
1455 * remote-hms.c: Ditto.
1456 * ser-e7kpc.c: Ditto.
1461 * sh64-tdep.c: Ditto.
1464 * config/d10v/d10v.mt: Ditto.
1465 * config/sh/embed.mt: Ditto.
1466 * config/sh/linux.mt: Ditto.
1467 * config/sh/tm-linux.h: Ditto.
1468 * config/sh/tm-sh.h: Ditto.
1469 * config/sh/wince.mt: Ditto.
1471 2003-10-09 Andrew Cagney <cagney@redhat.com>
1473 * ppc-tdep.h (struct type): Declare opaque.
1474 * x86-64-tdep.h (struct regcache): Declare opaque.
1475 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1478 2003-10-09 Andrew Cagney <cagney@redhat.com>
1480 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1481 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1482 (SOFTWARE_SINGLE_STEP_P): Ditto.
1483 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1484 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1485 (SOFTWARE_SINGLE_STEP_P): Ditto.
1486 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1487 software_single_step to rs6000_software_single_step.
1489 2003-10-09 Andrew Cagney <cagney@redhat.com>
1491 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1493 2003-10-09 Michael Snyder <msnyder@redhat.com>
1495 * frame.h: Fix typo in comment.
1496 * dummy-frame.c: Fix typo in comment.
1497 * d10v-tdep.c: Random whitespace/comment tweaks.
1499 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1501 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1502 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1505 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1506 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1509 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1511 * remote-mips.c (mips_initialize): Remove unneeded call to
1512 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1514 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1516 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1519 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1521 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1522 for any lwp we resume.
1523 (running_callback): Add lwps that have pending status events
1524 against them to be considered running.
1526 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1528 * m32r-tdep.c : Include "dis-asm.h".
1529 * Makefile.in (m32r-tdep.o): Update dependencies.
1531 2003-10-06 J. Brobecker <brobecker@gnat.com>
1533 * completer.h (get_gdb_completer_word_break_characters): Delete.
1534 * completer.c: include language.h.
1535 (gdb_completer_word_break_characters): Delete.
1536 (get_gdb_completer_word_break_characters): Delete.
1537 (location_completer): Use the word break characters of the current
1539 (complete_line): Likewise.
1540 (line_completion_function): Likewise.
1541 (skip_quoted_chars): Likewise.
1542 * Makefile.in (completer.o): Add dependency on language.h.
1543 * top.c (init_main): Set the readline word break characters
1544 to GDB's default word break characters.
1546 2003-10-06 J. Brobecker <brobecker@gnat.com>
1548 * language.h (language_defn): new field, la_word_break_characters.
1549 * language.c (unknown_language_defn): Set new field to
1550 default_word_break_characters.
1551 (auto_language_defn): Likewise.
1552 (local_language_defn): Likewise.
1553 * ada-lang.c (ada_language_defn): Likewise.
1554 * c-lang.c (c_language_defn): Likewise.
1555 (cplus_language_defn): Likewise.
1556 (asm_language_defn): Likewise.
1557 (minimal_language_defn): Likewise.
1558 * f-lang.c (f_language_defn): Likewise.
1559 * jv-lang.c (java_language_defn): Likewise.
1560 * m2-lang.c (m2_language_defn): Likewise.
1561 * objc-lang.c (objc_language_defn): Likewise.
1562 * p-lang.c (pascal_language_defn): Likewise.
1563 * scm-lang.c (scm_language_defn): Likewise.
1565 2003-10-06 Andrew Cagney <cagney@redhat.com>
1567 * ppc-sysv-tdep.c: Re-indent.
1569 2003-10-06 J. Brobecker <brobecker@gnat.com>
1571 * language.h (default_word_break_characters): Add prototype.
1572 * language.c (default_word_break_characters): New function.
1574 2003-10-06 Andreas Schwab <schwab@suse.de>
1576 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1579 2003-10-06 Andrew Cagney <cagney@redhat.com>
1581 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1583 (z8k-tdep.o): Delete custom build rule.
1585 2003-10-06 Andrew Cagney <cagney@redhat.com>
1587 * Makefile.in: Update all dependencies.
1589 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1590 No longer list PA as as obsolete candidate. List m32r as
1591 broken instead of obsolete.
1593 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1594 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1595 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1596 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1597 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1598 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1599 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1600 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1601 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1602 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1603 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1604 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1605 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1606 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1607 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1608 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1609 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1610 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1611 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1612 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1613 * config/z8k/z8k.mt: Ditto.
1615 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1616 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1617 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1618 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1619 sparclite were removed.
1620 * configure.host, configure.tgt: Remove corresponding tuples.
1622 * breakpoint.c, breakpoint.h: Remove obsolete code.
1623 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1624 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1625 * stabsread.h, xcoffread.c: Ditto.
1627 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1628 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1629 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1630 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1632 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1634 * f-valprint.c: Reformatting
1636 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1638 * x86-64-tdep.c: Remove duplicate comment.
1640 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1641 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1642 names for return values. This fixes a bug since we looked at %rbx
1645 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1647 * x86-64-tdep.c: Include "regset.h".
1649 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1650 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1652 * i386-tdep.c: Include "regset.h".
1653 (i386_supply_gregset): New function.
1654 (i386_supply_fpregset): New function.
1655 (i386_gdbarch_init): Initialze register set-related members of
1657 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1658 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1660 2003-10-03 Andrew Cagney <cagney@redhat.com>
1662 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1663 set extract_return_value, store_return_value and
1664 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1665 ppc64_sysv_abi_store_return_value and
1666 ppc64_sysv_abi_use_struct_convention.
1667 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1668 (ppc64_sysv_abi_store_return_value): Declare.
1669 (ppc64_sysv_abi_use_struct_convention): Declare.
1670 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1671 (ppc64_sysv_abi_extract_return_value): New function.
1672 (ppc64_sysv_abi_store_return_value): New function.
1673 (ppc64_sysv_abi_use_struct_convention): New function.
1674 (ppc64_sysv_abi_return_value): New function.
1676 2003-10-03 Andrew Cagney <cagney@redhat.com>
1678 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1679 convert a descriptor to a function when it's in the ".opd"
1682 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1684 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1685 reg_size to keep GCC silent.
1687 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1689 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1690 base for DW_EH_PE_textrel encodings.
1691 (read_encoded_value): Add a DW_EH_PE_textrel case.
1692 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1695 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1697 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1699 2003-10-02 Andrew Cagney <cagney@redhat.com>
1701 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1703 * gdbarch.h, gdbarch.c: Re-generate.
1704 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1705 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1706 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1707 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1708 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1709 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1710 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1711 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1712 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1713 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1714 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1715 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1716 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1717 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1718 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1719 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1721 2003-10-02 Jim Blandy <jimb@redhat.com>
1723 * dwarf2read.c (struct die_info): Doc fix.
1725 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1727 * sh-tdep.c: Running thru gdb_indent.sh.
1729 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1731 * sh-tdep.c (sh_justify_value_in_reg): New function.
1732 (sh_stack_allocsize): Ditto.
1733 (flt_argreg_array): New array used for floating point argument
1735 (sh_init_flt_argreg): New function.
1736 (sh_next_flt_argreg): Ditto.
1737 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1738 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1739 Fix argument passing strategy.
1740 (sh_push_dummy_call_nofpu): Ditto.
1742 2003-10-01 Andrew Cagney <cagney@redhat.com>
1744 * value.h (register_value_being_returned): Declare. Replace
1745 "value_being_returned".
1746 * infcall.c (call_function_by_hand): Use
1747 register_value_being_returned.
1748 * infcmd.c (print_return_value): Call
1749 "register_value_being_returned", handle struct return locally.
1750 * values.c (register_value_being_returned): New function. Replace
1751 "value_being_returned".
1753 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1755 * linux-proc.c (linux_do_registers): New function.
1756 (linux_make_note_section): Use linux_do_registers in case of
1757 single threaded inferior programs.
1759 2003-10-01 Andrew Cagney <cagney@redhat.com>
1761 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1762 use STRUCT_ADDR. When not using "struct return convention", pass
1763 "0" to "value_being_returned". Add FIXMEs.
1764 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1765 value_being_returned. Add comments.
1766 * values.c (value_being_returned): Add fixme.
1767 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1768 (hppa_value_returned_from_stack): Add FIXME.
1770 2003-09-30 David Carlton <carlton@kealia.com>
1772 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1773 'has_children' and 'next' by 'child' and 'sibling'.
1774 (read_comp_unit): Rework algorithm, breaking body into
1775 read_die_and_children and read_die_and_siblings.
1776 (read_die_and_children, read_die_and_siblings): New.
1777 (read_full_die): Add 'has_children' argument; set it instead of
1778 the die's 'has_children' field. Minor formatting cleanup.
1779 (free_die_list): Use die->child and die->sibling instead of
1781 (dump_die_list): Ditto.
1782 (sibling_die): Use die->sibling.
1783 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1784 'has_children' and 'next' fields.
1785 (process_die, read_file_scope, read_func_scope)
1786 (read_lexical_block_scope, read_structure_scope)
1787 (read_enumeration, read_array_type, read_common_block)
1788 (read_namespace, read_subroutine_type, dump_die): Ditto.
1790 2003-09-30 Andrew Cagney <cagney@redhat.com>
1792 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1795 2003-09-30 Andrew Cagney <cagney@redhat.com>
1797 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1798 REGISTER_VIRTUAL_SIZE.
1799 * gdbarch.h, gdbarch.c: Regenerate.
1800 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1801 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1802 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1804 2003-09-29 Andrew Cagney <cagney@redhat.com>
1806 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1807 REGISTER_VIRTUAL_TYPE.
1808 * gdbarch.h, gdbarch.c: Regenerate.
1809 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1810 * sh64-tdep.c, sparc-tdep.c: Update.
1812 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1813 * remote-vxmips.c (vx_read_register): Ditto.
1814 * remote-vx68.c (vx_read_register): Ditto.
1815 * gnu-nat.c (inf_validate_procs): Ditto.
1817 2003-09-29 J. Brobecker <brobecker@gnat.com>
1819 * infcall.c (call_function_by_hand): Fix build failure
1820 introduced in the previous change to this file.
1822 2003-09-29 Andrew Cagney <cagney@redhat.com>
1824 * NEWS: Mention Objective-C.
1826 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1828 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1829 test if the register has been saved on the stack.
1830 (arm_scan_prologue_cache): When analysing the instruction
1831 "str lr, [sp, #-4]", save the address where lr has been stored.
1833 2003-09-28 Andrew Cagney <cagney@redhat.com>
1835 * frame.c (frame_read_unsigned_register): Delete function.
1836 * frame.h (frame_read_unsigned_register): Delete declaration.
1837 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1838 get_frame_register_unsigned.
1839 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1840 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1841 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1843 * frame.h (frame_read_register): Delete declaration.
1844 * frame.c (frame_read_register): Delete function.
1845 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1846 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1847 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1848 * mips-tdep.c (mips_register_to_value): Ditto.
1849 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1850 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1852 * frame.c (frame_read_signed_register): Delete function.
1853 (frame_read_unsigned_register): Update comments.
1854 * frame.h (frame_read_signed_register): Delete declaration.
1855 * h8300-tdep.c (h8300_print_register): Use
1856 get_frame_register_signed.
1857 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1859 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1860 Rename VALUE_RETURNED_FROM_STACK.
1861 * infcmd.c (print_return_value): Update.
1862 * infcall.c (call_function_by_hand): Update.
1864 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1866 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1867 regcache argument and reverse the order of the other two
1868 arguments. Remove local regcache variable. Determine
1869 architecture from REGCACHE. Update comments.
1870 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1871 reverse the order of the other two arguments. Remove local
1872 regcache variable. Determine architecture from REGCACHE. Update
1874 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1875 prototypes. Update comments.
1876 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1878 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1880 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1881 * i386-interix-nat.c (supply_fpregset): Update.
1882 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1883 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1884 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1885 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1886 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1888 * i386obsd-tdep.c (fetch_core_registers): Update.
1889 * i386v4-nat.c (supply_fpregset): Update.
1890 * x86-64-linux-nat.c (supply_fpregset): Update.
1891 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1893 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1895 * i386-tdep.h: Put opaque declarations in alphabetical
1896 order. Remove spurious whitespace.
1897 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1898 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1899 * i386-tdep.c (MM0_REGNUM): Remove define.
1900 (i386_mmx_regnum_p): Add gdbarch argument.
1901 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1902 Rewrite using new macro definitions for FPU/SSE registers.
1903 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1904 definitions from i387-tdep.h.
1905 (i386_register_name): Update.
1906 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1907 new macro definitions for FPU/SSE registers.
1908 (i386_extract_return_value): Determine whether floating-point
1909 registers are present by examining REGCACHE's architecture.
1910 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1911 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1913 (i386_register_type): Update.
1914 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1915 definitions for FPU registers. Use REGCACHE's architecture to
1916 determine the appropriate register numbers.
1917 (i386_pseudo_register_read, i386_pseudo_register_write,
1918 i386_register_reggroup_p): Update.
1919 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1921 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1922 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1923 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1924 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1925 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1926 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1928 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1929 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1930 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1931 definitions for FPU/SSE registers.
1932 (FXSAVE_MXCSR_ADDR): New define.
1933 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1935 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1936 (I387_ST0_REGNUM): Define.
1938 * regcache.h (get_regcache_arch): New prototype.
1939 * regcache.c (get_regcache_arch): New function.
1941 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1944 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1945 Initialize using ARRAY_SIZE.
1947 2003-09-27 Andrew Cagney <cagney@redhat.com>
1949 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1950 "init_frame_pc_default".
1951 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1952 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1953 * vax-tdep.c (vax_gdbarch_init): Update.
1954 * v850-tdep.c (v850_gdbarch_init): Update.
1955 * sh64-tdep.c (sh64_gdbarch_init): Update.
1956 * s390-tdep.c (s390_gdbarch_init): Update.
1957 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1958 * mcore-tdep.c (mcore_gdbarch_init): Update.
1959 * h8300-tdep.c (h8300_gdbarch_init): Update.
1960 * cris-tdep.c (cris_gdbarch_init): Update.
1961 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1963 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1965 * regset.h: New file.
1966 * Makefile.in (regset_h): Add.
1968 2003-09-25 Andrew Cagney <cagney@redhat.com>
1970 * frame.h (deprecated_frame_saved_regs): Rename
1971 get_frame_saved_regs.
1972 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1973 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1974 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1975 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1976 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1978 2003-09-25 Andrew Cagney <cagney@redhat.com>
1980 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1981 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1983 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1984 arm*-*-* do not use the new frame code.
1986 2003-09-25 David Carlton <carlton@kealia.com>
1988 * c-exp.y: Remove 'register' declarations.
1989 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1991 2003-09-25 David Carlton <carlton@kealia.com>
1993 * c-exp.y: Include cp-support.h. Add qualified_type.
1994 (yylex): Delete nested type hack; add comments.
1995 * cp-namespace.c (cp_lookup_nested_type): New function.
1996 * cp-support.h: Declare cp_lookup_nested_type.
1997 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1998 instead of value_struct_elt_for_reference.
1999 * valops.c: Include cp-support.h.
2000 (value_aggregate_elt): New function.
2001 (value_namespace_elt): Ditto.
2002 (value_struct_elt_for_reference): Make static.
2003 * value.h: Delete declaration of value_struct_elt_for_reference;
2004 add declaration for value_aggregate_elt.
2005 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2008 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
2010 * stack.c: Include "reggroups.h".
2011 (frame_info): Only display registers in all_reggroup.
2012 * Makefile.in (stack.o): Update dependencies.
2014 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2016 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2017 "add ip, sp #n" in the prologue.
2018 (arm_scan_prologue): Ditto.
2020 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2022 * MAINTAINERS (write after approval): Add myself.
2024 2003-09-25 Andreas Schwab <schwab@suse.de>
2026 * m68k-tdep.c: Include "dwarf2-frame.h".
2027 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2028 * Makefile.in (m68k-tdep.o): Update dependencies.
2030 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
2032 * sh-tdep.c (struct frame_extra_info): Remove.
2033 (struct sh_frame_cache): New structure.
2034 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2035 (GET_TARGET_REG): Ditto but target register.
2036 (GET_PUSHED_REG): Remove.
2037 (IS_MOV_ARG_TO_REG): New macro.
2038 (IS_MOV_ARG_TO_IND_R14): New macro.
2039 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2040 (IS_MOVW_PCREL_TO_REG): New macro.
2041 (IS_MOVL_PCREL_TO_REG): New macro.
2042 (IS_SUB_REG_FROM_SP): New macro.
2043 (IS_ARG_MOV): Remove.
2044 (IS_MOV_TO_R14): Remove.
2045 (IS_RESTORE_FP): New macro.
2046 (IS_RTS): New macro.
2047 (IS_LDS): New macro.
2048 (IS_MOV_FP_SP): New macro.
2049 (IS_ADD_REG_TO_FP): New macro.
2050 (IS_ADD_IMM_FP): New macro.
2051 (sh_skip_prologue_hard_way): Remove.
2052 (sh_saved_pc_after_call): Remove.
2053 (sh_frame_chain): Remove.
2054 (sh_find_callers_reg): Remove.
2055 (sh_nofp_frame_init_saved_regs): Remove.
2056 (sh_fp_frame_init_saved_regs): Remove.
2057 (sh_init_extra_frame_info): Remove.
2058 (sh_analyze_prologue): New function.
2059 (sh_skip_prologue): Remove deprecated code. Rely on new function
2060 sh_analyze_prologue when after_prologue fails.
2061 (sh_frame_saved_pc): Remove.
2062 (sh_alloc_frame_cache): New function.
2063 (sh_frame_cache): Ditto.
2064 (sh_frame_prev_register): Ditto.
2065 (sh_frame_this_id): Ditto.
2066 (sh_frame_unwind): New structure defining the heuristic frame
2068 (sh_frame_sniffer): New function.
2069 (sh_unwind_sp): Ditto.
2070 (sh_unwind_pc): Ditto.
2071 (sh_unwind_dummy_id): Ditto.
2072 (sh_frame_base_address): Ditto.
2073 (sh_frame_base): New structure defining new frame base code.
2074 (sh_in_function_epilogue_p): New function.
2075 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2076 code and to call all new code instead. Initialize dwarf2 and
2077 heuristic frame sniffer.
2079 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2081 * parser-defs.h (struct exp_descriptor): New definition, containing
2082 language-specific info for printing, prefixifying, dumping, and
2083 evaluating expressions.
2084 (exp_descriptor_standard): Declare new variable.
2085 (print_subexp): Make global and declare here (from expprint.c).
2086 (dump_subexp): Ditto.
2087 (dump_subexp_body_standard): Declare.
2088 (operator_length_standard): Declare.
2089 (op_name_standard): Declare.
2090 (print_subexp): Declare.
2091 (print_subexp_standard): Declare.
2093 * language.h (struct language_defn): Add la_exp_desc field to hold
2094 pointer to table for language-specific operators.
2095 Remove evaluate_exp field, which is now in struct exp_descriptor.
2097 * parse.c (operator_length): Move most code to new
2098 operator_length_standard function. Use language-specific information.
2099 (operator_length_standard): New function taking most code from
2101 (exp_descriptor_standard): New constant.
2103 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2104 and OP_EXTENDED_LAST.
2106 * expprint.c (print_subexp): Use language-specific print_subexp.
2107 Make global; remove static declaration.
2108 Move most code to print_subexp_standard.
2109 (print_subexp_standard): New function, containing code formerly in
2111 (op_name): Add expression to argument signature.
2112 Use langauge-specific op_name.
2113 Move most code to op_name_standard.
2114 (op_name_standard): New function, containing code formerly in op_name.
2115 (dump_subexp): Use new version of op_name function.
2116 Use language-specific dump_subexp_body, and move most existing code to
2117 dump_subexp_body_standard.
2118 (dump_raw_expression): Use new op_name interface.
2119 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2120 (dump_subexp_body_standard): New function, containing code formerly
2121 in dump_subexp_body.
2123 * language.c (unknown_language): Add default la_exp_desc field and
2124 remove evaluate_exp field.
2125 (auto_language): Ditto.
2126 (local_language): Ditto.
2127 * f-lang.c (f_language_defn): Ditto.
2128 * c-lang.c (c_language_defn): Ditto.
2129 (cplus_language_defn): Ditto.
2130 (asm_language_defn): Ditto.
2131 (minimal_language_defn): Ditto.
2132 * p-lang.c (pascal_language_defn): Ditto.
2133 * m2-lang.c (m2_language_defn): Ditto.
2134 * objc-lang.c (objc_language_defn): Ditto.
2136 * jv-lang.c (exp_descriptor_java): New variable, containing
2137 Java-specific expression evaluator.
2138 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2140 * scm-lang.c (exp_descriptor_scm): New variable, containing
2141 Scheme-specific expression evaluator.
2142 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2144 * objc-lang.c (print_object_command): Take evaluate_exp from the
2147 * Makefile.in (eval.o): Add dependency on parser-defs.h.
2149 * eval.c: Include parser-defs.h for the full declaration of
2151 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2153 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2155 * parser-defs.h (operator_length): Declare.
2157 * parse.c (length_of_subexp): Use operator_length to get operator
2158 lengths and arities for operators.
2159 Move most code to new operator_length function.
2160 (operator_length): New function absorbing most code from
2162 (prefixify_subexp): Remove large case and use operator_length instead.
2163 (parse_exp_1): Use renamings:
2164 dump_prefix_expression => dump_raw_expression and
2165 dump_postfix_expression => dump_prefix_expression.
2167 * expression.h (dump_prefix_expression): Rename to ...
2168 (dump_raw_expression): New name.
2169 (dump_postfix_expression): Rename to ...
2170 (dump_prefix_expression): New name.
2172 * expprint.c (dump_subexp): Make global. Add comment.
2173 Move most existing code to dump_subexp_body.
2174 (dump_subexp_body): New function.
2175 (dump_prefix_expression): Rename to dump_raw_expression.
2176 Remove attempt to print the expression via print_expression: it can't
2177 work before the expression is prefixified.
2178 (dump_raw_expression): Renamed from dump_prefix_expression.
2179 (dump_postfix_expression): Rename to dump_prefix_expression, since
2180 that's what it does.
2181 Remove 'note' parameter, since this routine must be used on
2182 prefixified expression.
2183 (dump_prefix_expression): Renamed from dump_postfix_expression.
2185 2003-09-22 Jim Blandy <jimb@redhat.com>
2187 * dwarf2read.c (read_array_type): When building the type for an
2188 array of unspecified length, make sure to choose the upper bound
2189 so that the array's total length comes out to be zero --- that's
2190 how we represent such arrays.
2192 2003-09-22 Michael Chastain <mec@shout.net>
2194 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2196 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2198 * top.c (quit_force): Fix indirect call to quit_target so
2199 a struct qt_args pointer is passed.
2201 2003-09-22 Andrew Cagney <cagney@redhat.com>
2203 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2204 * arch-utils.c (init_frame_pc_noop): Delete function.
2205 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2207 * mips-tdep.c (mips_gdbarch_init): Ditto.
2208 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2209 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2211 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2212 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2214 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2216 2003-09-22 Anthony Green <green@redhat.com>
2218 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2221 2003-09-20 Andrew Cagney <cagney@redhat.com>
2223 * breakpoint.c: Eliminate ARGSUSED.
2224 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2225 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2226 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2227 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2228 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2229 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2230 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2231 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2232 * wince.c, remote-vx.c: Ditto.
2234 * cli/cli-script.c: Remove "register" attributes.
2235 * config/pa/tm-hppa.h: Ditto.
2236 * cli/cli-decode.c: Ditto.
2237 * cli/cli-cmds.c: Ditto.
2239 2003-09-19 Andrew Cagney <cagney@redhat.com>
2241 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2242 DEPRECATED_NPC_REGNUM.
2243 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2245 2003-09-19 Christopher Faylor <cgf@redhat.com>
2247 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2249 2003-09-19 Jim Blandy <jimb@redhat.com>
2251 * macrotab.c (macro_include): Use the correct comparison to find
2252 the appropriate place for this inclusion in the list.
2254 2003-09-19 Andrew Cagney <cagney@redhat.com>
2256 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2257 (DEPRECATED_HPUX_TEXT_END): Define.
2258 (deprecated_hpux_text_end): Declare.
2259 (struct target_ops): Declare opaque.
2260 * hppah-nat.c (text_end): Make static.
2261 (deprecated_hpux_text_end): New function.
2262 * exec.c (text_end): Delete global variable.
2263 (NEED_TEXT_START_END): Do not define.
2264 (exec_file_attach): Replace code computing "text_end" code with
2265 call to DEPRECATED_HPUX_TEXT_END.
2267 2003-09-19 Andrew Cagney <cagney@redhat.com>
2269 * utils.c (align_up, align_down): New functions.
2270 * defs.h (align_up, align_down): Declare.
2271 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2272 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2274 (round_up, round_down): Delete functions.
2275 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2277 (ROUND_DOWN, ROUND_UP): Delete macros.
2278 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2279 * h8300-tdep.c: Replace "round_up" and "round_down" with
2280 "align_up" and "align_down".
2281 (round_up, round_down): Delete macros.
2282 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2284 (ROUND_UP, ROUND_DOWN): Delete macros.
2286 2003-09-18 J. Brobecker <brobecker@gnat.com>
2288 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2289 hard-coded constant. Use the proper machine name instead.
2291 2003-09-17 Andrew Cagney <cagney@redhat.com>
2293 * sparc-tdep.c (legacy_register_name): Delete function.
2294 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2295 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2296 * infcmd.c (gdb_register_name): Delete variable.
2297 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2298 REGISTER_NAME and "tm.h".
2299 * gdbarch.h, gdbarch.c: Regenerate.
2300 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2301 REGISTER_NAMES in comments.
2302 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2303 * m68klinux-nat.c (regmap): Ditto.
2305 2003-09-17 Jim Blandy <jimb@redhat.com>
2307 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2309 2003-09-17 Andrew Cagney <cagney@redhat.com>
2311 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2312 (ppcnbsd_init_abi): Set "use_struct_convention" to
2313 "ppcnbsd_use_struct_convention".
2315 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2317 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2318 * gdbarch.h, gdbarch.c: Regenerate.
2319 (stabs_argument_has_addr): New architecture method.
2320 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2321 * arch-utils.c: Include "buildsym.h".
2322 (default_stabs_argument_has_addr): New function.
2323 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2324 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2326 2003-09-17 Andrew Cagney <cagney@redhat.com>
2328 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2329 * gdbarch.h, gdbarch.c: Regenerate.
2330 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2331 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2332 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2333 * sparcnbsd-tdep.c: Update.
2335 2003-09-17 Andrew Cagney <cagney@redhat.com>
2337 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2338 * gdbarch.h, gdbarch.c: Regenerate.
2339 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2340 * d10v-tdep.c, frame.c: Update.
2341 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2342 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2343 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2344 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2345 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2346 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2347 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2348 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2349 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2350 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2351 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2352 * config/pa/nm-hppah.h: Update.
2354 2003-09-16 Andrew Cagney <cagney@redhat.com>
2356 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2357 "use_struct_convention" to "ppc_linux_use_struct_convention".
2358 (ppc_linux_use_struct_convention): New function.
2359 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2360 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2361 "rs6000_use_struct_convention".
2362 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2364 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2367 2003-09-16 Andrew Cagney <cagney@redhat.com>
2369 * buildsym.c: Remove more occurances of "register".
2370 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2371 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2372 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2373 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2374 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2375 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2376 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2377 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2379 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2381 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2382 numbers to enumeration values.
2383 * sh-tdep.c: Accomodate above change.
2384 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2385 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2386 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2387 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2388 (IS_FPUSH): Rename from IS_FMOV.
2389 (sh_extract_struct_value_address): Remove useless comment.
2390 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2391 instead of own local values.
2392 (sh_dump_tdep): Remove.
2393 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2394 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2396 2003-09-15 Andrew Cagney <cagney@redhat.com>
2398 * doublest.c (convert_floatformat_to_doublest): No longer need to
2399 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2401 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2403 * values.c (unpack_double): Call floatformat_is_valid.
2405 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2407 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2408 ps_strings into a long.
2410 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2411 _initialize_am64fbsd_nat.
2413 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2415 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2416 associated with DW_AT_ranges attribute is out of bounds.
2418 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2420 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2422 2003-09-14 Michael Chastain <mec@shout.net>
2424 * config/m68k/nm-apollo68v.h: Delete.
2425 * config/m68k/xm-apollo68v.h: Delete.
2427 2003-09-14 Andrew Cagney <cagney@redhat.com>
2429 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2430 * dcache.c: Update copyrights and descriptions.
2431 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2433 2003-09-14 Andrew Cagney <cagney@redhat.com>
2435 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2436 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2438 2003-09-14 Andrew Cagney <cagney@redhat.com>
2440 * alpha-nat.c: Remove some occurances of "register".
2441 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2442 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2443 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2444 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2445 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2446 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2447 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2448 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2449 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2450 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2451 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2452 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2453 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2454 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2455 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2456 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2457 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2458 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2459 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2460 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2461 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2462 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2464 2003-09-13 Andrew Cagney <cagney@redhat.com>
2466 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2467 * ppc-tdep.h (struct regcache): Declare opaque.
2468 * objfiles.h (struct objfile_data): Declare opaque.
2469 * cp-support.h (struct objfile): Declare opaque.
2470 * linux-nat.h (target_waitstatus): Declare opaque.
2472 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2474 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2475 (stabs_argument_has_addr): New architecture method.
2476 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2477 * arch-utils.c: Include "buildsym.h".
2478 (default_stabs_argument_has_addr): New function.
2479 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2480 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2482 * cris-tdep.c (cris_gdbarch_init): Set
2483 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2484 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2485 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2486 * mips-tdep.c (mips_gdbarch_init): Likewise.
2487 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2488 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2490 2003-09-13 Andrew Cagney <cagney@redhat.com>
2492 * values.c (using_struct_return): Delete "function" and "funcaddr"
2494 * value.h (using_struct_return): Update declaration.
2495 * infcmd.c (finish_command_continuation): Update.
2496 (finish_command): Update.
2497 * infcall.c (call_function_by_hand): Update.
2498 * eval.c (evaluate_subexp_standard): Update.
2500 2003-09-13 Christopher Faylor <cgf@redhat.com>
2502 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2503 SSE registers since gdb will not operate correctly without this.
2504 Restore include file ordering munged in previous change.
2505 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2507 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2509 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2510 REG_STRUCT_HAS_ADDR.
2511 * gdbarch.c, gdbarch.h: Updated.
2512 * infcall.c (call_function_by_hand): Update.
2513 * stabsread.c (define_symbol): Updated.
2515 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2517 2003-09-12 Christopher Faylor <cgf@redhat.com>
2519 * win32-nat.c: Reorganize so that defines used by target headers are
2520 actually defined by the system headers.
2521 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2522 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2524 2003-09-12 Jim Blandy <jimb@redhat.com>
2526 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2527 the file has no .data, .bss, or .rodata sections. Instead wait
2528 until we see a variable alleged to live in one of those sections.
2530 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2531 .bss section, presume that any variables we find live in the
2534 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2535 offsets for global and static variables.
2537 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2538 symbol types are, by definition, in the .data section, so it is
2539 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2540 If there is no .data section, there should be no N_DATA or N_DATA
2543 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2545 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2546 (amd64fbsd_sigcontext_addr): Rewrite.
2547 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2548 with correct values.
2549 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2550 (amd64fbsd_init_abi): Fix typo.
2552 2003-09-12 Andrew Cagney <cagney@redhat.com>
2554 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2555 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2557 2003-09-12 Andrew Cagney <cagney@redhat.com>
2559 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2560 "entry_file_highpc". Update comments.
2561 * defs.h (deprecated_inside_entry_file): Rename
2562 "inside_entry_file".
2563 * blockframe.c (deprecated_inside_entry_file): Rename
2564 "inside_entry_file".
2565 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2566 * vax-tdep.c (vax_frame_chain): Update.
2567 * sh64-tdep.c (sh64_frame_chain): Update.
2568 * sh-tdep.c (sh_frame_chain): Update.
2569 * rs6000-tdep.c (rs6000_frame_chain): Update.
2570 * ns32k-tdep.c (ns32k_frame_chain): Update.
2571 * mips-tdep.c (mips_frame_chain): Update.
2572 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2573 * m32r-tdep.c (m32r_frame_this_id): Update.
2574 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2575 * frv-tdep.c (frv_frame_this_id): Update.
2576 * d10v-tdep.c (d10v_frame_this_id): Update.
2577 * cris-tdep.c (cris_frame_chain): Update.
2578 * blockframe.c (legacy_frame_chain_valid): Update.
2579 * avr-tdep.c (avr_frame_this_id): Update.
2580 * arm-tdep.c (arm_prologue_this_id): Update.
2581 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2582 * objfiles.c (objfile_relocate): Update.
2583 * mipsread.c (mipscoff_symfile_read): Update.
2584 (mipscoff_symfile_read): Update.
2585 * mdebugread.c (parse_partial_symbols): Update.
2586 * dwarfread.c (read_file_scope): Update.
2587 * dwarf2read.c (read_file_scope): Update.
2588 * dbxread.c (read_dbx_symtab): Update.
2589 (read_dbx_symtab): Update.
2590 * coffread.c (complete_symtab): Update.
2592 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2594 * top.c (quit_target): New static helper function.
2595 (quit_force): Moved code to quit_target(). Call quit_target()
2596 via catch_errors() to catch errors during quit.
2598 2003-09-11 David Carlton <carlton@kealia.com>
2600 * buildsym.c (finish_block): Use allocate_block to allocate the
2602 * mdebugread.c (new_block): Add FIXME.
2604 2003-09-11 David Carlton <carlton@kealia.com>
2606 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2607 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2608 (recursive_dump_type): Ditto.
2609 * printcmd.c (print_formatted): Ditto.
2610 * typeprint.c (print_type_scalar): Ditto.
2611 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2612 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2613 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2614 maint_cplus_cmd_list.
2615 * cp-support.c: Make maint_cplus_cmd_list extern.
2616 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2618 (lookup_symbol_file): Look in possible namespace blocks when
2620 (initialize_namespace_symtab): New.
2621 (get_possible_namespace_block, free_namespace_block)
2622 (check_possible_namespace_symbols)
2623 (check_possible_namespace_symbols_loop)
2624 (check_one_possible_namespace_symbol)
2625 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2626 (_initialize_cp_namespace): Ditto.
2627 * block.h: Declare allocate_block.
2628 * block.c (allocate_block): New.
2629 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2631 * symfile.h: Update declaration of add_psymbol_to_list.
2632 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2634 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2635 scan_partial_symbols_call.
2636 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2638 (add_partial_symbol): If necessary, scan mangled names for names
2640 (add_partial_namespace): Add NAMESPACE argument; generate partial
2641 symbols associated to namespaces.
2642 (add_partial_enumeration): Add NAMESPACE argument.
2643 (new_symbol): Allow namespace syms.
2644 (read_namespace): Generate namespace syms.
2645 * objfiles.h: Add opaque declaration of struct symtab.
2646 (struct objfile): Add cp_namespace_symtab member.
2647 * objfiles.c (allocate_objfile): Set
2648 objfile->cp_namespace_symtab.
2649 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2650 dictionary_h, command_h.
2652 2003-09-11 Andrew Cagney <cagney@redhat.com>
2654 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2655 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2656 near the function's end.
2657 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2658 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2659 regcache_raw_write_signed to set SP_REGNUM.
2661 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2663 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2664 orig_addrs is set up properly.
2666 2003-09-11 Andrew Cagney <cagney@redhat.com>
2668 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2669 * gdbarch.h, gdbarch.c: Re-generate.
2670 * infcall.c (call_function_by_hand): Update.
2671 * hppa-tdep.c (hppa_push_arguments): Update.
2672 * ada-lang.c (place_on_stack): Update.
2673 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2674 * sparc-tdep.c (sparc_gdbarch_init): Update.
2675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2676 * hppa-tdep.c (hppa_gdbarch_init): Update.
2677 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2680 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2682 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2683 register do need a frame.
2685 2003-09-11 Andrew Cagney <cagney@redhat.com>
2687 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2688 buildable since GDB 5.0.
2689 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2690 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2691 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2692 * irix4-nat.c: Delete file.
2693 * config/mips/irix4.mh: Delete file.
2694 * config/mips/irix3.mh: Delete file.
2695 * config/mips/irix3.mt: Delete file.
2696 * config/mips/tm-irix3.h: Delete file.
2697 * config/mips/nm-irix3.h: Delete file.
2698 * config/mips/xm-irix3.h: Delete file.
2699 * config/mips/nm-irix4.h: Delete file.
2700 * config/mips/xm-irix4.h: Delete file.
2701 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2703 2003-09-10 J. Brobecker <brobecker@gnat.com>
2705 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2706 * Makefile.in (hppa-tdep.o): Update dependencies.
2708 2003-09-10 James E Wilson <wilson@specifixinc.com>
2710 * MAINTAINERS: Change my e-mail address. Move to paper trail
2713 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2715 * MAINTAINERS (frv): New ISA entry.
2717 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2719 * frv-tdep.c (dis-asm.h): Include.
2720 * Makefile.in (frv-tdep.o): Update dependencies.
2722 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2724 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2725 Fix typo for high range of floating registers.
2727 2003-09-09 David Carlton <carlton@kealia.com>
2729 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2730 highpc initialization here out of scan_partial_symbols.
2731 (scan_partial_symbols): Restructure into a recursive version,
2732 calling add_partial_namespace and add_partial_enumeration when
2734 (add_partial_namespace): New.
2735 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2737 2003-09-09 Andrew Cagney <cagney@redhat.com>
2739 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2740 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2741 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2742 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2744 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2745 (rs6000_push_dummy_call): Set the "TOC" register.
2747 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2748 methods "max_register_raw_size", "max_register_virtual_size" or
2749 "register_virtual_size".
2751 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2753 * MAINTAINERS: Update my e-mail address.
2755 2003-09-09 Andrew Cagney <cagney@redhat.com>
2757 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2758 (rs6000_push_dummy_call): Store the struct return address.
2759 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2761 2003-09-09 Andrew Cagney <cagney@redhat.com>
2763 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2764 "ppc_sysv_abi_push_arguments".
2765 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2766 "ppc_sysv_abi_push_arguments".
2767 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2768 instead of "push_arguments".
2769 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2771 2003-09-09 Andrew Cagney <cagney@redhat.com>
2773 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2774 instead of CALL_DUMMY_ADDRESS.
2776 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2778 * p-lang.c: Eliminate "register".
2780 * expprint.c: Ditto.
2783 * language.c: Ditto.
2786 * scm-lang.c: Ditto.
2787 * objc-lang.c: Ditto.
2789 2003-09-09 Nick Clifton <nickc@redhat.com>
2791 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2793 2003-09-04 Andrew Cagney <cagney@redhat.com>
2795 * avr-tdep.c: Include "dis-asm.h".
2796 * cris-tdep.c: Include "dis-asm.h".
2797 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2798 instead of corresponding typedef.
2799 * h8300-tdep.c: Include "dis-asm.h".
2800 * ia64-tdep.c: Include "dis-asm.h".
2801 * i386-tdep.c: Include "dis-asm.h".
2802 (i386_print_insn): Use "struct disassemble_info" instead of
2803 corresponding typedef.
2804 * m68k-tdep.c: Include "dis-asm.h".
2805 * mcore-tdep.c: Include "dis-asm.h".
2806 * mips-tdep.c: Include "dis-asm.h".
2807 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2808 instead of corresponding typedef.
2809 * ns32k-tdep.c: Include "dis-asm.h".
2810 * s390-tdep.c: Include "dis-asm.h".
2811 * sparc-tdep.c: Include "dis-asm.h".
2812 * vax-tdep.c: Include "dis-asm.h".
2813 * v850-tdep.c: Include "dis-asm.h".
2814 * mn10300-tdep.c: Include "dis-asm.h".
2815 * rs6000-tdep.c: Include "dis-asm.h".
2816 * xstormy16-tdep.c: Include "dis-asm.h".
2817 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2818 print_insn_xstormy16.
2819 * Makefile.in (v850-tdep.o): Update dependencies.
2820 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2821 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2822 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2823 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2824 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2825 (gdbarch_h): Remove $(dis_asm_h).
2826 * disasm.c: Include "dis-asm.h".
2827 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2828 corresponding typedef.
2829 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2830 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2831 * gdbarch.sh: Do not include "dis-asm.h".
2832 (struct disassemble_info): Declare opaque.
2833 (TARGET_PRINT_INSN): Update declaration.
2834 * gdbarch.h, gdbarch.c: Re-generate.
2836 2003-09-08 Andrew Cagney <cagney@redhat.com>
2838 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2839 CALL_DUMMY_ADDRESS, change to a predicate.
2840 * gdbarch.h, gdbarch.c: Re-generate.
2841 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2842 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2843 * infcall.c (call_function_by_hand): Ditto.
2844 * sparc-tdep.c (sparc_push_return_address): Ditto.
2845 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2846 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2847 CALL_DUMMY_ADDRESS with entry_point_address.
2848 * v850-tdep.c (v850_push_return_address): Ditto.
2849 * s390-tdep.c (s390_push_return_address): Ditto.
2850 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2851 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2852 * mcore-tdep.c (mcore_push_return_address): Ditto.
2853 * cris-tdep.c (cris_push_return_address): Ditto.
2854 * arm-tdep.c (arm_push_return_address): Ditto.
2856 2003-09-08 Andrew Cagney <cagney@redhat.com>
2858 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2859 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2860 and REG_UNMODIFIED to REG_SAME_VALUE.
2861 (execute_cfa_program): Update.
2862 (dwarf2_frame_cache): Update. Initialize table to
2863 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2865 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2867 2003-09-08 Andrew Cagney <cagney@redhat.com>
2869 * gnu-nat.c: Remove "inline" function attribute.
2870 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2872 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2874 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2877 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2879 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2880 (frame_extra_info): Rename this struct to frv_unwind_cache.
2881 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2882 Add fields ``prev_sp'' and ``base''.
2883 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2884 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2885 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2887 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2888 Revise all callers. Fill in the unwind cache argument and make
2889 other adjustments to account for new frame mechanisms.
2890 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2891 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2892 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2893 (frv_frame_unwind, frv_frame_base): New structs.
2894 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2895 additional arguments expected by this method and adjust function
2897 (frv_gdbarch_init): Remove calls to the following functions:
2898 set_gdbarch_deprecated_init_frame_pc(),
2899 set_gdbarch_deprecated_saved_pc_after_call(),
2900 set_gdbarch_deprecated_frame_chain(),
2901 set_gdbarch_deprecated_frame_saved_pc(),
2902 set_gdbarch_deprecated_frame_init_saved_regs(),
2903 set_gdbarch_deprecated_push_arguments(),
2904 set_gdbarch_deprecated_push_return_address(),
2905 set_gdbarch_deprecated_pop_frame(),
2906 set_gdbarch_deprecated_call_dummy_words(),
2907 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2908 set_gdbarch_deprecated_init_extra_frame_info(),
2909 set_gdbarch_deprecated_dummy_write_sp(), and
2910 set_gdbarch_deprecated_pc_in_call_dummy().
2911 Add calls to the following functions:
2912 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2913 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2914 frame_base_set_default().
2915 * Makefile.in (frv-tdep.o): Update dependencies.
2917 2003-09-09 Mark Kettenis <kettenis@gnu.org>
2919 * dwarf2-frame.c (read_encoded_value): Add support for
2920 DW_EH_PE_aligned encoding.
2922 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2924 * infrun.c (normal_stop): Don't print a message if the inferior
2927 2003-09-08 Jim Blandy <jimb@redhat.com>
2929 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2930 * dbxread.c: #include "gdb_assert.h".
2931 (read_dbx_symtab): If the objfile has no .data section, use the
2932 section index for the .bss section instead.
2934 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2936 * frame.c (deprecated_safe_get_selected_frame): New function.
2937 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2938 * findvar.c (read_var_value): Call it.
2940 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2942 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2943 (sh64-tdep.o): Add dependencies.
2944 * configure.tgt: Add FIXME to sh-*-linux*.
2945 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2946 (sh_gdbarch_init): Always set correct sh_show_regs function
2947 pointer. Call sh64_gdbarch_init() if machine type is sh5.
2948 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2949 * sh64-tdep.c: New file, containing all sh64 related code from
2951 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2952 * config/sh/linux.mt (TDEPFILES): Ditto.
2953 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2954 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2955 * config/sh/wince.mt (TDEPFILES): Ditto.
2957 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2959 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2960 (stop_wait_callback): Handle !lp->signalled also.
2961 (lin_lwp_has_pending, flush_callback): New functions.
2962 (lin_lwp_wait): Call flush_callback.
2963 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2964 (linux_proc_pending_signals): New function.
2965 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2967 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2969 From Nick Kelsey <nickk@ubicom.com>:
2970 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2971 when the stop PC is at the beginning of a function also.
2973 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2975 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2976 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2978 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2980 * sol-thread.c: Include "gdb_string.h".
2982 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2984 * gcore.c: Reorder include files in alphabetical order. Include
2985 "gdb_assert.h". Various coding style fixes.
2986 (derive_stack_segment, derive_heap_segment): Replace check for
2987 non-null BOTTOM and TOP with gdb_assert.
2988 (derive_heap_segment): Replace check for successful creation of
2989 ZERO with gdb_assert.
2990 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2992 2003-09-04 Andrew Cagney <cagney@redhat.com>
2994 * thread-db.c (verbose_dlsym): New function.
2995 (thread_db_load): Use verbose_dlsym
2996 (thread_db_new_objfile): Print that libthread_db was loaded, and
2997 that thread debugging was enabled.
2999 2003-09-04 Andrew Cagney <cagney@redhat.com>
3001 * configure.tgt: Add "mips64*-*-*" target. Delete
3002 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3003 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3004 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3005 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3006 mips*-sony-*, and mips64*-*-elf* targets.
3007 * config/mips/embedl.mt: Delete file.
3008 * config/mips/embedl64.mt: Delete file.
3009 * config/mips/mips.mt: Delete file.
3010 * config/mips/mips64.mt: Delete file.
3011 * config/mips/tm-embed.h: Delete file.
3012 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3013 * config/mips/embed64.mt: Delete out-of-date comment.
3015 2003-09-04 Andrew Cagney <cagney@redhat.com>
3017 * hppa-tdep.c (hppa_gdbarch_init): Set
3018 "have_nonsteppable_watchpoint".
3019 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3020 * mips-tdep.c (mips_dump_tdep): Do not print
3021 HAVE_NONSTEPPABLE_WATCHPOINT.
3022 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3023 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3024 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3025 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3027 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3029 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3030 unused code. Add comment.
3032 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3034 * breakpoint.c (watchpoint_check): Check for pc being in an
3035 epilogue if watchpoint frame couldn't be found.
3037 2003-09-04 Andrew Cagney <cagney@redhat.com>
3039 * Makefile.in: Re-generate all dependencies.
3041 2003-09-03 Andrew Cagney <cagney@redhat.com>
3043 * arch-utils.h (legacy_print_insn): Delete declaration.
3044 * arch-utils.c (legacy_print_insn): Delete function.
3045 * disasm.c (deprecated_tm_print_insn_info): Delete.
3046 (_initialize_disasm): Delete function, contained code initializing
3047 deprecated_tm_print_insn_info.
3048 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3049 (deprecated_tm_print_insn_info): Delete.
3050 (TARGET_PRINT_INSN): Do not provide a default.
3051 * gdbarch.h, gdbarch.c: Re-generate.
3053 2003-09-03 Andrew Cagney <cagney@redhat.com>
3055 * disasm.c (fprintf_disasm): New function.
3056 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3057 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3058 reverts 2003-08-14 change.
3059 (_initialize_disasm): Call "init_disassemble_info", instead of
3060 INIT_DISASSEMBLE_INFO_NO_ARCH.
3062 2003-09-03 Michael Snyder <msnyder@redhat.com>
3064 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3066 2003-09-03 Andrew Cagney <cagney@redhat.com>
3068 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3069 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3070 * symfile.c (syms_from_objfile): Update.
3071 (reread_symbols): `Update
3072 * exec.c (exec_file_attach): Update.
3073 (exec_file_attach): Update.
3074 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3076 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3078 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3080 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3082 (arm_get_cache): Delete macro.
3083 (struct arm_prologue_cache): Update comments. Make saved_regs into
3084 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3086 (thumb_scan_prologue): Update for cache changes. Don't call
3087 DEPRECATED_PC_IN_CALL_DUMMY.
3088 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3089 argument and use it in desperation search for our prologue. Do not
3090 search past the specified PC.
3091 (arm_make_prologue_cache): Simplify.
3093 (arm_prologue_this_id, arm_prologue_prev_register)
3094 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3095 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3096 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3097 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3098 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3100 (arm_frame_chain_valid, arm_find_callers_reg)
3101 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3102 (arm_pop_frame): Delete obsolete methods.
3103 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3105 (arm_gdbarch_init): Update for new frame methods. Register prologue
3106 and sigtramp unwinders. Set the default frame base method.
3108 * Makefile.in (arm-tdep.o): Update dependencies.
3109 * varobj.c (find_frame_addr_in_frame_chain): Call
3110 get_frame_base_address.
3111 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3113 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3115 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3116 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3117 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3118 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3119 Take NEXT_FRAME and CACHE arguments. Call
3120 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3121 Set unwound_pc in CACHE instead of modifying the frame argument.
3122 Don't bother checking the frame type when looking for sigtramp
3124 (arm_make_prologue_cache, arm_frame_chain)
3125 (arm_init_extra_frame_info): New functions.
3127 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3129 * arm-tdep.c (arm_get_cache): Define.
3130 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3131 unwound_sp, unwound_pc, and saved_regs.
3132 (thumb_scan_prologue): Take a cache instead of the frame.
3133 (arm_scan_prologue): Likewise.
3134 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3135 instead of a temporary frame.
3136 (arm_init_extra_frame_info): Allocate and use a cache.
3137 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3139 2003-09-03 Andrew Cagney <cagney@redhat.com>
3141 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3142 * config/mips/wince.mt (TM_CLIBS): Ditto.
3143 * config/sh/wince.mt (TM_CLIBS): Ditto.
3144 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3145 * config/sparc/sp64.mt (CC): Delete.
3147 2003-09-03 Andrew Cagney <cagney@redhat.com>
3149 * defs.h: Do not include "arch-utils.h".
3150 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3151 GDB_MULTI_ARCH_PURE.
3152 * configure.in (GDB_MULTI_ARCH): Do not define.
3153 * configure, config.in: Regenerate.
3154 * configure.tgt: Do not set variable "gdb_multi_arch".
3155 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3156 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3157 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3158 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3159 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3160 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3161 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3162 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3163 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3164 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3165 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3166 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3167 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3168 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3169 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3170 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3171 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3172 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3174 2003-08-30 Michael Chastain <mec@shout.net>
3176 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3177 * config/m68k/nm-hp300hpux.h: Delete.
3178 * config/m68k/tm-hp300hpux.h: Delete.
3179 * config/m68k/xm-hp300hpux.h: Delete.
3180 * config/m68k/xm-hp300bsd.h: Delete.
3181 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3182 tm-hp300hpux.h, xm-hp300hpux.h.
3183 * somsolib.c: Remove comment about hp300 shared libraries.
3185 2003-08-31 Mark Kettenis <kettenis@gnu.org>
3187 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3188 Only define PTRACE_GET_THREAD_AREA is not already defined.
3189 Various style fixes in code and comments and some additional
3190 spelling fixes in comments. Move after functions dealing with
3192 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3195 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3196 frame_unwind_register_unsigned instead of
3197 frame_unwind_unsigned_register.
3199 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3201 * configure.in: Search for gethostbyname in libnsl.
3202 * configure: Regenerated.
3204 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3206 * configure.in: Remove redundant AC_MSG_RESULT in check for
3207 uintptr_t in stdint.h.
3208 * configure: Regenerated.
3210 * amd64-nat.h (struct regcache): Add opaque declaration.
3212 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3213 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3214 Change "register array" to "register cache" in comments.
3215 (x86_64_linux_gregset64_reg_offset): New variable.
3216 (GETREGS_SUPPLIES): Remove macro.
3217 (supply_gregset): Call amd64_supply_native_gregset instead of
3218 x86_64_linux_supply_gregset.
3219 (fill_gregset): Rename `regno' to `regnum'. Call
3220 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3221 (store_regs): Rename `regno' to `regnum'.
3222 (store_fpregs): Rename `regno' to `regnum'.
3223 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3224 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3225 Reorganize function a bit.
3226 (store_inferior_registers): Rename `regno' to `regnum'. Use
3227 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3228 Reorganize function a bit.
3229 (_initialize_x86_64_linux_nat): New function.
3230 * config/i386/x86-64linux.mh.
3232 2003-08-29 Andrew Cagney <cagney@redhat.com>
3234 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3235 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3236 (target_remove_watchpoint): Delete macro.
3237 (target_insert_watchpoint): Delete macro.
3238 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3239 (remote_mips_stopped_by_watchpoint): Delete declaration.
3240 (remote_mips_remove_watchpoint): Delete declaration.
3241 (remote_mips_set_watchpoint): Delete declaration.
3242 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3243 * remote-mips.c (_initialize_remote_mips): Set
3244 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3245 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3246 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3247 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3248 (mips_stopped_by_watchpoint): Rename
3249 remote_mips_stopped_by_watchpoint.
3250 (mips_can_hardware_watchpoint): Rename
3251 remote_mips_can_use_hardware_watchpoint, update function
3254 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3256 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3257 USER_DS. We haven't given them a register number yet.
3259 * amd64-nat.h: New file.
3260 * amd64-nat.c: New file.
3261 * amd64fbsd-nat.c: Include "amd64-nat.h".
3262 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3263 (amd64fbsd32_r_reg_offset): New variable.
3264 (supply_gregset): Simply call amd64_supply_native_gregset.
3265 (fill_gregset): Rename `regno' to `regnum'. Simply call
3266 amd64_collect_native_gregset.
3267 (fill_fpregset): Rename `regno' to `regnum'.
3268 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3269 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3270 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3271 `fpregset_t'. Call amd64_supply_native_gregset instead of
3272 supply_gregset. Call x86_64_supply_fxsave instead of
3274 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3275 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3276 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3277 `fpregset_t'. Call amd64_collect_native_gregset instead of
3278 fill_gregset. Call x86_64_collect_fxsave instead of
3280 (_initialize_am64fbsd_nat): Initialize
3281 amd64_native_gregset32_reg_offset and
3282 amd64_native_gregset64_reg_offset.
3283 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3285 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3286 null pointer. Fix typo in comment.
3288 * regcache.c (supply_register): Reimplement to call
3289 regcache_raw_supply.
3290 (regcache_collect): Reimplement by calling regcache_raw_collect.
3292 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3294 * regcache.c (register_buffer): Consitify first argument.
3295 (regcache_raw_supply, regcache_raw_collect): New
3298 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3300 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3301 by Nathan J. Williams.
3303 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3305 * lin-lwp.c (wait_lwp): New function, copied from
3306 stop_wait_callback. Clean up.
3307 (stop_wait_callback): Use wait_lwp.
3309 2003-08-28 Andrew Cagney <cagney@redhat.com>
3311 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3312 flavour and disassembler options.
3313 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3314 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3315 deprecated_tm_print_insn_info.
3317 2003-08-27 Andrew Cagney <cagney@redhat.com>
3319 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3320 Use target_read_memory.
3321 (s390_get_frame_info): Update. Do not reference
3322 deprecated_tm_print_insn_info.
3323 (s390_check_function_end, s390_is_sigreturn): Ditto.
3325 2003-08-27 Andrew Cagney <cagney@redhat.com>
3327 * Makefile.in (cris-tdep.o): Update dependencies.
3328 * cris-tdep.c: Include "gdb_assert.h".
3329 (cris_gdbarch_init): Set print_insn.
3330 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3331 (cris_delayed_get_disassembler): Simplify, directly call the
3332 disassembler returned by cris_get_disassembler.
3333 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3334 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3335 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3336 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3337 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3338 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3339 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3340 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3341 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3342 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3343 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3344 (gdb_print_insn_sparc): Delete function.
3345 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3346 deprecated_tm_print_insn_info.
3347 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3348 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3349 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3351 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3352 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3353 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3354 (s390_gdbarch_init): Set print_insn.
3356 2003-08-27 Andrew Cagney <cagney@redhat.com>
3358 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3359 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3360 * infcall.c (call_function_by_hand): Convert the entry point
3361 address into a code address.
3363 2003-08-27 Andrew Cagney <cagney@redhat.com>
3365 * dsrec.c: Include "gdb_string.h".
3366 * Makefile.in (dsrec.o): Update dependencies.
3368 2003-08-27 Michael Chastain <mec@shout.net>
3370 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3372 2003-08-27 Andrew Cagney <cagney@redhat.com>
3374 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3375 (alpha_osf1_init_abi): Do not set call_dummy_address.
3377 2003-08-27 David Carlton <carlton@kealia.com>
3379 From Randolph Chung <tausq@debian.org>:
3380 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3381 compiles with -Wformat-nonliteral -Werror.
3383 2003-08-26 Jim Blandy <jimb@redhat.com>
3385 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3386 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3387 bfd_lookup_symbol, since we only want symbols in code sections.
3388 (look_for_base): Pass zero as the SECT_FLAGS argument to
3389 bfd_lookup_symbol, since we're not concerned about which section
3392 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3394 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3395 we are frameless or the return address register is already known.
3397 2003-08-26 Andrew Cagney <cagney@redhat.com>
3399 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3400 in size. Add comments.
3402 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3404 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3405 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3407 2003-08-26 Jason Merrill <jason@redhat.com>
3409 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3410 case out of #ifdef MIPS block.
3412 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3415 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3416 available before calling SECT_OFF_TEXT.
3417 * PROBLEMS: Remove description of java/1322.
3419 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3421 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3422 bof, and nat0-nat127 as pseudo-registers.
3423 (ia64_frame_cache): New struct used to cache frame info.
3424 (ia64_register_reggroup_p): New routine used to override default
3425 register grouping so registers without names are still saved and
3427 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3429 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3430 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3431 (ia64_alloc_frame_cache): New routine to create a new
3433 (examine_prologue): Change prototype to add next_frame pointer.
3434 Assume frameless until otherwise proven. Verify that the cfm for
3435 current frame matches the cfm that should occur for the prologues
3436 alloc insn and if equal, mark as not frameless. At end of routine,
3437 if not frameless, calculate registers for the previous frame and store
3438 in the cache, if a cache is provided.
3439 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3440 and pass 0 for next_frame.
3441 (ia64_store_return_value): Change to use convert_typed_floating()
3442 instead of calling ia64_convert_to_raw().
3443 (ia64_extract_return_value): Change to use convert_typed_floating()
3444 instead of calling ia64_convert_to_virtual().
3445 (ia64_frame_cache): New routine to support new frame model.
3446 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3447 (ia64_frame_sniffer): Ditto.
3448 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3449 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3450 (ia64_sigtramp_frame_prev_register): Ditto.
3451 (ia64_sigtramp_frame_sniffer): Ditto.
3452 (ia64_frame_base_address): Ditto.
3453 (ia64_extract_struct_value_address): Change to issue error message.
3454 (ia64_frame_align): New routine to align sp.
3455 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3456 (ia64_push_arguments): Removed. Logic moved to
3457 ia64_push_dummy_call().
3458 (ia64_push_return_address): Ditto.
3459 (ia64_unwind_dummy_id): New function.
3460 (ia64_unwind_pc): Ditto.
3461 (ia64_convert_register_p): Ditto.
3462 (ia64_register_to_value): Ditto.
3463 (ia64_value_to_register): Ditto.
3464 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3465 (ia64_register_byte, ia64_register_raw_size): Ditto.
3466 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3467 (ia64_saved_pc_after_call): Ditto.
3468 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3469 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3470 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3471 (ia64_register_convert_to_raw): Ditto.
3472 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3473 (ia64_init_extra_frame_info): Ditto.
3474 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3475 (ia64_gdbarch_init): Remove registering of deprecated functions that
3476 are no longer used. Add registration of new gdbarch functions.
3477 Remove registering deprecated_write_sp. Replace
3478 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3479 Delete set_gdbarch_deprecated_register_convertible(),
3480 set_gdbarch_deprecated_register_convert_to_virtual(), and
3481 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3482 set_gdbarch_deprecated_register_size(),
3483 set_gdbarch_deprecated_register_bytes(),
3484 set_gdbarch_pcregnum(),
3485 set_gdbarch_deprecated_register_byte(),
3486 set_gdbarch_deprecated_register_raw_size(),
3487 set_gdbarch_deprecated_max_register_raw_size(),
3488 set_gdbarch_deprecated_register_virtual_size(),
3489 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3490 Replace set_gdbarch_deprecated_extract_return_value() with
3491 set_gdbarch_extract_return_value(). Remove calls to:
3492 set_gdbarch_deprecated_saved_pc_after_call();
3493 set_gdbarch_deprecated_frame_chain(),
3494 set_gdbarch_deprecated_frame_saved_pc(),
3495 set_gdbarch_deprecated_frame_init_saved_regs(),
3496 set_gdbarch_deprecated_get_saved_register(),
3497 set_gdbarch_deprecated_call_dummy_words(),
3498 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3499 set_gdbarch_deprecated_init_extra_frame_info(),
3500 set_gdbarch_deprecated_frame_args_address(),
3501 set_gdbarch_deprecated_frame_locals_address(),
3502 and set_gdbarch_deprecated_dummy_write_sp().
3503 Add set_gdbarch_convert_register_p(),
3504 set_gdbarch_register_to_value(),
3505 set_gdbarch_value_to_register(),
3506 set_gdbarch_push_dummy_call(),
3507 set_gdbarch_frame_align(),
3508 set_gdbarch_unwind_dummy_id(),
3509 set_gdbarch_unwind_pc(),
3510 frame_unwind_append_sniffer(),
3511 frame_unwind_append_sniffer(),
3512 and frame_base_set_default().
3514 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3516 * configure.tgt: Document need for special "mipsisa64" handling.
3517 (mipsisa64*-*-linux64): Handle as target linux64.
3518 (mipsisa64*-*-*): Handle as target embed64.
3520 2003-08-18 Michael Chastain <mec@shout.net>
3522 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3525 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3527 * i387-tdep.h: Update copyright date.
3528 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3530 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3531 CFLAGS games to reflect reality.
3533 2003-08-24 Andrew Cagney <cagney@redhat.com>
3535 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3536 GDB_MULTI_ARCH is always non-zero.
3537 * osabi.c (_initialize_gdb_osabi): Ditto.
3538 (gdbarch_init_osabi): Ditto.
3539 * sparc-tdep.c: Ditto for #if code.
3541 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3543 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3545 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3547 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3548 x86_64_supply_fxsave.
3549 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3550 x86_64_supply_fxsave.
3551 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3552 x86_64_supply_fxsave.
3554 2003-08-23 Andreas Jaeger <aj@suse.de>
3556 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3559 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3561 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3562 i387_supply_register.
3563 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3564 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3566 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3568 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3570 * i386bsd-nat.c (supply_fpregset): Adjust call to
3572 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3573 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3575 (store_inferior_registers): Remove extraneous whitespace. Call
3576 i387_fill_fsave instead of fill_fpregset.
3577 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3578 (supply_fpregset): Likewise.
3579 * i386v4-nat.c (supply_fpregset): Adjust call to
3581 * i386-interix-nat.c (supply_fpregset): Adjust call to
3583 * i386-linux-nat.c (supply_fpregset): Adjust call to
3585 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3586 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3587 i387supply_fsave and i387_supply_fxsave.
3588 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3589 Incorporate code from `i387_supply_register.
3590 (i387_supply_register): Remove.
3591 (i387_supply_fxsave): Add `regnum' argument.
3593 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3595 (i387_supply_register): remove prototype.
3598 2003-08-22 Michael Chastain <mec@shout.net>
3600 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3601 Add lines for files in gdb/testsuite/gdb.cp/* that are
3602 still not 8.3 unique.
3604 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3606 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3607 TYPE_VPTR_FIELDNO is valid.
3609 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3611 * utils.c (set_width_command): Remove prototypes.
3612 (set_screen_size): New prototype.
3613 (init_page_info): Simplify by fetching the screen size from
3614 Readline. Call set_screen_size.
3615 (set_screen_size): New function.
3616 (set_width): Add missing whitespace in comment.
3617 (set_width_command): Call set_screen_size.
3618 (set_height_command): New function.
3619 (initialize_utils): Fix formatting. Make "set height" command
3620 call set_height_command. Remove redundant code that turns off
3621 pagination if output isn't a terminal. Remove redundant call to
3624 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3626 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3627 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3628 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3629 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3631 (sparc64_register_info): Give the reister with number
3632 SPARC64_STATE_REGNUM a name.
3633 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3635 (sparc64_push_dummy_call): Take BIAS into account when checking
3637 (sparc_software_single_step): Remove assertions that check whether
3638 NPC and NNPC were zero.
3639 (sparc_supply_rwindow): Make public. Merge functionality with
3640 sparc64_supply_rwindow.
3641 (sparc_fill_rwindow): Make public. Merge functionality with
3642 sparc64_fill_rwindow.
3643 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3644 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3645 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3646 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3647 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3649 * reggroups.c: Add whitespace after declarations of local
3650 variables in functions.
3652 2003-08-21 Michael Chastain <mec@shout.net>
3654 * gdbtypes.h: Change array bound type from an int to enum.
3656 2003-08-21 Andrew Cagney <cagney@redhat.com>
3658 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3659 * config/sparc/tm-sparc.h: Ditto.
3660 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3662 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3664 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3666 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3667 (register_objfile_data, set_objfile_data, objfile_data): New
3669 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3671 (allocate_objfile): Call objfile_alloc_data.
3672 (free_objfile): Call objfile_free_data.
3673 (struct objfile_data): New.
3674 (struct objfile_data_registration): New.
3675 (struct objfile_data_registry): New.
3676 (objfile_data_registry): New variable.
3677 (register_objfile_data): New function.
3678 (objfile_alloc_data, objfile_free_data): New functions.
3679 (set_objfile_data, objfile_data): New functions.
3680 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3681 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3682 (_initialize_dwarf2_frame): New function and prototype.
3684 2003-08-21 Andrew Cagney <cagney@redhat.com>
3686 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3687 a specific architecture.
3688 * arch-utils.h (set_architecture_from_arch_mach): Delete
3690 (target_architecture_hook): Delete declaration.
3691 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3692 (default_float_format): Assume GDB_MULTI_ARCH.
3693 (default_double_format): Assume GDB_MULTI_ARCH.
3694 (set_endian_from_file): Delete function.
3695 (arch_ok): Delete function.
3696 (set_arch): Delete function.
3697 (set_architecture_from_arch_mach): Delete function.
3698 (set_architecture_from_file): Delete function.
3699 (set_architecture): Assume GDB_MULTI_ARCH.
3700 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3702 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3704 Rewrite FreeBSD/sparc64 native configuration.
3705 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3706 * sparc64fbsd-nat.c: New file.
3707 * sparc64fbsd-tdep.c: New file.
3708 * sparc64-tdep.c sparc64-tdep.h: New files.
3709 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3710 sparc64fbsd-tdep.o): New dependencies.
3711 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3712 and sparc64fbsd-tdep.c.
3713 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3714 * config/sparc/fbsd.mh: Remove copyright notice.
3715 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3717 * config/sparc/fbsd.mt: Remove copyright notice.
3718 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3719 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3720 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3721 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3722 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3723 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3724 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3725 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3727 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3728 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3730 2003-08-21 Michael Chastain <mec@shout.net>
3732 * symtab.h: Add doco on the space critical structures and
3733 some measurements of space usage.
3735 2003-08-21 Michael Snyder <msnyder@redhat.com>
3737 * tracepoint.c (trace_dump_command): Trace break address
3738 is subject to DECR_PC_AFTER_BREAK.
3739 (set_traceframe_context): Make "trace_line" an int.
3740 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3742 2003-08-20 Michael Snyder <msnyder@redhat.com>
3744 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3745 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3746 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3748 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3749 functions, replace sh_push_dummy_call.
3750 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3752 2003-08-20 Michael Chastain <mec@shout.net>
3754 * gdbtypes.h (struct main_type): Rearrange to save space.
3756 2003-08-20 Michael Snyder <msnyder@redhat.com>
3758 * trad-frame.c: Comment typo fix.
3760 2003-08-20 Michael Snyder <msnyder@redhat.com>
3761 Kevin Buettner <kevinb@redhat.com>
3763 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3764 (frv_frame_init_saved_regs): Add declaration.
3765 (frame_extra_info): Add new field ``saved_regs''.
3766 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3767 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3768 Update frame related code.
3769 (frv_extract_struct_value_address): Adjust formatting.
3770 * Makefile.in (frv-tdep.o): Update dependencies.
3771 * config/frv/tm-frv.h (target_insert_watchpoint)
3772 (target_remove_watchpoint, target_insert_hw_breakpoint)
3773 (target_remove_hw_breakpoint): Delete these macros.
3774 (remote_insert_watchpoint, remote_remove_watchpoint)
3775 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3778 2003-08-20 Michael Chastain <mec@shout.net>
3780 * defs.h (ENUM_BITFIELD): New macro.
3781 * symtab.h (ENUM_BITFIELD): Use it.
3782 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3784 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3786 * MAINTAINERS (write after approval): Add myself.
3788 2003-08-18 Andrew Cagney <cagney@redhat.com>
3790 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3791 * gdbarch.h, gdbarch.c: Re-generate.
3792 * infcall.c (call_function_by_hand): Adjust the SP by
3793 frame_red_zone_size before allocating any stack space.
3794 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3795 * x86-64-tdep.c (x86_64_frame_align): New function.
3796 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3798 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3799 Remove code adjusting SP so that it skips over the Red Zone.
3801 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3803 * NEWS (New native configurations): Mention FreeBSD/amd64.
3805 2003-08-18 Andrew Cagney <cagney@redhat.com>
3807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3808 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3810 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3812 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3814 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3816 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3818 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3820 * i386-linux-nat.c: Include "linux-nat.h".
3821 (child_post_startup_inferior): New function.
3823 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3825 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3826 at the start of a frameless function. This probably fixes PR
3829 2003-08-17 Michael Chastain <mec@shout.net>
3831 * symfile.c (find_sym_fns): Remove special case for apollo target.
3833 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3835 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3836 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3837 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3838 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3839 (linux_supports_tracevforkdone): New function.
3840 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3842 (child_follow_fork): Handle vfork.
3843 (linux_handle_extended_wait): Likewise. Also handle exec.
3844 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3845 * NEWS: Mention fork tracing.
3847 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3849 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3851 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3853 * Makefile.in (i386-linux-nat.o): Update dependencies.
3854 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3855 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3856 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3857 * i386-linux-nat.c: Include "linux-nat.h".
3858 (child_post_startup_inferior): New function.
3859 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3860 * infptrace.c (kill_inferior): Wrap in #ifdef.
3861 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3862 attaching to each LWP.
3863 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3864 (init_lin_lwp_ops): Fill in some more operations.
3865 * linux-nat.h (linux_enable_event_reporting)
3866 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3868 * linux-nat.c (linux_enable_event_reporting): New function.
3869 (child_post_attach, linux_child_post_startup_inferior)
3870 (child_post_startup_inferior, child_follow_fork)
3871 (linux_handle_extended_wait, kill_inferior): New functions.
3873 2003-08-16 Andrew Cagney <cagney@redhat.com>
3875 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3876 * gdbarch.h, gdbarch.c: Re-generate.
3878 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3880 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3882 2003-08-16 Andrew Cagney <cagney@redhat.com>
3884 * NEWS: Mention that "set prompt-escape-char" was deleted.
3885 * top.c (get_prompt_1): Delete function.
3886 (gdb_prompt_escape):
3887 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3888 prompt-escape-char" command.
3889 (MAX_PROMPT_SIZE): Delete macro.
3890 (get_prompt): Simplify, do not call get_prompt_1.
3892 2003-08-16 Andrew Cagney <cagney@redhat.com>
3894 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3895 -Werror. -Wformat-nonliteral problems.
3897 2003-08-15 J. Brobecker <brobecker@gnat.com>
3899 Further multiarching work mostly for hppa64-*-hpux11:
3900 * hppa-tdep.h: New file.
3901 * hppa-tdep.c: #include hppa-tdep.c.
3902 (hppa32_num_regs): Renamed from hppa_num_regs.
3903 (hppa64_num_regs): New constant.
3904 (hppa64_call_dummy_breakpoint_offset): New constant.
3905 (hppa32_call_dummy_length): New constant.
3906 (hppa64_call_dummy_length): New constant.
3907 (hppa32_stack_align): Make name 32bit explicit.
3908 (hppa32_register_virtual_type): Likewise.
3909 (hppa32_extract_return_value): Likewise.
3910 (hppa32_use_struct_convention): Likewise.
3911 (hppa32_store_return_value): Likewise.
3912 (hppa64_register_virtual_type): New function.
3913 (hppa64_extract_return_value): New function.
3914 (hppa64_use_struct_convention): New function.
3915 (hppa64_store_return_value): New function.
3916 (hppa_frame_locals_address): Remove declaration, function does
3918 (hppa_register_byte): Add support for PA64 ABI.
3919 (hppa_gdbarch_init): Add support for PA64 ABI.
3920 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3921 Make name 32bit explicit.
3922 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3923 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3924 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3925 (hppa64_hpux_frame_base_before_sigtramp): New function.
3926 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3927 * config/pa/tm-hppa64.h: Remove macros that are no longer
3928 necessary now that the gdbarch vector is properly setup.
3929 Transform some macros into function calls. Some minor cleanup.
3930 * config/pa/tm-hppah.h: Update function calls in macros
3931 following the function renaming in hppa-hpux-tdep.c.
3932 * Makefile.in (hppa_tdep_h): New variable.
3933 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3935 2003-08-14 Michael Snyder <msnyder@redhat.com>
3937 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3939 2003-08-13 J. Brobecker <brobecker@gnat.com>
3941 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3942 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3945 2003-08-13 Michael Snyder <msnyder@redhat.com>
3947 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3948 (frv_saved_pc_after_call): Use deprecated ftype.
3949 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3950 (frv_remote_translate_xfer_address): Remove.
3951 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3953 2003-08-13 J. Brobecker <brobecker@gnat.com>
3955 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3956 initialization after the common gdbarch initialization, not before.
3958 2003-08-13 J. Brobecker <brobecker@gnat.com>
3960 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3961 (ADDR_BITS_REMOVE): Remove, redundant.
3963 2003-08-13 J. Brobecker <brobecker@gnat.com>
3965 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3966 gdbarch method to clear the 2 low bits of text addresses.
3968 2003-08-12 Andrew Cagney <cagney@redhat.com>
3970 * Makefile.in (dsrec.o): Update dependencies.
3971 * dsrec.c: Include "gdb_assert.h".
3972 (make_srec): Use snprintf instead of sprintf, use a literal format
3975 2003-08-12 Andrew Cagney <cagney@redhat.com>
3977 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3978 FRAME_OBSTACK_ZALLOC.
3980 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3982 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3985 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3987 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3988 amd64fbsd_sc_reg_offset): Add extern declarations.
3989 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3992 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3994 * MAINTAINERS (write after approval): Update my mail address.
3996 2003-08-10 Andrew Cagney <cagney@redhat.com>
3998 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4000 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4002 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4003 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4004 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4005 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4006 i386bsd_sc_reg_offset): Add extern declarations.
4007 * i386obsd-nat.c: Include "i386-tdep.h"
4008 (_initialize_i386obsd_nat): Remove extern declarations.
4009 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4011 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4014 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4015 instead of frame_read_register.
4016 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4017 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4019 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4020 instead of frame_unwind_unsigned_register. Use
4021 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4022 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4023 instead of read_register. Use builtin_type_void_data_ptr instead
4024 of builtin_type_void_func_ptr when extracting the address of the
4026 (i386_extract_return_value, i386_store_return_value,
4027 i386_pseudo_register_read, i386_pseudo_register_write): Use
4028 register_size instead REGISTER_RAW_SIZE.
4030 2003-08-10 Andrew Cagney <cagney@redhat.com>
4032 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4033 sprintf. Make "name" constant.
4035 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4037 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4038 instead of frame_read_register.
4039 (i387_print_float_info): Use get_frame_register and
4040 get_frame_register_unsigned instead of frame_register_read.
4042 * i386fbsd-nat.c: Include "i386-tdep.h".
4043 (child_resume): Make `eflags' an ULONGEST. Use
4044 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4045 instead of register_read and register_write.
4047 * i386bsd-nat.c (fetch_inferior_registers,
4048 store_inferior_registers): Don't use && at the end of a line.
4049 (_initialize_i386bsd_nat): Fix typo.
4051 * frame.c (_initialize_frame): Add missing backslash.
4053 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4054 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4055 and supply_register instead of manipulating the register buffer
4058 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4059 * config/i386/nm-i386sol2.h
4060 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4062 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4063 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4064 instructions that GCC likes to mingle into the prologue. Fixes
4065 gdb/1253 and gdb/1255.
4067 2003-08-09 Andrew Cagney <cagney@redhat.com>
4070 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4071 * command.h (add_setshow_uinteger_cmd): Declare.
4072 * frame.c (set_backtrace_cmd): New function.
4073 (show_backtrace_cmd): New function.
4074 * frame.c (_initialize_frame): Replace "set/show
4075 backtrace-below-main" with "set/show backtrace past-main". Add
4076 command "set/show backtrace limit".
4077 (backtrace_past_main): Rename "backtrace_below_main".
4078 (backtrace_limit): New variable.
4079 (get_prev_frame): Update. Check the backtrace_limit.
4081 2003-08-09 Andrew Cagney <cagney@redhat.com>
4083 * defs.h (xstrprintf): Declare.
4084 * utils.c (xstrprintf): New function.
4085 * breakpoint.c (insert_breakpoints): Replace sprintf and
4086 non-literal format strings, with xstrprintf and cleanups.
4087 (delete_breakpoint,breakpoint_re_set): Ditto.
4088 (commands_command, insert_breakpoints): Ditto.
4089 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4090 (break_at_finish_command_1): Ditto.
4092 2003-08-09 Andrew Cagney <cagney@redhat.com>
4094 * MAINTAINERS (language support): List Adam Fedor as Objective C
4097 2003-08-08 J. Brobecker <brobecker@gnat.com>
4099 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4100 are now multiarched.
4102 2003-08-08 J. Brobecker <brobecker@gnat.com>
4104 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4105 longer necessary now that hppa64 is partially multiarch'ed.
4107 2003-08-08 Andrew Cagney <cagney@redhat.com>
4109 * interps.c (interp_set): Check for a NULL "old_interp".
4111 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4113 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4114 (install-only): Support DESTDIR.
4115 (uninstall): Likewise.
4116 (install-gdbtk): Likewise.
4118 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
4120 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4121 contains something meaningful at all times.
4123 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
4125 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4127 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4129 * MAINTAINERS (write after approval): Added self.
4131 2003-08-07 Andrew Cagney <cagney@redhat.com>
4133 * inferior.h (AT_SYMBOL): Define.
4134 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4135 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4136 * mips-tdep.c (mips_call_dummy_address): Delete function.
4137 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4138 set call_dummy_address.
4140 2003-08-07 Andrew Cagney <cagney@redhat.com>
4142 * language.c (op_error): Delete function.
4143 (binop_type_check): Delete function.
4144 * language.h (type_op_error, range_op_error): Delete macros.
4145 (op_error): Delete declaration.
4147 2003-08-07 Andrew Cagney <cagney@redhat.com>
4149 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4151 2003-08-07 Michal Ludvig <mludvig@suse.cz>
4153 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4154 (x86_64_push_arguments): Skip the red zone.
4156 2003-08-05 Andrew Cagney <cagney@redhat.com>
4158 * reggroups.c (reggroup_next): Check for the final entry.
4160 2003-08-04 Andrew Cagney <cagney@redhat.com>
4162 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4163 * cli/cli-script.c (define_command): Call query directly, instead
4164 of passing it a buffer.
4165 * ocd.c (ocd_error): Pass error a constant format string.
4166 * remote-mips.c (mips_error): Use fputs_filtered.
4168 * solib-svr4.c (_initialize_svr4_solib): Update
4169 register_gdbarch_data call.
4170 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4172 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4173 (register_gdbarch_data): Delete "free" parameter. Update
4175 * gdbarch.h, gdbarch.c: Re-generate.
4176 * reggroups.c (_initialize_reggroup): Update.
4177 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4178 * frame-base.c (_initialize_frame_base): Update.
4179 * frame-unwind.c (_initialize_frame_unwind): Update.
4180 * user-regs.c (_initialize_user_regs): Update.
4181 * remote.c (_initialize_remote): Update.
4182 * regcache.c (_initialize_regcache): Update.
4184 * regcache.c (xfree_regcache_descr): Delete function.
4185 (_initialize_regcache): Update call to register_gdbarch_data.
4186 (init_regcache_descr, init_legacy_regcache_descr): Use
4187 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4189 * remote.c (free_remote_state): Delete function.
4190 (_initialize_remote): Update register_gdbarch_data.
4191 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4192 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4194 2003-08-04 Andrew Cagney <cagney@redhat.com>
4196 * reggroups.c (struct reggroup_el): Define.
4197 (struct reggroups): Delete field "nr_group". Replace array
4198 "group" with a "first" to "last" linked list.
4199 (reggroups_init): Update. Allocate using gdbarch's obstack.
4200 (reggroups_free): Delete function.
4201 (add_group): Update. Add "el" parameter.
4202 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4203 (default_groups): Update.
4204 (reggroup_next): Replace reggroups.
4205 (reggroups_dump): Update.
4206 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4207 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4208 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4210 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4212 * Makefile.in (tui-interp.o): Update dependencies.
4214 2003-08-04 David Carlton <carlton@kealia.com>
4216 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4217 to internal_error call.
4218 * source.c (forward_search_command): Add "%s" format argument.
4219 (reverse_search_command): Ditto.
4220 * top.c (quit_confirm): Ditto.
4221 * cli/cli-setshow.c (do_setshow_command): Ditto.
4222 * cp-valprint.c (cp_print_class_method): Replace
4223 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4224 (cp_print_class_member): Ditto.
4225 * event-top.c (command_line_handler): Ditto.
4226 * linux-proc.c (linux_info_proc_cmd): Ditto.
4227 * p-typeprint.c (pascal_type_print_base): Ditto.
4228 * p-valprint.c (pascal_object_print_class_method): Ditto.
4229 (pascal_object_print_class_member): Ditto.
4230 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4231 * remote.c (remote_cisco_section_offsets): Ditto.
4232 * top.c (command_line_input): Ditto.
4233 * utils.c (vwarning,error_stream,quit): Ditto.
4234 * valprint.c (print_floating,print_binary_chars)
4235 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4237 2003-08-04 Andrew Cagney <cagney@redhat.com>
4239 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4241 2003-08-02 Andrew Cagney <cagney@redhat.com>
4243 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4244 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4247 2003-08-02 Andrew Cagney <cagney@redhat.com>
4249 * Makefile.in: Update all dependencies and definitions.
4251 2003-08-02 Adam Fedor <fedor@gnu.org>
4253 * linespec.c (is_objc_method_format): New function
4254 (decode_line_1, locate_first_half): Use it.
4257 2003-08-01 Andrew Cagney <cagney@redhat.com>
4259 * NEWS: Mention that m32r is multi-arch.
4260 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4261 * configure.tgt: Recognize m32r-*-*.
4262 * config/m32r/tm-m32r.h: Delete file.
4263 * config/m32r/m32r.mt: New file.
4264 * m32r-rom.c (m32r_upload_command): Use hostent only when
4265 gethostname succeeds, in order to avoid a compilation
4267 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4270 2003-08-01 Michael Snyder <msnyder@redhat.com>
4272 * sh-tdep.c (sh_frame_align): New gdbarch method.
4273 (sh_gdbarch_init): Set up frame_align method.
4275 2003-07-31 Michael Snyder <msnyder@redhat.com>
4277 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4278 which is already covered by the new frames infrastructure.
4280 2003-07-31 Andrew Cagney <cagney@redhat.com>
4282 * user-regs.c (struct user_reg): Add "next" link.
4283 (struct user_regs): Replace "user" with "first" and "last" links.
4284 (append_user_reg): Add pre-allocated "reg" parameter.
4285 (builtin_user_regs): Provide initial value for "last".
4286 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4287 (user_regs_init): Allocate memory from the gdbarch obstack.
4288 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4289 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4291 (usernum_to_user_reg): New function.
4292 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4293 (value_of_user_reg): Use usernum_to_user_reg.
4294 (user_regs_free): Delete function.
4295 (_initialize_user_regs): Update register_gdbarch_data call.
4297 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4299 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4301 2003-07-30 Michael Snyder <msnyder@redhat.com>
4303 * value.h (value_being_returned): Add a struct_addr argument.
4304 * infcall.c (call_function_by_hand): Pass struct_addr to
4305 value_being_returned.
4306 * infcmd.c (print_return_value): Pass zero as struct_addr.
4307 * values.c (value_being_returned): If struct_addr is passed,
4308 use it instead of trying to recover it from the inferior.
4310 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4312 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4313 the prologue analyzer won't need to attempt to extract the pc
4314 value from the woefully incomplete dummy frame.
4315 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4316 possible. Disable code which modifies the frame.
4318 2003-07-28 Andrew Cagney <cagney@redhat.com>
4320 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4322 (annotate_breakpoints_table, annotate_record): Ditto.
4323 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4324 (annotate_field_name_end, annotate_field_value): Ditto.
4325 (annotate_field_end, annotate_frame_source_begin): Ditto.
4326 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4327 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4328 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4329 (annotate_frame_address_end, annotate_frame_address): Ditto.
4330 (annotate_frame_args, annotate_frame_end): Ditto.
4331 (annotate_frame_where, annotate_arg_begin): Ditto.
4332 (annotate_arg_name_end, annotate_arg_value): Ditto.
4333 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4334 (annotate_function_call, annotate_signal_name): Ditto.
4335 (annotate_signal_string, annotate_signal_name_end): Ditto.
4336 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4337 (annotate_value_begin, annotate_value_history_value): Ditto.
4338 (annotate_value_history_end, annotate_value_end): Ditto.
4339 (annotate_display_begin, annotate_display_number_end): Ditto.
4340 (annotate_display_format, annotate_display_expression): Ditto.
4341 (annotate_display_expression_end, annotate_display_value): Ditto.
4342 (annotate_display_end, annotate_array_section_begin): Ditto.
4343 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4344 (annotate_elt, annotate_array_section_end): Ditto.
4346 2003-07-28 Andrew Cagney <cagney@redhat.com>
4348 * regcache.c (struct regcache_descr): Update comments on
4350 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4351 sizeof_raw_register_valid_p.
4352 (init_regcache_descr): Set nr_raw_registers and
4353 sizeof_raw_register_valid_p before calling
4354 init_legacy_regcache_descr.
4356 2003-07-28 Andrew Cagney <cagney@redhat.com>
4358 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4361 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4363 * thread.c (info_threads_command): Use get_selected_frame ().
4364 Check that there is at least one non-sentinel frame.
4366 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4368 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4369 (m68hc11_pop_frame): Remove.
4370 (m68hc11_frame_saved_pc): Remove.
4371 (m68hc11_frame_chain): Remove.
4372 (m68hc11_frame_init_saved_regs): Remove.
4373 (m68hc11_init_extra_frame_info): Remove.
4374 (m68hc11_store_struct_return): Remove.
4375 (m68hc11_saved_pc_after_call): Remove.
4377 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4379 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4380 frame unwind information.
4381 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4382 and adapted for frame unwinding.
4383 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4384 (m68hc11_unwind_pc): New function.
4385 (m68hc11_frame_unwind_cache): New function to analyze frames.
4386 (m68hc11_frame_this_id): New function to create new frame struct.
4387 (m68hc11_frame_prev_register): New function to unwind a register from
4389 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4390 (m68hc11_frame_p): New function for the above.
4391 (m68hc11_frame_base_address): New function to return fp of frame.
4392 (m68hc11_frame_args_address): Update for frame.
4393 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4394 (m68hc11_unwind_sp): New function.
4395 (m68hc11_unwind_dummy_id): New function.
4396 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4399 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4401 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4402 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4403 when we are beyond the current pc.
4405 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4407 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4408 from m68hc11_push_arguments.
4409 (m68hc11_push_arguments): Remove.
4410 (m68hc11_push_return_address): Remove.
4411 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4412 handlers; remove deprecated_extra_stack_alignment_needed.
4414 2003-07-27 Andrew Cagney <cagney@redhat.com>
4416 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4417 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4418 REAL_PC and not the pointer.
4419 * hppa-hpux-tdep.c: Include frame.h
4421 2003-07-27 Andrew Cagney <cagney@redhat.com>
4423 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4424 GDB_MULTI_ACH_PARTIAL.
4426 2003-07-27 Andrew Cagney <cagney@redhat.com>
4428 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4429 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4430 operator at start and not end of line.
4431 (decode_prologue): Ditto.
4432 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4433 frame_unwind_register_unsigned instead of
4434 frame_unwind_unsigned_register.
4435 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4437 (m32r_push_dummy_call): Use register_size instead of
4439 (m32r_frame_sniffer): Replace m32r_frame_p.
4440 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4441 * m32r-rom.c (report_transfer_performance): Delete extern
4443 (m32r_load, m32r_upload_command): Use print_transfer_performance
4444 instead of report_transfer_performance.
4445 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4446 / add_show_from_set.
4448 2003-07-26 Andrew Cagney <cagney@redhat.com>
4450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4451 store_return_value and extract_struct_value_address.
4453 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4456 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4457 NULL, default to the section containing PC.
4459 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4461 * NEWS: Mention "regs" deprecated for m68hc11 too.
4463 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4464 (m68hc11_print_register): New function to print out one register.
4465 (m68hc11_print_registers_info): New function to print registers.
4466 (show_regs): Deprecate and use the above.
4467 (m68hc11_gdbarch_init): Install the print_registers_info.
4469 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4471 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4472 that we have a SIGTRAP before returning non-zero.
4474 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4475 Elena Zannoni <ezannoni@redhat.com>
4477 * linespec.c (decode_line_2): Avoid crash if
4478 find_function_start_sal() returns empty record.
4480 2003-07-23 Andreas Schwab <schwab@suse.de>
4482 * ia64-tdep.c (ia64_print_insn): New function.
4483 (ia64_gdbarch_init): Set print_insn to it.
4484 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4485 deprecated_tm_print_insn_info.
4487 2003-07-22 Michael Snyder <msnyder@redhat.com>
4489 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4490 handle 8-bit returns (long long).
4491 (h8300h_extract_return_value): Ditto.
4492 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4494 2003-07-22 Andrew Cagney <cagney@redhat.com>
4496 * gdbarch.c Include "gdb_obstack.h".
4497 (struct gdbarch): Add an "obstack".
4498 (alloc_gdbarch_data): Allocate the gdbarch data using
4499 GDBARCH_OBSTACK_CALLOC.
4500 (free_gdbarch_data): Delete function.
4501 (gdbarch_obstack_zalloc): New function.
4502 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4503 Assert that the architecture is not initialized.
4504 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4505 vector from the obstack.
4506 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4507 architecture obstack.
4508 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4509 (set_gdbarch_data): Assert that the data is not initialized.
4510 (struct gdbarch_data): Delete member "free".
4511 (register_gdbarch_data): Do not initialize "free".
4512 * gdbarch.h, gdbarch.c: Re-generate.
4514 2003-07-22 Andrew Cagney <cagney@redhat.com>
4516 * configure.in (build_warnings): Add -Wformat-nonliteral.
4517 * configure: Re-generate.
4519 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4521 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4523 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4525 * findvar.c (read_var_value): Remove case for thread local storage
4526 variables. It is now entirely handled by the dwarf2 location
4528 * printcmd.c (address_info): Ditto.
4529 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4531 (struct symbol): Remove objfile field, which was used by
4532 LOC_THREAD_LOCAL_STATIC only.
4533 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4534 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4535 usage of objfile pointer.
4536 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4537 thread local variables.
4538 Add include of objfiles.h.
4539 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4541 * Makefile.in (dwarf2loc.o): Update dependencies.
4543 2003-07-22 Andrew Cagney <cagney@redhat.com>
4545 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4547 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4548 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4549 (struct value): Add opaque declaration.
4550 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4552 2003-07-21 Andrew Cagney <cagney@redhat.com>
4554 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4555 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4557 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4559 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4560 regcache_cooked_read_unsigned instead of read_register.
4561 (m68hc11_saved_pc_after_call): Likewise.
4562 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4563 instead of write_register.
4564 (m68hc11_register_type): New function.
4565 (m68hc11_register_virtual_type): Remove.
4566 (m68hc11_store_return_value): Convert to use the regcache.
4567 (m68hc11_extract_struct_value_address): Likewise.
4568 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4569 m68hc11_register_type; undeprecate store_return_value and
4570 extract_struct_value_address.
4572 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4574 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4575 and translate to use regcache.
4576 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4578 2003-07-18 Andrew Cagney <cagney@redhat.com>
4580 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4581 * gdbarch.h, gdbarch.c: Re-generate.
4582 * i386-tdep.c (i386_gdbarch_init): Do not set
4583 DWARF2_BUILD_FRAME_INFO.
4584 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4586 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4587 DWARF2_BUILD_FRAME_INFO.
4589 2003-07-18 Andrew Cagney <cagney@redhat.com>
4591 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4592 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4594 2003-07-18 Andrew Cagney <cagney@redhat.com>
4596 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4597 frame_unwind_address_in_block, instead of frame_pc_unwind.
4598 (dwarf2_frame_cache): Ditto.
4600 2003-07-18 Andrew Cagney <cagney@redhat.com>
4602 * user-regs.h (struct gdbarch): Declare opaque.
4603 * ui-out.h (struct ui_file): Declare opaque.
4604 * dwarf2-frame.h (struct frame_info): Declare opaque.
4606 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4608 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4610 (procfs_meminfo): Change strerror to safe_strerror.
4611 (procfs_can_run): Remove K&R badness.
4613 2003-07-17 Michael Snyder <msnyder@redhat.com>
4615 * remote-sim.c: Comment typo fix.
4617 2003-07-17 Andrew Cagney <cagney@redhat.com>
4619 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4621 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4622 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4623 GDB_MULTI_ARCH_PARTIAL.
4625 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4627 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4628 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4629 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4631 2003-07-16 Theodore A. Roth <troth@openavr.org>
4633 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4635 (avr_frame_unwind_cache): Don't unwind FP for main.
4637 Save the computed prev_sp.
4638 (avr_saved_regs_unwinder): Remove function.
4639 (avr_frame_prev_register): Use PC unwind logic from
4640 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4642 2003-07-16 Andrew Cagney <cagney@redhat.com>
4644 * frame-base.h (frame_base_p_ftype): Delete definition.
4645 (frame_base_append_predicate): Delete declaration.
4646 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4647 (frame_unwind_append_predicate): Delete declaration.
4648 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4649 (append_predicate): Delete parameter "p".
4650 (frame_unwind_append_predicate): Delete function.
4651 (frame_unwind_append_sniffer): Update call to append_predicate.
4652 (frame_unwind_free): Delete function.
4653 (_initialize_frame_unwind): Pass NULL as "free" to
4654 register_gdbarch_data.
4655 (frame_unwind_init): Append the dummy_frame_sniffer.
4656 (frame_unwind_find_by_frame): Simplify.
4657 * frame-base.c (struct frame_base_table): Delete field "p".
4658 (append_predicate): Delete parameter "p".
4659 (frame_base_append_predicate): Delete function.
4660 (frame_base_append_sniffer): Update call to append_predicate.
4661 (frame_base_free): Delete function.
4662 (frame_base_find_by_frame): Simplify.
4663 (_initialize_frame_base): Pass NULL as "free" to
4664 register_gdbarch_data.
4665 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4666 (x86_64_sigtramp_frame_sniffer): Replace
4667 "x86_64_sigtramp_frame_p".
4668 (x86_64_init_abi): Set the frame unwind sniffers.
4669 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4670 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4671 (m68k_gdbarch_init): Set the frame unwind sniffers.
4672 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4673 "i386_sigtramp_frame_p".
4674 (i386_frame_sniffer): Replace "i386_frame_p".
4675 (i386_gdbarch_init): Set the frame unwind sniffers.
4676 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4677 (avr_gdbarch_init): Set the frame unwind sniffers.
4678 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4679 "alpha_sigtramp_frame_p"
4680 (alpha_heuristic_frame_sniffer): Replace
4681 "alpha_heuristic_frame_p".
4682 (alpha_gdbarch_init): Set the frame unwind sniffers.
4683 (alpha_dwarf2_init_abi): Ditto.
4684 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4685 "alpha_debug_frame_p".
4686 (alpha_mdebug_frame_base_sniffer): Replace
4687 "alpha_mdebug_frame_base_p".
4688 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4689 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4690 (d10v_gdbarch_init): Set the frame unwind sniffer.
4691 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4692 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4693 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4694 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4695 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4696 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4698 2003-07-16 Michael Snyder <msnyder@redhat.com>
4700 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4701 should go thru sh_dsp_register_sim_regno, else the dsp regs
4702 will not get the right values.
4704 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4706 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4707 deprecated_store_floating by call to store_typed_floating.
4708 (sh_sh4_register_convert_to_raw): Substitute call to
4709 deprecated_extract_floating by call to extract_typed_floating.
4711 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4713 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4715 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4717 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4718 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4719 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4721 (do_pseudo_register): Remove.
4722 (sh_push_dummy_code): New function.
4723 (sh64_store_struct_return): Rename from sh_store_struct_return.
4724 Only called for sh64 now.
4725 (sh_extract_struct_value_address): Regcache'ify.
4726 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4727 and accomodate new tasks.
4728 (sh64_push_return_address): Rename from sh_push_return_address.
4729 Only called for sh64 now.
4730 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4732 (sh3e_sh4_extract_return_value): Regcache'ify.
4733 (sh_default_store_return_value): Ditto.
4734 (sh3e_sh4_store_return_value): Ditto.
4735 (sh_default_register_byte): Remove.
4736 (sh_sh4_register_byte): Remove.
4737 (sh_default_register_raw_size): Remove.
4738 (sh_sh4_register_raw_size): Remove.
4739 (sh_register_virtual_size): Remove.
4740 (sh_sh3e_register_virtual_type): Remove.
4741 (sh_sh3e_register_type): New function.
4742 (sh_sh4_register_virtual_type): Remove.
4743 (sh_sh4_register_type): New function.
4744 (sh_default_register_virtual_type): Remove.
4745 (sh_default_register_type): New function.
4746 (do_fv_register_info): Add parameters to accomodate call from
4747 sh_print_registers_info.
4748 (do_dr_register_info): Ditto.
4749 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4750 Add parameters to accomodate call from sh_print_registers_info.
4751 (sh_do_fp_register): Ditto.
4752 (sh64_do_pseudo_register): Call do_dr_register_info,
4753 do_fv_register_info and sh_do_fp_register with default parameters.
4754 (sh_do_register): Add parameters to accomodate call from
4755 sh_print_registers_info.
4756 (sh_print_register): Ditto.
4757 (sh_print_registers_info): Rename from sh_do_registers_info.
4758 Add parameters to be used as gdbarch_print_registers_info
4759 implementation. Accomodate removed do_pseudo_register function
4761 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4762 function pointer. Call sh_print_register with default parameters.
4763 (sh64_do_registers_info): Call sh_print_registers_info instead of
4764 sh_do_registers_info.
4765 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4766 detection of deprecated vs. non-deprecated functionality.
4767 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4768 function pointer assignments by direct function calls.
4770 2003-07-15 Andrew Cagney <cagney@redhat.com>
4772 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4773 (frame_register_unwind, create_new_frame): Ditto.
4774 (legacy_get_prev_frame, get_frame_type): Ditto.
4775 (get_frame_base_address): Use frame_base_find_by_frame.
4776 (get_frame_locals_address): Use frame_base_find_by_frame.
4777 (get_frame_args_address): Use frame_base_find_by_frame.
4778 * frame-base.h (frame_base_sniffer_ftype): Declare.
4779 (frame_base_append_sniffer): Declare.
4780 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4781 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4782 (frame_base_append_sniffer): New function.
4783 (frame_base_append_predicate): Add a NULL sniffer.
4784 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4785 (struct frame_base_table): Add "sniffer".
4786 (frame_base_free): Free the "sniffer" table.
4787 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4788 (frame_unwind_append_sniffer): Declare.
4789 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4790 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4791 (struct frame_unwind_table): Add "sniffer", delete "middle".
4792 (append_predicate): Add "sniffer" parameter, append the sniffer.
4793 (frame_unwind_init): Update append_predicate call.
4794 (frame_unwind_append_sniffer): New function.
4795 (frame_unwind_append_predicate): Update append_predicate call.
4796 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4798 2003-07-15 Andrew Cagney <cagney@redhat.com>
4800 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4801 before code inhibiting repeated unwind attempts. Add to
4802 commentary on that test's problems.
4803 * blockframe.c (inside_main_func): Look for "main" in the minimal
4805 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4808 2003-07-15 Andrew Cagney <cagney@redhat.com>
4810 * complaints.c (struct explanation): Define.
4811 (struct complaints): Change type of "explanation" to "struct
4813 (symfile_explanations): Convert to a "struct explanation" table.
4814 (vcomplaint): Update.
4816 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4818 * x86-64-linux-nat.c (regmap): Removed.
4819 (supply_gregset, fill_gregset): Call
4820 x86_64_linux_(fill,supply)_gregset functions.
4821 * x86-64-linux-tdep.c (USER_*): New defines.
4822 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4823 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4825 (fetch_core_registers): Ditto.
4826 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4827 * x86-64-linux-tdep.h: New file.
4828 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4830 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4832 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4834 * x86-64-tdep.c (x86_64_store_return_value): Use
4835 regcache_cooked_write_part instead of regcache_cooked_write.
4837 * configure.host: Add x86_64-*-freebsd*.
4838 * configure.tgt: Add x86_64-*-freebsd*.
4839 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4840 * amd64fbsd-nat.c: New file.
4841 * amd64fbsd-tdep.c: New file.
4842 * config/i386/nm-fbsd64.h: New file.
4843 * config/i386/fbsd64.mh: New file.
4844 * config/i386/fbsd64.mt: New file.
4846 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4848 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4849 `sc_regs_offset' and `sc_fpregs_offset'.
4850 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4851 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4852 (alpha_sigtramp_register_address): Rewrite to use new members of
4853 `struct gdbarch_tdep'.
4854 (alpha_gdbarch_init): Initialize new members of struct
4856 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4857 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4858 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4859 (alphafbsd_pc_in_sigtramp): Implement.
4860 (alphafbsd_sigtramp_offset): New function.
4861 (alphafbsd_sigcontext_addr): New function.
4862 (alphafbsd_init_abi): Initialize signal trampoline related members
4863 of `struct gdbarch_tdep'.
4864 (_initialize_alphafbsd_tdep): Add prototype.
4866 2003-07-11 Theodore A. Roth <troth@openavr.org>
4868 * Makefile.in (install-only): Quote sed expression when generating
4871 2003-07-11 Richard Henderson <rth@redhat.com>
4873 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4874 * dwarf2-frame.c: Include complaints.h.
4875 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4876 variable initialization; return NULL on error.
4877 (decode_frame_entry): New.
4879 2003-07-11 Andrew Cagney <cagney@redhat.com>
4881 * frame.h (frame_address_in_block): Delete declaration.
4882 * blockframe.c (frame_address_in_block): Delete function.
4883 (get_frame_block): Use get_frame_address_in_block.
4884 (block_innermost_frame): Ditto.
4885 * stack.c (print_frame, backtrace_command_1): Ditto.
4887 * frame.h (get_frame_address_in_block): Declare.
4888 (frame_unwind_address_in_block): Declare.
4889 * frame.c (frame_unwind_address_in_block): New function.
4890 (get_frame_address_in_block): New function.
4892 2003-07-10 Andrew Cagney <cagney@redhat.com>
4894 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4895 pre-default. Note: re-generate has no effect.
4897 2003-07-10 Andrew Cagney <cagney@redhat.com>
4899 * gdbarch.sh: When a variable, but not a function, compare against
4900 0. Fix problem in previous patch.
4901 * gdbarch.c: Re-generate.
4903 2003-07-10 Andrew Cagney <cagney@redhat.com>
4905 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4906 functions against NULL, not 0.
4907 * gdbarch.c: Re-generate.
4909 2003-07-10 Fred Fish <fnf@ninemoons.com>
4911 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4912 null string instead of a null pointer.
4913 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4915 2003-07-09 Michael Snyder <msnyder@redhat.com>
4917 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4919 2003-07-09 Mark Kettenis <kettenis@gnu.org>
4921 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4922 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4923 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4924 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4925 * x86-64-tdep.c: ... from here.
4927 2003-07-09 Andreas Schwab <schwab@suse.de>
4929 * m68k-tdep.h (enum struct_return): Define.
4930 (struct gdbarch_tdep): Add struct_return.
4931 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4932 bytes are padded to the right, not to the left. Pass struct value
4933 address in register %a1, not on stack.
4934 (m68k_use_struct_convention): New function.
4935 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4936 struct_return in tdep to pcc_struct_return.
4937 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4940 2003-07-09 Joel Brobecker <brobecker@gnat.com>
4942 * somread.c (som_symfile_offsets): Fix compilation error.
4944 2003-07-09 Andrew Cagney <cagney@redhat.com>
4946 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4947 Add comments about the checks.
4949 2003-07-08 Andrew Cagney <cagney@redhat.com>
4951 * Makefile.in: Make dependency section headers consistent.
4952 (config_h): Move to $BUILD headers section.
4953 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4954 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4955 (ada-exp.tab.c): Move to YACC/LEX section.
4956 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4957 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4959 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4961 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4962 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4963 of strerror with safe_strerror, use ISO C function definitions,
4964 and replace instances of sprintf with snprintf.
4966 2003-07-07 Andrew Cagney <cagney@redhat.com>
4968 * frame.c (get_prev_frame): Enable check for identical frames.
4969 Update comments. Update error messages.
4971 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4973 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4975 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4977 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4978 sort_symtab_syms, no longer necessary.
4980 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4982 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4984 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4986 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4987 (mips_register_byte): Likewise.
4989 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4991 * Makefile.in (sparc_tdep_h): New.
4992 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4993 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4994 * sparc-linux-nat.c: Include "sparc-tdep.h".
4995 * sparc-nat.c: Likewise.
4996 * sparc-tdep.c: Likewise.
4997 * sparc64nbsd-nat.c: Likewise.
4998 * sparcnbsd-nat.c: Likewise.
4999 * sparcnbsd-tdep.c: Likewise.
5000 * sparc-tdep.h: New file.
5001 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5002 and sparc_npc_regnum.
5004 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5006 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5007 (mips_linux_cannot_store_register): List supported instead of
5008 unsupported registers.
5010 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5012 * disasm.c (dump_insns): Separate instructions from addresses.
5014 2003-07-07 Andreas Schwab <schwab@suse.de>
5016 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5018 * m68k-tdep.c (NUM_FREGS): Delete.
5019 (SIG_PC_FP_OFFSET): Delete.
5020 (TARGET_M68K): Delete.
5021 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5022 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5023 P_MOVEL_SP, P_MOVEML_SP): Define.
5024 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5026 (m68k_register_raw_size): Delete.
5027 (m68k_register_virtual_size): Delete.
5028 (m68k_register_type): Renamed from m68k_register_virtual_type and
5029 add gdbarch argument.
5030 (m68k_store_struct_return): Delete.
5031 (m68k_deprecated_extract_return_value): Delete.
5032 (m68k_deprecated_extract_struct_value_address): Delete.
5033 (m68k_frame_chain): Delete.
5034 (m68k_frame_saved_pc): Delete.
5035 (m68k_fix_call_dummy): Delete.
5036 (m68k_push_dummy_frame): Delete.
5037 (m68k_pop_frame): Delete.
5038 (m68k_extract_return_value): New function.
5039 (m68k_store_return_value): Rewrite using regcache.
5040 (m68k_extract_struct_value_address): Rewrite using regcache.
5041 (m68k_push_dummy_call): New function.
5042 (struct m68k_frame_cache): Define.
5043 (m68k_alloc_frame_cache): New function.
5044 (m68k_analyze_frame_setup): New function.
5045 (m68k_analyze_register_saves): New function.
5046 (m68k_analyze_prologue): New function.
5047 (m68k_skip_prologue): Rewrite using above functions.
5048 (m68k_unwind_pc): New function.
5049 (m68k_frame_cache): New function.
5050 (m68k_frame_this_id): New function.
5051 (m68k_frame_prev_register): New function.
5052 (m68k_frame_unwind): New variable.
5053 (m68k_frame_p): New function.
5054 (m68k_sigtramp_frame_cache): New function.
5055 (m68k_sigtramp_frame_this_id): New function.
5056 (m68k_sigtramp_frame_prev_register): New function.
5057 (m68k_sigtramp_frame_unwind): New variable.
5058 (m68k_sigtramp_frame_p): New function.
5059 (m68k_frame_base_address): New function.
5060 (m68k_frame_base): New function.
5061 (m68k_unwind_dummy_id): New function.
5062 (fill_gregset): Use regcache_collect.
5063 (fill_fpregset): Likewise.
5064 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5066 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5067 deprecated_init_frame_pc, deprecated_store_struct_return,
5068 deprecated_extract_return_value, deprecated_store_return_value,
5069 deprecated_frame_chain, deprecated_frame_saved_pc,
5070 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5071 deprecated_register_virtual_size,
5072 deprecated_max_register_raw_size,
5073 deprecated_max_register_virtual_size,
5074 deprecated_register_virtual_type, deprecated_register_size,
5075 deprecated_register_byte, deprecated_register_bytes,
5076 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5077 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5078 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5079 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5080 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5081 deprecated_push_dummy_frame, deprecated_pop_frame,
5082 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5083 only if SYSCALL_TRAP is defined. Set extract_return_value,
5084 store_return_value, extract_struct_value_address, register_type,
5085 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5087 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5088 M68K_MAX_REGISTER_SIZE): Define.
5089 (struct m68k_sigtramp_info): Define.
5090 (struct gdbarch_tdep): Add get_sigtramp_info.
5091 * m68klinux-nat.c (fetch_register): Use register_size instead of
5092 REGISTER_RAW_SIZE. Don't put assignment in if.
5093 (store_register): Likewise.
5094 (fetch_inferior_registers): Likewise.
5095 (store_inferior_registers): Likewise.
5096 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5097 (m68k_linux_frame_saved_pc): Delete.
5098 (m68k_linux_sigcontext_reg_offset,
5099 m68k_linux_ucontext_reg_offset): Define.
5100 (m68k_linux_get_sigtramp_info): New function.
5101 (m68k_linux_extract_return_value): Rewrite using regcache.
5102 (m68k_linux_store_return_value): Likewise.
5103 (m68k_linux_extract_struct_value_address): Likewise.
5104 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5105 Don't set deprecated_frame_saved_pc,
5106 deprecated_extract_return_value, deprecated_store_return_value,
5107 deprecated_extract_struct_value_address. Set
5108 extract_return_value, store_return_value,
5109 extract_struct_value_address.
5111 2003-07-07 Andrew Cagney <cagney@redhat.com>
5113 * expprint.c: Include "user-regs.h" instead of "frame.h".
5114 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5115 frame_map_regnum_to_name.
5116 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5117 (frame_map_name_to_regnum): Simplify, call
5118 user_reg_map_name_to_regnum.
5119 (frame_map_regnum_to_name): Simplify, call
5120 user_reg_map_regnum_to_name.
5121 (frame_register_unwind): Update.
5122 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5123 (_initialize_frame_reg): Call user_reg_add_builtin.
5124 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5125 (value_of_register): Use value_of_user_reg.
5126 * eval.c (evaluate_subexp_standard): Update.
5127 * parse.c (write_dollar_variable): Update.
5128 * d10v-tdep.c (d10v_print_registers_info): Update.
5129 * infcmd.c (registers_info): Update.
5130 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5131 (builtin_regs_h): Delete macro.
5132 (user_regs_h): Define.
5133 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5134 (builtin-regs.o): Delete target.
5135 (user-regs.o): Specify dependencies.
5136 (expprint.o): Update dependencies.
5137 (findvar.o): Update dependencies.
5138 (frame.o): Update dependencies.
5139 (std-regs.o): Update dependencies.
5141 2003-07-06 Christopher Faylor <cgf@redhat.com>
5143 * win32-nat.c (solib_symbols_add): Use one variable for all section
5144 address stuff. Pass variable rather than address of variable to
5145 safe_symbol_file_add.
5147 2003-07-06 Andreas Schwab <schwab@suse.de>
5149 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5151 2003-07-04 Joel Brobecker <brobecker@gnat.com>
5153 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5155 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5157 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5159 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5161 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5162 * config/i386/nto.mh: New file.
5163 * config/i386/nm-nto.h: New file.
5164 * configure.host: Add i[3456]86-*-nto*.
5166 2003-07-03 Joel Brobecker <brobecker@gnat.com>
5168 * remote-vx.c (vx_add_symbols): Fix compilation error.
5170 2003-07-03 Andrew Cagney <cagney@redhat.com>
5172 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5173 * gdbarch.h, gdbarch.c: Re-generate.
5174 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5175 (legacy_register_name): Declare.
5176 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5177 (REGISTER_NAME): Define.
5178 * sparc-tdep.c (legacy_register_name): New function.
5179 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5180 (REGISTER_NAME): Define.
5181 (hppa64_register_name): Declare.
5182 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5183 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5184 (hppa64_register_name): New function.
5185 (hppa_register_name): New function.
5186 * arch-utils.c (legacy_register_name): Delete.
5187 * arch-utils.h (legacy_register_name): Delete.
5189 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5191 * cli/cli-interp.c (cli_interpreter_resume): Update the
5192 cli_uiout's stream to gdb_stdout.
5194 2003-07-03 Andrew Cagney <cagney@redhat.com>
5196 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5198 * gdbarch.h, gdbarch.c: Re-generate.
5199 * regcache.c (init_regcache_descr): Use legacy code when either
5200 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5202 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5204 * NEWS: Move "set logging" entry into GDB 6.0 section.
5206 2003-07-02 Jim Blandy <jimb@redhat.com>
5208 * s390-tdep.c (struct frame_extra_info): new member:
5209 'stack_bought_valid'.
5210 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5211 initialize fextra_info->stack_bought.
5212 (s390_frameless_function_invocation): Don't trust the value of
5213 fextra_info_ptr->stack_bought unless
5214 fextra_info->stack_bought_valid is set.
5216 New S390 prologue analyzer.
5217 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5218 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5219 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5220 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5221 compute_x_addr, s390_on_stack, s390_store,
5222 s390_get_signal_frame_info): New functions.
5223 (S390_NUM_SPILL_SLOTS): New macro.
5224 (s390_get_frame_info): Rewritten.
5225 (is_arg_reg): Deleted.
5227 Break out the decoding of S/390 instructions into separate
5228 functions, to make it more legible, and easier to check
5230 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5231 is_rx, is_rxe): New functions.
5232 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5233 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5234 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5235 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5236 enums for opcode values. (Is this an improvement?)
5238 2003-07-02 Andrew Cagney <cagney@redhat.com>
5240 * i386-tdep.c: Revert change committed as part of trad-frame code
5243 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5245 * breakpoint.c (insert_catchpoint): Make static.
5247 2003-07-02 Andreas Schwab <schwab@suse.de>
5249 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5250 former ia64_push_arguments and ia64_push_return_address, and use
5251 regcache functions instead of read/write_register.
5252 (ia64_gdbarch_init): Set push_dummy_call instead of
5253 deprecated_push_arguments and deprecated_push_return_address.
5255 2003-07-01 Andreas Jaeger <aj@suse.de>
5257 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5259 Set %rax only to number of SSE registers used.
5261 2003-07-01 Andrew Cagney <cagney@redhat.com>
5263 * trad-frame.h: Update comments, a -1 .addr is reserved.
5264 (trad_frame_value_p, trad_frame_addr_p): Declare.
5265 (trad_frame_reg_p): Declare.
5266 (trad_frame_set_value): Rename trad_frame_register_value.
5267 (trad_frame_set_unknown): Declare.
5268 * trad-frame.c (trad_frame_realreg_p): New function.
5269 (trad_frame_addr_p, trad_frame_value_p): New function.
5270 (trad_frame_set_unknown): New function.
5271 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5272 (trad_frame_prev_register): Use trad_frame_realreg_p,
5273 trad_frame_addr_p and trad_frame_value_p.
5274 (trad_frame_set_value): Rename trad_frame_register_value.
5275 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5276 and trad_frame_set_value.
5278 2003-06-30 Jim Blandy <jimb@redhat.com>
5280 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5281 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5282 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5283 for 16 registers, and then 32 more bytes.
5284 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5286 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5287 Move up in the file, since it's now used by is_simple_arg.
5288 (is_simple_arg): Don't assume registers are four bytes long.
5289 Exclude all double arguments. Extended floats are not simple
5291 (is_power_of_two): New function.
5292 (pass_by_copy_ref): Call is_power_of_two, and check that the
5293 length fits in a register, rather than listing all the acceptable
5294 sizes. Extended floats are not passed by reference.
5295 (s390_push_arguments): Don't assume registers are four bytes long.
5296 Reserve an argument register to point to the buffer for structures
5297 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5298 S390_STACK_FRAME_OVERHEAD.
5300 2003-06-30 Andreas Schwab <schwab@suse.de>
5302 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5303 format error message.
5305 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5307 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5309 2003-06-30 David Carlton <carlton@kealia.com>
5311 Band-aid for PR c++/1245.
5312 * Makefile.in (cp-support.o): Depend on complaints_h.
5313 * cp-support.c: Include complaints.h. Add declaration for
5314 find_last_component.
5315 (cp_find_first_component): Separate code into
5316 cp_find_first_component_aux.
5317 (cp_find_first_component_aux): Call demangled_name_complaint.
5318 (demangled_name_complaint): New.
5320 2003-06-30 Andrew Cagney <cagney@redhat.com>
5322 * remote.c (remote_write_bytes): Explicitly compute and then use
5323 the payload size. Update comments to reflect. Fixes problem of
5324 GDB not sending small packets as found by Fred Fish.
5326 2003-06-30 Andrew Cagney <cagney@redhat.com>
5328 * remote.c (remote_async_wait): Fix -Wformat problem.
5330 2003-06-29 Andrew Cagney <cagney@redhat.com>
5332 * remote.c (remote_wait): Call error, and not warning, when the
5334 (remote_async_wait): Ditto.
5336 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5338 * sparc-tdep.c (sparc_y_regnum): Make external again.
5340 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5342 * cli/cli-logging.c (pop_output_files): Add void to function
5345 2003-06-29 Andrew Cagney <cagney@redhat.com>
5347 * frame.c (frame_register_unwind): Use unsigned char when dumping
5348 the buffer contents.
5350 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5352 * cli/cli-logging.c: New file.
5353 * cli-out.c (struct ui_out_data): Add original_stream.
5354 (cli_redirect): New function.
5355 (cli_ui_out_impl): Add cli_redirect.
5356 (cli_out_new): Initialize original_stream.
5357 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5358 (uo_redirect, ui_out_redirect): New.
5359 * ui-out.h (struct ui_out_impl): Add redirect member.
5360 (redirect_ftype): New.
5361 (ui_out_redirect): Add prototype.
5362 * Makefile.in: Add rules for cli-logging.c.
5363 * NEWS: Mention "set logging".
5365 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5367 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5369 2003-06-27 Andrew Cagney <cagney@redhat.com>
5371 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5372 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5373 * avr-tdep.c (avr_call_dummy_address): Delete function.
5374 (avr_gdbarch_init): Do not set call_dummy_address.
5376 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5378 * symfile.c (syms_from_objfile): Move variables to inner block.
5379 Move the checks for the non-mainline case a bit earlier to avoid
5380 doing some useless computations.
5382 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5384 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5386 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5388 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5391 2003-06-26 Michael Chastain <mec@shout.net>
5393 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5394 gdb/testsuite/gdb.c++/pr-1210.exp.
5396 2003-06-26 Andrew Cagney <cagney@redhat.com>
5398 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5399 altivec_expression.h and altivec_registers.h.
5401 2003-06-26 Andrew Cagney <cagney@redhat.com>
5403 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5404 info->mach when MIPS16. Patch suggested by Fred Fish.
5406 2003-06-26 Andrew Cagney <cagney@redhat.com>
5408 * utils.c (internal_vproblem): Print the problem to a reason
5409 buffer and then pass to query. Make the msg variable more local.
5411 2003-06-26 Andrew Cagney <cagney@redhat.com>
5413 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5414 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5415 * gdbarch.h, gdbarch.c: Re-generate.
5416 * frame-base.c (default_frame_args_address): Update. Use
5417 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5419 (default_frame_locals_address): Ditto for
5420 DEPRECATED_FRAME_LOCALS_ADDRESS.
5421 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5422 (vax_frame_num_args): Update.
5423 (vax_gdbarch_init): Update.
5424 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5425 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5426 * mcore-tdep.c (mcore_gdbarch_init): Update.
5427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5428 * ia64-tdep.c (ia64_gdbarch_init): Update.
5429 * symtab.h (address_class): Update comments.
5430 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5431 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5432 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5433 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5434 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5435 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5436 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5437 * alpha-mdebug-tdep.c: Update.
5438 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5440 2003-06-26 Andreas Jaeger <aj@suse.de>
5442 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5443 of SSE registers so that varargs functions work. Rework handling
5444 of passing arguments on the stack.
5445 (x86_64_store_return_value): Return double and float values in SSE
5448 2003-06-24 Michael Chastain <mec@shout.net>
5450 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5451 the "constructor breakpoints ignored" bug.
5453 2003-06-25 David Carlton <carlton@kealia.com>
5455 * MAINTAINERS: Update e-mail address.
5457 2003-06-24 Jim Blandy <jimb@redhat.com>
5459 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5461 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5463 (ppc_linux_init_abi): Register it as the
5464 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5466 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5467 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5470 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5471 (ppc64_standard_linkage_target): Use it.
5473 2003-06-23 Andrew Cagney <cagney@redhat.com>
5475 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5476 for 0 "int0" and 4 "int32" sized registers.
5477 * gdbtypes.c (builtin_type_int0): Define.
5478 (build_gdbtypes): Initialize builtin_type_int0.
5479 * gdbtypes.h (builtin_type_int0): Declare.
5481 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5483 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5484 as characters are unsigned.
5486 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5489 * dwarfread.c (struct_type): Skip static fields without crashing.
5491 2003-06-22 Andrew Cagney <cagney@redhat.com>
5493 GDB 6.0 branch created.
5495 * PROBLEMS: Update. Empty.
5498 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5500 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5501 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5503 2003-06-22 Andrew Cagney <cagney@redhat.com>
5505 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5506 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5509 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5511 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5514 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5516 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5517 argument of val_print.
5518 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5519 to the address argument of baseclass_offset or target_read_memory.
5520 Do add it to the argument of cp_print_value_fields.
5522 2003-06-21 Andrew Cagney <cagney@redhat.com>
5524 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5525 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5526 instead of 0..NUM_REGS.
5527 (mips_register_reggroup_p): New function.
5528 (mips_pseudo_register_write): New function.
5529 (mips_pseudo_register_read): New function.
5530 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5531 based on the register's type.
5532 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5534 (mips_get_saved_register): Simplify. Assert that REGNO is a
5536 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5537 (mips_register_type): Replace mips_register_virtual_type. Map
5538 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5540 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5541 that the register is cooked / virtual.
5542 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5543 Only get the extra info when needed.
5544 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5545 (mips32_heuristic_proc_desc): Fetch the cooked register.
5546 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5547 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5548 (mips_print_register): Use gdbarch_register_type, instead of
5549 REGISTER_VIRTUAL_TYPE.
5550 (print_gp_register_row): Use gdbarch_register_type, instead of
5551 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5552 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5553 Print the pseudo / cooked registers.
5554 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5555 Print the pseudo / cooked registers.
5556 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5557 REG_NUM is pseudo / cooked.
5558 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5559 (mips_n32n64_xfer_return_value): Ditto.
5560 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5561 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5562 (mips_register_sim_regno): New function.
5563 (mips_gdbarch_init): Set deprecated_register_byte,
5564 register_group_p, pseudo_register_write, pseudo_register_read,
5565 register_sim_regno, and num_pseudo_regs. Set register_type,
5566 instead of register_virtual_type.
5567 * Makefile.in (mips-tdep.o): Update dependencies.
5568 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5569 REGISTER_VIRTUAL_TYPE.
5570 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5571 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5572 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5573 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5574 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5576 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5578 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5579 * cli/cli-cmds.c: Include "gdb_vfork.h".
5580 (shell_escape): Use vfork.
5582 2003-06-21 Andrew Cagney <cagney@redhat.com>
5584 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5585 32 bit floating-point register saves.
5587 * frame.h (deprecated_unwind_get_saved_register): Delete.
5588 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5589 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5590 and deprecated_get_next_frame_hack instead of
5591 deprecated_unwind_get_saved_register.
5593 * mips-tdep.c (mips_dump_tdep): Do not print
5594 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5596 * frame.c (get_frame_register): New function.
5597 (frame_unwind_register_signed): New function.
5598 (get_frame_register_signed): New function.
5599 (frame_unwind_register_unsigned): New function.
5600 (get_frame_register_unsigned): New function.
5601 * frame.h: Add comments on naming schema.
5602 (get_frame_register, frame_unwind_register_signed): Declare.
5603 (get_frame_register_signed, get_frame_register_signed): Declare.
5604 (frame_unwind_register_unsigned): Declare.
5605 (get_frame_register_unsigned): Declare.
5607 2003-06-20 Theodore A. Roth <troth@openavr.org>
5609 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5611 2003-06-20 Theodore A. Roth <troth@openavr.org>
5613 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5614 (avr_read_sp): Ditto.
5616 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5618 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5619 * config/arm/nm-linux.h: Likewise.
5620 * config/arm/tm-linux.h: Likewise.
5621 * config/ia64/nm-linux.h: Likewise.
5622 * config/ia64/tm-ia64.h: Likewise.
5623 * config/s390/tm-linux.h: Likewise.
5624 * config/s390/tm-s390.h: Likewise.
5625 * s390-nat.c: Likewise.
5626 * s390-tdep.c: Likewise.
5628 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5629 * config/ia64/linux.mt: Likewise.
5630 * config/m68k/linux.mh: Likewise.
5631 * config/mips/linux.mt: Likewise.
5632 * config/powerpc/linux.mh: Likewise.
5633 * config/sh/linux.mt: Likewise.
5635 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5637 * solib.c (solib_open): Change tests for whether to search
5638 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5641 2003-06-19 Theodore A. Roth <troth@openavr.org>
5643 * avr-tdep.c (avr_frame_address): Delete function.
5644 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5645 set_gdbarch_frame_args_address.
5647 2003-06-19 Andrew Cagney <cagney@redhat.com>
5649 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5650 (REGISTER_CONVERT_FROM_TYPE): Delete.
5651 (mips_register_convert_to_type): Delete declaration.
5652 (mips_register_convert_from_type): Delete declaration.
5653 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5656 2003-06-19 Michael Snyder <msnyder@redhat.com>
5658 * linux-nat.h: New file.
5659 * linux-nat.c: Include linux-nat.h.
5660 * lin-lwp.c: Include linux-nat.h.
5661 Move struct lwp_info def to linux-nat.h.
5662 * linux-proc.c: Include linux-nat.h.
5663 (linux_make_note_section): Iterate over lwps instead of threads.
5664 (linux_do_thread_registers): Use lwp instead of merged pid.
5665 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5666 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5667 Add dependency on linux_nat_h.
5669 2003-06-19 Theodore A. Roth <troth@openavr.org>
5671 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5673 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5675 * varobj.c (get_type, get_target_type): Use check_typedef.
5677 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5679 * breakpoint.c (insert_catchpoint): Call internal_error.
5681 2003-06-19 Theodore A. Roth <troth@openavr.org>
5683 * avr-tdep.c (avr_push_dummy_code): Delete function.
5684 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5686 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5688 * arch-utils.c (default_prepare_to_proceed): Remove.
5689 (generic_prepare_to_proceed): Remove.
5690 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5691 (generic_prepare_to_proceed): Remove prototype.
5692 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5693 * gdbarch.c: Regenerate.
5694 * gdbarch.h: Regenerate.
5695 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5696 * hppah-nat.c (hppa_switched_threads): Remove.
5697 * infrun.c (prepare_to_proceed): New static function, copied from
5698 generic_prepare_to_proceed. Remove select_it argument.
5699 (proceed): Call prepare_to_proceed.
5700 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5702 (ptrace_wait): Don't set the removed variables.
5703 (hppa_switched_threads): Remove.
5704 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5705 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5706 (lin_lwp_prepare_to_proceed): Remove prototype.
5707 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5708 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5710 2003-06-18 Theodore A. Roth <troth@openavr.org>
5712 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5714 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5715 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5716 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5717 (AVR_PROLOGUE_*): Enumerate prologue types.
5718 (struct frame_extra_info): Remove.
5719 (struct avr_unwind_cache): Define.
5720 (avr_write_sp): Delete function.
5721 (avr_read_fp): Ditto.
5722 (avr_init_extra_frame_info): Ditto.
5723 (avr_pop_frame): Ditto.
5724 (avr_frame_saved_pc): Ditto.
5725 (avr_saved_pc_after_call): Ditto.
5726 (avr_push_return_address): Ditto.
5727 (avr_frame_chain): Ditto.
5728 (avr_store_struct_return): Ditto.
5729 (avr_push_arguments): Ditto.
5730 (avr_scan_prologue): Update comments. Changed to set up the info for
5731 cache unwinding. Now returns end of prologue PC.
5732 (avr_skip_prologue): Better handling of functions lacking a prologue
5733 by using avr_scan_prologue.
5734 (avr_scan_arg_moves): New function.
5735 (avr_saved_regs_unwinder): Ditto.
5736 (avr_frame_unwind_cache): Ditto.
5737 (avr_unwind_pc): Ditto.
5738 (avr_frame_this_id): Ditto.
5739 (avr_frame_prev_register): Ditto.
5740 (avr_frame_p): Ditto.
5741 (avr_frame_base_address ): Ditto.
5742 (avr_unwind_dummy_id): Ditto.
5743 (avr_push_dummy_code): Ditto.
5744 (push_stack_item): Ditto.
5745 (pop_stack_item): Ditto.
5746 (avr_push_dummy_call): Ditto.
5747 (struct stack_item): Define.
5748 (avr_frame_unwind): Declare structure.
5749 (avr_frame_base): Ditto.
5750 (avr_gdbarch_init): Remove calls to
5751 set_gdbarch_deprecated_init_frame_pc,
5752 set_gdbarch_deprecated_target_read_fp,
5753 set_gdbarch_deprecated_dummy_write_sp,
5754 set_gdbarch_deprecated_fp_regnum,
5755 set_gdbarch_deprecated_push_arguments,
5756 set_gdbarch_deprecated_push_return_address,
5757 set_gdbarch_deprecated_pop_frame,
5758 set_gdbarch_deprecated_store_struct_return,
5759 set_gdbarch_deprecated_frame_init_saved_regs,
5760 set_gdbarch_deprecated_init_extra_frame_info,
5761 set_gdbarch_deprecated_frame_chain,
5762 set_gdbarch_deprecated_frame_saved_pc,
5763 set_gdbarch_deprecated_saved_pc_after_call.
5764 Add calls to set_gdbarch_push_dummy_call,
5765 set_gdbarch_push_dummy_code,
5766 frame_unwind_append_predicate,
5767 frame_base_set_default,
5768 set_gdbarch_unwind_dummy_id,
5769 set_gdbarch_unwind_pc.
5772 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
5774 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5775 registers for H8/300S.
5776 (h8300_print_registers_info): Ditto.
5777 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5779 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5781 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5782 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5783 (lin_lwp_wait): Likewise. Update comments.
5784 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5785 (pull_pid_from_list, linux_record_stopped_pid): New.
5787 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5789 * ada-lang.c (scan_discrim_bound): Name first argument.
5790 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5791 declared by ALL_BLOCK_SYMBOLS.
5793 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5795 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5796 ("regcache.h"): Include it.
5797 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5799 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5801 * NEWS: Mention gdbserver detach change and "disconnect" command.
5802 * infcmd.c (disconnect_command): New function.
5803 (_initialize_infcmd): Add ``disconnect'' command.
5804 * remote.c (remote_async_detach): Delete.
5805 (remote_detach): Merge remote_async_detach.
5806 (remote_disconnect): New.
5807 (init_remote_ops): Set to_disconnect.
5808 (init_remote_cisco_ops): Likewise.
5809 (init_remote_async_ops): Likewise. Use remote_detach.
5810 * target.c (cleanup_target): Default to_disconnect.
5811 (update_current_target): Inherit to_disconnect.
5812 (target_disconnect, debug_to_disconnect): New functions.
5813 (setup_target_debug): Set to_disconnect.
5814 * target.h (struct target_ops): Add to_disconnect.
5815 (target_disconnect): Add prototype.
5817 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5819 * breakpoint.c (insert_catchpoint): New function.
5820 (insert_breakpoints): Use catch_exceptions to call
5821 insert_catchpoint. Disable catchpoints if they fail to insert.
5823 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5825 * symfile.c (reread_symbols): Clear sym_private.
5827 2003-06-17 Andrew Cagney <cagney@redhat.com>
5829 * trad-frame.h (struct frame_info): Add opaque declaration.
5830 * remote-fileio.h (struct cmd_list_element): Add opaque
5832 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5835 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5837 * remote.c (remote_prepare_to_store): Replace call to
5838 deprecated_read_register_bytes with multiple regcache_raw_read
5841 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5843 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5844 (nto_find_and_open_solib): Likewise.
5845 (nto_init_solib_absolute_prefix): Likewise.
5846 (_initialize_nto_tdep): Fix indentation.
5848 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5850 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5852 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5854 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5856 2003-06-17 Jim Blandy <jimb@redhat.com>
5858 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5860 2003-06-16 Theodore A. Roth <troth@openavr.org>
5862 * avr-tdep.c (avr_extract_return_value): New function.
5863 (avr_gdbarch_init): Set extract_return_value method.
5865 2003-06-16 Andrew Cagney <cagney@redhat.com>
5867 * frame.h (deprecated_get_next_frame_hack): Declare.
5868 * frame.c (legacy_saved_regs_prev_register): Only require
5869 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5870 there are always saved regs.
5871 (deprecated_generic_get_saved_register): Do not require
5872 DEPRECATED_FRAME_INIT_SAVED_REGS.
5873 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5874 use frame ID unwind instead.
5875 (deprecated_get_next_frame_hack): New function.
5877 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5879 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5880 (h8300_push_dummy_call): ...this function. Some minor optimization.
5881 (h8300_push_return_address): Remove.
5882 (h8300_gdbarch_init): Remove calls to
5883 set_gdbarch_deprecated_dummy_write_sp,
5884 set_gdbarch_deprecated_push_arguments and
5885 set_gdbarch_deprecated_push_return_address.
5886 Add call to set_gdbarch_push_dummy_call.
5888 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5890 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5891 (E_PSEUDO_EXR_REGNUM): Ditto.
5892 (h8300_is_argument_spill): Check for instructions moving argument
5893 registers into safe registers.
5894 (h8300_skip_prologue): Check for stm instruction to push registers
5895 used for register variables onto stack.
5896 (gdb_print_insn_h8300): Remove.
5897 (h8300_examine_prologue): Add a comment.
5898 (h8300_register_name): Take pseudo registers into account.
5899 (h8300s_register_name): Ditto.
5900 (h8300sx_register_name): Ditto.
5901 (h8300_print_register): Ditto.
5902 (h8300_print_registers_info): Define "nice" printing order.
5903 (h8300_saved_pc_after_call): Take pseudo registers into account.
5904 (h8300_register_type): Ditto. Return type used for remote connection
5905 when requesting real CCR or EXR register, return actual type when
5906 requesting pseudo CCR or EXR.
5907 (h8300_pseudo_register_read): New function.
5908 (h8300_pseudo_register_write): Ditto.
5909 (h8300_dbg_reg_to_regnum): Ditto.
5910 (h8300s_dbg_reg_to_regnum): Ditto.
5911 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5912 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5913 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5914 set_gdbarch_print_insn architecture dependent.
5915 Call set_gdbarch_pseudo_register_read and
5916 set_gdbarch_pseudo_register_write.
5917 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5919 2003-06-16 Andrew Cagney <cagney@redhat.com>
5921 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5922 * gdbarch.h, gdbarch.c: Re-generate.
5923 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5924 * s390-tdep.c (s390_gdbarch_init): Update.
5925 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5926 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5927 * mips-tdep.c (mips_gdbarch_init): Update.
5928 * mcore-tdep.c (mcore_gdbarch_init): Update.
5929 * cris-tdep.c (cris_gdbarch_init): Update.
5930 * infcall.c (call_function_by_hand): Update.
5931 * ia64-tdep.c (ia64_push_arguments): Update comment.
5932 * frame.c (legacy_get_prev_frame): Do not assume
5933 SAVE_DUMMY_FRAME_TOS_P.
5934 * dummy-frame.c (find_dummy_frame): Update comment.
5936 2003-06-16 Andrew Cagney <cagney@redhat.com>
5938 * regcache.c (do_cooked_read): Do not use register_valid_p.
5940 2003-06-15 Theodore A. Roth <troth@openavr.org>
5942 * avr-tdep.c (avr_register_type): Remove a blank line.
5943 (avr_scan_prologue): Correct some comments.
5945 2003-06-15 Theodore A. Roth <troth@openavr.org>
5947 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5949 Properly scan prologues generated by gcc with the -mcall-prologues
5951 Add code to scan -mcall-prologues for mega devices.
5953 2003-06-15 Theodore A. Roth <troth@openavr.org>
5955 * avr-tdep.c (avr_register_byte): Delete function.
5956 (avr_register_raw_size): Delete function.
5957 (avr_register_virtual_size): Delete function.
5958 (avr_register_virtual_type): Delete function.
5959 (avr_register_type): New function.
5960 (avr_address_to_pointer): Remove unused code.
5961 (avr_read_fp): Need to read FP as two separate bytes due to change to
5962 avr_register_type() usage.
5963 (avr_gdbarch_init): Don't set deprecated_register_size.
5964 Don't set deprecated_register_bytes.
5965 Don't set deprecated_register_byte.
5966 Don't set deprecated_register_raw_size.
5967 Don't set deprecated_max_register_raw_size.
5968 Don't set deprecated_register_virtual_size.
5969 Don't set deprecated_max_register_virtual_size.
5970 Don't set deprecated_register_virtual_type.
5971 Set register_type method.
5973 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5975 * Makefile.in (linux-nat.o): Add rule.
5976 * linux-nat.c: New file.
5977 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5978 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5979 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5980 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5981 * config/arm/linux.mh (NATDEPFILES): Likewise.
5982 * config/i386/linux.mh (NATDEPFILES): Likewise.
5983 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5984 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5985 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5986 * config/mips/linux.mh (NATDEPFILES): Likewise.
5987 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5988 * config/s390/s390.mh (NATDEPFILES): Likewise.
5989 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5991 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5993 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5994 replace out-of-date comment.
5996 2003-06-15 Andrew Cagney <cagney@redhat.com>
5998 * rdi-share/host.h (Fail): Change to a varargs function.
5999 * remote-rdi.c (Fail): Update.
6001 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6003 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6004 (i386_convert_register_p, i386_register_to_value,
6005 i386_register_from_value): Handle types longer than 8 bytes.
6007 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6009 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6010 Move floating-point code to new function in i387-tdep.c.
6011 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6012 New functions containing code moved here from i386-tdep.c.
6013 * i387-tdep.h: Add opaque declaration for `struct type'.
6014 (i387_register_to_value, i387_value_to_register): New prototypes.
6015 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6016 (x86_64_init_abi): Set convert_register_p, register_to_value and
6017 value_to_register here.
6019 2003-06-14 Andrew Cagney <cagney@redhat.com>
6021 * mips-tdep.c (mips_register_to_value): Make static.
6022 (mips_value_to_register): Make static.
6023 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6024 * ia64-tdep.c (ia64_register_raw_size): Make static.
6025 (ia64_register_virtual_size): Make static.
6026 (ia64_register_byte): Make static.
6027 * i387-tdep.c: Include "i387-tdep.h".
6028 (print_387_control_word): Delete function.
6029 (print_387_status_word): Delete function.
6030 (print_387_status_bits): Delete function.
6031 (print_387_control_bits): Delete function.
6032 * Makefile.in (i387-tdep.o): Update dependencies.
6033 * rdi-share/host.h (Fail): Declare.
6034 * remote-rdi.c (Fail): Update to match declaration.
6036 2003-06-14 Andrew Cagney <cagney@redhat.com>
6038 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6039 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6040 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6041 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6042 * README: Delete reference to remote-array.
6043 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6044 (remote-array.o): Delete target.
6045 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6046 * remote-array.c: Delete file.
6048 2003-06-14 Andrew Cagney <cagney@redhat.com>
6049 Mark Kettenis <kettenis@gnu.org>
6051 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6052 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6053 parameter with "frame".
6054 * gdbarch.h, gdbarch.c: Re-generate.
6055 * frame.h (put_frame_register): Declare.
6056 * frame.c (put_frame_register): New function.
6057 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6058 (legacy_register_to_value): Rewrite, use "frame" to get the
6060 (legacy_value_to_register): Rewrite, use "frame" to find the
6061 register's location before storing.
6062 * arch-utils.h (legacy_convert_register_p): Update.
6063 (legacy_register_to_value, legacy_value_to_register): Update.
6064 * findvar.c (value_from_register): Rewrite, eliminate use of
6065 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6066 "frame" to REGISTER_TO_VALUE.
6067 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6068 lval_reg_frame_relative + lval_register branch of the switch. Do
6069 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6070 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6071 I386_EDI_REGNUM): New defines.
6072 (i386_next_regnum, i386_convert_register_p,
6073 i386_register_to_value, i386_value_to_register): New functions.
6074 (i386_register_convertible, i386_register_convert_to_virtual,
6075 i386_convert_to_raw): Remove functions.
6076 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6077 value_to_register instead of register_convertible,
6078 register_convert_to_virtual and register_convert_to_raw.
6079 * mips-tdep.c (mips_convert_register_p): New function.
6080 (mips_value_to_register): Replace mips_register_convert_from_type.
6081 (mips_register_to_value): Replace mips_register_convert_to_type.
6082 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6084 * alpha-tdep.c (alpha_convert_register_p): Update.
6085 (alpha_value_to_register): Update, store the register.
6086 (alpha_register_to_value): Update, fetch the register.
6088 2003-06-14 Theodore A. Roth <troth@openavr.org>
6090 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6091 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6092 Don't set deprecated_call_dummy_words.
6093 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6094 Don't set remote_translate_xfer_address.
6095 (avr_io_reg_read_command): Remove commented out debug printf.
6098 2003-06-14 Theodore A. Roth <troth@openavr.org>
6100 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6101 causes gdb to seg fault.
6103 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
6105 * sparc-nat.c (fetch_inferior_registers): Correct
6106 a reference to "registers".
6108 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6110 * Makefile.in (exc_request_U_h): Define
6111 (exc_request_S_h): Likewise.
6112 (msg_reply_S_h): Likewise.
6113 (msg_U_h): Likewise.
6114 (notify_S_h): Likewise.
6115 (process_reply_S_h): Likewise.
6116 (gnu-nat.o): Depend on gdb_obstack_h
6117 * gnu-nat.c: Include "gdb_obstack.h".
6119 2003-06-13 Andrew Cagney <cagney@redhat.com>
6121 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6122 * gdbarch.h, gdbarch.c: Re-generate.
6124 2003-06-13 Andrew Cagney <cagney@redhat.com>
6126 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6127 when deprecated REGISTER macros can be deleted.
6128 * gdbarch.h, gdbarch.c: Re-generate.
6130 2003-06-13 Jim Blandy <jimb@redhat.com>
6132 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6133 Linux entry point symbols for _dl_debug_state, too.
6135 2003-06-13 Andrew Cagney <cagney@redhat.com>
6137 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6138 available, do not use the FP register, and always save the TOS.
6139 * dummy-frame.c (dummy_frame_this_id): Do not assert
6140 SAVE_DUMMY_FRAME_TOS.
6141 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6142 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6143 (i386_push_dummy_call): Add 8 to the returned SP.
6144 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6145 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6146 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6147 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6148 (x86_64_push_dummy_call): Return "sp + 16".
6149 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6150 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6151 save_dummy_frame_tos.
6153 2003-06-13 Jim Blandy <jimb@redhat.com>
6155 * frv-tdep.c (frv_use_struct_convention): Delete static
6156 declaration for function deleted in my change of 2003-06-12.
6158 2003-06-13 Theodore A. Roth <troth@openavr.org>
6160 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6161 (avr_pointer_to_address): Shift code addrs left 1 bit.
6162 (avr_convert_from_func_ptr_addr): Delete function since operation is
6163 better handled by avr_address_to_pointer and avr_pointer_to_address.
6164 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6166 2003-06-13 Mark Kettenis <kettenis@gnu.org>
6168 From Kelley Cook <kelleycook@wideopenwest.com>:
6169 * configure.host: Accept i[34567]86 variants.
6170 * configure.tgt: Likewise.
6171 * nlm/configure.in: Likewise.
6172 * nlm/configure: Regenerated.
6174 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
6176 * arm-tdep.c (solib-svr4.h): Dont' include it.
6177 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6178 * arm-linux-tdep.c: ... here. Make static.
6179 (arm_linux_init_abi): Register it.
6180 (solib-svr4.h): Include it.
6181 * Makefile.in: Update dependencies.
6182 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6183 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6185 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6187 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6188 indicate registers used for return values.
6189 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6190 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6192 (h8300_init_extra_frame_info): Ditto.
6193 (h8300_frame_locals_address): Removed.
6194 (h8300_frame_args_address): Removed.
6195 (h8300_extract_return_value): Use new regcache structure. Only care
6197 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6198 (h8300_store_return_value): Use new regcache structure. Only care
6200 (h8300h_store_return_value): Same function for 32 bit CPUs.
6201 (h8300_store_struct_return): Removed.
6202 (h8300_extract_struct_value_address): Use new regcache structure.
6203 (h8300h_extract_struct_value_address): Removed.
6204 (h8300_push_dummy_code): New function.
6205 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6206 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6207 set_gdbarch_store_return_value architecture dependent.
6208 Call set_gdbarch_push_dummy_code and
6209 set_gdbarch_extract_struct_value_address.
6210 Remove calls to set_gdbarch_frame_args_address,
6211 set_gdbarch_frame_locals_address,
6212 set_gdbarch_deprecated_store_struct_return,
6213 set_gdbarch_deprecated_extract_return_value,
6214 set_gdbarch_deprecated_extract_struct_value_address,
6215 set_gdbarch_deprecated_call_dummy_words and
6216 set_gdbarch_deprecated_sizeof_call_dummy_words.
6218 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6220 * h8300-tdep.c (h8300_register_byte): Remove.
6221 (h8300h_register_byte): Remove.
6222 (h8300_register_virtual_type): Remove. Substitute by...
6223 (h8300_register_type): New function.
6224 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6225 (h8300h_extract_struct_value_address): Ditto.
6226 (h8300_gdbarch_init): Drop calls to
6227 set_gdbarch_deprecated_register_byte and
6228 set_gdbarch_deprecated_register_virtual_type.
6229 Add call to set_gdbarch_register_type.
6231 2003-06-13 Andrew Cagney <cagney@redhat.com>
6233 * gdbarch.sh: Update comments on registers.
6234 (deprecated_register_byte): Rename register_byte.
6235 (deprecated_register_raw_size): Rename register_raw_size.
6236 (deprecated_register_virtual_size): Rename register_virtual_size.
6237 (deprecated_register_virtual_type): Rename register_virtual_type.
6238 * gdbarch.h, gdbarch.c: Re-generate.
6239 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6240 * vax-tdep.c (vax_gdbarch_init): Update.
6241 * v850-tdep.c (v850_gdbarch_init): Update.
6242 * sparc-tdep.c (sparc_gdbarch_init): Update.
6243 * sh-tdep.c (sh_gdbarch_init): Update.
6244 * s390-tdep.c (s390_gdbarch_init): Update.
6245 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6246 * ns32k-tdep.c: Update.
6247 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6248 * mips-tdep.c (mips_gdbarch_init): Update.
6249 * mcore-tdep.c (mcore_gdbarch_init): Update.
6250 * m68k-tdep.c (m68k_gdbarch_init): Update.
6251 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6252 * ia64-tdep.c (ia64_gdbarch_init): Update.
6253 * hppa-tdep.c (hppa_gdbarch_init): Update.
6254 * h8300-tdep.c (h8300_gdbarch_init): Update.
6255 * frv-tdep.c (frv_gdbarch_init): Update.
6256 * cris-tdep.c (cris_gdbarch_init): Update.
6257 * avr-tdep.c (avr_gdbarch_init): Update.
6258 * alpha-tdep.c (alpha_gdbarch_init): Update.
6259 * arm-tdep.c (arm_gdbarch_init): Update.
6261 2003-06-13 Andrew Cagney <cagney@redhat.com>
6263 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6264 mips_o32_use_struct_convention with always_use_struct_convention.
6266 2003-06-12 David Carlton <carlton@kealia.com>
6268 * cp-namespace.c (cp_set_block_scope): Comment out
6269 processing_has_namespace_info branch.
6271 2003-06-12 Jim Blandy <jimb@redhat.com>
6273 Recognize and skip 64-bit PowerPC Linux linkage functions.
6274 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6275 insn_pattern, insns_match_pattern, d_field, ds_field): New
6276 functions, macros, and types for working with PPC instructions.
6277 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6278 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6279 ppc64_skip_trampoline_code): New functions, variables, and macros
6280 for recognizing and skipping linkage functions.
6281 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6282 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6284 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6285 register offsets for both the 32- and 64-bit interfaces.
6287 Actually finish the job started by my change of 2003-05-29.
6288 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6289 other #definition of this.
6290 (ppc_linux_skip_trampoline_code): Remove declaration.
6291 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6293 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6296 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6297 'long' on ppc64-*-linux*.
6299 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6300 isn't #defined, assume the register doesn't exist: act as if
6301 tdep->ppc_mq_regnum were -1.
6303 * configure.host, configure.tgt: Add entries for
6304 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6306 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6309 * arch-utils.c (always_use_struct_convention): New function.
6310 * arch-utils.h (always_use_struct_convention): New prototype.
6311 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6312 (alpha_gdbarch_init): Register always_use_struct_convention,
6313 instead of alpha_use_struct_convention.
6314 * cris-tdep.c (cris_use_struct_convention): Delete.
6315 (cris_gdbarch_init): Register always_use_struct_convention,
6316 instead of cris_use_struct_convention.
6317 * frv-tdep.c (frv_use_struct_convention): Delete.
6318 (frv_gdbarch_init): Register always_use_struct_convention,
6319 instead of frv_use_struct_convention.
6320 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6321 (h8300_gdbarch_init): Register always_use_struct_convention,
6322 instead of h8300_use_struct_convention.
6323 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6324 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6325 instead of mips_o32_use_struct_convention.
6327 2003-06-12 Andrew Cagney <cagney@redhat.com>
6329 * wince.c: Include "mips-tdep.h".
6330 * mips-tdep.h (mips_next_pc): Declare.
6331 * mcore-tdep.c: Make more local functions static.
6332 * Makefile.in (wince.o): Update dependencies.
6334 2003-06-12 David Carlton <carlton@kealia.com>
6336 * symtab.c (lookup_symbol_aux_minsyms): Replace
6337 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6338 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6339 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6340 SYMBOL_NATURAL_NAME.
6342 2003-06-12 Andreas Schwab <schwab@suse.de>
6344 * Makefile.in (tuiDisassem.o): Update dependencies.
6346 2003-06-12 David Carlton <carlton@bactrian.org>
6348 * symtab.h: Delete declaration of make_symbol_overload_list.
6349 Add declaration of lookup_partial_symbol.
6350 * symtab.c (remove_params): Move to cp-support.c.
6351 (overload_list_add_symbol, make_symbol_overload_list)
6352 (sym_return_val_size, sym_return_val_index): Ditto.
6353 (lookup_partial_symbol): Make extern.
6354 * cp-support.h: Add declaration of make_symbol_overload_list.
6355 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6356 symtab.h, and block.h.
6357 (remove_params): Move here from symtab.c.
6358 (overload_list_add_symbol, make_symbol_overload_list)
6359 (sym_return_val_size, sym_return_val_index): Ditto.
6360 * valops.c: Include cp-support.h.
6361 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6362 frame_h, and block_h.
6363 (valops.o): Depend on cp_support_h.
6365 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6367 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6368 substitute by NUM_REGS throughout.
6369 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6370 (h8300s_register_name): New function for H8S registers.
6371 (h8300sx_register_name): Ditto for H8SX registers.
6372 (h8300_print_register): Revise register printing, avoid depending
6374 (h8300_register_byte): Only care for H8/300 registers.
6375 (h8300h_register_byte): New function for any other architecture.
6376 (h8300_register_raw_size): Remove.
6377 (h8300_register_virtual_type): Revise to return actually useful
6379 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6380 (h8300h_extract_struct_value_address): New function for any other
6382 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6383 set_gdbarch_register_name, set_gdbarch_register_byte,
6384 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6385 Remove calls to set_gdbarch_deprecated_register_size,
6386 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6387 set_gdbarch_deprecated_max_register_raw_size,
6388 set_gdbarch_register_virtual_size and
6389 set_gdbarch_deprecated_max_register_virtual_size entirely.
6390 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6391 set_gdbarch_long_double_bit.
6393 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6395 * doublest.c (convert_doublest_to_floatformat): When dealing
6396 with the implied integer bit, only alter mant_bits if we are
6397 processing a full 32 bits of mantissa.
6399 2003-06-11 David Carlton <carlton@bactrian.org>
6401 * dictionary.h: New.
6402 * dictionary.c: New.
6403 * block.h: Add opaque declaration for struct dictionary.
6404 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6406 (BLOCK_DICT): New macro.
6407 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6408 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6410 (ALL_BLOCK_SYMBOLS): Update definition.
6411 * Makefile.in (SFILES): Add dictionary.c.
6412 (dictionary_h): New.
6413 (COMMON_OBS): Add dictionary.o.
6414 (dictionary.o): New.
6415 (ada-lang.o): Depend on dictionary_h.
6416 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6417 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6418 (mi-cmd-stack.o): Ditto.
6419 (gdbtk-cmds.o): Update dependencies.
6420 (gdbtk-stack.o): Ditto.
6421 * ada-lang.c: Include dictionary.h.
6422 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6423 (fill_in_ada_prototype, debug_print_block): Ditto.
6424 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6425 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6427 * mdebugread.c: Include dictionary.h.
6428 (struct parse_stack): Delete 'maxsyms' member.
6429 (parse_symbol): Update calls to new_block. Delete calls to
6430 shrink_block. Use dictionary methods.
6431 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6432 Update calls to new_symtab. Don't maintain maxsyms data.
6433 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6434 (add_symbol): Just call dict_add_symbol.
6435 (new_symtab): Delete 'maxsyms' argument.
6436 (new_symtab): Update calls to new_block.
6437 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6438 (shrink_block): Delete function.
6439 (fixup_sigtramp): Update call to new_block. Add symbol via
6441 * jv-lang.c: Include dictionary.h.
6442 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6443 appropriately. Set class_symtab->free_func. Make sure the
6444 blockvector is big enough to hold two blocks.
6445 (add_class_symtab_symbol): Use dictionary methods.
6446 (free_class_block): New function.
6447 (type_from_class): Replace explicit iteration by
6449 * symtab.h (struct symtab): Replace 'free_ptr' method by
6451 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6453 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6455 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6456 Include dictionary.h.
6457 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6458 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6460 * objfiles.c: Include dictionary.h.
6461 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6462 * buildsym.c: Include dictionary.h.
6463 (finish_block): Use dictionary methods.
6464 (end_symtab): Set free_func to NULL, not free_ptr.
6465 * tracepoint.c: Include dictionary.h.
6466 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6467 (scope_info): Ditto.
6468 * stack.c: Include dictionary.h.
6469 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6470 (print_block_frame_labels, print_frame_arg_vars)
6471 (print_frame_args): Ditto.
6472 * symmisc.c (free_symtab_block): Use dictionary methods.
6473 (dump_symtab): Ditto.
6474 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6475 Include dictionary.h.
6476 * symfile.h: Delete declarations of sort_block_syms,
6478 * symfile.c (sort_block_syms): Delete.
6479 (sort_symtab_syms): Delete.
6480 * symtab.c: Include dictionary.h.
6481 (lookup_block_symbol): Use dictionary iterators.
6482 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6483 (search_symbols, make_symbol_completion_list): Ditto.
6484 (make_symbol_overload_list): Ditto.
6485 * valops.c (value_of_local): Use dict_empty.
6486 Include dictionary.h.
6488 2003-06-11 J. Brobecker <brobecker@gnat.com>
6490 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6492 2003-06-11 David Carlton <carlton@bactrian.org>
6494 * block.h (BLOCK_SHOULD_SORT): Delete.
6495 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6497 * ada-lang.c (ada_add_block_symbols): Ditto.
6498 * symfile.c (sort_block_syms): Delete.
6499 (sort_symtab_syms): Ditto.
6500 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6502 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6503 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6504 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6505 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6506 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6507 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6508 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6510 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6512 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6515 2003-06-11 Andrew Cagney <cagney@redhat.com>
6517 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6518 REGISTER_CONVERTIBLE.
6519 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6520 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6521 * gdbarch.h, gdbarch.c: Re-generate.
6522 * arch-utils.h (deprecated_register_convertible_not): Rename
6523 generic_register_convertible_not.
6524 * arch-utils.c (deprecated_register_convertible_not): Rename
6525 generic_register_convertible.
6526 (legacy_convert_register_p, legacy_register_to_value): Update.
6527 * sh-tdep.c (sh64_push_arguments): Update.
6528 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6529 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6530 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6531 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6532 * arch-utils.c (legacy_value_to_register): Update.
6533 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6534 (rs6000_register_convert_to_raw): Make parameter "from" const.
6535 * mips-tdep.c (mips_gdbarch_init): Update.
6536 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6537 * infcmd.c (default_print_registers_info): Update.
6538 * ia64-tdep.c (ia64_gdbarch_init): Update.
6539 (ia64_register_convert_to_raw): Make parameter "from" const.
6540 * i386-tdep.c (i386_gdbarch_init): Update.
6541 (i386_register_convert_to_raw): Update.
6543 2003-06-11 Andrew Cagney <cagney@redhat.com>
6545 * remote-fileio.c: Include "remote-fileio.h".
6546 * Makefile.in (remote-fileio.o): Update dependencies.
6547 (remote_fileio_h): Fix typo.
6549 2003-06-11 Andrew Cagney <cagney@redhat.com>
6551 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6552 (xstormy16_save_dummy_frame_tos): Make static.
6553 (_initialize_xstormy16_tdep): Add declaration.
6554 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6555 * v850-tdep.c: Make local functions static.
6556 (_initialize_v850_tdep): Add declaration.
6557 * sparc-tdep.c: Make local functions static.
6558 (_initialize_sparc_tdep): Add declaration.
6559 * sh-tdep.c: Make local functions static.
6560 (_initialize_sh_tdep): Add declaration.
6561 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6562 * s390-tdep.c: Make local functions static.
6563 (_initialize_s390_tdep): Add declaration.
6564 * dbxread.c (find_stab_function_addr): Make static.
6565 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6566 * ocd.c (_initialize_remote_ocd): Add declaration.
6567 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6568 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6569 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6570 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6571 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6572 * remote-array.c (_initialize_array): Add declaration.
6573 (_initialize_remote_monitors): Add declaration.
6574 * remote-mips.c: Make local functions static.
6575 (_initialize_remote_mips): Add declaration.
6576 * mcore-tdep.c: Make all local functions static.
6577 (_initialize_mcore_tdep): Add declaration.
6578 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6579 * abug-rom.c (_initialize_abug_rom): Add declaration.
6580 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6581 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6582 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6583 * remote-est.c (_initialize_est): Add declaration.
6584 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6585 (m68hc11_call_dummy_address): Make static.
6586 * ia64-tdep.c: Make local functions static.
6587 (_initialize_ia64_tdep): Add declaration.
6588 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6589 * monitor.c (monitor_wait_filter): Make static.
6590 (_initialize_remote_monitors): Add declaration.
6591 * remote-hms.c (_initialize_remote_hms): Add declaration.
6592 * remote-e7000.c (fetch_regs_from_dump): Make static.
6593 (expect_n): Make static.
6594 (_initialize_remote_e7000): Add declaration.
6595 * ser-e7kpc.c: Always include "defs.h".
6596 (_initialize_ser_e7000pc): Add declaration.
6597 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6598 * cris-tdep.c: Make all but one function static.
6599 (_initialize_cris_tdep): Add declaration.
6600 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6601 * solib.c (update_solib_list): Make static.
6602 (_initialize_solib): Add declaration.
6603 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6604 (_initialize_avr_tdep): Add declaration.
6605 * remote-rdi.c (voiddummy): Make static.
6606 (_initialize_remote_rdi): Add declaration.
6607 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6608 * remote-rdp.c (send_rdp): Make static.
6609 (_initialize_remote_rdp): Add declaration.
6610 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6612 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6614 * remote-fileio.c: Make ari happy.
6616 2003-06-10 J. Brobecker <brobecker@gnat.com>
6618 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6619 fetching the trailing bytes of the buffer we are about to write.
6621 2003-06-10 Andrew Cagney <cagney@redhat.com>
6623 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6624 * Makefile.in (remote-fileio.o): Update dependencies.
6625 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6626 include <setjmp.h>, or <sys/types.h> conditional on USG.
6627 (remote_fio_jmp_buf): Delete global variable.
6629 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6630 Martin M. Hunt <hunt@redhat.com>
6632 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6633 (SFILES): Add remote-fileio.c.
6634 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6635 dependencies for building remote.o.
6636 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6637 * remote-fileio.h: New header file defining remote File-I/O interface.
6638 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6639 static storage class.
6640 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6642 (_initialize_remote): Call initialize_remote_fileio().
6643 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6644 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6645 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6646 (captured_main): Initialize new ui_files.
6647 * ui-file.c: Add read and fgets input functions.
6648 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6649 (null_file_read): New function.
6650 (ui_file_read): New function.
6651 (set_ui_file_read): New function.
6652 (stdio_file_read): New function.
6653 * ui-file.h: New type ui_file_read_ftype.
6654 (set_ui_file_read): Declare.
6655 (ui_file_read): Declare.
6657 2003-06-09 Andrew Cagney <cagney@redhat.com>
6659 * frame.h (deprecated_unwind_get_saved_register): Rename
6660 generic_unwind_get_saved_register, update comments.
6661 * mips-tdep.c (mips_get_saved_register): Update.
6662 * frame.c (deprecated_unwind_get_saved_register): Update.
6664 2003-06-09 Andrew Cagney <cagney@redhat.com>
6666 * vax-tdep.c (vax_frame_locals_address): Delete function.
6667 (vax_gdbarch_init): Do not set frame_locals_address.
6668 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6669 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6670 * s390-tdep.c (s390_frame_args_address): Delete function.
6671 (s390_gdbarch_init): Do not set frame_args_address or
6672 frame_locals_address.
6673 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6674 (ns32k_gdbarch_init): Do not set frame_locals_address.
6675 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6676 (hppa_frame_locals_address): Delete function.
6677 (hppa_gdbarch_init): Do not set frame_args_address, or
6678 frame_locals_address.
6679 * arm-tdep.c (arm_frame_args_address): Delete.
6680 (arm_frame_locals_address): Delete.
6681 (arm_gdbarch_init): Do not set frame_args_address, or
6682 frame_locals_address.
6684 2003-06-09 Andrew Cagney <cagney@redhat.com>
6686 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6687 * gdbarch.h, gdbarch.c: Re-generate.
6688 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6689 * arch-utils.c (frame_num_args_unknown): Delete function.
6690 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6691 (frame_info): Use FRAME_NUM_ARGS_P.
6692 * arm-tdep.c (arm_frame_num_args): Delete function.
6693 (arm_gdbarch_init): Do not set frame_num_args.
6694 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6695 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6696 (hppa_gdbarch_init): Do not set frame_num_args.
6697 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6698 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6699 frame_num_args to default frame_num_args_unknown.
6700 * v850-tdep.c (v850_gdbarch_init): Ditto.
6701 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6702 * sh-tdep.c (sh_gdbarch_init): Ditto.
6703 * s390-tdep.c (s390_gdbarch_init): Ditto.
6704 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6705 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6706 * mips-tdep.c (mips_gdbarch_init): Ditto.
6707 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6708 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6709 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6710 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6711 * i386-tdep.c (i386_gdbarch_init): Ditto.
6712 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6713 * frv-tdep.c (frv_gdbarch_init): Ditto.
6714 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6715 * cris-tdep.c (cris_gdbarch_init): Ditto.
6716 * avr-tdep.c (avr_gdbarch_init): Ditto.
6717 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6719 2003-06-09 Andrew Cagney <cagney@redhat.com>
6721 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6722 (print_frame_args): Moved to "stack.c".
6723 * stack.c: Include "gdb_assert.h".
6724 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6725 (print_frame_args): Moved from "printcmd.c".
6726 * frame.h (print_frame_args): Delete declaration.
6727 * Makefile.in (stack.o): Update dependencies.
6729 2003-06-08 Andrew Cagney <cagney@redhat.com>
6731 * frame.c (get_prev_frame): Remove reference to
6732 frame_args_address_correct in comments.
6733 * frame-base.c (default_frame_args_address): Delete code
6734 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6735 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6736 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6737 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6738 (vax_frame_args_address_correct): Delete declaration.
6740 2003-06-08 Andrew Cagney <cagney@redhat.com>
6742 * gdbarch.sh (UNWIND_SP): Add.
6743 * gdbarch.h, gdbarch.c: Re-generate.
6744 * frame.c (frame_sp_unwind): New function.
6745 (get_frame_sp): New function.
6746 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6747 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6748 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6750 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6751 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6753 2003-06-08 Andrew Cagney <cagney@redhat.com>
6755 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6758 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6759 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6760 * config/m68k/tm-sun3.h: Update.
6761 * config/m68k/tm-m68klynx.h: Update.
6762 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6764 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6765 trad_frame". Update comments.
6766 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6767 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6768 (trad_frame_register_value, trad_frame_prev_register): Update.
6770 2003-06-08 Andrew Cagney <cagney@redhat.com>
6772 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6773 from GCC's acinclude.m4.
6774 * configure.in: Check for getopt's delcaration.
6775 * aclocal.m4, config.in, configure: Re-generate.
6776 * main.c (error_init): Delete declaration.
6777 * defs.h (error_init): Declare.
6778 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6779 (rs6000_convert_from_func_ptr_addr): Make static.
6780 (_initialize_rs6000_tdep): Add declaration.
6781 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6782 (show_commands, set_verbose, show_history): Delete declaration.
6783 * top.h (set_verbose): Add declaration.
6784 (show_history, set_history, show_commands): Add declaration.
6785 (do_restore_instream_cleanup): Add declaration.
6786 * objc-lang.c (specialcmp): Make static.
6787 (print_object_command): Make static.
6788 (find_objc_msgsend): Make static.
6789 (find_objc_msgcall_submethod_helper): Make static.
6790 (find_objc_msgcall_submethod): Make static.
6791 (_initialize_objc_language): Add declaration.
6792 (find_implementation_from_class): Make static.
6793 (find_implementation): Make static.
6794 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6795 * objc-lang.h (lookup_struct_typedef): Add declaration.
6796 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6797 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6798 (do_restore_user_call_depth): Make static.
6799 (do_restore_instream_cleanup): Delete declaration.
6800 (dont_repeat): Delete declaration.
6801 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6802 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6803 * reggroups.c (_initialize_reggroup): Add declaration.
6804 * cp-support.c (_initialize_cp_support): Add declaration.
6805 * cp-abi.c (_initialize_cp_abi): Add declaration.
6806 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6807 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6808 (_initialize_gnu_v3_abi): Add declaration.
6809 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6810 (_initialize_gnu_v2_abi): Add declaration.
6811 * frame-base.c (_initialize_frame_base): Add declaration.
6812 * doublest.c (floatformat_from_length): Make static.
6813 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6814 * frame.c (create_sentinel_frame): Make static.
6815 (_initialize_frame): Add declaration.
6816 * top.c (do_catch_errors): Make static.
6817 (gdb_rl_operate_and_get_next_completion): Make static.
6818 * typeprint.c: Include "typeprint.h".
6819 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6820 (sentinel_frame_this_id): Make static.
6821 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6822 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6823 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6824 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6825 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6826 * maint.c (maintenance_print_architecture): Make static.
6827 * signals/signals.c (_initialize_signals): Add declaration.
6828 * std-regs.c (_initialize_frame_reg): Add declaration.
6829 * jv-exp.y (push_variable): ISO C definition.
6830 (push_qualified_expression_name): Ditto.
6831 * memattr.c (_initialize_mem): Add declaration.
6832 * remote.c (remote_check_watch_resources): Make static.
6833 (remote_stopped_by_watchpoint): Make static.
6834 (remote_stopped_data_address): Make static.
6835 * d10v-tdep.c (nr_dmap_regs): Make static.
6836 (a0_regnum): Make static.
6837 (d10v_frame_unwind_cache): Make static.
6838 (d10v_frame_p): Make static.
6839 * osabi.c (show_osabi): Make static.
6840 (_initialize_gdb_osabi): Add extern declaration.
6841 * gdbtypes.c (make_qualified_type): Make static.
6842 (safe_parse_type): Make static.
6843 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6844 * macrotab.c (macro_bcache_free): Make static.
6845 * interps.c (interp_set_quiet): Make static.
6846 (interpreter_exec_cmd): Make static.
6847 * stack.h (select_frame_command): New file.
6848 * stack.c: Include "stack.h".
6849 (select_frame_command_wrapper): Delete function.
6850 (select_frame_command): Make global.
6851 * infcall.c: Include "infcall.h".
6852 * linespec.c: Include "linespec.h".
6853 * symfile.c (sections_overlap): Make static.
6854 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6855 * charset.c (_initialize_charset): Add missing prototype.
6856 * regcache.c (init_legacy_regcache_descr): Make static.
6857 (do_regcache_xfree): Make static.
6858 (regcache_xfer_part): Make static.
6859 (_initialize_regcache): Add missing prototype.
6860 * breakpoint.c (parse_breakpoint_sals): Make static.
6861 (breakpoint_sals_to_pc): Make static.
6862 * interps.h (clear_interpreter_hooks): ISO C declaration.
6863 * Makefile.in (stack_h): Define.
6864 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6865 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6867 2003-06-08 Andrew Cagney <cagney@redhat.com>
6869 * Makefile.in (d10v-tdep.o): Update dependencies.
6870 (SFILES): Add trad-frame.c.
6871 (trad_frame_h): Define.
6872 (COMMON_OBS): Add trad-frame.o.
6873 (trad-frame.o): Specify dependencies.
6874 * d10v-tdep.c: Include "trad-frame.h".
6875 (saved_regs_unwinder): Delete function.
6876 (d10v_frame_prev_register): Use trad_frame_prev_register.
6877 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6878 trad_frame", delete "regs" and "prev_sp".
6879 (prologue_find_regs): Use trad-frame.
6880 * trad-frame.h, trad-frame.c: New files.
6882 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6884 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6886 2003-06-07 Adam Fedor <fedor@gnu.org>
6888 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6889 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6890 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6891 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6892 resolve_msgsend_super, resolve_msgsend_super_stret):
6895 2003-06-07 Andrew Cagney <cagney@redhat.com>
6897 * symfile.h: Re-indent, clean up comments.
6899 2003-06-07 Andrew Cagney <cagney@redhat.com>
6901 * inferior.h (deprecated_write_sp): Replace
6902 generic_target_write_sp.
6903 * regcache.c (deprecated_write_sp): Replace
6904 generic_target_write_sp.
6905 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6906 * vax-tdep.c (vax_gdbarch_init): Update.
6907 * v850-tdep.c (v850_gdbarch_init): Update.
6908 * sparc-tdep.c (sparc_gdbarch_init): Update.
6909 * sh-tdep.c (sh_gdbarch_init): Update.
6910 * s390-tdep.c (s390_gdbarch_init): Update.
6911 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6912 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6913 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6914 * mcore-tdep.c (mcore_gdbarch_init): Update.
6915 * m68k-tdep.c (m68k_gdbarch_init): Update.
6916 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6917 * ia64-tdep.c (ia64_gdbarch_init): Update.
6918 * h8300-tdep.c (h8300_gdbarch_init): Update.
6919 * frv-tdep.c (frv_gdbarch_init): Update.
6920 * cris-tdep.c (cris_gdbarch_init): Update.
6921 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6923 2003-06-07 Andrew Cagney <cagney@redhat.com>
6925 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6926 Assert that PC_REGNUM is valid.
6927 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6929 2003-06-07 Andrew Cagney <cagney@redhat.com>
6931 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6932 * gdbarch.h, gdbarch.c: Regenerate.
6933 * mn10300-tdep.c: Include "gdb_assert.h".
6934 (mn10300_read_fp): New function.
6935 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6936 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6937 * ia64-tdep.c: Include "gdb_assert.h".
6938 (ia64_read_fp): New function.
6939 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6940 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6941 * regcache.c (generic_target_read_sp): Delete function.
6942 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6943 * inferior.h (generic_target_read_sp): Delete declaration.
6944 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6945 generic_target_read_sp.
6946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6947 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6948 * sh-tdep.c (sh_gdbarch_init): Ditto.
6949 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6950 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6952 2003-06-07 Andrew Cagney <cagney@redhat.com>
6954 * gdbarch.sh: Comment each field of startup_gdbarch.
6955 * gdbarch.h, gdbarch.c: Re-generate.
6957 2003-06-07 Andrew Cagney <cagney@redhat.com>
6959 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6960 * gdbarch.h, gdbarch.c: Re-generate.
6961 * regcache.c: Update comments on read_pc et.al.
6962 (generic_target_read_pc): Delete function.
6963 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6964 * inferior.h (generic_target_read_pc): Delete declaration.
6965 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6966 generic_target_read_pc.
6967 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6968 * sh-tdep.c (sh_gdbarch_init): Ditto.
6969 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6970 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6972 2003-06-07 Andrew Cagney <cagney@redhat.com>
6974 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6975 "index" with "special_local_sect". Use strcmp instead of STREQ.
6976 Append period to coments.
6978 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6980 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6981 (elfstab_offset_sections): Likewise.
6982 * gdb-stabs.h (stab_section_info): Likewise.
6983 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6984 * objfiles.c (objfile_relocate): Likewise.
6985 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6986 * remote.c (get_offsets): Likewise.
6987 (remote_cisco_objfile_relocate): Likewise.
6988 * somread.c (som_symfile_offsets): Likewise.
6989 * symfile.c (alloc_section_addr_info): New function.
6990 (build_section_addr_info_from_section_tab): Use it.
6991 (free_section_addr_info): Adjust.
6992 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6993 (syms_from_objfile): Allocate local_addr dynamically.
6994 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6996 (add_symbol_file_command): Allocate sect_opts dynamically.
6997 (reread_symbols): Avoid use of SECT_OFF_MAX.
6998 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6999 (alloc_section_addr_info): Declare it.
7000 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7001 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7003 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7005 2003-06-06 Andrew Cagney <cagney@redhat.com>
7007 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7008 (d10v_frame_unwind_cache): Do not set "return_pc".
7010 2003-06-06 Michael Snyder <msnyder@redhat.com>
7012 * h8300-tdep.c: Make tidy (long lines).
7014 2003-06-06 Michal Ludvig <mludvig@suse.cz>
7016 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7017 to regcache_collect().
7019 2003-06-05 J. Brobecker <brobecker@gnat.com>
7021 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7022 pc_in_sigtramp multiarch method.
7023 (hppa_hpux_som_init_abi): Use it.
7024 (hppa_hpux_elf_init_abi): Likewise.
7025 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7026 macro has been multiarched.
7027 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7028 macro here, as hppa64 isn't multiarched yet.
7030 2003-06-05 Andrew Cagney <cagney@redhat.com>
7032 * Makefile.in (value_h): Add $(frame_h).
7033 * value.h: Include "frame.h".
7034 (struct value): Replace "frame_addr" with "frame_id".
7035 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7036 * values.c (allocate_value): Use VALUE_FRAME_ID.
7037 (value_copy): Use VALUE_FRAME_ID.
7038 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7039 * valops.c (value_assign): Update. Use frame_find_by_id.
7041 2003-06-05 Michal Ludvig <mludvig@suse.cz>
7043 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7046 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7048 * thread-db.c (check_event): For create/death event breakpoints,
7049 loop through all messages to ensure that we read the message
7050 corresponding to the breakpoint we are at.
7052 2003-06-04 Michael Snyder <msnyder@redhat.com>
7054 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7056 2003-06-04 Mark Kettenis <kettenis@gnu.org>
7058 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7059 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7060 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7061 when handling .eh_frame sections.
7063 2003-06-04 J. Brobecker <brobecker@gnat.com>
7065 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7066 prepare_to_proceed procedure instead of the hppa-specific one.
7067 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7069 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
7071 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7072 * config.in: Regenerated.
7073 * configure.in: Add test for syscall function and check for
7074 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7075 * configure: Regenerated.
7076 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7078 (kill_lwp): New function that uses tkill syscall or
7079 uses kill, depending on whether threading model is nptl or not.
7080 All callers of kill() changed to use kill_lwp().
7081 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7082 see if all threads have already exited in the nptl model.
7083 (stop_and_resume_callback): New callback function used by the
7084 lin_lwp_wait thread exit handling code.
7085 (stop_wait_callback): Check for threads already having exited and
7086 delete such threads fromt the lwp list when discovered.
7087 (stop_callback): Don't assert retcode of kill call.
7089 Roland McGrath <roland@redhat.com>
7090 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7093 2003-06-03 Richard Henderson <rth@redhat.com>
7095 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7096 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7097 (alpha_sigtramp_frame_prev_register): Likewise.
7098 (alpha_heuristic_frame_prev_register): Likewise.
7099 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7101 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7102 alpha-specific register id names.
7103 (alpha_mdebug_frame_unwind_cache): Likewise.
7104 (alpha_mdebug_frame_prev_register): Likewise.
7106 2003-06-03 Richard Henderson <rth@redhat.com>
7108 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7109 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7110 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7111 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7113 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7114 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7115 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7117 * alpha-linux-tdep.c: Remove unnecessary includes.
7118 * Makefile.in (alpha-linux-tdep.o): Update.
7120 2003-06-03 Richard Henderson <rth@redhat.com>
7122 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7123 (alphabsd_fill_fpreg): Likewise.
7125 2003-06-03 J. Brobecker <brobecker@gnat.com>
7127 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7128 references to struct frame_info fields by calls to the equivalent
7129 accessors. Necessary now that frame_info is opaque.
7131 2003-06-03 J. Brobecker <brobecker@gnat.com>
7133 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7134 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7135 structure, field no longer exists.
7137 2003-06-03 J. Brobecker <brobecker@gnat.com>
7139 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7140 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7142 2003-06-03 J. Brobecker <brobecker@gnat.com>
7144 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7145 references to struct frame_info fields by calls to the equivalent
7146 accessors. Necessary now that frame_info is opaque.
7148 2003-06-03 J. Brobecker <brobecker@gnat.com>
7150 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7151 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7152 structure, field no longer exists.
7154 2003-06-03 Theodore A. Roth <troth@openavr.org>
7156 * remote.c (init_remote_state): Compute sizeof_g_packet by
7157 accumulation of the size of all registers instead of blindly using
7158 DEPRECATED_REGISTER_BYTES.
7160 2003-06-03 Michael Snyder <msnyder@redhat.com>
7162 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7163 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7166 2003-06-03 J. Brobecker <brobecker@gnat.com>
7168 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7169 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7171 2003-06-03 Andrew Cagney <cagney@redhat.com>
7173 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7174 (sparc_convert_to_raw): Delete function.
7175 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7176 register_convert_to_virtual.
7178 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7180 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7181 layer if not dealing with a statically-linked threaded program.
7183 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7185 * solib.c (solib_open): Update comment to reflect actual search order.
7187 2003-06-03 Andrew Cagney <cagney@redhat.com>
7189 * frame.c (get_frame_memory_signed): New function.
7190 (get_frame_memory, get_frame_memory_unsigned): New function.
7191 (get_frame_arch): New function.
7192 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7193 (get_frame_memory, get_frame_unsigned_memory): Declare.
7194 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7195 get_frame_memory_unsigned and get_frame_arch.
7196 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7198 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7200 * MAINTAINERS (write after approval): Add myself.
7202 2003-06-03 Jim Blandy <jimb@redhat.com>
7204 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7205 elements of gregset_t are 64 bits each, but access registers
7206 are still 32 bits, so they're packed two per gregset_t
7207 element. Unpack/pack them properly.
7209 2003-06-02 David Carlton <carlton@bactrian.org>
7211 * linespec.c (find_methods): Break out code into
7212 add_matching_methods and add_constructors.
7213 (add_matching_methods): New.
7214 (add_constructors): Ditto.
7216 2003-06-02 Andrew Cagney <cagney@redhat.com>
7218 * sparc-tdep.c (sparc_print_registers): Delete call to
7219 REGISTER_CONVERTIBLE.
7220 (sparc_gdbarch_init): Do not set register_convertible.
7221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7222 * frv-tdep.c (frv_gdbarch_init): Ditto.
7223 * cris-tdep.c (cris_gdbarch_init): Ditto.
7225 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7227 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7228 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7229 (syms_from_objfile): Ditto.
7231 2003-06-03 Andreas Schwab <schwab@suse.de>
7233 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7234 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7236 2003-06-02 Richard Henderson <rth@redhat.com>
7238 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7239 a member of all_reggroup.
7241 2003-06-02 Richard Henderson <rth@redhat.com>
7243 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7244 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7245 (alpha_lds, alpha_sts): New.
7246 (alpha_convert_register_p): Change from _register_convertible.
7247 (alpha_register_to_value): Change from _convert_to_virtual;
7248 restructure and fail for type sizes other than 4 or 8.
7249 (alpha_value_to_register): Similarly.
7250 (alpha_extract_return_value): Use alpha_sts.
7251 (alpha_store_return_value): Use alpha_lds.
7252 (alpha_gdbarch_init): Update hooks.
7254 2003-06-02 Richard Henderson <rth@redhat.com>
7256 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7258 (alpha_sigtramp_register_address): Likewise.
7260 2003-06-02 Richard Henderson <rth@redhat.com>
7262 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7263 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7264 * alpha-tdep.h: Declare them.
7266 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7267 Remove zerobuf. Don't error on UNIQUE.
7268 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7269 (ALPHA_REGSET_UNIQUE): Provide default.
7270 (supply_gregset): Use alpha_supply_int_regs.
7271 (fill_gregset): Use alpha_fill_int_regs.
7272 (supply_fpregset): Use alpha_supply_fp_regs.
7273 (fill_fpregset): Use alpha_fill_fp_regs.
7274 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7275 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7276 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7277 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7278 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7279 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7281 2003-06-02 Richard Henderson <rth@redhat.com>
7283 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7285 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7286 (alpha_store_return_value): Likewise.
7288 2003-06-02 David Carlton <carlton@math.stanford.edu>
7290 * block.c (contained_in): Add 'const' to arguments.
7291 (block_function): Ditto.
7292 * block.h: Update declarations for block_function and
7295 2003-06-02 David Carlton <carlton@math.stanford.edu>
7297 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7298 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7299 * p-valprint.c (pascal_val_print): Ditto.
7300 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7302 2003-06-02 Richard Henderson <rth@redhat.com>
7304 * alpha-tdep.c (alpha_push_dummy_call): Use
7305 builtin_type_ieee_double_little instead of builtin_type_double.
7307 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7308 sign-extension of 32-bit values.
7309 (alpha_store_return_value): Similarly.
7311 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7312 (alpha_extract_return_value): Likewise.
7313 (alpha_store_return_value): Likewise.
7315 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7316 (alpha_store_return_value): Error on IEEE Quad floats.
7318 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7319 (alpha_extract_struct_value_address): Likewise.
7320 (alpha_store_return_value): Likewise.
7321 (alpha_store_struct_return): Remove.
7322 (alpha_gdbarch_init): Update hook registration to match.
7324 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7325 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7326 macros where appropriate.
7327 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7328 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7330 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7331 for SP, GP; void_func_ptr for PC; non-language-specific types
7333 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7335 2003-06-02 Richard Henderson <rth@redhat.com>
7337 * top.h (lim_at_start): Declare.
7338 * main.c (captured_main): Set it.
7339 * top.c (lim_at_start): Define.
7340 (command_loop): Use it instead of &environ.
7341 * event-top.c (command_handler): Likewise.
7343 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7345 * mipsnbsd-tdep.c: Update copyright years.
7346 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7348 2003-06-01 Richard Henderson <rth@redhat.com>
7350 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7351 (alpha-linux-tdep.o): Update dependencies.
7352 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7353 * alpha-mdebug-tdep.c: Remove unneeded includes.
7355 2003-06-01 Richard Henderson <rth@redhat.com>
7357 * alpha-tdep.c (alpha_register_reggroup_p): New.
7358 (alpha_gdbarch_init): Register it.
7360 2003-06-02 Andrew Cagney <cagney@redhat.com>
7362 * dwarfread.c: Eliminate "register"
7363 (decode_die_type): Eliminate assignment within "if".
7364 (struct_type, decode_array_element_type): Ditto.
7365 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7366 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7367 (decode_modified_type, completedieinfo): Ditto.
7368 * block.c: Eliminate "register".
7369 (blockvector_for_pc_sect): Eliminate assignment within "if".
7370 * cp-support.h (struct symbol): Opaque declaration.
7371 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7373 2003-06-01 Richard Henderson <rth@redhat.com>
7375 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7376 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7378 2003-06-01 Adam Fedor <fedor@gnu.org>
7380 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7381 * gdbarch.[ch]: Regenerate.
7382 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7383 (hppa_gdbarch_init): Set it in the gdbarch vector.
7384 * i386-tdep.c (i386_fetch_pointer_argument): New
7385 (i386_gdbarch_init): Set it into gdbarch.
7386 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7387 (rs6000_gdbarch_init): Set it in gdbarch.
7388 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7389 (sparc_gdbarch_init): Set it in gdbarch.
7391 2003-06-01 Andrew Cagney <cagney@redhat.com>
7393 * defs.h (extract_address): Delete declaration.
7394 * findvar.c (extract_address): Delete function.
7395 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7396 extract_address with the inline equivalent,
7397 extract_unsigned_integer.
7398 (xstormy16_extract_struct_value_address): Ditto.
7399 (xstormy16_pointer_to_address): Ditto.
7400 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7401 * v850-tdep.c (v850_push_arguments): Ditto.
7402 (v850_extract_return_value): Ditto.
7403 (v850_extract_struct_value_address): Ditto.
7404 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7405 (sparcnbsd_get_longjmp_target_64): Ditto.
7406 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7407 (get_longjmp_target): Ditto.
7408 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7409 (sh64_extract_struct_value_address): Ditto.
7410 (sh_push_arguments): Ditto.
7411 (sh64_push_arguments): Ditto.
7412 * remote-vxsparc.c (vx_read_register): Ditto.
7413 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7414 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7415 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7416 * mipsv4-nat.c (get_longjmp_target): Ditto.
7417 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7418 * mips-nat.c (get_longjmp_target): Ditto.
7419 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7420 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7421 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7422 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7423 * irix5-nat.c (get_longjmp_target): Ditto.
7424 * irix4-nat.c (get_longjmp_target): Ditto.
7425 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7426 (ia64_push_arguments): Ditto.
7427 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7428 * h8300-tdep.c (h8300_push_arguments): Ditto.
7429 (h8300_store_return_value): Ditto.
7430 (h8300_extract_struct_value_address): Ditto.
7431 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7432 (frv_push_arguments): Ditto.
7433 * avr-tdep.c (avr_pointer_to_address): Ditto.
7434 (avr_push_arguments): Ditto.
7435 * arm-tdep.c (arm_push_dummy_call): Ditto.
7436 (arm_get_longjmp_target): Ditto.
7437 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7438 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7439 (alpha_get_longjmp_target): Ditto.
7441 * solib-irix.c (extract_mips_address): Inline extract_address,
7442 replacing it with extract_signed_integer.
7443 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7444 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7445 (first_link_map_member, open_symbol_file_object): Ditto.
7446 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7447 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7448 (LM_NEXT, LM_NAME): Ditto.
7450 2003-06-01 Richard Henderson <rth@redhat.com>
7452 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7453 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7454 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7455 (alpha_cannot_store_register): Likewise.
7456 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7457 * alpha-nat.c (supply_gregset): Likewise.
7458 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7460 2003-06-01 Andrew Cagney <cagney@redhat.com>
7462 * infcall.c (call_function_by_hand): Update comment on
7463 DEPRECATED_DUMMY_WRITE_SP.
7465 * mips-tdep.c (mips_gdbarch_init): Do not set
7466 deprecated_dummy_write_sp.
7467 (mips_eabi_push_dummy_call): Set the SP register.
7468 (mips_o64_push_dummy_call): Set the SP register.
7469 (mips_o32_push_dummy_call): Set the SP register.
7470 (mips_n32n64_push_dummy_call): Set the SP register.
7472 2003-06-01 Richard Henderson <rth@redhat.com>
7474 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7475 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7476 (supply_gregset): Likewise.
7477 * alpha-tdep.c (alpha_store_return_value): Likewise.
7478 (alpha_get_longjmp_target): Likewise.
7479 (alpha_register_name): Constify array.
7480 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7481 deprecated_register_size, deprecated_register_bytes,
7482 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7483 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7484 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7486 2003-06-01 Richard Henderson <rth@redhat.com>
7488 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7489 from arg_reg_buffer to regcache to avoid double conversion.
7491 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7493 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7495 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7496 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7498 2003-06-01 Richard Henderson <rth@redhat.com>
7500 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7501 (decode_frame_entry): Set it. Skip FDE augmentation.
7503 2003-06-01 Richard Henderson <rth@redhat.com>
7505 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7506 not overlapping PC_REGNUM.
7508 2003-06-01 Richard Henderson <rth@redhat.com>
7510 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7511 alpha_push_arguments. Don't dump argument register data to
7512 the target stack. Fix float and 128-bit long double semantics.
7513 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7514 (alpha_fix_call_dummy): Remove.
7515 (alpha_call_dummy_words): Remove.
7516 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7518 2003-06-01 Richard Henderson <rth@redhat.com>
7520 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7522 2003-06-01 Andrew Cagney <cagney@redhat.com>
7524 * mips-tdep.c (is_mips16_addr): New function.
7525 (make_mips16_addr, unmake_mips16_addr): New functions.
7526 (pc_is_mips16, mips_fetch_instruction): Use.
7527 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7528 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7529 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7530 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7532 * config/mips/tm-mips.h: Update copyright.
7533 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7534 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7535 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7536 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7537 (TM_PRINT_INSN_MACH): Delete.
7538 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7540 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7541 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7542 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7543 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7544 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7545 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7546 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7547 mips*-*-riscos* and mips*-*-sysv* onto mips.
7548 * config/mips/mips64.mt: New file.
7549 * config/mips/mips.mt: New file.
7550 * config/mips/littlemips.mt: Delete file.
7551 * config/mips/decstation.mt: Delete file.
7552 * config/mips/vr4300el.mt: Delete file.
7553 * config/mips/vr5000el.mt: Delete file.
7554 * config/mips/vr5000.mt: Delete file.
7555 * config/mips/vr4100.mt: Delete file.
7556 * config/mips/vr4xxxel.mt: Delete file.
7557 * config/mips/vr4300.mt: Delete file.
7558 * config/mips/vr4xxx.mt: Delete file.
7559 * config/mips/bigmips.mt: Delete file.
7560 * config/mips/bigmips64.mt: Delete file.
7561 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7562 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7563 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7564 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7565 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7567 * config/mips/tm-irix3.h: Ditto.
7568 * config/mips/tm-mipsv4.h: Ditto.
7569 * config/mips/tm-embed.h: Ditto.
7570 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7572 * config/mips/tm-vr5000el.h: Delete file.
7573 * config/mips/tm-tx39l.h: Delete file.
7574 * config/mips/tm-vr4300el.h: Delete file.
7575 * config/mips/tm-vr4xxxel.h: Delete file.
7576 * config/mips/tm-vr4300.h: Delete file.
7577 * config/mips/tm-vr4100.h: Delete file.
7578 * config/mips/tm-vr4xxx.h: Delete file.
7579 * config/mips/tm-vr5000.h: Delete file.
7580 * config/mips/tm-embedl64.h: Delete file.
7581 * config/mips/tm-embedl.h: Delete file.
7582 * config/mips/tm-embed64.h: Delete file.
7583 * config/mips/tm-bigmips64.h: Delete file.
7584 * config/mips/tm-bigmips.h: Delete file.
7586 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7589 * shnbsd-nat.c: Include "sh-tdep.h".
7591 From Richard Henderson <rth@redhat.com>:
7592 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7594 2003-05-31 Andrew Cagney <cagney@redhat.com>
7596 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7597 forward declaration.
7598 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7599 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7600 (mips_find_saved_regs): Use set_reg_offset.
7601 (mips_frame_init_saved_regs): Delete function.
7602 (mips_pop_frame): Call mips_find_saved_regs instead of
7603 DEPRECATED_FRAME_INIT_SAVED_REGS.
7605 2003-05-31 Andrew Cagney <cagney@redhat.com>
7607 * mips-tdep.c (mips_gdbarch_init): Do not set
7608 deprecated_max_register_raw_size, register_virtual_size, and
7609 deprecated_max_register_virtual_size.
7611 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7613 * i386-tdep.c: Include "dwarf2-frame.h".
7614 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7615 * Makefile.in (i386-tdep.o): Update dependencies.
7617 * dwarf2-frame.c, dwarf2-frame.h: New files.
7618 * Makefile.in (SFILES): Add dwarf2-frame.c.
7619 (dwarf2_frame_h): Define.
7620 (COMMON_OBS): Add dwarf2-frame.o.
7621 (dwarf2-frame.o): Add dependencies.
7623 2003-05-31 Andreas Jaeger <aj@suse.de>
7625 * x86-64-linux-nat.c: Fix comment.
7627 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7629 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7632 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7633 have a sigcontext_addr handler.
7634 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7635 sigcontext_addr handler.
7637 2003-05-31 Andrew Cagney <cagney@redhat.com>
7639 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7640 (print_fp_register_row): Replace do_fp_register_row.
7641 (mips_print_fp_register): Add "file" and "frame" parameters.
7642 (mips_print_register): Add "file" and "frame" parameters.
7643 (mips_print_registers_info): Replace mips_do_registers_info.
7644 (mips_gdbarch_init): Set print_registers_info instead of
7645 deprecated_do_registers_info.
7646 (mips_read_fp_register_single): Add "frame" parameter.
7647 (mips_read_fp_register_double): Add "frame" parameter.
7649 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7651 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7652 Fixes a bug where GDB would print the wrong register names for
7653 targets without SSE.
7655 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7656 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7659 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7660 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7661 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7664 From Michal Ludvig <mludvig@suse.cz>:
7665 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7667 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7668 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7669 I386_ST0_REGNUM): Move here from...
7670 * i386-tdep.c: ... here.
7671 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7672 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7673 registers if possible.
7674 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7675 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7677 (i386bsd_sc_reg_offset): New variable.
7678 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7679 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7681 (i386fbsd_sc_reg_offset): New variable.
7682 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7684 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7686 (i386fbsd4_sc_reg_offset): New variable.
7687 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7688 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7690 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7691 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7692 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7694 (i386nbsd_sc_reg_offset): New variable.
7695 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7696 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7698 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7700 (i386obsd_sc_reg_offset): New variable.
7701 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7702 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7704 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7705 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7706 for frame pointer offset in `struct sigcontext'.
7708 2003-05-31 Andrew Cagney <cagney@redhat.com>
7710 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7711 architecture methods call_dummy_words, sizeof_call_dummy_words,
7712 push_return_address, store_struct_return, and fix_call_dummy. Set
7713 push_dummy_call instead of deprecated_push_arguments.
7714 (mips_store_struct_return): Delete function.
7715 (mips_fix_call_dummy): Delete function.
7716 (mips_push_return_address): Delete function.
7717 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7718 RA_REGNUM and T9_REGNUM.
7719 (mips_n32n64_push_dummy_call): Ditto for
7720 mips_n32n64_push_arguments.
7721 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7722 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7724 2003-05-31 Andrew Cagney <cagney@redhat.com>
7726 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7727 "dummy_addr" to "bp_addr".
7728 * infcall.c (call_function_by_hand): Pass "funaddr" to
7729 gdbarch_push_dummy_call.
7730 * gdbarch.h, gdbarch.c: Re-generate.
7731 * i386-tdep.c (i386_push_dummy_call): Update.
7732 * arm-tdep.c (arm_push_dummy_call): Update.
7733 * d10v-tdep.c (d10v_push_dummy_call): Update.
7735 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7737 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7738 variable declarations.
7739 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7740 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7741 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7742 x86_64_init_frame_pc, x86_64_init_frame_pc,
7743 x86_64_function_has_prologue): Remove prototypes.
7744 (X86_64_NUM_GREGS): New define.
7745 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7746 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7747 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7748 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7749 XMM1_REGNUM): Remove defines.
7750 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7751 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7752 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7753 X86_64_XMM1_REGNUM): New defines.
7754 (struct x86_64_register_info): Renamed from `struct
7755 register_info'. Remove `size' member.
7756 (x86_64_register_info_table): Remove variable.
7757 (x86_64_register_info): New variable.
7758 (X86_64_NUM_REGS): New define.
7759 (X86_64_NUM_GREGS): Remove define.
7760 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7761 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7763 (x86_54_dwarf2_reg_to_regnum): Remove function.
7764 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7765 (x86_64_dwarf_reg_to_regnum): New function.
7766 (x86_64_register_name): Rewrite.
7767 (x86_64_register_raw_size): Remove function.
7768 (x86_64_register_byte_table): Remove variable.
7769 (x86_64_register_byte): Remove function.
7770 (x86_64_register_virtual_type): Remove function.
7771 (x86_64_register_type): New function.
7772 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7773 x86_64_register_convert_to_raw): Remove functions.
7774 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7775 (x86_64_use_struct_convention): Make static. Adjust for renamed
7777 (x86_64_frame_init_saved_regs): Remove function.
7778 (x86_64_push_arguments): Make static. Change to accept a regcache
7780 (x86_64_store_return_value, x86_64_extract_return_value): Make
7781 static. Rewrite based on i386 counterparts.
7782 (x86_64_push_dummy_call): New function.
7783 (X86_64_NUM_SAVED_REGS): New define.
7784 (x86_64_register_number): Remove function.
7785 (x86_64_store_struct_return): Remove function.
7786 (x86_64_frameless_function_invocation,
7787 x86_64_function_has_prologue): Remove functions.
7788 (PROLOG_BUFSIZE): Remove define.
7789 (struct x86_64_frame_cache): New structure.
7790 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7791 x86_64_frame_cache, x86_64_frame_this_id,
7792 x86_64_frame_prev_register, x86_64_frame_p,
7793 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7794 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7796 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7798 (x86_64_skip_prologue): Rewrite in terms of
7799 x86_64_analyze_prologue.
7800 (x86_64_frame_base_address): New function.
7801 (x86_64_frame_base): New variable.
7802 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7803 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7804 set deprecated_fp_regnum, deprecated_register_size,
7805 deprecated_register_bytes, register_raw_size, register_byte,
7806 register_virtual_type, register_convertiable,
7807 register_convert_to_virtual, convert_to_raw,
7808 deprecated_get_saved_register, deprecated_target_read_fp,
7809 deprecated_push_arguments, deprecated_push_return_address,
7810 deprecated_pop_frame, deprecated_store_struct_return,
7811 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7812 frameless_function_invocation, deprecated_frame_saved_pc,
7813 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7814 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7815 deprecated_init_frame_pc and virtual_frame_pointer. Call
7816 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7817 and x86_64_frame_p. Call frame_base_set_default to register
7819 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7820 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7821 (_initialize_x86_64_tdep): Remove function.
7822 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7823 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7824 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7826 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7827 (x86_64_linux_sigcontext_addr): Rewrite.
7828 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7829 x86_64_linux_frame_saved_pc): Remove functions.
7830 (x86_64_linux_pc_in_sigtramp): Renamed from
7831 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7833 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7835 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7836 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7837 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7838 (x86_64_regmap): Rename to regmap.
7839 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7841 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7843 (x86_64_fxsave_offset): Remove function.
7844 (supply_fpregset): Simply call x86_64_supply_fxsave.
7845 (fill_fpregset): Simply call x86_64_fill_fxsave.
7846 (fetch_inferior_registers, store_inferior_registers): Avoid
7847 asignment in if-statement.
7848 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7849 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7850 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7851 (fetch_core_registers): Remove function.
7852 (linux_elf_core_fns): Remove.
7853 (offsetoff): Don't define.
7854 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7855 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7856 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7858 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7859 protection against multiple includes instead of NM_X86_64_h. Add
7860 various comments. Include "config/nm-linux.h". Don't include
7862 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7863 GET_THREAD_SIGNALS): Remove defines.
7864 (x86_64_register_u_addr, kernel_u_size,
7865 lin_thread_get_thread_signals): Remove prototypes.
7866 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7867 [HAVE_LINK_H]: Don't include "solib.h".
7868 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7869 * config/i386/tm-x86-64linux.h: Fix comments.
7870 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7871 x86-64-tdep.o): Update dependencies.
7873 2003-05-30 Andrew Cagney <cagney@redhat.com>
7875 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7876 Change parameter type to a "struct regcache *".
7878 * gdbarch.sh: Regardless of the multi-arch level, always define
7879 the macro when not already defined.
7880 * gdbarch.h, gdbarch.c: Re-generate.
7882 2003-05-30 Richard Henderson <rth@redhat.com>
7884 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7885 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7886 (alpha_mdebug_frame_this_id): Likewise.
7887 (alpha_mdebug_frame_prev_register): Likewise.
7888 (alpha_mdebug_frame_base_address): Likewise.
7889 (alpha_mdebug_frame_locals_address): Likewise.
7890 (alpha_mdebug_frame_args_address): Likewise.
7891 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7892 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7893 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7895 (alpha_heuristic_frame_this_id): Make static.
7896 (alpha_heuristic_frame_prev_register): Likewise.
7897 (alpha_heuristic_frame_base_address): Likewise.
7898 * alpha-tdep.h: Update.
7900 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7902 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7903 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7905 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7906 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7907 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7908 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7909 I386_ST0_REGNUM): New defines.
7910 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7911 codestream_get): Remove define.
7912 (codestream_next_addr, condestream_addr, condestream_buf,
7913 codestream_off, codestream_cnt): Remove variables.
7914 (codestream_fill, codestream_seek, codestream_read): Remove
7916 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7918 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7919 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7920 i386_frame_saved_pc, i386_saved_pc_after_call,
7921 i386_frame_num_args, i386_frame_init_saved_regs,
7922 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7923 i386_push_arguments): Remove functions.
7924 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7925 functionality. Use i386_analyze_prologue instead of
7926 i386_get_frame_setup.
7927 (I386_NUM_SAVED_REGS): New define.
7928 (struct i386_frame_cache): New structure.
7929 (i386_alloc_frame_cache, i386_analyze_struct_return,
7930 i386_skip_probe, i386_analyze_frame_setup,
7931 i386_analyze_register_saves, i386_analyze_prologue,
7932 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7933 i386_frame_prev_register, i386_sigtramp_frame_cache,
7934 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7935 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7936 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7938 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7940 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7941 I386_EAX_REGNUM and I386_EDX_REGNUM.
7942 (i386_extract_return_value, i386_store_return_value): Use
7943 I386_ST0_REGNUM where appropriate.
7944 (i386_extract_struct_value_address): Rewrite to use extract_address.
7945 (i386_svr4_pc_in_sigtramp): Add comment.
7946 (i386_svr4_sigcontext_addr): Rewrite.
7947 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7949 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7950 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7951 of new defines. Set push_dummy_call, don't set
7952 deprecated_push_arguments, deprecated_push_return_address,
7953 deprecated_pop_frame. Don't set parm_boundary. Don't set
7954 deprecated_frame_chain, deprecated_frame_saved_pc,
7955 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7956 save_dummy_frame_tos, unwind_pc. Call
7957 frame_unwind_append_predicate and frame_base_set_default. Don't
7958 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7959 Don't set frameless_function_invocation. Don't set
7960 deprecated_register_bytes, deprecated_register_size,
7961 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7962 * i386-linux-tdep.c: Fix formatting in some comments.
7963 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7964 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7965 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7966 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7967 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7968 redundant parentheses.
7969 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7970 (i386_linux_sigcontext_addr): Use it. Rewrite.
7971 (find_minsym_and_objfile): Change name of second argument.
7972 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7973 changed. Use frame_pc_unwind instead of
7974 DEPRECATED_SAVED_PC_AFTER_CALL.
7975 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7976 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7977 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7979 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7981 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7982 (_initialize_i386_cygwin_tdep): New prototype.
7983 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7984 deprecated_frame_chain_valid.
7985 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7986 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7987 Rely on the SVR4 defaults.
7988 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7989 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7991 2003-05-30 Andrew Cagney <cagney@redhat.com>
7993 * infcall.c (call_function_by_hand): Always call
7994 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7996 2003-05-30 Richard Henderson <rth@redhat.com>
7998 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8001 2003-05-29 Jim Blandy <jimb@redhat.com>
8003 Use gdbarch methods for solib stuff on PowerPC Linux.
8004 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8005 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8007 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8008 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8009 giving the same effect as the #definitions above.
8011 2003-05-29 Adam Fedor <fedor@gnu.org>
8013 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8014 (find_implementation_from_class): Replace it with the standard
8015 case i.e. do nothing.
8017 2003-05-29 Richard Henderson <rth@redhat.com>
8019 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8020 (alpha_linux_sigtramp_offset): Use it. Make static.
8021 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8022 update for new frame model.
8023 * alpha-mdebug-tdep.c: New file.
8024 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8025 (alpha_osf1_init_abi): Install it.
8026 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8027 (linked_proc_desc_table): Remove.
8028 (alpha_frame_past_sigtramp_frame): Remove.
8029 (alpha_dynamic_sigtramp_offset): Remove.
8030 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8031 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8032 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8033 (push_sigtramp_desc): Remove.
8034 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8035 (alpha_cannot_store_register): Likewise.
8036 (alpha_sigcontext_addr): Remove.
8037 (alpha_find_saved_regs): Remove.
8038 (alpha_frame_init_saved_regs): Remove.
8039 (alpha_init_frame_pc_first): Remove.
8040 (read_next_frame_reg): Remove.
8041 (alpha_frame_saved_pc): Remove.
8042 (alpha_saved_pc_after_call): Remove.
8043 (temp_proc_desc, temp_saved_regs): Remove.
8044 (alpha_about_to_return): Remove.
8045 (cached_proc_desc): Remove.
8046 (alpha_frame_chain): Remove.
8047 (alpha_print_extra_frame_info): Remove.
8048 (alpha_init_extra_frame_info): Remove.
8049 (alpha_frame_locals_address): Remove.
8050 (alpha_frame_args_address): Remove.
8051 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8052 (alpha_push_dummy_frame): Remove.
8053 (alpha_pop_frame): Remove.
8054 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8055 (alpha_read_insn): New.
8056 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8057 for different insn encodings.
8058 (alpha_in_lenient_prologue): Remove.
8059 (struct alpha_sigtramp_unwind_cache): New.
8060 (alpha_sigtramp_frame_unwind_cache): New.
8061 (alpha_sigtramp_register_address): New.
8062 (alpha_sigtramp_frame_this_id): New.
8063 (alpha_sigtramp_frame_prev_register): New.
8064 (alpha_sigtramp_frame_unwind): New.
8065 (alpha_sigtramp_frame_p): New.
8066 (struct alpha_heuristic_unwind_cache): New.
8067 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8068 don't count nop insns that occur between functions.
8069 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8070 heuristic_proc_desc, but without the mdebug wrapping.
8071 (alpha_heuristic_frame_this_id): New.
8072 (alpha_heuristic_frame_prev_register): New.
8073 (alpha_heuristic_frame_unwind): New.
8074 (alpha_heuristic_frame_p): New.
8075 (alpha_heuristic_frame_base_address): New.
8076 (alpha_heuristic_frame_base): New.
8077 (alpha_unwind_dummy_id): New.
8078 (alpha_unwind_pc): New.
8079 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8080 frame related deprecated initializations; install replacements.
8081 (alpha_dump_tdep): Remove.
8082 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8083 (alpha_read_insn, alpha_after_prologue,
8084 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8085 alpha_heuristic_frame_prev_register,
8086 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8087 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8088 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8089 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8091 2003-05-29 Andrew Cagney <cagney@redhat.com>
8093 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8094 dependant on the availability of ASSERT_FUNCTION.
8095 (ASSERT_FUNCTION): Do not define when there is no function name.
8097 2003-05-29 Kevin Buettner <kevinb@redhat.com>
8099 From Jimi X <jimix@watson.ibm.com>:
8100 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8102 2003-05-28 Jim Blandy <jimb@redhat.com>
8104 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8105 argument to ptrace to int; the system headers should give it the
8106 right type, and pointers don't fit in ints on powerpc64-*-*.
8108 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8110 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8113 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8115 * stabsread.c (dbx_lookup_type): Make static.
8117 (add_undefined_type): Ditto.
8118 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8121 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8123 * hpread.c (hpread_has_name): Make static.
8124 (hpread_psymtab_to_symtab): Ditto.
8125 (file_exists): Ditto.
8126 (hpread_call_pxdb): Ditto.
8127 (hpread_pxdb_needed): Ditto.
8128 (hpread_quick_traverse): Ditto.
8129 (hpread_get_header): Ditto.
8130 (hpread_get_lntt): Ditto.
8131 (hpread_get_slt): Ditto.
8134 2003-05-25 Andreas Schwab <schwab@suse.de>
8136 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8137 stack_align and deprecated_extra_stack_alignment_needed.
8138 (m68k_stack_align): Delete.
8140 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8141 (m68k_register_virtual_size): Likewise.
8142 (altos_skip_prologue): Remove obsolete function.
8143 (isi_frame_num_args): Likewise.
8144 (news_frame_num_args): Likewise.
8145 (m68k_fix_call_dummy): Make static.
8146 (m68k_push_dummy_frame): Likewise.
8147 (m68k_pop_frame): Likewise.
8148 (m68k_skip_prologue): Likewise.
8149 (m68k_frame_init_saved_regs): Likewise.
8150 (m68k_saved_pc_after_call): Likewise.
8151 (m68k_get_longjmp_target): Make multi-arch.
8152 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8153 structure. Register m68k_get_longjmp_target if enabled.
8154 * m68k-tdep.h (struct gdbarch_tdep): Define.
8155 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8157 * Makefile.in (config.status): Also depend on configure.tgt
8159 (m68klinux-tdep.o): Update dependencies.
8160 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8161 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8162 (M68K_LINUX_JB_PC): Define.
8163 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8164 and take additional parameter.
8165 (m68k_linux_sigtramp_saved_pc): Update.
8166 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8167 m68k_linux_pc_in_sigtramp, in_plt_section,
8168 find_solib_trampoline_target.
8169 * config/m68k/tm-linux.h: Don't include any tm headers.
8170 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8171 (JB_ELEMENT_SIZE): Likewise.
8173 (GET_LONGJMP_TARGET): Likewise.
8174 (IN_SIGTRAMP): Likewise.
8175 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8177 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8179 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8180 (sparc32_push_arguments): Re-implement by calling
8181 sparc32_do_push_arguments.
8183 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8185 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8186 SPARC_O1_REGNUM): New defines.
8187 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8188 (sparc32_store_return_value): New function.
8189 (sparc_extract_struct_value_address): Rewrite to operate on a
8191 (sparc_gdbarch_init): Don't set
8192 deprecated_extract_struct_value_address. Set
8193 extract_struct_value_address instead. Don't set
8194 deprecated_extract_return_value and deprecated_store_return_value
8195 for 32-bit targets. Set extract_return_value and
8196 store_return_value instead.
8197 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8198 DEPRECATED_EXTRACT_RETURN_VALUE,
8199 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8200 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8201 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8202 (sparc_store_return_value): Remove prototype.
8203 (sparc32_store_return_value): New prototype.
8204 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8207 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8209 * sparcnbsd-tdep.c: Include "gdb_string.h".
8211 2003-05-23 Andrew Cagney <cagney@redhat.com>
8213 * p-valprint.c (pascal_val_print): Replace extract_address with
8214 the inline equivalent extract_unsigned_integer.
8215 * jv-valprint.c (java_value_print): Ditto.
8216 * ada-valprint.c (ada_val_print_1): Ditto.
8217 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8219 2003-05-23 Theodore A. Roth <troth@openavr.org>
8221 * blockframe.c (frameless_look_for_prologue): Remove unused
8222 after_prologue variable.
8224 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8226 * blockframe.c (get_pc_function_start): Rewrite to avoid
8227 asignments in if-statements.
8229 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8231 Committed by Elena Zannoni <ezannoni@redhat.com>.
8232 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8233 files, don't relocate absolute symbols (and do use mst_abs).
8235 2003-05-23 Andrew Cagney <cagney@redhat.com>
8237 * objc-lang.c: Include "gdb_assert.h".
8238 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8239 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8240 (gdb_check, gdb_check_fatal): Delete functions.
8241 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8243 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8244 * Makefile.in (objc-lang.o): Update dependencies.
8246 2003-05-22 Ian Lance Taylor <ian@airs.com>
8248 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8249 with fprintf_filtered, not fprintf_unfiltered.
8251 2003-05-22 Andrew Cagney <cagney@redhat.com>
8253 * stack.c (frame_info): Inline extract_address, replacing it with
8254 extract_unsigned_integer.
8255 * findvar.c (unsigned_pointer_to_address): Ditto.
8256 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8257 * dwarf2expr.c (dwarf2_read_address): Ditto.
8258 * frame.c (frame_pc_unwind): Update comment.
8259 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8261 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8263 * infptrace.c (detach): Call print_sys_errmsg rather than
8264 perror_with_name to issue warning message when errno is non-zero
8265 after calling ptrace detach.
8267 2003-05-21 J. Brobecker <brobecker@gnat.com>
8269 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8270 macro definitions from here...
8271 * hppa-tdep.c: ...to there.
8273 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8275 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8276 register_ptrace_addr(). Fix all callers.
8278 2003-05-21 Andreas Schwab <schwab@suse.de>
8280 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8282 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8284 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8285 (_initialize_m68k_linux_tdep): New function.
8286 (m68k_linux_frame_saved_pc): Make static.
8287 (m68k_linux_extract_return_value): Likewise.
8288 (m68k_linux_store_return_value): Likewise.
8289 (m68k_linux_extract_struct_value_address): Likewise.
8290 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8292 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8293 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8294 (DEPRECATED_FRAME_SAVED_PC): Remove.
8296 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8298 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8299 regset numbering rather than our own.
8301 2003-05-19 David Carlton <carlton@bactrian.org>
8303 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8305 2003-05-19 David Carlton <carlton@bactrian.org>
8307 Partial fix for PR c++/827.
8308 * cp-support.h: Include symtab.h.
8309 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8310 * cp-namespace.c: Update contributors.
8311 (cp_lookup_symbol_nonlocal): New.
8312 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8313 (lookup_symbol_file): Ditto.
8314 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8315 * block.h: Declare block_scope, block_using, block_global_block.
8316 * block.c (block_scope): New.
8317 (block_using, block_global_block): Ditto.
8318 * Makefile.in (cp_support_h): Depend on symtab_h.
8319 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8321 2003-05-19 David Carlton <carlton@bactrian.org>
8323 * language.h (struct language_defn): Add 'la_value_of_this'
8324 and 'la_lookup_symbol_nonlocal' members.
8325 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8326 lookup_symbol_static, lookup_symbol_global,
8327 lookup_symbol_aux_block.
8328 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8329 if we should search fields of this and how to do static/global
8331 (lookup_symbol_aux_block): Make extern.
8332 (basic_lookup_symbol_nonlocal): New.
8333 (lookup_symbol_static, lookup_symbol_global): Ditto.
8334 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8335 'la_lookup_symbol_nonlocal' members.
8336 * c-lang.c (c_language_defn, cplus_language_defn)
8337 (asm_language_defn, minimal_language_defn): Ditto.
8338 * jv-lang.c (java_language_defn): Ditto.
8339 * language.c (unknown_language_defn, auto_language_defn)
8340 (local_language_defn): Ditto.
8341 * m2-lang.c (m2_language_defn): Ditto.
8342 * objc-lang.c (objc_language_defn): Ditto.
8343 * scm-lang.c (scm_language_defn): Ditto.
8344 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8345 * p-lang.c (pascal_language_defn): Ditto for both.
8346 * Makefile.in (f-lang.o): Depend on value_h.
8349 2003-05-19 David Carlton <carlton@bactrian.org>
8351 * block.h: Declare block_static_block.
8352 * block.c (block_static_block): New.
8353 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8354 lookup_symbol_aux_local, calling block_static_block instead.
8355 (lookup_symbol_aux_local): Delete 'static_block' argument.
8357 2003-05-19 David Carlton <carlton@bactrian.org>
8359 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8361 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8363 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8364 register numbers mapping.
8366 2003-05-18 Adam Fedor <fedor@gnu.org>
8368 * symtab.c (completion_list_objc_symbol): New function.
8369 (make_symbol_completion_list): Use it to add ObjC symbols
8370 when looking though the list.
8371 (language_search_unquoted_string): New function.
8372 (make_file_symbol_completion_list): Use it.
8374 2003-05-18 Andreas Schwab <schwab@suse.de>
8376 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8378 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8379 as m68k_linux_extract_return_value.
8380 (DEPRECATED_STORE_RETURN_VALUE): Define as
8381 m68k_linux_store_return_value.
8382 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8383 m68k_linux_extract_struct_value_address.
8384 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8385 get_next_frame, get_frame_base, get_frame_pc.
8386 (m68k_linux_frame_saved_pc): Use get_frame_base.
8387 (m68k_linux_extract_return_value): New function.
8388 (m68k_linux_store_return_value): New function.
8389 (m68k_linux_extract_struct_value_address): New function.
8390 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8392 * c-exp.y (typebase): Remove duplicate occurence of
8393 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8394 of lookup_signed_typename.
8396 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8398 * dwarf2loc.c (find_location_expression): Change type of second
8399 argument to `size_t *'.
8400 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8403 2003-05-18 David Carlton <carlton@bactrian.org>
8405 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8406 'linkage_name'. Add comment.
8407 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8409 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8410 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8411 (lookup_block_symbol): Ditto.
8413 2003-05-16 Andrew Cagney <cagney@redhat.com>
8415 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8416 * gdbarch.h, gdbarch.c: Re-generate.
8417 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8418 * TODO (REGISTER_BYTES): Delete reference.
8419 * alpha-tdep.c (alpha_gdbarch_init): Update.
8420 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8421 * x86-64-tdep.c (x86_64_init_abi): Update.
8422 * vax-tdep.c (vax_gdbarch_init): Update.
8423 * v850-tdep.c (v850_gdbarch_init): Update.
8424 * sparc-tdep.c (sparc_gdbarch_init): Update.
8425 * sh-tdep.c (sh_gdbarch_init): Update.
8426 * s390-tdep.c (s390_gdbarch_init): Update.
8427 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8428 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8429 (ns32k_gdbarch_init_32382): Update.
8430 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8431 * mcore-tdep.c (mcore_gdbarch_init): Update.
8432 * m68k-tdep.c (m68k_gdbarch_init): Update.
8433 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8434 * ia64-tdep.c (ia64_gdbarch_init): Update.
8435 * i386-tdep.c (i386_gdbarch_init): Update.
8436 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8437 * hppa-tdep.c (hppa_gdbarch_init): Update.
8438 * h8300-tdep.c (h8300_gdbarch_init): Update.
8439 * frv-tdep.c (frv_gdbarch_init): Update.
8440 * cris-tdep.c (cris_gdbarch_init): Update.
8441 * avr-tdep.c (avr_gdbarch_init): Update.
8442 * arm-tdep.c (arm_gdbarch_init): Update.
8443 * sparc-tdep.c (sparc_pop_frame): Update.
8444 * rs6000-tdep.c (rs6000_pop_frame): Update.
8445 * remote.c (init_remote_state): Update.
8446 (remote_prepare_to_store): Update.
8447 * remote-vx.c (vx_prepare_to_store): Update.
8448 * remote-sds.c (sds_fetch_registers): Update.
8449 (sds_prepare_to_store): Update.
8450 * remote-array.c: Update.
8451 * regcache.c (init_legacy_regcache_descr): Update.
8452 (init_regcache_descr): Update.
8453 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8454 (mips_o64_extract_return_value): Update.
8455 * irix5-nat.c (fetch_core_registers): Update.
8456 * irix4-nat.c (fetch_core_registers): Update.
8457 * i386-tdep.h: Update.
8458 * hppa-tdep.c (pa_do_registers_info): Update.
8459 (pa_do_strcat_registers_info): Update.
8460 * cris-tdep.c (cris_register_bytes_ok): Update.
8461 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8462 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8463 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8464 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8465 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8466 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8467 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8468 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8469 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8470 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8471 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8472 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8473 (REGISTER_BYTES_OK): Update.
8474 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8475 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8477 2003-05-16 Ian Lance Taylor <ian@airs.com>
8479 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8480 (vax_print_insn, print_insn_arg): Remove static functions.
8481 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8482 print_insn_vax from opcodes library.
8483 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8485 2003-05-15 Andrew Cagney <cagney@redhat.com>
8487 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8488 * target.h (memory_breakpoint_from_pc): Delete declaration.
8489 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8490 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8491 * monitor.c (monitor_insert_breakpoint): Use
8492 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8493 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8494 * gdbarch.h, gdbarch.c: Re-generate.
8495 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8496 (sparc_gdbarch_init): Set breakpoint_from_pc to
8497 sparc_breakpoint_from_pc.
8498 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8499 (BREAKPOINT_FROM_PC): Define.
8500 (sparc_breakpoint_from_pc): Declare.
8501 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8502 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8503 (BREAKPOINT_FROM_PC): Define.
8504 (BREAKPOINT): Delete macro.
8505 * target.h: Update comment.
8506 * s390-tdep.c (s390_gdbarch_init): Update comments.
8507 * remote.c: Update comments.
8508 * remote-mips.c: Update comments.
8509 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8510 * mem-break.c: Update comment.
8511 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8512 (ia64_memory_insert_breakpoint): Update.
8513 * config/sparc/tm-sparc.h: Update comment.
8514 * config/pa/tm-hppa64.h: Update comment.
8515 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8516 (rs6000_breakpoint_from_pc): Update.
8517 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8518 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8519 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8520 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8521 (mips_breakpoint_from_pc): Update.
8522 (mips_dump_tdep): Update.
8524 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8525 * minsyms.c (lookup_minimal_symbol): Inline
8526 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8528 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8529 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8530 * p-lang.c (pascal_printstr): Ditto.
8531 * objc-lang.c (objc_printstr): Ditto.
8532 * m2-lang.c (m2_printstr): Ditto.
8533 * jv-valprint.c (java_print_value_fields): Ditto.
8534 * f-lang.c (f_printstr): Ditto.
8535 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8536 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8537 for repeat_count_threshold.
8538 * Makefile.in (cp-valprint.o): Update dependencies.
8540 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8542 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8543 (examine_prologue): Support looking through leaf functions, knowing
8544 they start with mov r2,r12. Support skipping over indirect stores
8545 of the input registers. Upon hitting a non-nop branch instruction
8546 or predicated instruction, bail out by setting lim_pc to the current
8547 pc value in the loop. At the end, if the lim_pc value is still
8548 beyond our calculated value and we have trust_limit set,
8549 use the lim_pc value.
8551 2003-05-15 Andrew Cagney <cagney@redhat.com>
8553 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8554 generic_find_dummy_frame.
8555 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8556 (deprecated_generic_find_dummy_frame): Update.
8557 (deprecated_read_register_dummy): Update.
8558 * frame.c (deprecated_generic_get_saved_register): Update.
8560 2003-05-15 Theodore A. Roth <troth@openavr.org>
8562 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8563 (avr_gdbarch_init): Set breakpoint_from_pc method.
8565 2003-05-15 Andrew Cagney <cagney@redhat.com>
8567 * regcache.c (build_regcache): Set deprecated_register_valid
8569 (deprecated_grub_regcache_for_register_valid): Delete function.
8570 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8573 2003-05-15 David Carlton <carlton@bactrian.org>
8575 Committed by Elena Zannoni <ezannoni@redhat.com>
8576 * symtab.c (lookup_symbol_aux): Delete calls to
8577 lookup_symbol_aux_minsyms.
8578 (lookup_symbol_aux_minsyms): Comment out function and
8579 prototype. Delete lookup by mangled name.
8581 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8583 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8584 correctly indicate an empty stack and ``stack_allocated'' to the
8585 indicate the number of elements initially allocated.
8586 (dwarf_expr_grow_stack): Simplify method for computing new
8587 stack size. Don't loop infinitely if ``stack_len'' is zero.
8588 (execute_stack_op): Move ``ctx->in_reg'' initialization
8589 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8590 be used in conjuction with DW_OP_piece. Revise error message
8593 2003-05-14 Theodore A. Roth <troth@openavr.org>
8595 * MAINTAINERS: Update my email address.
8596 * avr-tdep.c: Ditto.
8598 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8600 * symtab.h (enum domain_enum): Rename from namespace_enum.
8601 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8602 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8603 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8604 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8605 TYPES_NAMESPACE, METHODS_NAMESPACE.
8606 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8607 (struct symbol, struct partial_symbol): Rename field
8608 'namespace_enum namespace' to 'domain_enum domain'.
8609 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8610 Delete old define kludge for namespace.
8612 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8613 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8614 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8615 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8616 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8617 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8618 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8619 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8620 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8621 occurrences of the above.
8623 2003-05-14 Ian Lance Taylor <ian@airs.com>
8625 * Makefile.in (install-only): Use $(SHELL) when running
8628 2003-05-13 Ian Lance Taylor <ian@airs.com>
8630 * MAINTAINERS (write after approval): Add myself.
8632 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8633 second and third arguments.
8634 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8635 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8637 2003-05-13 Andrew Cagney <cagney@redhat.com>
8639 * defs.h (store_address): Delete declaration.
8640 findvar.c (store_address): Delete function.
8641 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8642 store_unsigned_integer.
8643 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8644 * v850-tdep.c (v850_push_arguments): Ditto.
8645 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8646 * sh-tdep.c (sh64_get_saved_register): Ditto.
8647 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8648 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8649 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8650 (mips_get_saved_register): Ditto.
8651 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8652 (find_func_descr, ia64_push_arguments): Ditto.
8653 * i386-tdep.c (i386_push_arguments): Ditto.
8654 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8655 * frv-tdep.c (frv_push_arguments): Ditto.
8656 * frame.c (legacy_saved_regs_prev_register): Ditto.
8657 (deprecated_generic_get_saved_register): Ditto.
8658 * findvar.c (unsigned_address_to_pointer): Ditto.
8659 * dwarf2read.c (dwarf2_const_value): Ditto.
8660 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8661 * alpha-tdep.c (alpha_push_arguments): Ditto.
8663 2003-05-12 J. Brobecker <brobecker@gnat.com>
8665 * NEWS: Mention that the hppa-hpux port has been partially
8666 multiarched (32bit ABIT only, so far).
8668 2003-05-11 Andrew Cagney <cagney@redhat.com>
8670 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8671 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8672 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8673 sim/testsuite/sim/arm/misaligned2.ms, and
8674 sim/testsuite/sim/arm/misaligned3.ms.
8675 * disasm.h (struct ui_file): Add opaque struct declaration.
8676 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8677 * frame.h (struct ui_file): Ditto.
8679 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8681 * value.h: Pretty print.
8683 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8685 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8687 2003-05-08 Andrew Cagney <cagney@redhat.com>
8689 * regcache.h (max_register_size): Delete declaration.
8690 * regcache.c (max_register_size): Delete function.
8691 (struct regcache_descr): Delete field "max_register_size".
8692 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8693 registers fit in MAX_REGISTER_SIZE.
8694 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8695 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8696 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8697 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8698 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8699 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8700 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8701 * dve3900-rom.c, hppa-tdep.c: Ditto.
8703 2003-05-08 David Carlton <carlton@math.stanford.edu>
8705 * valops.c (push_word): Fix typo.
8707 2003-05-08 Andrew Cagney <cagney@redhat.com>
8709 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8710 * gdbarch.h: Re-generate.
8711 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8712 (legacy_max_register_raw_size): Delete declaration.
8713 * regcache.c (legacy_max_register_raw_size): Delete function.
8714 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8715 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8716 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8717 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8718 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8719 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8720 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8721 * findvar.c, dwarf2cfi.c: Ditto.
8723 2003-05-08 Andrew Cagney <cagney@redhat.com>
8725 * mips-tdep.c (read_signed_register): New function, moved to here
8727 (read_signed_register_pid): Ditto.
8728 * regcache.c (read_signed_register_pid): Delete function, moved to
8730 (read_signed_register): Ditto.
8731 * regcache.h (read_signed_register): Delete declaration.
8732 (read_signed_register_pid): Delete declaration.
8734 2003-05-08 Andrew Cagney <cagney@redhat.com>
8736 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8737 * gdbarch.h: Re-generate.
8738 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8739 (legacy_max_register_virtual_size): Delete declaration.
8740 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8741 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8742 * tracepoint.c (memrange_sortmerge): Ditto.
8743 * sparc-tdep.c (sparc_print_registers): Ditto.
8744 * regcache.c (legacy_max_register_virtual_size): Delete function.
8746 2002-05-08 J. Brobecker <brobecker@gnat.com>
8748 * fork-child.c (escape_bang_in_quoted_argument): New function.
8749 (fork_inferior): Escape '!' characters in quoted arguments
8752 2003-05-08 J. Brobecker <brobecker@gnat.com>
8754 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8755 the language of the CU is not currently supported by GDB.
8757 2003-05-08 J. Brobecker <brobecker@gnat.com>
8759 * defs.h (language): Add language_minimal enum value.
8760 * c-lang.c (minimal_language_defn): New language definition.
8761 (_initialize_c_language): Add the new minimal language to the list
8762 of languages known to GDB.
8764 2003-05-08 Kevin Buettner <kevinb@redhat.com>
8766 * frame.c (get_frame_type): Don't attempt to lazily initialize
8767 frame's unwinder for legacy frames.
8769 2003-05-07 Andrew Cagney <cagney@redhat.com>
8771 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8772 and "regcache" parameters.
8773 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8775 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8777 * dwarf2read.c (dwarf_decode_lines): Only use output of
8778 check_cu_functions() when calling record_line(). Do not update
8779 the current address.
8781 2003-05-07 Andrew Cagney <cagney@redhat.com>
8783 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8786 2003-05-07 Jim Blandy <jimb@redhat.com>
8788 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8789 'maint info symtabs' and 'maint info psymtabs'.
8790 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8791 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8792 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8793 Declarations updated.
8794 * maint.c (maintenance_list_command): Delete.
8795 (_initialize_maint_cmds): Update calls to add_cmd.
8796 * gdbcmd.h (maintenancelistlist): Delete declaration.
8797 * cli/cli-cmds.c (maintenancelistlist): Delete.
8798 (init_cmd_lists): Don't initialize it.
8799 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8801 2003-05-07 Andrew Cagney <cagney@redhat.com>
8803 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8805 (d10v_print_registers_info): Update.
8806 (d10v_dmap_register, d10v_imap_register): Delete functions.
8807 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8808 and "imap_register".
8809 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8810 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8811 * arch-utils.c (generic_remote_translate_xfer_address): Add
8812 "regcache" and "gdbarch" parameters.
8813 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8814 parameter. Change class to multi-arch.
8815 * gdbarch.h, gdbarch.c: Re-generate.
8816 * remote.c (remote_xfer_memory): Use
8817 gdbarch_remote_translate_xfer_address.
8819 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8821 * infrun.c (prev_pc): Move declaration ahead of proceed().
8822 (proceed): Refresh prev_pc value before resuming.
8823 (stop_stepping): Remove code to refresh prev_pc.
8825 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8827 * nto-tdep.c: Removed stray comment.
8829 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8831 * i386-nto-tdep.c: Fix old K&R function definitions.
8832 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8833 Also change add_show_from_set() call to add_setshow_cmd().
8834 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8836 2003-05-05 Andrew Cagney <cagney@redhat.com>
8838 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8839 (fprint_dummy_frames): New function.
8840 (maintenance_print_dummy_frames): New function.
8841 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8842 * frame.c (fprint_frame_id): Make global.
8843 * frame.h (fprint_frame_id): Declare.
8844 * Makefile.in (dummy-frame.o): Update dependencies.
8846 2003-05-05 Andrew Cagney <cagney@redhat.com>
8848 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8849 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8850 SIZEOF_CALL_DUMMY_WORDS.
8851 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8852 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8853 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8854 CALL_DUMMY_BREAKPOINT_OFFSET.
8855 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8856 CALL_DUMMY_START_OFFSET.
8857 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8858 * gdbarch.h, gdbarch.c: Re-generate.
8859 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8860 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8861 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8862 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8863 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8864 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8865 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8866 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8867 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8868 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8869 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8870 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8871 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8872 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8873 * config/sparc/tm-sparc.h: Update.
8875 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8877 * configure.tgt: Add i[3456]86-*-nto*.
8878 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8879 * nto-tdep.c: New file. Neutrino target support routines.
8880 * nto-tdep.h: New file. Neutrino target header.
8881 * config/tm-qnxnto.h: New file.
8882 * config/i386/i386nto.mt: New file.
8883 * config/i386/tm-i386nto.h: New file.
8885 2003-05-04 Andrew Cagney <cagney@redhat.com>
8887 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8888 (load_infrun_state): Ditto.
8889 (struct thread_info): Drop "prev_func_name" field.
8890 * thread.c (load_infrun_state): Update.
8891 (save_infrun_state): Update.
8892 * infrun.c (prev_func_name): Delete variable.
8893 (init_wait_for_inferior): Do not clear prev_func_name.
8894 (stop_stepping, keep_going, context_switch): Do not swap
8896 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8897 instead of PC_IN_SIGTRAMP.
8899 2003-05-04 Andrew Cagney <cagney@redhat.com>
8901 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8902 REGISTER_BYTE with register_offset_hack.
8903 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8904 that REGISTER_BYTE is consistent with the regcache.
8905 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8906 * gdbarch.h, gdbarch.c: Regenerate.
8908 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8910 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8911 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8913 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8915 2003-05-03 J. Brobecker <brobecker@gnat.com>
8917 From Thierry Schneider <tpschneider1@yahoo.com>
8918 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8919 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8920 (mi-cmd-symbol.o): Add rule.
8922 2003-05-03 Andrew Cagney <cagney@redhat.com>
8924 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8925 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8926 * gdbarch.h, gdbarch.c: Re-generate.
8927 * d10v-tdep.c (d10v_push_dummy_code): New function.
8928 (d10v_gdbarch_init): Set push_dummy_code.
8929 * infcall.c (legacy_push_dummy_code): New function.
8930 (generic_push_dummy_code): New function.
8931 (push_dummy_code): New function.
8932 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8933 instead of dummy_addr, to push_dummy_call. Move call to
8934 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8936 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8938 2003-05-03 Andrew Cagney <cagney@redhat.com>
8940 * disasm.h (print_insn): Declare.
8941 * disasm.c (init_gdb_disassemble_info): New function.
8942 (gdb_disassembly): Call init_gdb_disassemble_info.
8943 (gdb_print_insn): New function.
8944 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8945 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8946 * mcore-tdep.c: Include "disasm.h"
8947 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8948 * d10v-tdep.c: Include "disasm.h".
8949 (display_trace): Call gdb_print_insn, instead of print_insn.
8950 (print_insn): Delete function.
8951 * printcmd.c: Include "disasm.h".
8952 (print_insn): Delete function.
8953 (print_formatted): Call gdb_print_insn, instead of print_insn.
8954 * Makefile.in (printcmd.o): Update dependencies.
8955 (mcore-tdep.o, d10v-tdep.o): Ditto.
8957 2003-05-02 Andrew Cagney <cagney@redhat.com>
8959 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8960 PC_REGNUM, re-indent.
8961 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8962 PC_REGNUM isn't set.
8964 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8965 * gdbarch.h, gdbarch.c: Re-generate.
8966 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8967 register_virtual_size, pc_regnum, or register_bytes.
8968 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8969 (d10v_register_type): Use D10V_PC_REGNUM.
8970 (d10v_print_registers_info, d10v_read_pc): Ditto.
8971 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8972 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8974 2003-05-02 David Carlton <carlton@bactrian.org>
8976 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8977 the name with mstrsave.
8979 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8981 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8982 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8983 (host_charset_name, target_charset_name): New vars for use by
8985 (host_charset_enum, target_charset_enum): New enums for set/show
8987 (set_charset_sfunc, set_host_charset_sfunc,
8988 set_target_charset_sfunc): New functions.
8989 (set_host_charset, set_target_charset): Make static.
8990 (list_charsets, set_host_charset_command,
8991 set_target_charset_command): Delete functions.
8992 (show_charset_command): Rewrite as....
8993 (show_charset): Hook this up with the set/show command mechanism.
8994 (_initialize_charset): Change names of charsets to match the
8995 set/show enums. Use host_charset_name and target_charset_name.
8996 Use set/show mechanism for charset, host-charset, target-charset
8997 commands. Do not make 'show host-charset' and 'show
8998 target-charset' be aliases of 'show charset'.
9000 * charset.h (set_host_charset, set_target_charset): Don't export,
9001 they are not used outside the file.
9003 2003-05-01 Andrew Cagney <cagney@redhat.com>
9005 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9006 (gdb_disassembly): Make "di" non static, always initialize and
9007 cleanup. Always use dis_asm_read_memory.
9008 (gdb_dis_asm_read_memory): Delete function.
9010 2003-05-01 Andrew Cagney <cagney@redhat.com>
9012 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9013 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9015 2003-04-30 Andrew Cagney <cagney@redhat.com>
9017 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9018 "tm_print_insn_info".
9019 (TARGET_PRINT_INSN_INFO): Delete macro.
9020 (dis_asm_read_memory): Delete function declaration.
9021 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9022 (tm_print_insn_info): Delete variable definition.
9023 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9024 * gdbarch.h, gdbarch.c: Re-generate.
9025 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9026 "deprecated_tm_print_insn_info".
9027 * mcore-tdep.c (mcore_dump_insn): Ditto.
9028 * mips-tdep.c (mips_gdbarch_init): Ditto.
9029 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9030 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9031 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9032 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9033 instead of TARGET_PRINT_INSN_INFO, add comment.
9034 * s390-tdep.c (s390_get_frame_info): Instead of
9035 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9036 (s390_check_function_end, s390_is_sigreturn): Ditto.
9037 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9038 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9039 * disasm.c: Include "gdbcore.h".
9040 (_initialize_disasm): New function, initialize
9041 "deprecated_tm_print_insn_info".
9042 (deprecated_tm_print_insn_info): New variable.
9043 (dis_asm_read_memory): Moved from "corefile.c", made static.
9044 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9045 * Makefile.in (disasm.o): Update dependencies.
9047 2003-04-30 Andrew Cagney <cagney@redhat.com>
9049 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9051 2003-04-29 Adam Fedor <fedor@gnu.org>
9053 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9054 * infcall.c (find_function_addr): Make non-static.
9055 * infcall.h (find_function_addr): Declare.
9056 * Makefile.in (eval.o): Update dependencies.
9058 2003-04-28 Adam Fedor <fedor@gnu.org>
9060 * symtab.c (symbol_find_demangled_name): Check for and demangle
9062 (symbol_init_demangled_name): Init for language_objc as well.
9064 2003-04-28 Andrew Cagney <cagney@redhat.com>
9066 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9067 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9068 * gdbarch.h, gdbarch.c: Re-generate.
9069 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9070 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9071 * inferior.h (deprecated_read_fp): Rename read_fp.
9072 (generic_target_read_fp): Delete declaration.
9073 * regcache.c (generic_target_read_fp): Delete function.
9074 (deprecated_read_fp): Replace read_fp, use
9075 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9076 * d10v-tdep.c (d10v_read_fp): Delete function.
9077 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9079 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9080 deprecated_target_read_fp to generic_target_read_fp.
9081 * sh-tdep.c (sh_gdbarch_init): Ditto.
9082 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9084 * frv-tdep.c (frv_gdbarch_init): Ditto.
9086 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9087 deprecated_fp_regnum.
9088 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9089 * vax-tdep.c (vax_gdbarch_init): Ditto.
9090 * v850-tdep.c (v850_gdbarch_init): Ditto.
9091 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9092 * sh-tdep.c (sh_gdbarch_init): Ditto.
9093 * s390-tdep.c (s390_gdbarch_init): Ditto.
9094 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9095 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9096 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9097 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9099 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9100 * i386-tdep.c (i386_gdbarch_init): Ditto.
9101 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9102 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9103 * frv-tdep.c (frv_gdbarch_init): Ditto.
9104 * cris-tdep.c (cris_gdbarch_init): Ditto.
9105 * avr-tdep.c (avr_gdbarch_init): Ditto.
9106 * arm-tdep.c (arm_gdbarch_init): Ditto.
9107 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9109 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9110 * v850-tdep.c (v850_gdbarch_init): Ditto.
9111 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9112 * sh-tdep.c (sh_gdbarch_init): Ditto.
9113 * s390-tdep.c (s390_gdbarch_init): Ditto.
9114 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9115 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9116 * mips-tdep.c (mips_gdbarch_init): Ditto.
9117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9118 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9119 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9120 * frv-tdep.c (frv_gdbarch_init): Ditto.
9121 * avr-tdep.c (avr_gdbarch_init): Ditto.
9122 * arm-tdep.c (arm_gdbarch_init): Ditto.
9124 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9125 DEPRECATED_FP_REGNUM.
9126 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9127 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9128 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9129 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9130 (sparc32_register_virtual_type): Ditto.
9131 * sh-tdep.c (sh64_frame_chain): Ditto.
9132 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9133 (sh_nofp_frame_init_saved_regs): Ditto.
9134 (sh64_nofp_frame_init_saved_regs): Ditto.
9135 (sh_fp_frame_init_saved_regs): Ditto.
9136 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9137 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9138 * procfs.c (procfs_fetch_registers): Ditto.
9139 (procfs_store_registers): Ditto.
9140 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9141 (store_inferior_registers, fetch_core_registers): Ditto.
9142 (fetch_kcore_registers, clear_regs): Ditto.
9143 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9144 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9145 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9146 * nlm/i386.c (do_status): Ditto.
9147 * mipsv4-nat.c (supply_gregset): Ditto.
9148 * mips-tdep.c: Ditto for comments.
9149 * mips-nat.c (fetch_inferior_registers): Ditto.
9150 (store_inferior_registers, fetch_core_registers): Ditto.
9151 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9152 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9153 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9154 (i386_do_pop_frame, i386_register_type): Ditto.
9155 * hppa-tdep.c (hppa_frame_chain): Ditto.
9156 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9157 (hppa_pop_frame, hppa_read_fp): Ditto.
9158 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9159 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9160 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9161 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9162 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9163 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9164 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9165 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9166 * blockframe.c: Ditto for comments.
9167 * arch-utils.h: Ditto for comments.
9168 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9169 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9170 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9171 * alpha-tdep.h: Ditto for comments.
9172 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9173 (alpha_cannot_store_register): Ditto.
9174 (alpha_push_dummy_frame): Ditto.
9175 * alpha-nat.c (supply_gregset): Ditto.
9177 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9178 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9179 * config/sparc/tm-sparc.h: Update comment.
9181 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9182 deprecated_read_fp instead of TARGET_READ_FP.
9183 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9184 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9185 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9186 deprecated_read_fp instead of read_fp.
9187 * s390-tdep.c (s390_push_arguments): Ditto.
9188 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9189 * frame.h: Ditto in comments.
9190 * frame.c (legacy_get_prev_frame): Ditto.
9191 * dummy-frame.c (dummy_frame_this_id): Ditto.
9192 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9194 2003-04-28 Andrew Cagney <cagney@redhat.com>
9196 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9197 * gdbarch.h, gdbarch.c: Re-generate.
9198 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9199 * vax-tdep.c (_initialize_vax_tdep): Update.
9200 * v850-tdep.c (_initialize_v850_tdep): Update.
9201 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9202 * s390-tdep.c (_initialize_s390_tdep): Update.
9203 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9204 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9205 * mips-tdep.c (_initialize_mips_tdep): Update.
9206 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9207 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9208 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9209 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9210 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9211 * frv-tdep.c (_initialize_frv_tdep): Update.
9212 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9213 (_initialize_cris_tdep): Update.
9214 * arch-utils.c (legacy_print_insn): Update.
9215 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9217 2003-04-26 Adam Fedor <fedor@gnu.org>
9219 * linespec.c (decode_objc): New function to decode ObjC calls
9220 (decode_line_1): Check for ObjC calls (using decode_objc)
9221 * Makefile (linespec.o): Update dependencies.
9223 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9225 * breakpoint.h (struct breakpoint_ops): New.
9226 (struct breakpoint): Add ops member.
9228 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9229 (mention): Use new breakpoint ops member.
9230 (set_raw_breakpoint): Initialize ops field to NULL.
9231 (print_exception_catchpoint, print_one_exception_catchpoint)
9232 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9233 (gnu_v3_exception_catchpoint_ops): New.
9234 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9236 2003-04-25 Adam Fedor <fedor@gnu.org>
9238 * Makefile.in (COMMON_OBS): Add objc-lang.o
9240 2003-04-25 Andrew Cagney <cagney@redhat.com>
9242 * d10v-tdep.c (print_insn): Delete function.
9243 (display_trace): Use TARGET_PRINT_INSN.
9244 (_initialize_d10v_tdep): Do not set tm_print_insn.
9245 (d10v_gdbarch_init): Set print_insn.
9247 2003-04-25 Andrew Cagney <cagney@redhat.com>
9249 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9250 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9251 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9252 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9253 (nr_dmap_regs, a0_regnum): ... new functions.
9254 (d10v_print_registers_info): Use a0_regnum, use register_size.
9255 (d10v_register_byte): Delete function.
9256 (d10v_register_raw_size): Delete function.
9257 (d10v_register_type): Use a0_regnum.
9258 (d10v_print_registers_info): Use a0_regnum.
9259 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9260 (d10v_gdbarch_init): Do not set register_byte or
9261 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9262 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9264 (trace_command): Use XCALLOC.
9265 (print_insn): Delete reference to tm_print_insn.
9266 (saved_regs_unwinder): Use store_unsigned_integer instead of
9268 * frame.h (FRAME_OBSTACK_CALLOC): Define
9270 2003-04-25 David Carlton <carlton@bactrian.org>
9272 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9274 2003-04-24 Adam Fedor <fedor@gnu.org>
9276 * objc-lang.c: Include "valprint.h"
9277 * Makefile.in (objc-lang.o): Update dependencies.
9279 2003-04-24 Adam Fedor <fedor@gnu.org>
9281 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9282 architecture dependant compilation and mark as unimplemented
9283 (until they get put in the gdbarch vector).
9285 2003-04-23 David Carlton <carlton@bactrian.org>
9287 * cp-support.c (cp_find_first_component): Accept 'operator' in
9290 2003-04-23 Andrew Cagney <cagney@redhat.com>
9292 * infcall.c (call_function_by_hand): Eliminate redundant
9293 indentation. Move "saved_async" and "old_cleanups" to where they
9296 2003-04-23 Andrew Cagney <cagney@redhat.com>
9298 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9299 and "buffer". Move the "name" code to where it is needed.
9301 2003-04-23 Andrew Cagney <cagney@redhat.com>
9303 * infcall.c (call_function_by_hand): Move variables "start_sp",
9304 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9305 code to ON_STACK switch branch.
9307 2003-04-23 Andrew Cagney <cagney@redhat.com>
9309 * infcall.c (call_function_by_hand): Make declaration of "i",
9310 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9313 2003-04-23 Andrew Cagney <cagney@redhat.com>
9315 * infcall.c (call_function_by_hand): Delete variable
9316 "n_method_args". Localize "param_type"'s declaration to the loop
9317 that it is used. Reinstate code assigning to said variable -
9318 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9319 Rationalize code using "param_type".
9321 2003-04-22 Andrew Cagney <cagney@redhat.com>
9323 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9324 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9325 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9326 to DEPRECATED_PUSH_RETURN_ADDRESS.
9328 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9330 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9331 on the DWARF2 register number prior to fetching a register.
9333 2003-04-22 J. Brobecker <brobecker@gnat.com>
9335 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9336 Update all the tests using SOFT_FLOAT considering the fact that
9337 this macro was always set to 0.
9338 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9339 considering the fact that this macro was always set to 0.
9340 * hppa-tdep.h (hppa_store_return_value): Likewise.
9341 (hppa_extract_return_value): Likewise.
9343 2003-04-22 J. Brobecker <brobecker@gnat.com>
9345 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9346 the hppa-pro target only.
9348 2003-04-21 J. Brobecker <brobecker@gnat.com>
9350 Ongoing multi-arch conversion effort for HP/UX:
9351 * config/pa/tm-hppa.h: Move all macro that are no longer
9352 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9353 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9355 2003-04-21 J. Brobecker <brobecker@gnat.com>
9357 * config/pa/tm-hppa.h: Obsolete a section that was only used
9360 2003-04-21 J. Brobecker <brobecker@gnat.com>
9362 Ongoing multi-arch conversion for HP/UX.
9363 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9364 if already defined (allows hppa64 to stay non-multiarched for now).
9365 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9367 2003-04-21 Andrew Cagney <cagney@redhat.com>
9369 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9371 2003-04-21 Andrew Cagney <cagney@redhat.com>
9373 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9374 "i386_num_mmx_regs".
9376 2003-04-21 Andrew Cagney <cagney@redhat.com>
9378 * infcall.c: New file.
9379 * infcall.h: New file.
9380 * valarith.c: Include "infcall.h".
9381 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9382 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9383 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9384 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9385 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9386 (SFILES): Add "infcall.c"
9387 (COMMON_OBS): Add "infcall.o".
9388 (infcall.o): Specify dependencies.
9389 * value.h (call_function_by_hand): Delete declaration.
9390 * inferior.h (run_stack_dummy): Delete declaration.
9391 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9392 (run_stack_dummy): Move to "infcall.c", merged into
9393 call_function_by_hand.
9394 * valops.c (call_function_by_hand): Moved to "infcall.c".
9395 (find_function_addr, value_arg_coerce): Ditto.
9396 (unwindonsignal_p, coerce_float_to_double): Ditto.
9397 (_initialize_valops): Move "set/show coerce-float-to-double", and
9398 "set/show unwindonsignal" commands to "infcall.c".
9399 * v850-tdep.c, target.h: Update comments.
9400 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9401 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9402 (sh64_init_extra_frame_info): Update comments.
9403 * mn10300-tdep.c: Update comments.
9404 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9405 * config/sparc/tm-sparc.h: Update comments.
9406 * breakpoint.h: Update comments.
9407 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9408 * arm-tdep.c: Update comment.
9410 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9412 * i386-tdep.c (i386_num_register_names): New variable.
9413 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9414 (MM0_REGNUM): Remove redundant parentheses in define.
9415 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9416 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9417 i386_mxcsr_regnum_p): Remove redundant parentheses.
9418 (i386_register_name): Use i386_num_register_names.
9420 * i386-tdep.c (i386_extract_return_value,
9421 i386_store_return_value): Correct check for availability of
9422 floating-point registers.
9424 * i386-tdep.c (i386_frame_num_args): Remove function.
9425 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9427 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9428 mmx_regnum_to_fp_regnum. Adjust all callers.
9430 * i386-tdep.c (i386_get_longjmp_target): Use
9431 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9432 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9435 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9437 * core-regset.c: Update comments to reflect reality. Re-order
9439 (fetch_core_registers): Use switch instead of if. Remove
9440 redundant prototype.
9442 2003-04-18 Jim Blandy <jimb@redhat.com>
9444 * s390-tdep.c (s390_frame_align): New function.
9445 (s390_gdbarch_init): Register it with the gdbarch object.
9447 2003-04-17 Richard Henderson <rth@redhat.com>
9449 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9451 2003-04-17 Michael Snyder <msnyder@redhat.com>
9452 Karen Bennet <bennet@redhat.com>
9454 Committed by Elena Zannoni <ezannoni@redhat.com>
9455 * gdb_gcore.sh: New script to create a core dump of a process.
9457 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9459 * values.c (value_being_returned): Don't fetch the return
9460 value if the return type is void.
9462 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9464 * thread-db.c: Reindented.
9466 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9468 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9469 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9496 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9498 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9499 the size of ``long double'' to 16, instead of 8.
9501 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9503 * i386-linux-nat.c: Add some whitespace to make things more
9505 (fetch_register, store_register, fetch_inferior_registers,
9506 store_inferior_registers): Get rid of assignment in if-statement.
9507 (store_register): Fix typo in error message.
9509 2003-04-16 Andrew Cagney <cagney@redhat.com>
9511 * utils.c (xmmalloc): Always allocate something, matches
9512 libiberty/xmalloc's semantics.
9513 (xmrealloc, xmcalloc): Ditto.
9515 2003-04-16 Andrew Cagney <cagney@redhat.com>
9517 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9519 (get_frame_type): Initialize unwind and type when needed.
9520 (get_frame_id, frame_register_unwind): Ditto.
9522 2003-04-16 Andrew Cagney <cagney@redhat.com>
9524 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9526 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9527 * sparcl-stub.c: Obsolete file.
9528 * config/sparc/tm-sparclet.h: Obsolete file.
9529 * sparclet-stub.c: Obsolete file.
9530 * sparclet-rom.c: Obsolete file.
9531 * sparcl-tdep.c: Obsolete file.
9532 * config/sparc/tm-sparclite.h: Obsolete file.
9533 * config/sparc/sparclite.mt: Obsolete file.
9534 * config/sparc/sparclet.mt: Obsolete file.
9535 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9536 sparc86x-*-* obsolete.
9538 2003-04-15 David Carlton <carlton@math.stanford.edu>
9540 * Makefile.in (SFILES): Add cp-namespace.c.
9541 (COMMON_OBS): Add cp-namespace.o.
9542 (block.o): Depend on gdb_obstack_h and cp_support_h.
9543 (buildsym.o): Depend on cp_support_h.
9544 (cp-namespace.o): New.
9545 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9546 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9547 (dwarf2read.o): Depend on cp_support_h.
9548 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9549 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9550 processing_current_namespace.
9551 (read_namespace): Update processing_current_namespace; check for
9552 anonymous namespaces.
9553 (dwarf2_name): New function.
9554 (dwarf2_extension): Ditto.
9555 * cp-support.h: Update copyright, contributors.
9556 Add inclusion guards.
9557 Add opaque declaration for structs obstack, block, symbol.
9558 (struct using_direct): New struct.
9559 Add declarations for cp_find_first_component,
9560 cp_entire_prefix_len, processing_has_namespace_info,
9561 processing_current_namespace, cp_is_anonymous,
9562 cp_add_using_directive, cp_initialize_namespace,
9563 cp_finalize_namespace, cp_set_block_scope,
9564 cp_scan_for_anonymous_namespaces.
9565 * cp-namespace.c: New file.
9566 * cp-support.c: Update copyright.
9567 Include ctype.h, gdb_assert.h, gdbcmd.h.
9568 New variable maint_cplus_cmd_list.
9569 (cp_find_first_component): New function.
9570 (cp_entire_prefix_len, maint_cplus_command)
9571 (first_component_command, _initialize_cp_support): Ditto.
9572 * buildsym.c: Include cp-support.h.
9573 New variable using_list.
9574 (add_symbol_to_list): Check for anonymous namespaces.
9575 (finish_block): Set block's scope.
9576 (start_symtab): Initialize C++ namespace support.
9577 (end_symtab): Finalize C++ namespace support.
9578 * block.h: Add opaque declarations for structs
9579 block_namespace_info, using_direct, and obstack.
9580 Add declarations for block_set_scope and block_set_using.
9581 (struct block): Add 'language_specific' member.
9582 (BLOCK_NAMESPACE): New macro.
9583 * block.c: Include gdb_obstack.h and cp-support.h.
9584 (struct block_namespace_info): New struct.
9585 (block_set_scope): New function.
9586 (block_set_using, block_initialize_namespace): Ditto.
9588 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9590 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9591 (locate_base): Return early if there aren't any link map offsets.
9592 (svr4_solib_create_inferior_hook): Warn if shared library support
9595 2003-04-14 David Carlton <carlton@math.stanford.edu>
9597 * symtab.c (symbol_set_names): Add prefix when storing Java names
9598 in hash table. Fix for PR java/1039.
9600 2003-04-14 David Carlton <carlton@math.stanford.edu>
9602 * symtab.c (symbol_set_names): Rename 'name' arg to
9603 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9604 * symtab.h: Change 'name' argument in declaration of
9605 symbol_set_names to 'linkage_name'.
9606 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9608 2003-04-14 Andrew Cagney <cagney@redhat.com>
9610 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9611 return the fully sign-extended register value.
9612 (get_frame_pointer): Ditto.
9613 (mips_pop_frame): Initialize "proc_desc" after checking for a
9616 2003-04-14 Andrew Cagney <cagney@redhat.com>
9618 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9619 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9620 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9621 (mips_push_register): Delete function.
9622 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9625 2003-04-14 Jim Blandy <jimb@redhat.com>
9627 * symmisc.c: #include "gdb_regex.h".
9628 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9630 * maint.c (maintenance_list_command): New function.
9631 (_initialize_maint_cmds): Register the above as commands.
9632 * symtab.h (maintenance_list_symtabs,
9633 maintenance_list_psymtabs): New declarations.
9634 * cli/cli-cmds.c (maintenancelistlist): New variable.
9635 (init_cmd_lists): Initialize it.
9636 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9637 * gdbcmd.h (maintenancelistlist): New declaration.
9638 * Makefile.in (symmisc.o): Update dependencies.
9640 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9642 * s390-nat.c: Include asm/types.h for addr_t.
9644 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9646 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9647 actually incoming type.
9649 2003-04-13 Andrew Cagney <cagney@redhat.com>
9651 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9652 get_next_frame and get_frame_saved_regs.
9654 2003-04-13 Andrew Cagney <cagney@redhat.com>
9656 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9657 of gdbarch_num_regs.
9659 2003-04-13 Andrew Cagney <cagney@redhat.com>
9661 * frame.h: Mention what replaced what in "struct frame_info".
9662 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9663 deprecated_update_frame_base_hack and
9664 deprecated_update_frame_pc_hack.
9665 * hppa-tdep.c: Ditto.
9667 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9669 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9670 to read_reg and update its comment. Remove regnum member.
9671 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9672 Don't call read_reg when setting in_reg. Call read_reg to get
9673 the frame base if it's in a register. Return the register number
9674 on the stack instead of in the context. Remove extra arguments
9676 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9677 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9678 the register number on the expression stack.
9679 (needs_frame_read_reg): Remove extra arguments.
9681 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9683 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9685 (execute_stack_op): All callers updated.
9686 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9687 * dwarf2loc.c (find_location_expression): New function.
9688 (dwarf_expr_frame_base): Call it.
9689 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9690 (dwarf2_tracepoint_var_ref): New function, broken out from
9691 locexpr_tracepoint_var_ref.
9692 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9694 (loclist_read_variable, loclist_read_needs_frame): New functions.
9695 (loclist_describe_location, loclist_tracepoint_var_ref): New
9697 (dwarf2_loclist_funcs): New struct location_funcs.
9698 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9699 (struct dwarf2_locexpr_baton): Add comments.
9700 (dwarf2_loclist_funcs): New extern.
9701 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9702 base_address and base_known.
9703 (dwarf_loc_buffer): New variable.
9704 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9705 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9706 (dwarf2_has_info): Initialize dwarf_loc_offset.
9707 (dwarf2_build_psymtabs): Read in .debug_loc.
9708 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9710 (psymtab_to_symtab_1): Likewise. Move base address calculation
9712 (dwarf2_get_pc_bounds): ... here. Use the base address from
9714 (dwarf2_symbol_mark_computed): Handle location lists.
9716 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9718 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9719 if the linkage name demangled successfully.
9721 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9723 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9724 disassmbly_flavour): Removed.
9726 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9728 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9730 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9732 2003-04-12 Andrew Cagney <cagney@redhat.com>
9734 * frame.h (struct frame_info): Move definition from here ...
9735 * frame.c (struct frame_info): ... to here.
9737 2003-04-12 Andrew Cagney <cagney@redhat.com>
9739 * gdbthread.h (save_infrun_state): Delete parameter
9741 (struct thread_info): Delete field "prev_func_start".
9742 (load_infrun_state): Ditto.
9743 * thread.c (load_infrun_state, save_infrun_state): Update.
9744 * infrun.c (prev_func_start): Delete variable.
9745 (context_switch, init_wait_for_inferior): Update.
9746 (stop_stepping, keep_going): Update.
9748 2003-04-12 Andrew Cagney <cagney@redhat.com>
9750 * gdbarch.sh: Add missing opaque declarations.
9751 * gdbarch.h: Regnerate.
9752 * symtab.h: Add missing opaque declarations.
9753 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9754 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9755 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9756 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9757 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9758 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9759 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9760 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9761 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9762 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9763 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9764 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9765 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9767 2003-04-11 Andrew Cagney <cagney@redhat.com>
9769 * frame.c (get_frame_id): Return this frame's "id".
9770 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9772 (legacy_saved_regs_this_id): Replace function body with
9774 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9775 FRAME_OBSTACK_ZALLOC.
9776 (create_new_frame): Mark the frame ID as valid.
9778 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9780 * Makefile.in (libbfd_h): Added missing setting.
9781 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9782 according to the selected ABI.
9784 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9786 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9788 2003-04-11 Andrew Cagney <cagney@redhat.com>
9790 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9791 SAVED_PC_AFTER_CALL.
9792 * gdbarch.h, gdbarch.c: Regenerate.
9793 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9794 * x86-64-tdep.c (x86_64_init_abi): Update.
9795 * vax-tdep.c (vax_gdbarch_init): Update.
9796 * v850-tdep.c (v850_gdbarch_init): Update.
9797 * sparc-tdep.c (sparc_gdbarch_init): Update.
9798 * sh-tdep.c (sh_gdbarch_init): Update.
9799 * s390-tdep.c (s390_gdbarch_init): Update.
9800 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9801 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9802 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9803 * mips-tdep.c (mips_gdbarch_init): Update.
9804 * mcore-tdep.c (mcore_gdbarch_init): Update.
9805 * m68k-tdep.c (m68k_gdbarch_init): Update.
9806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9807 * ia64-tdep.c (ia64_gdbarch_init): Update.
9808 (ia64_saved_pc_after_call): Update declaration.
9809 * i386ly-tdep.c (i386lynx_init_abi): Update.
9810 * i386-tdep.c (i386_gdbarch_init): Update.
9811 * hppa-tdep.c (hppa_gdbarch_init): Update.
9812 * h8300-tdep.c (h8300_gdbarch_init): Update.
9813 * frv-tdep.c (frv_gdbarch_init): Update.
9814 * cris-tdep.c (cris_gdbarch_init): Update.
9815 * avr-tdep.c (avr_gdbarch_init): Update.
9816 * arm-tdep.c (arm_gdbarch_init): Update.
9817 * alpha-tdep.c (alpha_gdbarch_init): Update.
9818 * ns32knbsd-nat.c (frame_num_args): Update.
9819 * ns32k-tdep.c (umax_frame_num_args): Update.
9820 * mips-tdep.c (mips_init_frame_pc_first): Update.
9821 * infrun.c (step_over_function): Update.
9822 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9823 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9824 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9825 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9826 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9827 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9828 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9829 * arch-utils.c (init_frame_pc_default): Update.
9830 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9831 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9834 2003-04-11 Andrew Cagney <cagney@redhat.com>
9836 * i387-tdep.c: Update copyright.
9837 (i387_to_double): Delete function.
9838 (double_to_i387): Delete function.
9840 2003-04-10 Andrew Cagney <cagney@redhat.com>
9842 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9843 frame's function's address. Simplify.
9844 (d10v_frame_unwind_cache): Check that the frame's function is
9847 2003-04-10 Jim Blandy <jimb@redhat.com>
9849 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9850 call to set_gdbarch_deprecated_push_arguments.
9852 2003-04-10 Andrew Cagney <cagney@redhat.com>
9854 * frame.c (fprint_frame_id): New function.
9855 (fprint_frame_type, fprint_frame): New function.
9856 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9857 (create_sentinel_frame, get_frame_id): Ditto.
9858 (frame_id_p, frame_id_eq): Ditto.
9859 (frame_id_inner, create_new_frame): Ditto.
9860 (legacy_get_prev_frame, get_prev_frame): Ditto.
9861 (deprecated_update_frame_pc_hack): Ditto.
9862 (frame_register_unwind): Ditto.
9863 (deprecated_update_frame_base_hack): Ditto.
9865 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9867 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9868 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9869 frame_chain function.
9870 * Makefile.in: Add dependencies due to above change.
9872 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9874 * blockframe.c (legacy_frame_chain_valid): Move call to
9875 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9878 2003-04-09 Andrew Cagney <cagney@redhat.com>
9880 * frame.h (struct frame_id): Replace "pc" and "base" with
9881 "stack_addr" and "code_addr". Update comments.
9882 (frame_id_build): Update parameter names and comment.
9883 (struct frame_info): Replace "id_p" and "id" with "this_id".
9884 * dummy-frame.c (dummy_frame_this_id): Update.
9885 * breakpoint.c (print_one_breakpoint): Update.
9886 * frame.c (get_frame_id): Update.
9887 (get_frame_base, frame_id_build): Update.
9888 (create_sentinel_frame, legacy_get_prev_frame): Update.
9889 (deprecated_update_frame_base_hack): Update.
9890 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9891 (frame_id_inner): Ditto.
9893 2003-04-09 Andrew Cagney <cagney@redhat.com>
9895 * defs.h (gdb_print_host_address): Make "addr" parameter a
9897 * utils.c (gdb_print_host_address): Update.
9899 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9901 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9902 register number for R0 is 0.
9904 2003-04-09 J. Brobecker <brobecker@gnat.com>
9906 * frame.h (struct gdbarch): Add opaque structure definition
9907 to avoid a compilation warning on LynxOS 4.0.
9909 2003-04-09 Andrew Cagney <cagney@redhat.com>
9911 * frame.h (struct frame_info): Delete field "pc". Replace
9912 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9914 * frame.c (frame_pc_unwind): Update.
9915 (create_sentinel_frame): Do not set "pc".
9916 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9917 (get_frame_pc): Call frame_pc_unwind.
9918 (deprecated_update_frame_pc_hack): Update.
9919 (create_new_frame): Use "pc" not "->pc".
9921 2003-04-09 Andrew Cagney <cagney@redhat.com>
9923 * frame.c (get_frame_id): Eliminate code updating "frame".
9924 (legacy_get_prev_frame): Ditto.
9925 (get_frame_base): Return id.base directly.
9926 (deprecated_update_frame_base_hack): Update "id.base".
9927 * frame.h (struct frame_info): Delete field "frame".
9929 2003-04-09 Andrew Cagney <cagney@redhat.com>
9931 * NEWS: Mention that the "Sequent family" is obsolete.
9932 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9933 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9934 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9935 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9936 * config/i386/tm-ptx4.h: Obsolete file.
9937 * config/i386/tm-ptx.h: Obsolete file.
9938 * symm-tdep.c: Obsolete file.
9939 * config/i386/symmetry.mt: Obsolete file.
9940 * config/i386/tm-symmetry.h: Obsolete file.
9941 * symm-nat.c: Obsolete file.
9942 * config/i386/nm-symmetry.h: Obsolete file.
9943 * config/i386/xm-symmetry.h: Obsolete file.
9944 * config/i386/symmetry.mh: Obsolete file.
9945 * config/i386/nm-ptx4.h: Obsolete file.
9946 * config/i386/ptx4.mh: Obsolete file.
9947 * config/i386/ptx.mt: Obsolete file.
9948 * config/i386/ptx.mh: Obsolete file.
9949 * config/i386/xm-ptx4.h: Obsolete file.
9950 * config/i386/xm-ptx.h: Obsolete file.
9952 2003-04-09 Andrew Cagney <cagney@redhat.com>
9954 Obsolete mips*-*-mach3*.
9955 * NEWS: Mention that mips*-*-mach3* is obsolete.
9956 * m3-nat.c: Obsolete file.
9957 * config/nm-m3.h: Obsolete file.
9958 * config/mips/tm-mipsm3.h: Obsolete file.
9959 * config/mips/mipsm3.mt: Obsolete file.
9960 * config/mips/mipsm3.mh: Obsolete file.
9961 * config/mips/xm-mipsm3.h: Obsolete file.
9962 * mipsm3-nat.c: Obsolete file.
9963 * configure.host: Obsolete mips-dec-mach3*.
9964 * configure.tgt: Obsolete mips*-*-mach3*.
9966 2003-04-09 Andrew Cagney <cagney@redhat.com>
9968 * doublest.h: Update copyright.
9969 (deprecated_store_floating, deprecated_extract_floating): Rename
9970 store_floating and extract_floating. Update comments.
9971 * doublest.c: Update copyright.
9972 (extract_floating_by_length): Replace extract_floating.
9973 (store_floating_by_length): Replace store_floating.
9974 (deprecated_extract_floating): New function.
9975 (deprecated_store_floating): New function.
9976 (extract_typed_floating): Call extract_floating_by_length.
9977 (store_typed_floating): Call store_floating_by_length.
9978 * x86-64-tdep.c (x86_64_store_return_value): Update.
9979 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9980 (sh64_extract_return_value): Update.
9981 (sh_sh4_register_convert_to_virtual): Update.
9982 (sh_sh64_register_convert_to_virtual): Update.
9983 (sh_sh4_register_convert_to_raw): Update.
9984 (sh_sh64_register_convert_to_raw): Update.
9985 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9986 (rs6000_register_convert_to_raw): Update.
9987 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9988 (ia64_register_convert_to_raw): Update.
9989 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9990 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9991 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9992 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9993 (alpha_register_convert_to_raw): Update.
9995 2003-04-08 Andrew Cagney <cagney@redhat.com>
9997 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9998 * gdbarch.h, gdbarch.c: Re-generate.
9999 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10000 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10001 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10002 conditionally, use frame_pc_unwind as an alternative. Add
10004 * arch-utils.c (init_frame_pc_default): Only call
10005 SAVED_PC_AFTER_CALL when available.
10007 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10009 * infrun.c (stop_soon): Rename from stop_soon_quietly.
10010 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10011 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10012 (start_remote): Ditto.
10013 (handle_inferior_event): Ditto.
10014 (save_inferior_status): Ditto.
10015 (restore_inferior_status): Ditto.
10016 * infcmd.c (attach_command): Ditto.
10017 * fork-child.c (startup_inferior): Ditto.
10018 * inferior.h (stop_soon): Rename from stop_soon_quietly.
10019 * alpha-tdep.c (heuristic_proc_start): Ditto.
10020 * mips-tdep.c (heuristic_proc_start): Ditto.
10021 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10022 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10023 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10024 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10025 * remote-vx.c (vx_create_inferior): Ditto.
10027 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10029 * infrun.c (stop_soon_quietly): Make it an enum, to better
10030 override the default behavior of handle_inferior_event.
10031 (clear_proceed_status): Update uses of stop_soon_quietly to
10032 reflect that it is now an enum.
10033 (start_remote): Ditto.
10034 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10035 is set to handle the new GNU/Linux kernel behavior for
10036 attach/sigstop. Update uses of stop_soon_quietly.
10037 * inferior.h (enum stop_kind): New enum.
10038 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10039 Reset normal handle_inferior_event behavior, afterwards.
10040 * fork-child.c (startup_inferior): Update.
10041 * alpha-tdep.c (heuristic_proc_start): Update.
10042 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10043 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10044 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10045 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10046 * remote-vx.c (vx_create_inferior): Update.
10047 * mips-tdep.c (heuristic_proc_start): Update.
10049 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
10051 * disasm.c (dump_insns): Move variables inside loop, or they will
10052 be freed more than once, causing wild memory corruptions.
10053 (gdb_disassembly): Look for the substring "-thread",
10054 instead of "-threads" in the target name, to make sure to find
10055 the 'multi-thread' target. Also, make sure we do the right thing
10056 with the "core" target.
10058 2003-04-07 Kevin Buettner <kevinb@redhat.com>
10060 * mips-tdep.c (mips_print_fp_register): New function, created from
10061 do_fp_register_row(). Registers are now (also) printed as hex.
10062 Only one register is printed per row.
10063 (mips_print_register, do_fp_register_row): Print floating point
10064 registers with mips_print_fp_register().
10066 2003-04-06 Andrew Cagney <cagney@redhat.com>
10068 * valprint.h (inspect_it): Add extern declaration.
10069 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10070 (selectors_info, classes_info): Ditto.
10071 (find_objc_msgcall): Fix indentation.
10072 (objc_printstr): Delete extern declarations.
10074 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10076 2003-04-06 Andrew Cagney <cagney@redhat.com>
10078 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10080 * frame.c (legacy_saved_regs_this_id): Update.
10081 (legacy_get_prev_frame): Update.
10082 * xstormy16-tdep.c: Update comment.
10083 * sparc-tdep.c (sparc_frame_chain): Update comment.
10084 * blockframe.c (legacy_frame_chain_valid): Update.
10086 2003-04-06 Andrew Cagney <cagney@redhat.com>
10088 * valprint.c (val_print_type_code_int): Delete #ifdef
10089 PRINT_TYPELESS_INTEGER code.
10091 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10092 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10093 multi-arch definition.
10094 * gdbarch.h: Re-generate.
10096 2003-04-05 Andrew Cagney <cagney@redhat.com>
10098 Eliminate FRAME_FIND_SAVED_REGS.
10099 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10100 Change FSR parameter to a pointer.
10101 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10102 Assume FSR parameter is a pointer.
10103 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10104 Make fsr a pointer.
10105 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10106 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10107 saved_regs a pointer.
10108 (hppa_frame_saved_pc): Ditto.
10109 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10110 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10112 (restore_pc_queue): Make fsr a pointer.
10113 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10114 (hppa_frame_chain): Make saved_regs a pointer, call
10115 hppa_frame_init_saved_regs.
10116 * sparc-tdep.c: Include "gdb_assert.h".
10117 (sparc_frame_find_saved_regs): Replace internal_error with
10119 * remote-vxsparc.c (vx_read_register): Delete reference to
10120 FRAME_FIND_SAVED_REGS.
10121 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10122 * gdbarch.h: Regenerate.
10123 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10124 (deprecated_get_frame_saved_regs): Delete declaration.
10125 (struct frame_saved_regs): Delete definition.
10126 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10127 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10128 (hppa_frame_find_saved_regs): Delete declaration.
10129 (FRAME_FIND_SAVED_REGS): Delete macro.
10130 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10131 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10132 FRAME_FIND_SAVED_REGS in comment.
10134 2003-04-05 Andrew Cagney <cagney@redhat.com>
10136 * frame.c (frame_func_unwind, get_frame_func): New functions.
10137 * frame.h (get_frame_func, frame_func_unwind): Declare.
10138 (struct frame_info): Add field "prev_func" for caching the
10139 previous frame's function address.
10140 * arm-tdep.c (arm_frameless_function_invocation): Combine
10141 get_pc_function_start and get_frame_pc into get_frame_func.
10142 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10143 (sh64_nofp_frame_init_saved_regs): Ditto.
10144 * s390-tdep.c (s390_function_start): Ditto.
10145 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10146 (rs6000_frameless_function_invocation): Ditto.
10147 (rs6000_frame_saved_pc): Ditto.
10148 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10149 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10150 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10151 (i386_frame_init_saved_regs): Ditto.
10152 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10153 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10154 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10155 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10156 * blockframe.c (frameless_look_for_prologue): Ditto.
10158 2003-04-05 Andrew Cagney <cagney@redhat.com>
10160 * frame.c (legacy_get_prev_frame): Link prev to next at the
10161 function start. Update comments.
10163 2003-04-05 Andrew Cagney <cagney@redhat.com>
10165 * frame.c (get_frame_id): Update comment.
10166 (legacy_get_prev_frame): Update comment.
10167 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10168 * gdbarch.h: Regenerate.
10169 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10170 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10172 2003-04-05 Andrew Cagney <cagney@redhat.com>
10174 * stack.c (print_frame_info): Use get_frame_pc.
10176 2003-04-04 Andrew Cagney <cagney@redhat.com>
10178 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10179 the frame's type from the unwinder.
10180 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10181 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10182 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10183 (get_frame_base_address): Use get_frame_type.
10184 (get_frame_locals_address, get_frame_args_address): Ditto.
10185 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10186 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10187 (struct frame_info): Add comment explaining why the frame contains
10189 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10190 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10191 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10193 * frame-unwind.h: Include "frame.h".
10194 (struct frame_unwind): Add "type" field.
10195 * Makefile.in (frame_unwind_h): Add $(frame_h).
10197 2003-04-04 Andrew Cagney <cagney@redhat.com>
10199 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10200 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10201 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10203 (d10v_unwind_dummy_id): Use frame_id_build.
10204 * frame.c (find_frame_sal): Use get_frame_pc.
10205 (create_new_frame): Use deprecated_update_frame_pc_hack and
10206 deprecated_update_frame_base_hack.
10207 (create_sentinel_frame): Add comment about ->pc going away.
10208 (get_prev_frame): Add comment about ->pc going away.
10209 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10210 frame_id_build, deprecated_update_frame_pc_hack and
10211 deprecated_update_frame_base_hack.
10212 (select_frame): Use get_frame_pc.
10213 (legacy_saved_regs_this_id): Use frame_id_build.
10215 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10217 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10218 signed integer case.
10219 (classify_argument): Handle enumerations and references.
10221 2003-04-04 Andrew Cagney <cagney@redhat.com>
10223 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10226 2003-04-01 Adam Fedor <fedor@gnu.org>
10228 * gdb/objc-lang.c (selectors_info): Replace calls to
10229 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10230 SYMBOL_NATURAL_NAME.
10231 (classes_info, find_methods): Likewise.
10233 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10235 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10236 ``mach'' to the value determined by bfd_default_set_arch_mach().
10238 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10240 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10241 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10242 (mi-cmd-file.o): Update dependencies.
10244 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10246 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10247 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10249 2003-04-01 Adam Fedor <fedor@gnu.org>
10251 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10252 * language.h (struct language_defn): Add la_demangle.
10253 (language_demangle): Declare.
10254 * language.c (language_demangle): New function.
10255 (unk_lang_demangle): Likewise.
10256 (unknown_language_defn, auto_language_defn, local_language_defn):
10257 Add ukn_lang_demangle.
10258 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10259 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10260 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10261 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10262 * jv-lang.c (java_demangle): New function
10263 (java_language_defn): Use it for la_demangle element.
10264 * objc-lang.c (objc_demangle): Add options argument
10265 (objc_language_defn): Use objc_demangle for la_demangle element.
10266 * maint.c (maintenance_demangle): Replace switch with
10267 call to language_demangle.
10268 * utils.c (fprintf_symbol_filtered): Likewise.
10270 2003-04-01 Andrew Cagney <cagney@redhat.com>
10272 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10273 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10274 PRINT_TYPELESS_INTEGER.
10275 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10276 PUSH_RETURN_ADDRESS.
10278 2003-04-01 Andrew Cagney <cagney@redhat.com>
10280 * Makefile.in (d10v-tdep.o): Update dependencies.
10281 * d10v-tdep.c: Include "frame-base.h".
10282 (d10v_frame_unwind): Make constant.
10283 (d10v_frame_base_address): New function.
10284 (d10v_frame_base): New variable.
10285 (d10v_gdbarch_init): Set frame_base default.
10286 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10288 (d10v_frame_unwind_cache): Set and use "prev_sp".
10289 (d10v_frame_this_id): Use the previous frame's inner most stack
10290 address and this frame's func address for the frame ID. Use
10291 frame_id_build. Don't analyze beyond the current instruction.
10293 2003-04-01 Andrew Cagney <cagney@redhat.com>
10295 * frame.h (get_frame_locals_address, get_frame_args_address):
10296 Refer to the base address, instead of the address of the first
10297 local or parameter.
10299 2003-04-01 Andrew Cagney <cagney@redhat.com>
10301 Add frame debug info addresses:
10302 * frame-base.c: New file.
10303 * frame-base.h: New file.
10304 * frame.h (struct frame_base): Add opaque declaration.
10305 (get_frame_base): Update comment.
10306 (get_frame_base_address): Declare.
10307 (get_frame_locals_address): Declare.
10308 (get_frame_args_address): Declare.
10309 (struct frame_info): Add "base" and "base_cache". Update
10310 comments on the unwinder.
10311 * frame.c: Include "frame-base.h".
10312 (get_frame_locals_address): New function.
10313 (get_frame_base_address): New function.
10314 (get_frame_args_address): New function.
10315 * findvar.c (read_var_value): Use get_frame_locals_address and
10316 get_frame_args_address.
10317 * stack.c (frame_info): Use get_frame_locals_address and
10318 get_frame_args_address.
10319 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10320 moved to "frame-base.c".
10321 * printcmd.c (print_frame_nameless_args): Ditto.
10322 * symtab.h (address_class): Update comments.
10323 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10324 get_frame_base_address.
10325 * dwarf2expr.c (execute_stack_op): Ditto.
10326 * Makefile.in (frame_base_h): Define.
10327 (frame.o): Update dependencies.
10328 (frame-base.o): Add dependencies.
10329 (SFILES): Add frame-base.c.
10330 (COMMON_OBS): Add frame-base.o.
10332 2003-04-01 Andrew Cagney <cagney@redhat.com>
10334 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10335 CALL_DUMMY_LENGTH): Ditto.
10336 * gdbarch.c: Re-generate.
10337 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10338 (CALL_DUMMY_LENGTH): Delete macro.
10339 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10340 * arm-tdep.c (arm_gdbarch_init): Ditto.
10341 * avr-tdep.c (avr_gdbarch_init): Ditto.
10342 * cris-tdep.c (cris_gdbarch_init): Ditto.
10343 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10344 * frv-tdep.c (frv_gdbarch_init): Ditto.
10345 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10346 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10347 * i386-tdep.c (i386_gdbarch_init): Ditto.
10348 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10349 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10350 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10351 * mips-tdep.c (mips_gdbarch_init): Ditto.
10352 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10353 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10354 * s390-tdep.c (s390_gdbarch_init): Ditto.
10355 * sh-tdep.c (sh_gdbarch_init): Ditto.
10356 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10357 * v850-tdep.c (v850_gdbarch_init): Ditto.
10358 * vax-tdep.c (vax_gdbarch_init): Ditto.
10359 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10361 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10363 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10365 2003-04-01 Andrew Cagney <cagney@redhat.com>
10367 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10368 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10369 * gdbarch.h, gdbarch.c: Re-generate.
10370 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10371 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10372 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10373 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10374 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10375 * infcmd.c (run_stack_dummy): Simplify assuming
10376 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10377 * infrun.c (handle_inferior_event): Ditto.
10378 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10379 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10380 * arm-tdep.c (arm_gdbarch_init): Ditto.
10381 * avr-tdep.c (avr_gdbarch_init): Ditto.
10382 * cris-tdep.c (cris_gdbarch_init): Ditto.
10383 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10384 * frv-tdep.c (frv_gdbarch_init): Ditto.
10385 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10386 * i386-tdep.c (i386_gdbarch_init): Ditto.
10387 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10389 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10390 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10391 * mips-tdep.c (mips_gdbarch_init): Ditto.
10392 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10393 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10394 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10395 * s390-tdep.c (s390_gdbarch_init): Ditto.
10396 * sh-tdep.c (sh_gdbarch_init): Ditto.
10397 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10398 * v850-tdep.c (v850_gdbarch_init): Ditto.
10399 * vax-tdep.c (vax_gdbarch_init): Ditto.
10400 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10402 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10404 * symfile.c (symfile_relocate_debug_section): Update call to
10405 bfd_simple_get_relocated_section_contents.
10407 2003-03-31 Andrew Cagney <cagney@redhat.com>
10409 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10410 * gdbarch.h, gdbarch.c: Regenerate.
10411 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10412 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10414 * frame.h (generic_fix_call_dummy): Delete declaration.
10415 * dummy-frame.h: Update comment.
10416 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10417 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10419 * sh-tdep.c (sh_gdbarch_init): Ditto.
10420 * s390-tdep.c (s390_gdbarch_init): Ditto.
10421 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10422 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10423 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10424 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10425 * i386-tdep.c (i386_gdbarch_init): Ditto.
10426 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10427 * frv-tdep.c (frv_gdbarch_init): Ditto.
10428 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10429 * cris-tdep.c (cris_gdbarch_init): Ditto.
10430 * avr-tdep.c (avr_gdbarch_init): Ditto.
10431 * arm-tdep.c (arm_gdbarch_init): Ditto.
10433 2003-03-31 J. Brobecker <brobecker@gnat.com>
10435 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10436 (INIT_FRAME_AP): Likewise.
10437 (EXTRA_FRAME_INFO): Likewise.
10439 2003-03-31 Andrew Cagney <cagney@redhat.com>
10441 * gdbarch.sh: Include "symfile.h".
10442 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10443 * gdbarch.h, gdbarch.c: Re-generate.
10444 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10446 call_dummy_address, the default is at entry_point_address.
10447 * v850-tdep.c (v850_gdbarch_init): Ditto.
10448 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10449 * sh-tdep.c (sh_gdbarch_init): Ditto.
10450 * s390-tdep.c (s390_gdbarch_init): Ditto.
10451 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10452 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10453 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10454 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10455 * i386-tdep.c (i386_gdbarch_init): Ditto.
10456 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10457 * frv-tdep.c (frv_gdbarch_init): Ditto.
10458 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10459 * cris-tdep.c (cris_gdbarch_init): Ditto.
10460 * arm-tdep.c (arm_gdbarch_init): Ditto.
10462 2003-03-31 Andrew Cagney <cagney@redhat.com>
10464 * gdbarch.sh (CALL_DUMMY_P): Delete.
10465 * gdbarch.h, gdbarch.c: Re-generate.
10466 * inferior.h (CALL_DUMMY_P): Delete macro.
10467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10468 * vax-tdep.c (vax_gdbarch_init): Update.
10469 * v850-tdep.c (v850_gdbarch_init): Update.
10470 * sparc-tdep.c (sparc_gdbarch_init): Update.
10471 * sh-tdep.c (sh_gdbarch_init): Update.
10472 * s390-tdep.c (s390_gdbarch_init): Update.
10473 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10474 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10475 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10476 * mips-tdep.c (mips_gdbarch_init): Update.
10477 * mcore-tdep.c (mcore_gdbarch_init): Update.
10478 * m68k-tdep.c (m68k_gdbarch_init): Update.
10479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10480 * ia64-tdep.c (ia64_gdbarch_init): Update.
10481 * i386-tdep.c (i386_gdbarch_init): Update.
10482 * h8300-tdep.c (h8300_gdbarch_init): Update.
10483 * frv-tdep.c (frv_gdbarch_init): Update.
10484 * d10v-tdep.c (d10v_gdbarch_init): Update.
10485 * cris-tdep.c (cris_gdbarch_init): Update.
10486 * breakpoint.c (deprecated_frame_in_dummy): Update.
10487 * avr-tdep.c (avr_gdbarch_init): Update.
10488 * alpha-tdep.c (alpha_gdbarch_init): Update.
10489 * arm-tdep.c (arm_gdbarch_init): Update.
10490 * dummy-frame.c (dummy_frame_this_id): Update comments.
10491 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10492 * frame.c (legacy_get_prev_frame): Ditto.
10493 * valops.c (call_function_by_hand): Delete function.
10494 (hand_function_call): Rename to call_function_by_hand
10496 2003-03-30 Andrew Cagney <cagney@redhat.com>
10498 2002-11-10 Klee Dienes <kdienes@apple.com>
10499 * value.h (struct value): Update comment.
10501 2003-03-30 Andrew Cagney <cagney@redhat.com>
10503 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10505 (d10v_gdbarch_init): Do not set fp_regnum.
10507 * frame.c (get_frame_base): Force ID initialization.
10508 (get_prev_frame): Move computation of the frame ID from here ...
10509 (get_frame_id): ... to here.
10510 (legacy_get_prev_frame): Mark the frame ID as valid.
10511 * frame.h (struct frame_info): Add field "id_p".
10513 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10515 * i386-tdep.c (i386_store_struct_return): Removed.
10516 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10518 2003-03-30 Andrew Cagney <cagney@redhat.com>
10520 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10521 * gdbarch.h, gdbarch.c: Regenerate.
10522 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10524 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10525 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10526 * i386-tdep.c (i386_gdbarch_init): Ditto.
10527 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10528 * cris-tdep.c (cris_gdbarch_init): Ditto.
10529 * vax-tdep.c (vax_gdbarch_init): Ditto.
10530 * s390-tdep.c (s390_gdbarch_init): Ditto.
10531 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10532 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10533 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10534 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10535 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10536 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10537 * sparc-tdep.c (sparc_gdbarch_init): Update.
10538 * sh-tdep.c (sh_gdbarch_init): Update.
10539 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10540 * mips-tdep.c (mips_gdbarch_init): Update.
10541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10542 * ia64-tdep.c (ia64_gdbarch_init): Update.
10543 * frv-tdep.c (frv_gdbarch_init): Update.
10544 * avr-tdep.c (avr_gdbarch_init): Update.
10545 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10546 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10547 instead of when push_dummy_call is not available.
10549 2003-03-30 Andrew Cagney <cagney@redhat.com>
10551 * infttrace.c: Include "gdbthread.h".
10552 (parent_attach_all): Fix function signature.
10553 (call_ptrace): Update call.
10554 * Makefile.in (infttrace.o): Update dependencies.
10556 2003-03-30 Andrew Cagney <cagney@redhat.com>
10558 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10559 PUSH_RETURN_ADDRESS.
10560 * gdbarch.h, gdbarch.c: Regenerate.
10561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10562 * x86-64-tdep.c (x86_64_init_abi): Update.
10563 * v850-tdep.c (v850_gdbarch_init): Update.
10564 * sparc-tdep.c (sparc_gdbarch_init): Update.
10565 * sh-tdep.c (sh_gdbarch_init): Update.
10566 * s390-tdep.c (s390_gdbarch_init): Update.
10567 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10568 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10569 * mips-tdep.c (mips_gdbarch_init): Update.
10570 * mcore-tdep.c (mcore_gdbarch_init): Update.
10571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10572 * ia64-tdep.c (ia64_gdbarch_init): Update.
10573 * i386-tdep.c (i386_gdbarch_init): Update.
10574 * h8300-tdep.c (h8300_gdbarch_init): Update.
10575 * frv-tdep.c (frv_gdbarch_init): Update.
10576 * cris-tdep.c (cris_gdbarch_init): Update.
10577 * avr-tdep.c (avr_gdbarch_init): Update.
10578 * arm-tdep.c (arm_gdbarch_init): Update.
10579 * valops.c (hand_function_call): Update.
10581 2003-03-29 Andrew Cagney <cagney@redhat.com>
10583 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10584 sizeof_call_dummy_words.
10585 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10587 * gdbarch.h: Regenerate.
10589 2003-03-29 Andrew Cagney <cagney@redhat.com>
10591 * infttrace.h: New file.
10592 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10593 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10594 (hpread_read_doc_function_type): Detect an initialized type1.
10595 (hpread_quick_traverse): Initialize mod_name_string.
10596 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10597 (som_solib_get_solib_by_pc): Declare.
10598 (so_lib_thread_start_addr): Declare.
10599 (no_shared_libraries): Declare.
10600 * somread.c (init_import_symbols): Make static. Add forward
10602 * config/pa/nm-hppah.h: Include "infttrace.h" for
10604 (hppa_insert_hw_watchpoint): Declare.
10605 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10606 * hppah-nat.c: Include "gdb_string.h".
10607 (parent_attach_all): Delete extern declaration, moved to
10609 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10611 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10612 * Makefile.in (infttrace_h): Define.
10613 (hpread.o): Update dependencies.
10614 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10615 * hppa-hpux-tdep.c: Include "gdb_string.h".
10616 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10617 * infrun.c (handle_inferior_event): Always initialize
10618 stepped_after_stopped_by_watchpoint. Add default and remove
10619 fallthrough in switch statement.
10620 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10622 (hppa_remove_hw_watchpoint): Ditto.
10624 2003-03-29 Andrew Cagney <cagney@redhat.com>
10626 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10629 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10631 * arm-tdep.c (arm_push_arguments): Delete.
10632 (struct stack_item): New type.
10633 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10634 (arm_store_struct_return): Delte.
10635 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10636 arm_push_arguments or arm_store_struct_return.
10638 2003-03-28 Andrew Cagney <cagney@redhat.com>
10640 * Makefile.in (d10v-tdep.o): Update dependencies.
10641 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10642 * d10v-tdep.c: Include "remote.h".
10643 (target_resume_hook): Delete extern declaration.
10644 (target_wait_loop_hook): Ditto.
10645 (tdisassemble_command): Eliminate assignment in "if" conditional.
10646 (d10v_ts2_register_sim_regno): Eliminate call to
10647 legacy_register_sim_regno.
10648 (d10v_ts3_register_sim_regno): Ditto.
10650 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10652 * thread.c: Reindented.
10653 * lin-lwp.c: Ditto.
10654 * linux-proc.c: Ditto.
10656 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10658 * MAINTAINERS (write after approval): Add myself.
10660 2003-03-27 Theodore A. Roth <troth@openavr.org>
10662 * objc-exp.y: Add missing semi-colons.
10664 2003-03-27 Andrew Cagney <cagney@redhat.com>
10666 * regcache.c (write_sp): Delete function and references.
10667 * inferior.h (write_sp): Delete declaration.
10668 * valops.c (hand_function_call): Replace write_sp with
10670 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10671 (sparc_pop_frame): Ditto.
10673 2003-03-27 Andrew Cagney <cagney@redhat.com>
10675 * NEWS: Mention removal of support for hppa*-*-bsd* and
10676 hppa*-*-osf* natives, and hppa*-*-pro* target.
10677 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10678 * config/pa/xm-pa.h: Obsolete file.
10679 * config/pa/xm-hppab.h: Obsolete file.
10680 * config/pa/nm-hppab.h: Obsolete file.
10681 * config/pa/tm-hppab.h: Obsolete file.
10682 * config/pa/tm-hppao.h: Obsolete file.
10683 * config/pa/nm-hppao.h: Obsolete file.
10684 * config/pa/tm-pro.h: Obsolete file.
10685 * config/pa/hppaosf.mt: Obsolete file.
10686 * config/pa/hppaosf.mh: Obsolete file.
10687 * config/pa/hppapro.mt: Obsolete file.
10688 * config/pa/hppabsd.mt: Obsolete file.
10689 * config/pa/hppabsd.mh: Obsolete file.
10690 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10691 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10694 2003-03-27 Andrew Cagney <cagney@redhat.com>
10696 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10697 push_arguments. Don't set push_return_address or write_sp.
10698 (d10v_push_dummy_call): Replace d10v_push_arguments.
10699 (d10v_push_return_address, d10v_write_sp): Delete function,
10700 handled by push_dummy_call.
10702 2003-03-26 Andrew Cagney <cagney@redhat.com>
10704 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10705 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10706 regcache and dummy_addr parameters.
10707 * gdbarch.h, gdbarch.c: Re-generate.
10708 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10709 available; assume it will handle stack alignment and return
10710 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10711 legacy_push_arguments.
10712 (legacy_push_arguments): Rename default_push_arguments.
10713 * value.h (legacy_push_arguments): Rename default_push_arguments.
10714 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10715 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10716 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10717 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10718 * config/i386/tm-symmetry.h: Update.
10719 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10720 * x86-64-tdep.c (x86_64_init_abi): Update.
10721 * v850-tdep.c (v850_gdbarch_init): Update.
10722 * sparc-tdep.c (sparc_gdbarch_init): Update.
10723 * sh-tdep.c (sh_gdbarch_init): Update.
10724 * s390-tdep.c (s390_gdbarch_init): Update.
10725 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10726 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10727 * mips-tdep.c (mips_gdbarch_init): Update.
10728 * mcore-tdep.c (mcore_gdbarch_init): Update.
10729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10730 * ia64-tdep.c (ia64_gdbarch_init): Update.
10731 * i386-tdep.c (i386_gdbarch_init): Update.
10732 * hppa-tdep.c (hppa_gdbarch_init): Update.
10733 * h8300-tdep.c (h8300_gdbarch_init): Update.
10734 * frv-tdep.c (frv_gdbarch_init): Update.
10735 * d10v-tdep.c (d10v_gdbarch_init): Update.
10736 * cris-tdep.c (cris_gdbarch_init): Update.
10737 * avr-tdep.c (avr_gdbarch_init): Update.
10738 * arm-tdep.c (arm_gdbarch_init): Update.
10739 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10740 * alpha-tdep.c (alpha_gdbarch_init): Update.
10742 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10744 * signals/signals.c (do_target_signal_to_host): Correct realtime
10747 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10749 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10750 (struct sal_chain, map_catch_names): Remove.
10751 (catch_exception_command_1): Don't call
10752 handle_gnu_4_16_catch_command.
10754 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10756 From Mark Dettinger <dettinge@de.ibm.com>:
10757 * dwarf2cfi.c (read_2u): Increment pointer by two.
10759 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10761 * signals/signals.c: Fix typos in last change.
10763 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10765 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10766 not already defined. Use __SIGRTMIN if available.
10767 (target_signal_from_host): Remove SIGRTMIN block.
10768 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10769 the signal is within the realtime range.
10771 2003-03-25 Adam Fedor <fedor@gnu.org>
10773 * Makefile.in (infrun.o): Add $(language_h)
10774 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10775 for language specific trampolines.
10776 * language.h (struct language_defn): Add skip_trampoline.
10777 (skip_language_trampoline): Declare.
10778 * language.c (unk_lang_trampoline, skip_language_trampoline):
10780 (unknown_language_defn, auto_language_defn, local_language_defn):
10781 Add ukn_lang_trampoline.
10782 * ada-lang.c (ada_language_defn): Add NULL for language
10783 specific skip_trampoline.
10784 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10785 scm-lang.c: Likewise.
10786 * objc-lang.c (objc_skip_trampoline): New function.
10787 (objc_language_defn): Add objc_skip_trampoline.
10789 2003-03-25 Andrew Cagney <cagney@redhat.com>
10791 * frame.c (get_prev_frame): Delay validating a frame's ID -
10792 non-NULL, didn't go backwards - until an attempt to unwind it to
10793 the previous frame.
10795 2003-03-25 Andrew Cagney <cagney@redhat.com>
10797 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10798 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10799 * gdbarch.h, gdbarch.c: Re-generate.
10800 * config/sparc/tm-sparc.h
10801 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10802 * sparc-tdep.c (sparc_gdbarch_init): Set
10803 deprecated_extra_stack_alignment_needed.
10804 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10805 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10806 extra_stack_alignment_needed.
10807 * v850-tdep.c (v850_gdbarch_init): Ditto.
10808 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10809 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10810 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10811 * cris-tdep.c (cris_gdbarch_init): Ditto.
10812 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10815 2003-03-25 Andrew Cagney <cagney@redhat.com>
10817 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10818 STORE_STRUCT_RETURN.
10819 * gdbarch.h, gdbarch.c: Regenerate.
10820 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10821 (d10v_push_arguments): Set the struct return register.
10822 (d10v_gdbarch_init): Update.
10823 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10824 * x86-64-tdep.c (x86_64_init_abi): Update.
10825 * vax-tdep.c (vax_gdbarch_init): Update.
10826 * v850-tdep.c (v850_gdbarch_init): Update.
10827 * sparc-tdep.c (sparc_gdbarch_init): Update.
10828 * sh-tdep.c (sh_gdbarch_init): Update.
10829 * s390-tdep.c (s390_gdbarch_init): Update.
10830 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10831 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10832 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10833 * mips-tdep.c (mips_gdbarch_init): Update.
10834 * mcore-tdep.c (mcore_gdbarch_init): Update.
10835 * m68k-tdep.c (m68k_gdbarch_init): Update.
10836 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10837 * ia64-tdep.c (ia64_gdbarch_init): Update.
10838 * i386-tdep.c (i386_gdbarch_init): Update.
10839 * hppa-tdep.c (hppa_gdbarch_init): Update.
10840 * h8300-tdep.c (h8300_gdbarch_init): Update.
10841 * frv-tdep.c (frv_gdbarch_init): Update.
10842 * cris-tdep.c (cris_gdbarch_init): Update.
10843 * avr-tdep.c (avr_gdbarch_init): Update.
10844 * arm-tdep.c (arm_gdbarch_init): Update.
10845 * alpha-tdep.c (alpha_gdbarch_init): Update.
10847 2003-03-25 Andrew Cagney <cagney@redhat.com>
10849 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10850 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10851 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10852 * gdbarch.h, gdbarch.c: Regenerate.
10853 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10854 call_dummy_stack_adjust_p.
10855 * vax-tdep.c (vax_gdbarch_init): Ditto.
10856 * v850-tdep.c (v850_gdbarch_init): Ditto.
10857 * sh-tdep.c (sh_gdbarch_init): Ditto.
10858 * s390-tdep.c (s390_gdbarch_init): Ditto.
10859 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10860 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10861 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10862 * mips-tdep.c (mips_gdbarch_init): Ditto.
10863 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10864 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10866 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10867 * i386-tdep.c (i386_gdbarch_init): Ditto.
10868 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10869 * frv-tdep.c (frv_gdbarch_init): Ditto.
10870 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10871 * cris-tdep.c (cris_gdbarch_init): Ditto.
10872 * avr-tdep.c (avr_gdbarch_init): Ditto.
10873 * arm-tdep.c (arm_gdbarch_init): Ditto.
10874 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10875 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10876 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10877 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10878 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10879 call_dummy_stack_adjust_p.
10880 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10881 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10882 * sparc-tdep.c (sparc32_push_arguments): Update.
10883 * valops.c (hand_function_call): Update.
10885 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10887 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10888 set_gdbarch_char_signed.
10890 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10893 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10895 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10897 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10898 (_initialize_arm_tdep): Don't set tm_print_insn.
10900 2003-03-24 Adam Fedor <fedor@gnu.org>
10902 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10903 * objc-lang.h: Add multiple inclusion protection.
10904 (start_msglist, add_msglist, end_msglist): Additional declarations.
10906 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10908 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10909 value was renamed to ARM_FLOAT_SOFT_FPA.
10911 2003-03-23 Andrew Cagney <cagney@redhat.com>
10913 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10914 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10915 * gdbarch.h, gdbarch.c: Regenerate.
10916 * valops.c (hand_function_call): Update.
10917 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10918 * frame.c (legacy_saved_regs_this_id): Update.
10919 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10920 * dummy-frame.h: Update.
10921 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10922 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10923 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10924 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10925 * config/m68k/tm-sun3.h: Update.
10926 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10928 * x86-64-tdep.c (x86_64_init_abi): Update.
10929 * vax-tdep.c (vax_gdbarch_init): Update.
10930 * v850-tdep.c (v850_gdbarch_init): Update.
10931 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10932 * sh-tdep.c (sh_gdbarch_init): Update.
10933 * s390-tdep.c (s390_gdbarch_init): Update.
10934 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10935 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10936 (frame_get_saved_regs): Update.
10937 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10938 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10939 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10940 * mips-tdep.c (mips_gdbarch_init): Update.
10941 * mcore-tdep.c (mcore_gdbarch_init): Update.
10942 * m68k-tdep.c (m68k_gdbarch_init): Update.
10943 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10944 * ia64-tdep.c (ia64_gdbarch_init): Update.
10945 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10946 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10947 (i386_interix_back_one_frame): Update.
10948 * hppa-tdep.c (hppa_gdbarch_init): Update.
10949 (hppa_init_extra_frame_info): Update.
10950 * h8300-tdep.c (h8300_gdbarch_init): Update.
10951 * frv-tdep.c (frv_gdbarch_init): Update.
10952 * cris-tdep.c (cris_gdbarch_init): Update.
10953 * avr-tdep.c (avr_gdbarch_init): Update.
10954 * arm-tdep.c (arm_gdbarch_init): Update.
10955 * alpha-tdep.c (alpha_gdbarch_init): Update.
10957 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10959 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10960 (arm_get_fp_model): Declare.
10961 * arm-tdep.c (fp_model_strings): New string array.
10962 (arm_fp_model, current_fp_model): New variables.
10963 (arm_get_fp_model): New function.
10964 (arm_set_fp): New function.
10965 (set_fp_model_sfunc): New function.
10966 (show_fp_model): New function.
10967 (_initialize_arm_tdep): Add new command to set/show the FPU.
10968 (arm_extract_return_value): Use arm_get_fp_model.
10969 (arm_store_return_value): Likewise.
10970 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10971 to initialize the floating-point data types.
10972 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10975 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10977 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10978 the current setting of each value.
10979 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10980 new_set and new_show. Use add_setshow_cmd_full and
10981 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10982 commands and add new version as subcommands of "set/show arm".
10984 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10986 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10987 (set_arm_command, show_arm_command): New functions.
10988 (_initialize_arm_tdep): Add them.
10989 (num_disassembly_options): Renamed from num_flavor_options.
10990 (valid_disassembly_styles): Renamed from valid_flavors.
10991 (disassembly_style): Renamed from disassembly_flavor.
10992 (set_disassembly_style_sfunc): Renamed from
10993 set_disassembly_flavor_sfunc.
10994 (set_disassembly_style): Renamed from set_disassembly_flavor.
10995 (arm_othernames): Updated.
10996 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10997 command. Add "set/show arm disassembly" commands. Deprecate
10998 "othernames" command.
11000 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11002 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11003 (arm-tdep.o): Depend on elf_arm_h.
11005 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11007 * Makefile.in (coff_internal_h): Define.
11008 (arm-tdep.o): Update dependencies.
11010 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11012 * arm-tdep.c (prologue_cache): Delete.
11013 (check_prologue_cache, save_prologue_cache): Delete.
11014 (arm_scan_prologue): Don't check or update the prologue_cache.
11015 (arm_gdb_arch_init): Don't initialize it.
11016 (_initialize_arm_tdep): Likewise.
11018 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11020 * MAINTAINERS (tui): Maintainer of tui code.
11022 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
11024 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11025 (i386-cygwin-tdep.o): Add dependencies.
11026 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11027 * i386-cygwin-tdep.c: New file.
11028 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11029 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11031 2003-03-20 Andrew Cagney <cagney@redhat.com>
11033 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11034 (handle_inferior_event): Remove code calling
11035 DYNAMIC_TRAMPOLINE_NEXTPC.
11037 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11038 already has a full path.
11040 * main.c (gdb_main): Return 1.
11041 (captured_main): Call error to report an invalid interpreter.
11043 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11044 * alpha-osf1-tdep.c: Include "gdb_string.h".
11046 2003-03-19 J. Brobecker <brobecker@gnat.com>
11048 Continuing work to convert the hppa targets to multiarch partial.
11050 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11051 method, now that hppa_push_dummy_frame has a conformant prototype.
11052 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11053 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11054 for the switch to multiarch partial.
11056 2003-03-19 Kevin Buettner <kevinb@redhat.com>
11058 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11059 when iss is issNull.
11061 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11063 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11064 NUM_REGS bounds check.
11066 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11068 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11069 * mips-tdep.c (gdb_assert.h): Include.
11070 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11071 (mips_register_name): Handle integer registers explicitly. Add
11073 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11074 (mips_lsi33k_reg_names): Don't list integer registers; they're
11075 handled by mips_register_name() now.
11076 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11077 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11078 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11079 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11080 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11082 2003-03-18 Andrew Cagney <cagney@redhat.com>
11084 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11086 * gdbtypes.h (print_scalar_formatted): Update declaration.
11087 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11089 2003-03-18 J. Brobecker <brobecker@gnat.com>
11091 * infrun.c (observer.h): Add #include.
11092 (normal_stop): Add call to observer_notify_normal_stop.
11093 * Makefile.in (infrun.o): Add dependency on observer.h.
11095 2003-03-18 J. Brobecker <brobecker@gnat.com>
11097 Continuing work to convert the hppa targets to multiarch partial.
11098 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11099 parameter. Reformat comment.
11100 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11101 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11102 to match new profile.
11104 2003-03-18 J. Brobecker <brobecker@gnat.com>
11106 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11107 appear to be working in any case.
11109 2003-03-18 J. Brobecker <brobecker@gnat.com>
11111 * observer.c (observer_test_first_observer): New static variable.
11112 (observer_test_second_observer): Likewise.
11113 (observer_test_third_observer): Likewise.
11114 (observer_test_first_notification_function): New static function.
11115 (observer_test_second_notification_function): Likewise.
11116 (observer_test_third_notification_function): Likewise.
11118 2003-03-17 J. Brobecker <brobecker@gnat.com>
11120 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11121 * somsolib.c (gdb_assert.h): Likewise.
11122 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11123 (somsolib.o): Likewise.
11125 2003-03-17 Andrew Cagney <cagney@redhat.com>
11127 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11128 BFD. Simplify setting of di.endian.
11130 2003-03-17 Andrew Cagney <cagney@redhat.com>
11132 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11133 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11135 From Elena Zannoni <ezannoni@redhat.com>
11136 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11137 vector and floating-point parameters.
11138 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11140 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11142 2003-03-17 Fernando Nasser <fnasser@redhat.com>
11144 * MAINTAINERS: Remove my name from several maintainership roles.
11146 2003-03-17 Andrew Cagney <cagney@redhat.com>
11148 Fix frame off-by-one bug.
11149 * frame-unwind.h (frame_this_id_ftype): Replace
11150 frame_unwind_id_ftype.
11151 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11152 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11153 with "prev_register".
11154 * frame-unwind.c (frame_unwind_find_by_pc): Return
11155 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11157 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11158 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11159 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11160 (dummy_frame_unwind): Update.
11161 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11162 sentinel_frame_register_unwind.
11163 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11164 (sentinel_frame_unwinder): Update.
11165 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11166 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11167 * frame.c (create_sentinel_frame): Update. Initialize
11168 "prologue_cache" instead of "unwind_cache".
11169 (frame_register_unwind): Call this frame's prev_register with the
11170 next frame and this frame's prologue cache.
11171 (get_prev_frame): Simplify. Always call prev frame's this_id with
11172 this frame and prev frame's prologue cache. Document that this
11173 call is shifted one to the left when compared to the
11174 frame_register_unwind call.
11175 (legacy_saved_regs_prev_register): Replace
11176 frame_saved_regs_register_unwind.
11177 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11178 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11179 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11180 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11181 (d10v_frame_unwind): Update.
11182 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11183 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11184 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11185 "saved_regs" with "this_saved_regs".
11187 2003-03-16 Andrew Cagney <cagney@redhat.com>
11189 * frame.c (frame_pop): Don't call target_store_registers. Fix
11190 problem reported by Mark Kettenis.
11192 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11194 * i386-tdep.c (i386_register_type): Renamed from
11195 i386_register_virtual_type. Adjust function signature.
11196 (i386_gdbarch_init): Set register_type instead of
11197 deprecated_max_register_raw_size,
11198 deprecated_max_register_virtual_size and register_virtual_type.
11200 2003-03-14 Andrew Cagney <cagney@redhat.com>
11202 * frame.c (get_prev_frame): When a legacy frame, always call
11203 legacy_get_prev_frame. Simplify unwind code using assumption that
11204 the unwinder is new.
11205 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11206 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11207 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11209 2003-03-14 Andrew Cagney <cagney@redhat.com>
11211 * frame.c (get_saved_register): Delete function.
11212 * frame.h (get_saved_register): Delete declaration.
11213 * xstormy16-tdep.c: Update comment.
11214 * regcache.h: Update comments.
11215 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11216 get_saved_register and extract_address, use
11217 frame_read_unsigned_register.
11218 (sparc_frame_saved_pc): Ditto.
11219 (sparc_get_saved_register): Instead of get_saved_register, use
11221 (sparc_pop_frame): Ditto.
11222 * findvar.c: Update comments.
11223 (value_of_register): Call frame_register instead of
11224 get_saved_register.
11225 (value_from_register): Ditto.
11226 * config/sparc/tm-sparc.h: Update comment.
11227 * breakpoint.c: Update comment.
11229 2003-03-14 Andrew Cagney <cagney@redhat.com>
11231 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11232 GET_SAVED_REGISTER.
11233 * gdbarch.h, gdbarch.c: Re-generate.
11234 * frame.h: Update comments.
11235 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11236 * x86-64-tdep.c (x86_64_init_abi): Update.
11237 * sparc-tdep.c (sparc_gdbarch_init): Update.
11238 * sh-tdep.c (sh_gdbarch_init): Update.
11239 * mips-tdep.c (mips_gdbarch_init): Update.
11240 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11241 * cris-tdep.c (cris_gdbarch_init): Update.
11242 * ia64-tdep.c (ia64_gdbarch_init): Update.
11243 * frame.c (frame_register): Update.
11244 (get_saved_register): Update.
11245 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11247 2003-03-13 Andrew Cagney <cagney@redhat.com>
11249 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11250 * gdbarch.h, gdbarch.c: Regenerate.
11251 * valops.c (hand_function_call): Update comment.
11252 * stack.c (return_command): Update comment.
11253 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11254 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11255 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11256 * x86-64-tdep.c (x86_64_init_abi): Update.
11257 * vax-tdep.c (vax_gdbarch_init): Update.
11258 * v850-tdep.c (v850_gdbarch_init): Update.
11259 * sparc-tdep.c (sparc_gdbarch_init): Update.
11260 * sh-tdep.c (sh_gdbarch_init): Update.
11261 * s390-tdep.c (s390_gdbarch_init): Update.
11262 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11263 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11264 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11265 * mips-tdep.c (mips_gdbarch_init): Update.
11266 * mcore-tdep.c (mcore_gdbarch_init): Update.
11267 * m68k-tdep.c (m68k_gdbarch_init): Update.
11268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11269 * ia64-tdep.c (ia64_gdbarch_init): Update.
11270 * i386-tdep.c (i386_gdbarch_init): Update.
11271 * hppa-tdep.c (hppa_gdbarch_init): Update.
11272 * h8300-tdep.c (h8300_gdbarch_init): Update.
11273 * frv-tdep.c (frv_gdbarch_init): Update.
11274 * cris-tdep.c (cris_gdbarch_init): Update.
11275 * avr-tdep.c (avr_gdbarch_init): Update.
11276 * arm-tdep.c (arm_gdbarch_init): Update.
11277 * alpha-tdep.c (alpha_gdbarch_init): Update.
11279 2003-03-13 Andrew Cagney <cagney@redhat.com>
11281 * frame.c (legacy_frame_p): New function.
11282 (get_prev_frame): Use legacy_frame_p.
11283 * frame.h (legacy_frame_p): Declare.
11285 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11287 * MAINTAINERS (write after approval): Alphabetically
11290 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11292 * MAINTAINERS (write after approval): Add myself.
11294 2003-03-12 Andrew Cagney <cagney@redhat.com>
11296 * frame.c (get_prev_frame): Rename the frame parameter to
11298 (get_next_frame, legacy_get_prev_frame): Ditto.
11300 2003-03-12 Andrew Cagney <cagney@redhat.com>
11302 * frame.c (get_current_frame): Check target_has_registers before
11303 checking target_has_stack.
11304 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11305 instead of deprecated_selected_frame.
11306 * findvar.c (value_of_register): Pass "frame", not
11307 deprecated_selected_frame, to value_of_builtin_reg.
11309 2003-03-12 Andrew Cagney <cagney@redhat.com>
11311 * regcache.c (regcache_cooked_write_signed): New function.
11312 (regcache_cooked_write_unsigned): New function.
11313 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11314 (regcache_cooked_read_signed): Fix regnum in range assertion.
11315 * regcache.h (regcache_cooked_write_signed): Declare.
11316 (regcache_cooked_write_unsigned): Declare.
11318 2003-03-12 Andrew Cagney <cagney@redhat.com>
11320 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11321 * gdbarch.h, gdbarch.c: Re-generate.
11322 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11323 * x86-64-tdep.h: Update.
11324 * x86-64-tdep.c (x86_64_init_abi): Update.
11325 * v850-tdep.c (v850_gdbarch_init): Update.
11326 * sparc-tdep.c (sparc_gdbarch_init): Update.
11327 * sh-tdep.c (sh_gdbarch_init): Update.
11328 * s390-tdep.c (s390_gdbarch_init): Update.
11329 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11330 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11331 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11332 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11333 * mips-tdep.c (mips_gdbarch_init): Update.
11334 * mcore-tdep.c (mcore_gdbarch_init): Update.
11335 * m68k-tdep.c (m68k_gdbarch_init): Update.
11336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11337 * ia64-tdep.c (ia64_gdbarch_init): Update.
11338 * i386-tdep.c (i386_gdbarch_init): Update.
11339 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11340 * hppa-tdep.c (hppa_gdbarch_init): Update.
11341 * h8300-tdep.c (h8300_gdbarch_init): Update.
11342 * frv-tdep.c (frv_gdbarch_init): Update.
11343 * cris-tdep.c (cris_gdbarch_init): Update.
11344 * avr-tdep.c (avr_gdbarch_init): Update.
11345 * arm-tdep.c (arm_gdbarch_init): Update.
11346 * alpha-tdep.c (alpha_gdbarch_init): Update.
11347 * sh-tdep.c (sh_init_extra_frame_info): Update.
11348 (sh64_init_extra_frame_info): Update.
11349 * ns32knbsd-nat.c (frame_num_args): Update.
11350 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11351 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11352 (xstormy16_frame_chain_valid): Update.
11353 * vax-tdep.c (vax_saved_pc_after_call): Update.
11354 * v850-tdep.c (v850_frame_chain): Update.
11355 (v850_pop_frame): Update.
11356 (v850_init_extra_frame_info): Update.
11357 * sparc-tdep.c (setup_arbitrary_frame): Update.
11358 * ns32k-tdep.c (umax_frame_num_args): Update.
11359 * s390-tdep.c (s390_pop_frame_regular): Update.
11360 * mn10300-tdep.c (mn10300_frame_chain): Update.
11361 (mn10300_pop_frame_regular): Update.
11362 (mn10300_init_extra_frame_info): Update.
11363 * mips-tdep.c (mips_init_frame_pc_first): Update.
11364 (mips_frame_chain): Update.
11365 (mips_pop_frame): Update.
11366 * mcore-tdep.c (mcore_frame_chain): Update.
11367 (mcore_pop_frame): Update.
11368 (mcore_init_extra_frame_info): Update.
11369 * arch-utils.c (init_frame_pc_default): Update.
11370 * m68k-tdep.c (isi_frame_num_args): Update.
11371 (delta68_frame_num_args): Update.
11372 (news_frame_num_args): Update.
11373 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11374 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11375 (alpha_frame_chain): Update.
11376 (alpha_pop_frame): Update.
11377 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11378 (hppa_init_extra_frame_info): Update.
11379 (hppa_frame_chain): Update.
11380 (hppa_frame_chain_valid): Update.
11381 * cris-tdep.c (cris_init_extra_frame_info): Update.
11382 * avr-tdep.c (avr_init_extra_frame_info): Update.
11383 * arm-tdep.c (arm_frame_chain_valid): Update.
11384 (arm_init_extra_frame_info): Update.
11385 (arm_pop_frame): Update.
11386 * frame.c (frame_pc_unwind): Update.
11387 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11388 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11389 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11390 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11391 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11392 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11394 2003-03-12 Andrew Cagney <cagney@redhat.com>
11396 Eliminate the need for POP_FRAME.
11397 * frame.c (do_frame_unwind_register): New function.
11398 (frame_pop): When no POP_FRAME, pop the frame using register
11399 unwind and a scratch regcache.
11400 (frame_saved_regs_pop): Delete function.
11401 (trad_frame_unwinder): Update.
11402 * d10v-tdep.c (d10v_frame_pop): Delete function.
11403 (d10v_frame_unwind): Update.
11404 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11405 (sentinel_frame_unwinder): Update.
11406 * dummy-frame.c (dummy_frame_pop): Delete function.
11407 (dummy_frame_unwind): Update.
11408 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11409 (struct frame_unwind): Update.
11411 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11413 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11414 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11415 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11416 Do range checks on register number obtained from debugging info.
11417 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11418 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11419 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11421 (do_fp_register_row): Fix typo which caused double type to be
11422 used when attempting to unpack a float.
11424 2003-03-11 J. Brobecker <brobecker@gnat.com>
11426 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11428 2003-03-11 Andrew Cagney <cagney@redhat.com>
11430 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11431 frame. Problem found by Corinna Vinschen.
11433 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11435 * doublest.c (floatformat_from_length): Accept also
11436 the real size of 'long double' type.
11438 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11440 From Klee Dienes <kdienes@apple.com>:
11441 * breakpoint.c (bpstat_copy): Copy the command lines as well
11442 as the old value, to match what is freed in bpstat_clear.
11444 2003-03-10 David Carlton <carlton@math.stanford.edu>
11446 * minsyms.c (add_minsym_to_hash_table): Replace
11447 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11448 (compare_minimal_symbols, compact_minimal_symbols)
11449 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11450 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11451 of DEPRECATED_SYMBOL_MATCHES_NAME.
11452 (lookup_minimal_symbol_solib_trampoline): Ditto.
11454 2003-03-10 Andrew Cagney <cagney@redhat.com>
11456 * regcache.h (regcache_cooked_read_ftype): Define.
11457 (regcache_save, regcache_restore): Add a cooked_read parameter.
11458 * regcache.c (regcache_save, regcache_restore): Update.
11459 (do_cooked_read): New function.
11460 (regcache_cpy): Pass do_cooked_read to regcache_save and
11463 2003-03-10 Andrew Cagney <cagney@redhat.com>
11465 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11466 * gdbarch.h, gdbarch.c: Re-generate.
11467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11468 * x86-64-tdep.h: Update.
11469 * x86-64-tdep.c (x86_64_init_abi): Update.
11470 * v850-tdep.c (v850_gdbarch_init): Update.
11471 * sparc-tdep.c (sparc_gdbarch_init): Update.
11472 * sh-tdep.c (sh_gdbarch_init): Update.
11473 * s390-tdep.c (s390_gdbarch_init): Update.
11474 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11475 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11476 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11477 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11478 * mips-tdep.c (mips_gdbarch_init): Update.
11479 * mcore-tdep.c (mcore_gdbarch_init): Update.
11480 * m68k-tdep.c (m68k_gdbarch_init): Update.
11481 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11482 * ia64-tdep.c (ia64_gdbarch_init): Update.
11483 * i386-tdep.c (i386_gdbarch_init): Update.
11484 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11485 * hppa-tdep.c (hppa_gdbarch_init): Update.
11486 * h8300-tdep.c (h8300_gdbarch_init): Update.
11487 * frv-tdep.c (frv_gdbarch_init): Update.
11488 * cris-tdep.c (cris_gdbarch_init): Update.
11489 * avr-tdep.c (avr_gdbarch_init): Update.
11490 * arm-tdep.c (arm_gdbarch_init): Update.
11491 * alpha-tdep.c (alpha_gdbarch_init): Update.
11492 * sh-tdep.c (sh_init_extra_frame_info): Update.
11493 (sh64_init_extra_frame_info): Update.
11494 * ns32knbsd-nat.c (frame_num_args): Update.
11495 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11496 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11497 (xstormy16_frame_chain_valid): Update.
11498 * vax-tdep.c (vax_saved_pc_after_call): Update.
11499 * v850-tdep.c (v850_frame_chain): Update.
11500 (v850_pop_frame): Update.
11501 (v850_init_extra_frame_info): Update.
11502 * sparc-tdep.c (setup_arbitrary_frame): Update.
11503 * ns32k-tdep.c (umax_frame_num_args): Update.
11504 * s390-tdep.c (s390_pop_frame_regular): Update.
11505 * mn10300-tdep.c (mn10300_frame_chain): Update.
11506 (mn10300_pop_frame_regular): Update.
11507 (mn10300_init_extra_frame_info): Update.
11508 * mips-tdep.c (mips_init_frame_pc_first): Update.
11509 (mips_frame_chain): Update.
11510 (mips_pop_frame): Update.
11511 * mcore-tdep.c (mcore_frame_chain): Update.
11512 (mcore_pop_frame): Update.
11513 (mcore_init_extra_frame_info): Update.
11514 * arch-utils.c (init_frame_pc_default): Update.
11515 * m68k-tdep.c (isi_frame_num_args): Update.
11516 (delta68_frame_num_args): Update.
11517 (news_frame_num_args): Update.
11518 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11519 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11520 (alpha_frame_chain): Update.
11521 (alpha_pop_frame): Update.
11522 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11523 (hppa_init_extra_frame_info): Update.
11524 (hppa_frame_chain): Update.
11525 (hppa_frame_chain_valid): Update.
11526 * cris-tdep.c (cris_init_extra_frame_info): Update.
11527 * avr-tdep.c (avr_init_extra_frame_info): Update.
11528 * arm-tdep.c (arm_frame_chain_valid): Update.
11529 (arm_init_extra_frame_info): Update.
11530 (arm_pop_frame): Update.
11531 * frame.c (frame_pc_unwind): Update.
11532 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11533 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11534 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11535 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11536 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11537 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11539 2003-03-10 Andrew Cagney <cagney@redhat.com>
11541 * gdbarch.sh (gdbarch_unwind_pc): New method.
11542 * gdbarch.h, gdbarch.c: Regenerate.
11543 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11544 but use read_pc and FRAME_SAVED_PC as fall backs.
11545 (frame_saved_regs_pc_unwind): Delete function.
11546 (trad_frame_unwinder): Update.
11547 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11548 (struct frame_unwind): Update.
11549 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11550 (dummy_frame_unwind): Update.
11551 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11552 (sentinel_frame_unwinder): Update.
11553 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11554 (d10v_frame_unwind): Update.
11555 (d10v_unwind_pc): New function.
11556 (d10v_gdbarch_init): Set unwind_pc.
11558 2003-03-10 Andrew Cagney <cagney@redhat.com>
11560 * gdbarch.h: Re-generate.
11562 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11564 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11567 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11569 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11571 2003-03-08 Andrew Cagney <cagney@redhat.com>
11573 * cli-out.c: Update copyright.
11574 (cli_out_data): Define typedef. Use instead of ui_out_data.
11576 2003-03-08 Andrew Cagney <cagney@redhat.com>
11578 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11581 2003-03-07 Andrew Cagney <cagney@redhat.com>
11583 * gdbarch.sh: Don't generate two macro definitions when an
11584 undefined macro taking no arguments.
11585 * gdbarch.h: Regenerate.
11587 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11589 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11590 (x86_64_unwind_dummy_id): New functions.
11591 (x86_64_init_abi): Register these two new functions.
11593 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11595 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11596 (x86_64_skip_prologue): Move prologue detection to
11598 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11600 2003-03-05 Andrew Cagney <cagney@redhat.com>
11602 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11603 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11604 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11605 to use unwind_dummy_id when a dummy frame.
11606 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11608 * gdbarch.h, gdbarch.c: Regneerate.
11610 2003-03-05 Andrew Cagney <cagney@redhat.com>
11612 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11613 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11614 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11617 2003-03-05 Andrew Cagney <cagney@redhat.com>
11619 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11620 (struct d10v_unwind_cache): Delete field "frameless". Replace
11621 "next_addr" with "sp_offset". Add "r11_offset".
11622 (d10v_frame_unwind_cache): Update.
11623 (prologue_find_regs): Update. When "mv r11, sp", save the
11624 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11625 RN was saved in r11_offset.
11627 2003-03-05 Andrew Cagney <cagney@redhat.com>
11629 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11630 cached PC value in the next frame.
11632 2003-03-05 Andrew Cagney <cagney@redhat.com>
11634 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11635 "id_unwind_cache" with "id".
11636 (frame_id_unwind): Delete declaration.
11637 * frame.c (frame_id_unwind): Delete function.
11638 (get_prev_frame): Call the frame id unwind method directly. Store
11639 the returned next frame's ID value in NEXT_FRAME. Note that there
11640 is a problem with the wrong unwind ID being called with the wrong
11643 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11645 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11647 2003-03-05 James Ingham <jingham@apple.com>
11648 Daniel Jacobowitz <drow@mvista.com>
11650 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11651 (auto_cp_abi): New variable.
11652 (current_cp_abi, num_cp_abis): Make static.
11653 (CP_ABI_MAX): Define.
11654 (cp_abis): Turn into an array.
11655 (value_virtual_fn_field): Fix formatting.
11656 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11658 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11659 (list_cp_abis, _initialize_cp_abi): New functions.
11660 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11661 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11662 switch_to_cp_abi. Update prototype for register_cp_abi.
11663 * Makefile.in (cp-abi.o): Update dependencies.
11664 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11665 instead of switch_to_cp_abi.
11666 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11668 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11670 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11672 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11674 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11675 * dwarf2loc.c: Include "regcache.h".
11676 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11678 * Makefile.in (dwarf2loc.o): Update dependencies.
11680 2003-03-04 Theodore A. Roth <troth@openavr.org>
11682 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11683 number of io registers reported by remote target is not a multiple of
11686 2003-03-04 David Carlton <carlton@math.stanford.edu>
11688 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11689 (lookup_symbol_aux_psymtabs): Update call to
11690 lookup_partial_symbol.
11691 (lookup_transparent_type, find_main_psymtab)
11692 (make_symbol_overload_list): Ditto.
11694 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11696 * MAINTAINERS (Write after approval): Update my email address.
11698 2003-03-03 Andrew Cagney <cagney@redhat.com>
11700 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11701 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11702 predicate. Replace MAX_REGISTER_RAW_SIZE.
11703 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11704 MAX_REGISTER_VIRTUAL_SIZE.
11705 * regcache.c (legacy_max_register_raw_size): New function.
11706 (legacy_max_register_virtual_size): New function.
11707 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11708 (MAX_REGISTER_RAW_SIZE): Define.
11709 (legacy_max_register_raw_size): Declare.
11710 (legacy_max_register_virtual_size): Declare.
11711 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11712 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11713 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11714 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11715 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11716 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11717 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11718 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11719 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11720 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11721 * vax-tdep.c (vax_gdbarch_init): Update.
11722 * v850-tdep.c (v850_gdbarch_init): Update.
11723 * sparc-tdep.c (sparc_gdbarch_init): Update.
11724 * sh-tdep.c (sh_gdbarch_init): Update.
11725 * s390-tdep.c (s390_gdbarch_init): Update.
11726 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11727 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11728 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11729 * mips-tdep.c (mips_gdbarch_init): Update.
11730 * mcore-tdep.c (mcore_gdbarch_init): Update.
11731 * m68k-tdep.c (m68k_gdbarch_init): Update.
11732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11733 * ia64-tdep.c (ia64_gdbarch_init): Update.
11734 * i386-tdep.c (i386_gdbarch_init): Update.
11735 * hppa-tdep.c (hppa_gdbarch_init): Update.
11736 * h8300-tdep.c (h8300_gdbarch_init): Update.
11737 * frv-tdep.c (frv_gdbarch_init): Update.
11738 * cris-tdep.c (cris_gdbarch_init): Update.
11739 * avr-tdep.c (avr_gdbarch_init): Update.
11740 * arm-tdep.c (arm_gdbarch_init): Update.
11741 * alpha-tdep.c (alpha_gdbarch_init): Update.
11742 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11743 max_register_raw_size or max_register_virtual_size.
11745 2003-03-03 David Carlton <carlton@math.stanford.edu>
11747 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11748 SYMBOL_MATCHES_NAME, add comment.
11749 (SYMBOL_MATCHES_NATURAL_NAME): New.
11750 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11751 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11752 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11753 * symtab.c (lookup_partial_symbol): Use
11754 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11756 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11757 SYMBOL_MATCHES_NAME.
11760 2003-03-03 David Carlton <carlton@math.stanford.edu>
11762 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11763 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11764 by regexp matching against SYMBOL_NATURAL_NAME.
11766 2003-03-03 David Carlton <carlton@math.stanford.edu>
11768 * linespec.c (find_method): Extract code into collect_methods.
11769 (collect_methods): New.
11771 2003-03-02 Mark Kettenis <kettenis@gnu.org>
11773 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11776 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11777 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11779 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11781 * arch-utils.c (generic_register_byte): Fix to use the loop index
11782 and not regnum when summing the size of all registers up to regnum.
11784 2003-03-01 Andrew Cagney <cagney@redhat.com>
11786 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11787 FRAME_INIT_SAVED_REGS.
11788 * gdbarch.h, gdbarch.c: Regenerate.
11789 * stack.c (frame_info): Update.
11790 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11791 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11792 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11793 * ns32k-tdep.c (ns32k_pop_frame): Update.
11794 * mips-tdep.c (mips_pop_frame): Update.
11795 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11796 * ia64-tdep.c (ia64_frame_chain): Update.
11797 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11798 (ia64_frameless_function_invocation): Update.
11799 (ia64_init_extra_frame_info): Update.
11800 (ia64_pop_frame_regular): Update.
11801 * frame.h (struct frame_info): Update comment.
11802 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11803 * frame.c (frame_saved_regs_register_unwind): Update.
11804 (frame_saved_regs_register_unwind): Update.
11805 (deprecated_generic_get_saved_register): Update.
11806 * cris-tdep.c: Update comment.
11807 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11809 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11810 * x86-64-tdep.c (x86_64_init_abi): Update.
11811 * vax-tdep.c (vax_gdbarch_init): Update.
11812 * v850-tdep.c (v850_gdbarch_init): Update.
11813 * sparc-tdep.c (sparc_gdbarch_init): Update.
11814 * sh-tdep.c (sh_gdbarch_init): Update.
11815 * s390-tdep.c (s390_gdbarch_init): Update.
11816 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11817 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11818 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11819 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11820 * mips-tdep.c (mips_gdbarch_init): Update.
11821 * mcore-tdep.c (mcore_gdbarch_init): Update.
11822 * m68k-tdep.c (m68k_gdbarch_init): Update.
11823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11824 * ia64-tdep.c (ia64_gdbarch_init): Update.
11825 * i386-tdep.c (i386_gdbarch_init): Update.
11826 * frv-tdep.c (frv_gdbarch_init): Update.
11827 * avr-tdep.c (avr_gdbarch_init): Update.
11828 * arm-tdep.c (arm_gdbarch_init): Update.
11829 * alpha-tdep.c (alpha_gdbarch_init): Update.
11831 2003-03-01 Andrew Cagney <cagney@redhat.com>
11833 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11834 option enum and switch. When no windows, set the interpreter to
11837 2003-03-01 Andrew Cagney <cagney@redhat.com>
11839 * main.c (captured_main): Replace magic option characters with an
11842 2003-03-01 Andrew Cagney <cagney@redhat.com>
11844 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11845 INIT_EXTRA_FRAME_INFO.
11846 * gdbarch.h, gdbarch.c: Regenerate.
11847 * arm-tdep.c: Update comments.
11848 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11849 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11850 * frame.h, avr-tdep.c: Ditto.
11851 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11852 (create_new_frame, legacy_get_prev_frame): Ditto.
11853 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11854 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11856 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11857 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11858 * v850-tdep.c (v850_gdbarch_init): Ditto.
11859 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11860 * sh-tdep.c (sh_gdbarch_init): Ditto.
11861 * s390-tdep.c (s390_gdbarch_init): Ditto.
11862 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11863 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11864 * mips-tdep.c (mips_gdbarch_init): Ditto.
11865 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11867 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11868 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11869 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11870 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11871 * frv-tdep.c (frv_gdbarch_init): Ditto.
11872 * cris-tdep.c (cris_gdbarch_init): Ditto.
11873 * avr-tdep.c (avr_gdbarch_init): Ditto.
11874 * arm-tdep.c (arm_gdbarch_init): Ditto.
11875 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11876 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11878 2003-03-01 Andrew Cagney <cagney@redhat.com>
11880 * gdbarch.sh (register_type): New function with predicate.
11881 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11882 * gdbarch.h, gdbarch.c: Re-generate.
11883 * arch-utils.c (generic_register_byte): Use generic_register_size.
11884 (generic_register_size): When available, use
11885 gdbarch_register_type.
11886 * regcache.c (init_regcache_descr): When available, initialize the
11887 register type array using gdbarch_register_type. If the
11888 architecture supplies gdbarch_register_type, do not use the legacy
11890 * d10v-tdep.c (d10v_register_type): Replace
11891 d10v_register_virtual_type.
11892 (d10v_gdbarch_init): Set register_type instead of
11893 register_virtual_type.
11895 2003-03-01 Andrew Cagney <cagney@redhat.com>
11897 * Makefile.in (ax-gdb.o): Update dependencies.
11898 * ax-gdb.c: Include "regcache.h".
11899 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11900 * findvar.c (value_of_register): Ditto.
11901 * infcmd.c (default_print_registers_info): Ditto.
11903 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11905 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11906 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11908 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11910 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11913 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11915 * Makefile.in (dwarf2loc.o): Update dependencies.
11916 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11917 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11918 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11919 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11920 (locexpr_tracepoint_var_ref): New function.
11921 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11923 2003-02-28 Andrew Cagney <cagney@redhat.com>
11925 * regcache.c (register_size): New function.
11926 * regcache.h (register_size): Declare
11927 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11928 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11930 2003-02-28 David Carlton <carlton@math.stanford.edu>
11932 * linespec.c (decode_compound): Extract code into find_method.
11933 (find_method): New.
11935 2003-02-28 J. Brobecker <brobecker@gnat.com>
11937 * Makefile.in: Add rules to build and link in observer.o.
11939 2003-02-27 J. Brobecker <brobecker@gnat.com>
11941 * observer.c: Minor comments edits.
11943 2003-02-27 J. Brobecker <brobecker@gnat.com>
11945 * observer.h, observer.c: New file.
11947 2003-02-27 Andrew Cagney <cagney@redhat.com>
11949 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11951 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11953 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11954 (M6812_OP_STS_EXT): Likewise.
11955 (m6811_prologue): Use the above to recognize prologue.
11956 (m6812_prologue): Likewise.
11958 2003-02-27 David Carlton <carlton@math.stanford.edu>
11960 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11962 (compare_psymbols): Ditto.
11963 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11965 2003-02-27 Michael Snyder <msnyder@redhat.com>
11967 * f-lang.c (build_fortran_types): New function.
11968 (_initialize_f_language): Gdbarch-register built-in fortran types.
11969 * doublest.c (extract_floating): Fix warning text.
11971 2003-02-27 Andrew Cagney <cagney@redhat.com>
11973 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11974 predicate. Replaces PUSH_DUMMY_FRAME.
11975 * gdbarch.h, gdbarch.c: Regnerate.
11976 * valops.c (hand_function_call): Update. Call
11977 generic_push_dummy_frame directly.
11978 * vax-tdep.c (vax_gdbarch_init): Update.
11979 * sparc-tdep.c (sparc_gdbarch_init): Update.
11980 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11981 * m68k-tdep.c (m68k_gdbarch_init): Update.
11982 * hppa-tdep.c (hppa_gdbarch_init): Update.
11983 * alpha-tdep.c (alpha_gdbarch_init): Update.
11984 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11985 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11986 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11987 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11988 push_dummy_frame to generic_push_dummy_frame.
11989 * v850-tdep.c (v850_gdbarch_init): Ditto.
11990 * sh-tdep.c (sh_gdbarch_init): Ditto.
11991 * s390-tdep.c (s390_gdbarch_init): Ditto.
11992 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11993 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11994 * mips-tdep.c (mips_gdbarch_init): Ditto.
11995 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11996 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11997 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11998 * i386-tdep.c (i386_gdbarch_init): Ditto.
11999 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12000 * frv-tdep.c (frv_gdbarch_init): Ditto.
12001 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12002 * cris-tdep.c (cris_gdbarch_init): Ditto.
12003 * avr-tdep.c (avr_gdbarch_init): Ditto.
12004 * arm-tdep.c (arm_gdbarch_init): Ditto.
12006 2003-02-26 Kevin Buettner <kevinb@redhat.com>
12008 * mips-tdep.c (show_mips_abi): New function.
12009 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12010 command ``show mips abi''.
12012 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
12014 From Elena Zannoni <ezannoni@redhat.com>
12015 * dbxread.c (process_one_symbol): Only record line 0 if one or
12016 more sline entries have been seen for the function.
12018 2003-02-26 Michael Chastain <mec@shout.net>
12020 * configure: Regenerate with autoconf 000227.
12022 2003-02-26 Michael Chastain <mec@shout.net>
12024 Close PR build/660.
12025 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12026 for old libc5/glibc.
12027 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12029 2003-02-26 Kris Warkentin <kewarken@qnx.com>
12031 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12032 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12034 2003-02-26 Michael Chastain <mec@shout.net>
12036 * configure.in: New variable HAVE_UINTPTR_T.
12037 * configure, config.in: Regenerated.
12039 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
12042 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12044 2003-02-25 Andrew Cagney <cagney@redhat.com>
12046 * frame.c (get_prev_frame): Add comment on check for
12047 inside_entry_func. Only check for inside_entry_file when not a
12048 dummy and not a sentinel. Check that the new frame is not inner
12051 2003-02-25 Andrew Cagney <cagney@redhat.com>
12053 * frame.c (frame_debug): New variable.
12054 (_initialize_frame): Add "set/show debug frame" command.
12055 (get_prev_frame): When frame_debug, print reason why unwind
12058 2003-02-25 Michael Chastain <mec@shout.net>
12060 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12061 to avoid uintptr_t definition problems.
12063 2003-02-25 David Carlton <carlton@math.stanford.edu>
12065 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12066 (SYMBOL_LINKAGE_NAME): Ditto.
12067 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12068 SYMBOL_LINKAGE_NAME.
12069 (struct general_symbol_info): Expand comment.
12070 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12071 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12072 (SYMBOL_MATCHES_REGEXP): Ditto.
12073 * symtab.c (symbol_natural_name): New function.
12074 * objfiles.h: Replace all uses of SYMBOL_NAME by
12075 DEPRECATED_SYMBOL_NAME.
12076 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12077 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12078 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12079 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12080 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12081 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12082 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12083 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12084 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12085 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12086 * ada-exp.y: Ditto.
12087 * ada-exp.y: Update copyright.
12088 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12089 * cp-valprint.c: Ditto.
12091 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12093 * infptrace.c (detach): Do not flag error if ptrace detach fails
12094 and errno is set to ESRCH.
12096 2003-02-24 Andrew Cagney <cagney@redhat.com>
12098 * infptrace.c (udot_info): Change type of udot_off to long. Use
12099 paddr when printing udot_off's value.
12101 2003-02-24 David Carlton <carlton@math.stanford.edu>
12103 * symtab.c (make_symbol_overload_list): Only read in partial
12104 symtabs containing a matching partial symbol.
12106 2003-02-24 David Carlton <carlton@math.stanford.edu>
12108 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12109 do the comparison, not strcmp.
12110 * symfile.c (compare_psymbols): Ditto.
12111 * defs.h: Declare strcmp_iw_ordered.
12112 * utils.c (strcmp_iw_ordered): New function.
12114 2003-02-24 Jim Blandy <jimb@redhat.com>
12116 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12117 support, shared libs): Remove my name from here, to better reflect
12120 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12122 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12123 (target_ops): Add to_have_continuable_watchpoint.
12124 * target.c (update_current_target): Add INHERIT line for
12125 to_have_continuable_watchpoint.
12126 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12127 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12128 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12129 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12131 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
12133 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12136 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12138 * solib.c (solib_open): Call target defined search function after
12139 failing with solib-search-path.
12140 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12141 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12143 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12145 * MAINTAINERS: Add myself to Write After section.
12147 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12149 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12151 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12153 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12154 (m68hc11_add_reggroups): New function.
12155 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12156 (m68hc11_gdbarch_init): Install the reggroups.
12157 (_initialize_m68hc11_tdep): Initialize them.
12159 2003-02-21 James E Wilson <wilson@tuliptree.org>
12161 * MAINTAINERS: Update my email address.
12163 2003-02-21 David Carlton <carlton@math.stanford.edu>
12165 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12167 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
12169 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12170 * symtab.h: Add opaque declarations of struct axs_value and
12172 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12173 (struct location_funcs): New type.
12174 (struct symbol): Add "loc" to aux_value.
12175 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12176 * dwarf2read.c: Include "dwarf2expr.h".
12177 (dwarf2_symbol_mark_computed): New function.
12178 (read_func_scope): Use it.
12179 (var_decode_location): New function.
12180 (new_symbol): Use it.
12181 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12183 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12184 (dwarf2expr_h, dwarf2loc_h): New variables.
12185 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12186 (dwarf2expr.o, dwarf2loc.o): New rules.
12187 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12188 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12190 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12191 * m2-exp.y (yylex): Likewise.
12192 * printcmd.c (address_info, print_frame_args): Likewise.
12193 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12194 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12195 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12196 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12197 * symtab.c (lookup_block_symbol): Likewise.
12199 2003-02-20 Adam Fedor <fedor@gnu.org>
12201 * symtab.h: Remove objc_specific struct
12202 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12203 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12204 Have language_objc use cplus_specific struct.
12206 2003-02-20 Tom Tromey <tromey@redhat.com>
12208 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12209 TYPE_NAME, when printing a String value. PR java/1075.
12211 2003-02-20 Adam Fedor <fedor@gnu.org>
12213 * objc-lang.h (find_methods): Remove declaration.
12214 * objc-lang.c (find_methods): Make static.
12216 2003-02-20 Christopher Faylor <cgf@redhat.com>
12218 * win32-nat.c (get_image_name): Check return value from
12220 (child_xfer_memory): Ditto.
12222 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12224 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12225 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12226 '${exec_prefix}' (in addition to the expansion thereof) as
12228 * configure: Rebuilt.
12230 2003-02-20 David Carlton <carlton@math.stanford.edu>
12232 * symtab.c (search_symbols): Revert the search_symbols part of my
12233 2002-12-23 patch. Add comment.
12235 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12237 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12238 * dbxread.c (elfstab_build_psymtabs): Don't call
12239 install_minimal_symbols.
12240 (stabsect_build_psymtabs): Likewise.
12241 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12243 * somread.c (som_symfile_read): Call install_minimal_symbols
12244 and do_cleanups earlier.
12245 * nlmread.c (nlm_symfile_read): Likewise.
12246 * mdebugread.c (elfmdebug_build_psymtabs): Call
12247 install_minimal_symbols and make appropriate cleanups.
12249 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12251 * solib.c (reload_shared_libraries): New function.
12252 (_initialize_solib): Add callbacks for ``set solib-search-path''
12253 and ``set solib-absolute-prefix''.
12255 2003-02-20 David Carlton <carlton@math.stanford.edu>
12257 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12259 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12260 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12261 * ada-typeprint.c (ada_typedef_print): Ditto.
12262 * ax-gdb.c (gen_var_ref): Ditto.
12263 * breakpoint.c (print_one_breakpoint): Ditto.
12264 * buildsym.c (finish_block): Ditto.
12265 * c-valprint.c (c_val_print): Ditto.
12266 * expprint.c (print_subexp): Ditto.
12267 * findvar.c (locate_var_value): Ditto.
12268 * infcmd.c (jump_command): Ditto.
12269 * linespec.c (decode_line_2, decode_compound): Ditto.
12270 * maint.c (maintenance_translate_address): Ditto.
12271 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12272 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12274 * p-valprint.c (pascal_val_print): Ditto.
12275 * stabsread.c (define_symbol): Ditto.
12276 * stack.c (print_frame, frame_info, print_block_frame_locals)
12277 (print_frame_arg_vars, return_command): Ditto.
12278 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12279 * symmisc.c (print_symbol): Ditto.
12280 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12281 (compare_search_syms, print_symbol_info, print_msymbol_info)
12282 (rbreak_command): Ditto.
12283 * tracepoint.c (tracepoints_info): Ditto.
12284 * typeprint.c (typedef_print): Ditto.
12285 * valops.c (value_of_variable, hand_function_call): Ditto.
12286 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12287 * ada-typeprint.c: Update Copyright.
12288 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12289 * tracepoint.c, cli/cli-cmds.c: Ditto.
12291 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12293 * frame.c (generic_unwind_get_saved_register): Make non-static.
12294 * frame.h (generic_unwind_get_saved_register): Declare.
12295 * mips-tdep.c (read_next_frame_reg): Fetch register from
12296 current regcache when frame is NULL.
12297 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12299 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12300 instead of frame_register_unwind().
12302 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12304 * remote-sim.c (gdbsim_insert_breakpoint)
12305 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12308 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12310 * remote.c (_initialize_remote): Add commands "set/show remote
12311 hardware-watchpoint-limit" and "set/show remote
12312 hardware-breakpoint-limit".
12313 (remote_hw_watchpoint_limit): Initialize to -1.
12314 (remote_hw_breakpoint_limit): Ditto.
12315 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12317 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12319 * coff-pe-read.c: New file - support reading of minimal symbols from a
12320 portable executable using the export table.
12321 * coff-pe-read.h: New file.
12322 * coffread.c: Include coff-pe-read.h.
12323 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12324 debugging symbols found.
12325 * Makefile.in (SFILES): Add coff-pe-read.o.
12326 (coff_pe_read_h): Define.
12327 (COMMON_OBS): Add coff-pe-read.o.
12328 (coffread.o): Add coff_pe_read_h dependency.
12329 (coff-pe-read.o): New target.
12331 2003-02-19 David Carlton <carlton@math.stanford.edu>
12333 * Makefile.in (SFILES): Add block.c.
12335 (COMMON_OBS): Add block.o.
12337 (x86-64-tdep.o): Add $(block_h).
12338 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12339 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12340 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12341 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12342 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12343 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12344 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12345 * value.h: Add opaque declaration for struct block.
12346 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12347 * ada-lang.h: Ditto.
12348 * x86-64-tdep.c: #include "block.h"
12349 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12350 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12351 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12352 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12353 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12354 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12355 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12356 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12357 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12358 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12359 * symtab.c (block_function): Ditto.
12360 (contained_in): Ditto.
12361 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12362 block.h. Add opaque declaration for struct block.
12363 * symtab.h: Move block_function and contained_in declarations to
12364 block.h. Add opaque declarations for struct block, struct
12366 (struct block): Move to block.h.
12367 (struct blockvector): Ditto.
12368 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12369 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12370 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12371 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12372 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12374 * block.c: New file.
12375 * block.h: New file.
12377 2003-02-19 Theodore A. Roth <troth@openavr.org>
12379 * avr-tdep.c (avr_extract_return_value): Remove function.
12380 (avr_store_return_value): Remove function.
12381 (avr_extract_struct_value_address): Remove function.
12382 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12384 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12386 * rs6000-tdep.c: Include "gdb_assert.h".
12387 (registers_e500): Add "acc" and "spefscr".
12388 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12389 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12390 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12392 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12394 2003-02-18 Keith Seitz <keiths@redhat.com>
12396 * Makefile.in: Add gdbtk-interps.c.
12398 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12400 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12401 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12403 2003-02-18 Andrew Cagney <cagney@redhat.com>
12405 * symtab.h (struct objfile): Add opaque declaration.
12407 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12409 From Jim Ingham <jingham@apple.com>:
12410 * dbxread.c (process_one_symbol): Use last_function_start rather
12411 than function_start_offset to find the real beginning of the
12412 current function. The latter is just the text section offset on
12413 some systems, the former is always the real function start.
12415 2003-02-17 Andrew Cagney <cagney@redhat.com>
12417 * configure.in: Revert ${target} != ${host}.
12419 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12421 * configure.in (Makefile): Use the test ${target} != ${host},
12422 instead of the absence of the "nm.h" file, to determine of the
12423 configuration non-native.
12424 * configure: Regenerate.
12426 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12428 From Brian Ford <ford@vss.fsi.com>
12430 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12431 conditionalize tui_active test.
12432 (lookup_cmd_1): Ditto.
12434 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12436 * configure.in: Add check for _etext.
12437 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12439 * config.in, configure: regenerated.
12441 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12443 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12445 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12447 * main.c (tui_version): Delete variable.
12448 (captured_main): When --tui, set interpreter_p to "tui" instead of
12449 enabling tui_version.
12450 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12452 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12453 * cli/cli-cmds.c (disassemble_command): Ditto.
12454 * defs.h (tui_version): Delete declaration.
12455 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12456 (tui-interp.o): Add rules.
12457 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12459 2003-02-14 Christopher Faylor <cgf@redhat.com>
12461 * win32-nat.c (register_loaded_dll): Correctly set address range for
12464 2003-02-12 Jason Molenda (jmolenda@apple.com)
12466 * symmisc.c (print_objfile_statistics): Include information about
12467 the number of psymtabs and symtabs in each object file.
12469 2003-02-13 Keith R Seitz <keiths@redhat.com>
12471 * main.h (struct captured_main_args): Add interpreter_p.
12472 * main.c (captured_main): Initialize interpreter_p from context.
12473 * gdb.c (main): Set interpreter_p argument.
12474 * Makefile.in (gdb.o): Add dependency for interps.h.
12476 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12478 * event-top.c (cli_command_loop): Delete declaration.
12479 (_initialize_event_loop): Delete function setting event_loop_hook.
12480 * event-top.h (cli_command_loop): Declare. Update copyright.
12481 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12482 * interps.c (current_interp_command_loop): When event_loop_p, call
12485 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12487 * interps.h (interp_command_loop_ftype): Change return type to
12490 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12492 * x86-64-tdep.c (x86_64_extract_return_value)
12493 (x86_64_store_return_value): Use regcache instead of regbuf.
12494 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12495 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12497 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12499 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12500 * aclocal.m4: Regenerate.
12501 * configure: Regenerate.
12503 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12504 TCL_LD_SEARCH_FLAGS.
12506 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12508 * dwarf2cfi.c: Reindented.
12510 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12512 * interps.c (clear_interpreter_hooks): Convert function definition
12515 2003-02-07 David Carlton <carlton@math.stanford.edu>
12517 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12519 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12521 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12522 (struct type): ...to here.
12523 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12525 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12526 (replace_type): Set length on all type variants for a given type.
12528 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12530 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12532 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12534 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12536 * Makefile.in (symm-nat.o): Update dependencies.
12537 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12538 (lynx-nat.o, ia64-linux-nat.): Ditto.
12539 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12540 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12541 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12543 * Makefile.in (inflow_h): Define.
12544 (procfs.o, inflow.o, procfs.o): Update dependencies.
12545 * inftarg.c (child_stop): Delete extern declaration of
12546 inferior_process_group. Include "inflow.h".
12547 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12548 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12549 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12550 (our_process_group, inferior_process_group): Extern declarations.
12552 * procfs.c: Include "gdb_assert.h".
12554 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12555 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12556 * jv-typeprint.c (java_type_print_base): Ditto.
12557 * typeprint.c (typedef_print): Eliminate STREQ.
12558 * cli/cli-script.c (define_command, define_command): Ditto.
12559 * main.c (captured_main): Ditto.
12560 * values.c (lookup_internalvar): Ditto.
12561 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12562 within `if' conditional.
12563 * linespec.c (decode_line_2): Ditto.
12564 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12565 (bfd_openw_with_cleanup): Ditto.
12567 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12569 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12570 legacy_extract_return_value and store_return_value to
12571 legacy_return_value.
12573 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12575 * win32-nat.c (get_relocated_section_addrs): New function. Find
12576 section load addresses for symbol handling in relocated DLLs.
12577 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12579 2003-02-05 Fred Fish <fnf@intrinsity.com>
12581 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12583 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12585 (angel_RDI_info): Ditto.
12586 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12588 (threads_continue_all_with_signals): Ditto.
12590 2003-02-05 Jim Ingham <jingham@apple.com>
12591 Keith Seitz <keiths@redhat.com>
12592 Elena Zannoni <ezannoni@redhat.com>
12593 Andrew Cagney <ac131313@redhat.com>
12595 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12596 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12597 (SUBDIR_MI_OBS): Add "mi-interp.o".
12598 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12599 (SFILES): Add "interps.c".
12600 (COMMON_OBS): Add "interps.o".
12601 (interps_h, mi_main_h): Define.
12602 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12603 (mi-main.o, main.o, event-top.o): Update dependencies.
12604 * cli/cli-interp.c: New file.
12605 * interps.h, interps.c: New files.
12606 * top.c: (gdb_init): Don't install the default interpreter, handed
12608 * main.c: Include "interps.h".
12609 (interpreter_p): Note that it should malloc'ed.
12610 (captured_command_loop): Call current_interp_command_loop.
12611 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12612 xfree and xstrdup when updating interpreter_p. Install the
12613 default interpreter. Add hack to stop mi1's copyright notice
12615 * event-top.h (gdb_setup_readline): Declare.
12616 (gdb_disable_readline): Declare.
12617 * event-top.c: Include "interps.h".
12618 (display_gdb_prompt): Call current_interp_display_prompt_p.
12619 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12620 gdb_stdlog, and gdb_stdtarg.
12621 (_initialize_event_loop): Don't call gdb_setup_readline.
12622 * cli-out.c (cli_out_set_stream): New function.
12623 * cli-out.h (cli_out_set_stream): Declare.
12625 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12627 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12628 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12629 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12630 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12631 config/i386/i386v42mp.mt: Removed.
12633 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12635 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12638 2003-02-05 Michael Chastain <mec@shout.net>
12640 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12641 2.12.1 and earlier versions.
12643 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12645 Remove orphaned hosts, targets and files.
12646 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12647 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12648 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12649 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12650 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12651 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12652 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12653 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12654 * config/sparc/tm-sp64sim.h: Delete.
12655 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12657 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12658 mips*-dec-mach3* targets.
12660 2003-02-04 Michael Chastain <mec@shout.net>
12662 * NEWS: Fix typo: sepcifying -> specifying.
12664 2003-02-04 Michael Chastain <mec@shout.net>
12666 * dwarfread.c: Add documentation on the state of dwarf-1,
12667 looking towards obsoletion.
12669 2003-02-03 Michael Chastain <mec@shout.net>
12671 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12672 gdb/testsuite/gdb.c++/pr-1023.exp.
12674 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12676 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12677 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12679 * utils.c (init_page_info): Delete reference to MPW in comments.
12680 * main.c (captured_main): Delete #ifdef MPW.
12682 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12684 * NEWS: Note that the m32r-*-elf* is obsolete.
12685 * monitor.c (monitor_expect): Obsolete reference to m32r.
12686 * configure.tgt: Mark m32r-*-elf* as obsolete.
12687 * MAINTAINERS: Mark m32k as obsolete.
12688 * m32r-rom.c: Obsolete file.
12689 * config/m32r/m32r.mt: Obsolete file.
12690 * config/m32r/tm-m32r.h: Obsolete file.
12691 * m32r-stub.c: Obsolete file.
12692 * m32r-tdep.c: Obsolete file.
12694 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12696 * NEWS: Mention that the z8k-zilog-none is obsolete.
12697 * MAINTAINERS: Mark z8k as obsolete.
12698 * configure.tgt: Obsolete the z8k-*-coff* target.
12699 * config/z8k/z8k.mt: Obsolete file.
12700 * config/z8k/tm-z8k.h: Obsolete file.
12701 * z8k-tdep.c: Obsolete file.
12703 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12705 * NEWS: Mention that the mn10200-elf is obsolete.
12706 * configure.tgt: Obsolete mn10200-*-* target.
12707 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12708 mention that the mn10200 is obsolete.
12709 * breakpoint.h: Ditto.
12710 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12711 * config/mn10200/mn10200.mt: Obsolete file.
12712 * config/mn10200/tm-mn10200.h: Obsolete file.
12713 * mn10200-tdep.c: Obsolete file.
12715 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12717 * MAINTAINERS: Mark h8500 as obsolete.
12718 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12719 * findvar.c (value_from_register): Ditto.
12720 * h8500-tdep.c: Mark file as obsolete.
12721 * config/h8500/h8500.mt: Ditto.
12722 * config/h8500/tm-h8500.h: Ditto.
12723 * NEWS: Mention that h8500 is obsolete.
12725 2003-02-04 David Carlton <carlton@math.stanford.edu>
12727 * objfiles.c (allocate_objfile): Always set name. Add comment at
12729 * jv-lang.c (get_dynamics_objfile): Add comment.
12731 2003-02-04 David Carlton <carlton@math.stanford.edu>
12733 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12734 * printcmd.c (build_address_symbolic): Replace uses of
12735 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12736 SYMBOL_NAME, and asm_demangle.
12739 2003-02-04 David Carlton <carlton@math.stanford.edu>
12741 * linespec.c (decode_compound): Extract code into
12743 (lookup_prefix_sym): New function.
12745 2003-02-04 David Carlton <carlton@math.stanford.edu>
12747 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12748 FLOAT_COERCION_BADNESS.
12749 * gdbtypes.c (rank_one_type): Replace all uses of
12750 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12752 2003-02-04 Jim Blandy <jimb@redhat.com>
12754 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12755 section, let dwarf_macinfo_section point to it, not
12758 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12760 Pointed out by Anton Blanchard <anton@samba.org>.
12761 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12762 (ppc_linux_at_sigtramp_return_path): Use it.
12764 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12766 * defs.h (streq): Add prototype.
12767 * utils.c (streq): New function.
12769 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12770 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12771 * mdebugread.c (new_symbol): Likewise.
12772 * stabsread.c (define_symbol): Likewise.
12773 * coffread.c (process_coff_symbol): Likewise.
12774 * dwarfread.c (new_symbol): Likewise.
12776 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12777 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12779 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12780 SYMBOL_INIT_DEMANGLED_NAME.
12781 * objfiles.c: Include "hashtab.h".
12782 (allocate_objfile): Call htab_set_functions_ex for the
12783 demangled_names_hash.
12784 (free_objfile): Call htab_delete for the demangled_names_hash.
12785 * objfiles.h (struct htab): Add declaration.
12786 (struct objfile): Add demangled_names_hash.
12787 * symfile.c: Include "hashtab.h".
12788 (reread_symbols): Call htab_delete for the demangled_names_hash.
12789 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12790 SYMBOL_NAME in the bcache.
12791 * symtab.c: Include "hashtab.h". Update comments.
12792 (create_demangled_names_hash, symbol_set_names): New functions.
12793 (symbol_find_demangled_name): New function, broken out from
12794 symbol_init_demangled_names.
12795 (symbol_init_demangled_names): Use it.
12796 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12797 (SYMBOL_SET_NAMES): New macro.
12798 (symbol_set_names): Add prototype.
12800 2003-02-03 Jim Blandy <jimb@redhat.com>
12802 Use a single, consistent representation for an empty minimal
12803 symbol table in an objfile.
12804 * objfiles.c (terminate_minimal_symbol_table): New function.
12805 (allocate_objfile): Call it.
12806 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12807 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12809 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12810 objfile has minimal symbols, compare minimal_symbol_count to zero,
12811 instead of comparing msymbols with NULL.
12812 * objfiles.c (have_minimal_symbols): Same.
12813 * solib-sunos.c (solib_add_common_symbols): Call
12814 terminate_minimal_symbol_table.
12815 * symfile.c (reread_symbols): Same.
12817 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12819 * s390-tdep.c (s390_address_class_type_flags)
12820 (s390_address_class_type_flags_to_name)
12821 (s390_address_class_name_to_type_flags): New functions.
12822 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12823 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12825 2003-02-03 Michael Snyder <msnyder@redhat.com>
12827 * arm-tdep.c: Fix spell-o in comment.
12829 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12831 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12832 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12833 error messages to contain BFD filename.
12835 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12837 Fix PR gdb/742 gdb/743 gdb/877
12838 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12839 (do_mixed_source_and_assembly): Use
12840 make_cleanup_ui_out_tuple_begin_end and
12841 make_cleanup_ui_out_tuple_begin_end.
12842 (do_mixed_source_and_assembly): Ditto.
12843 * thread.c (do_captured_list_thread_ids): Ditto.
12844 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12845 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12846 ui_out_tuple_end): Delete prototypes.
12847 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12848 ui_out_list_end, ui_out_tuple_end): Delete.
12850 From Kevin Buettner <kevinb@redhat.com>:
12851 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12852 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12853 (do_cleanup_table_end): New functions.
12854 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12855 Use cleanups to invoke_ui_out_tuple_end().
12856 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12857 * cli/cli-setshow.c (cmd_show_list): Use
12858 make_cleanup_ui_out_tuple_begin_end.
12860 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12862 * frame.c (frame_unwind_register): New function.
12863 (frame_unwind_unsigned_register): Use.
12864 (frame_unwind_signed_register): Use.
12865 (frame_read_register): New function.
12866 * frame.h (frame_unwind_register): Declare.
12867 (frame_read_register): Declare.
12869 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12870 and frame_unwind_register instead of read_memory, write_register
12871 and deprecated_write_register_bytes.
12873 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12875 * frame.h: Note that namelen can be negative.
12876 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12879 * NEWS: Mention that the d10v's `regs' command is deprecated.
12880 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12881 (d10v_print_registers_info): New function.
12882 (show_regs): Call d10v_print_registers_info.
12883 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12885 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12887 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12888 lost in the previous patch.
12890 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12892 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12893 * stack.c (print_frame_info_base): Output complete FRAME tuple
12894 for synthesized frames.
12896 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12898 * mips-nat.c (zerobuf): Delete.
12899 (fetch_inferior_registers): Alloc local zerobuf.
12900 (fetch_core_registers): Alloc local zerobuf.
12901 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12902 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12903 * thread-db.c (thread_db_store_registers): Ditto.
12904 * sh-tdep.c (sh_do_register): Ditto.
12905 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12906 * remote-sim.c (gdbsim_store_register): Ditto.
12907 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12908 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12909 * monitor.c (monitor_supply_register): Ditto.
12910 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12911 * mips-nat.c (fetch_inferior_registers): Ditto.
12912 * m68klinux-nat.c (fetch_register): Ditto.
12913 * lynx-nat.c (fetch_inferior_registers): Ditto.
12914 (fetch_inferior_registers): Ditto.
12915 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12916 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12917 (hpux_thread_store_registers): Ditto.
12918 * hppah-nat.c (fetch_register): Ditto.
12919 * hppab-nat.c (fetch_register): Ditto.
12920 * hppa-tdep.c (pa_register_look_aside): Ditto.
12921 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12922 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12924 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12926 * gdbarch.sh: Explictly specify all method levels. When a
12927 variable with an empty level, provide a non-multi-arch default.
12928 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12929 * gdbarch.h: Re-generate.
12930 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12931 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12933 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12935 * defs.h (host_pointer_to_address): Delete declaration.
12936 (address_to_host_pointer): Delete declaration.
12937 * utils.c (host_pointer_to_address): Delete function.
12938 (address_to_host_pointer): Delete function.
12939 * procfs.c (procfs_address_to_host_pointer): New function.
12940 * procfs.c (proc_set_watchpoint): Use.
12941 (procfs_can_use_hw_breakpoint): Update comments.
12942 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12943 (som_solib_add): Use.
12944 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12945 * hppa-tdep.c (unwind_command): Use.
12947 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12949 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12952 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12953 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12954 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12955 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12956 (define_symbol): Update.
12957 * symfile.c (generic_load): Remove references to nindy.
12958 * symtab.c: Remove references to nindy.
12960 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12962 * infcmd.c (print_float_info): Delete code conditional on
12964 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12965 * config/m68k/nm-apollo68b.h: Ditto.
12966 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12967 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12968 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12970 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12972 * config/i386/tm-i386os9k.h: Removed.
12974 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12975 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12976 they're identical to i[3456]86-*-sysv* now.
12977 * config/i386/i386v32.mh: Removed.
12978 * config/i386/xm-i386v32.h: Removed.
12979 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12981 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12983 * config/i386/i386dgux.mh: Removed.
12984 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12986 * configure.in: Fix typo.
12987 * configure: Regenerated.
12989 2003-01-31 David Carlton <carlton@math.stanford.edu>
12991 * dwarf2read.c (dwarf2_locate_sections): Set
12992 dwarf_ranges_section.
12994 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12996 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12997 * utils.c: Update comments documenting legitimate uses of PTR.
12999 * utils.c: Re-indent.
13001 * config/djgpp/fnchange.lst: Delete nindy files.
13002 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13003 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13004 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13005 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13006 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13007 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13008 * Makefile.in (init.c): Remove nindy references.
13009 (saber_gdb): Delete rule.
13010 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13011 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13013 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13014 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13015 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13016 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13017 nindy-share/stop.h.
13018 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13019 * saber.suppress: Delete file.
13021 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
13023 * dbxread.c (stabs_data): New static variable.
13024 (fill_symbuf): Support an in-memory buffer for stabs data.
13025 (stabs_seek): New function.
13026 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13027 (read_ofile_symtab): Use stabs_seek.
13028 (elfstab_build_psymtabs): Take an asection* instead of
13029 an offset and size. Relocate the stabs data if necessary.
13030 Save the section* for dbx_psymtab_to_symtab.
13031 * dwarf2read.c: Add section variables for each debug section.
13032 (dwarf2_locate_sections): Fill them in.
13033 (dwarf2_read_section): Take an asection* argument.
13034 Relocate the section contents if necessary.
13035 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13036 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13037 it to dwarf2_read_section.
13038 (dwarf2_build_frame_info): Update callers.
13039 * elfread.c (elf_symfile_read): Update call to
13040 elfstab_build_psymtabs.
13041 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13042 (DBX_STAB_SECTION): New macro.
13043 * stabsread.h (elfstab_build_psymtabs): Update prototype.
13044 * symfile.c (symfile_dummy_outputs): New function.
13045 (symfile_relocate_debug_section): New function.
13046 * symfile.h (symfile_relocate_debug_section): Add prototype.
13048 2003-01-31 Richard Henderson <rth@redhat.com>
13050 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13051 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13052 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13053 * alpha-tdep.c (alpha_register_name): Add "unique".
13054 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13055 (ALPHA_UNIQUE_REGNUM): New.
13056 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13058 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13060 * README: Remove reference to Ericsson 1800 monitor.
13061 * Makefile.in (remote-es.o): Delete rule.
13062 (ALLDEPFILES): Delete remote-es.c.
13063 * remote-es.c: Delete file.
13064 * config/m68k/es1800.mt: Delete file.
13065 * config/djgpp/fnchange.lst: Update.
13066 * configure.tgt: Delete m68*-ericsson-* target.
13068 2003-01-31 Adam Fedor <fedor@gnu.org>
13070 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13071 Remove duplicate/shadowing variable of same name.
13073 2003-01-30 Jim Blandy <jimb@redhat.com>
13075 * symfile.c (find_separate_debug_file): Assert that the objfile's
13076 directory name we compute ends with a slash, and then assume that
13077 that's so everywhere we use it.
13079 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
13081 * valops.c (value_assign): Flush frame cache after stores to memory
13084 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13086 * Makefile.in (mon960-rom.o): Delete rule.
13087 * mon960-rom.c: Delete file.
13089 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13091 * d10v-tdep.c: Include "frame-unwind.h".
13092 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13094 (next_addr, uses_frame): Delete.
13095 (struct d10v_unwind_cache): Define.
13096 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13097 Use info instead of next_addr and uses_frame globals.
13098 (d10v_frame_init_saved_regs): Delete function.
13099 (d10v_init_extra_frame_info): Delete function.
13100 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13101 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13102 init_frame_pc or frame_saved_pc.
13103 (d10v_pop_frame): Delete function.
13104 (do_d10v_pop_frame): Delete function.
13105 (d10v_frame_chain): Delete function.
13106 (d10v_frame_chain_valid): Delete function.
13107 (d10v_frame_pc_unwind): New function.
13108 (d10v_frame_id_unwind): New function.
13109 (saved_regs_unwinder): New function.
13110 (d10v_frame_register_unwind): New function.
13111 (d10v_frame_pop): New function.
13112 (d10v_frame_unwind): New variable.
13113 (d10v_frame_p): New function.
13114 (d10v_frame_saved_pc): Delete function.
13115 * Makefile.in (d10v-tdep.o): Update dependencies.
13117 2003-01-30 J. Brobecker <brobecker@gnat.com>
13119 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13120 causing some regressions due to a change in the default value
13123 2003-01-29 Richard Henderson <rth@redhat.com>
13124 Elena Zannoni <ezannoni@redhat.com>
13125 Daniel Jacobowitz <drow@mvista.com>
13128 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
13130 (RANGES_SECTION): New.
13131 (dwarf_ranges_buffer): New variable.
13132 (struct comp_unit_head): Add member "die".
13133 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13134 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13135 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13136 (dwarf2_locate_sections): Likewise.
13137 (dwarf2_build_psymtabs): Read .debug_ranges.
13138 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13139 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13140 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13141 Look for DW_AT_ranges and return the bounding box.
13143 2003-01-29 Brian Ford <ford@vss.fsi.com>
13145 * win32-nat.c (cygwin_pid): Removed as unused.
13146 (child_attach): Try fall back to Cygwin pid.
13148 2003-01-29 Jim Blandy <jimb@redhat.com>
13150 * objfiles.h (struct objfile): Doc fix.
13152 2003-01-29 Andrew Cagney <ac131313@redhat.com>
13154 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13155 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13156 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13157 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13158 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13159 (FRAME_SAVED_PC): Change to a function with predicate.
13160 * gdbarch.h, gdbarch.c: Re-generate.
13162 2003-01-28 Andrew Cagney <ac131313@redhat.com>
13164 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13166 * complaints.c (complain): Delete function.
13167 * complaints.h (struct deprecated_complaint): Delete definition.
13168 (complain): Delete declaration.
13170 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13172 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13175 2003-01-27 Andrew Cagney <ac131313@redhat.com>
13177 * sentinel-frame.h, sentinel-frame.c: New files.
13178 * Makefile.in (frame.o): Update dependencies.
13179 (SFILES): Add sentinel-frame.c.
13180 (sentinel_frame_h): Define.
13181 (COMMON_OBS): Add sentinel-frame.o.
13182 (sentinel-frame.o): Specify dependencies.
13183 * frame.c: Include "sentinel-frame.h".
13184 (frame_register_unwind): Rewrite assuming that there is always a a
13186 (frame_register, generic_unwind_get_saved_register): Ditto.
13187 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13188 (create_sentinel_frame, unwind_to_current_frame): New functions.
13189 (get_current_frame): Rewrite using create_sentinel_frame and
13190 unwind_to_current_frame. When possible, always create a frame.
13191 (create_new_frame): Set next to the sentinel frame.
13192 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13193 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13194 ID cache when necessary.
13195 (frame_saved_regs_id_unwind): Use frame_relative_level.
13196 (deprecated_generic_get_saved_register): Use frame_relative_level,
13197 get_frame_saved_regs, get_frame_pc, get_frame_base and
13199 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13202 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13204 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13206 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13208 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13209 (maintenance_set_profile_cmd): Use error () instead of warning ().
13211 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13213 * configure.in: Check that -pg works if using --enable-profiling.
13214 Check for monstartup and _mcleanup regardless of --enable-profiling.
13215 * maint.c: Check for monstartup and _mcleanup before using them.
13216 * config.in: Regenerated.
13217 * configure: Regenerated.
13219 2003-01-24 Nick Clifton <nickc@redhat.com>
13221 * Add sh2e support:
13223 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13225 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13226 (sh2e_show_regs): New.
13227 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13228 * config/sh/tm-sh.h: Added sh2e to comments.
13230 2003-01-23 Jim Blandy <jimb@redhat.com>
13232 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13233 symbols found)" message here; we haven't checked for a separate
13234 debug info file yet, so we don't know yet.
13235 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13236 we've looked everywhere. Also, there's no need to print a special
13237 message when we're loading the separate debug info file: the one
13238 symbol_file_add prints is fine.
13240 2003-01-23 Alexander Larsson <alexl@redhat.com>
13241 Jim Blandy <jimb@redhat.com>
13243 Add support for executables whose debug info has been separated
13244 out into a separate file, leaving only a link behind.
13245 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13246 and separate_debug_objfile_backlink.
13247 (put_objfile_before): New declaration.
13248 * symfile.c: #include "filenames.h".
13249 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13250 debug info in a separate file, read that, too. Save the addrs
13251 argument, so we can use it again to read the separated debug info;
13252 syms_from_objfile modifies the table we pass it.
13253 (reread_symbols): After re-reading an objfile, call
13254 reread_separate_symbols to refresh its separate debug info
13255 objfile, if it has one.
13256 (reread_separate_symbols, find_separate_debug_file,
13257 get_debug_link_info, separate_debug_file_exists): New functions.
13258 (debug_file_directory): New global var.
13259 (_initialize_symfile): Initialize debug_file_directory, and
13260 provide the new `set debug-file-directory' command to let the user
13262 * objfiles.c (free_objfile): If this objfile has its debug info in
13263 a separate objfile, free that one too. If this is itself a
13264 separate debug info objfile, clear our parent's backlink.
13265 (put_objfile_before): New function.
13266 * utils.c (gnu_debuglink_crc32): New function.
13267 * defs.h (gnu_debuglink_crc32): New declaration.
13268 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13269 * configure.in: Handle --with-separate-debug-dir config option.
13270 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13271 * acconfig.h (DEBUGDIR): New macro.
13272 * configure, aclocal.m4, config.in: Regenerated.
13274 2003-01-22 Jim Blandy <jimb@redhat.com>
13276 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13277 like the old symbol_file_add, but taking new arguments: you can
13278 now pass in either a `struct section_addr_info' list to say where
13279 each section is loaded, or a `struct section_offsets' table. Pass
13280 these new arguments through to syms_from_objfile as appropriate.
13281 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13282 with the appropriate quiescent values for the new arguments.
13284 * symfile.c: #include "gdb_assert.h".
13285 (syms_from_objfile): Add the ability to pass in a section offset
13286 table directly, as an alternative to the section_addr_info table.
13287 Document arguments better.
13288 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13289 * symfile.h (syms_from_objfile): Update declaration.
13290 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13292 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13294 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13296 Original patch by Tom Tromey <tromey@cygnus.com> and
13297 Jason Molenda <jmolenda@apple.com>.
13298 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13299 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13300 * NEWS: Mention profiling.
13301 * configure.in (--enable-gdbtk): Fix typo.
13302 (--enable-profiling): New. Set PROFILE_CFLAGS.
13303 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13305 (profiling_state): New variable.
13306 (mcleanup_wrapper): New function.
13307 (_initialize_maint): Remove NOTYET, fix call to
13308 add_setshow_boolean_cmd for "maint set profile".
13309 * configure: Regenerated.
13311 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13313 * Makefile.in (install-gdbtk): Install PNG images too.
13315 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13317 * exec.c (text_start): Delete global variable.
13318 (exec_file_attach): Make text_start local to the function.
13319 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13320 * valops.c (hand_function_call): Delete code that handles
13321 BEFORE_TEXT_END and AFTER_TEXT_END.
13322 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13323 of CALL_DUMMY_LOCATION.
13324 * gdbarch.c: Regenerate.
13325 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13326 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13327 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13328 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13329 (text_end): Delete extern declaration.
13331 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13333 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13334 * blockframe.c (backtrace_below_main): Move to "frame.c".
13335 (frame_chain_valid): Delete check for backtrace_below_main.
13336 (_initialize_blockframe): Delete initialization, move ``set
13337 backtrace-below-main'' command to "frame.c".
13338 (do_flush_frames_sfunc): Delete function.
13339 * frame.c: Include "command.h" and "gdbcmd.h".
13340 (frame_type_from_pc): New function.
13341 (create_new_frame): Use frame_type_from_pc.
13342 (legacy_get_prev_frame): New function.
13343 (get_prev_frame): Rewrite. When an old style frame, call
13344 legacy_get_prev_frame. Otherwize, unwind the PC first.
13345 (_initialize_frame): Add ``set backtrace-below-main'' command.
13346 * Makefile.in (frame.o): Update dependencies.
13348 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13350 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13351 DEPRECATED_REGISTERS_INFO.
13353 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13355 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13356 Maintainers'. Update `Various Maintainers'.
13358 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13360 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13361 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13362 Suppress actual parameters when `-'.
13363 * gdbarch.h, gdbarch.c: Regenerate.
13365 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13367 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13368 code handling dummy frames.
13370 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13372 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13373 (struct frame_unwind): Add field pop.
13374 * frame.h (frame_pop): Declare.
13375 * frame.c (frame_saved_regs_pop): New function.
13376 (trad_frame_unwinder): Add frame_saved_regs_pop.
13377 (frame_pop): New function.
13378 * dummy-frame.c (dummy_frame_pop): New function.
13379 (discard_innermost_dummy): New function.
13380 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13381 (dummy_frame_unwind): Add dummy_frame_pop.
13382 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13383 * valops.c (hand_function_call): Ditto.
13384 * stack.c (return_command): Ditto.
13386 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13388 * cris-tdep.c: Fix function declaration indentation.
13389 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13390 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13391 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13392 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13393 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13394 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13396 2003-01-18 Michael Chastain <mec@shout.net>
13398 * README (Unpacking and Installation -- quick overview):
13399 Warn against ".../gdb-5.3/gdb/configure".
13401 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13403 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13404 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13405 (struct frame_unwind): Declare opaque.
13406 (dummy_frame_p): Declare function.
13407 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13408 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13409 * dummy-frame.c: Include "frame-unwind.h".
13410 (dummy_frame_p): New function.
13411 (dummy_frame_unwind): New variable.
13412 * frame.c: Include "frame-unwind.h".
13413 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13414 to use the new unwind field.
13415 (set_unwind_by_pc): Delete function.
13416 (create_new_frame, get_prev_frame): Set unwind field using
13417 frame_unwind_find_by_pc.
13418 (trad_frame_unwind, trad_frame_unwinder): New variables.
13419 * frame.h (trad_frame_unwind): Declare variable.
13420 (frame_id_unwind_ftype): Delete declaration.
13421 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13422 (struct frame_unwind): Declare opaque.
13423 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13424 register_unwind with a single unwind pointer.
13425 * frame-unwind.h, frame-unwind.c: New files.
13426 * Makefile.in (SFILES): Add frame-unwind.c.
13427 (frame_unwind_h): Define.
13428 (COMMON_OBS): Add frame-unwind.o.
13429 (frame-unwind.o): Specify dependencies.
13430 (frame.o, dummy-frame.o): Update dependencies.
13432 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13434 * ada-valprint.c: Eliminate PTR.
13435 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13436 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13437 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13438 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13439 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13440 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13441 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13443 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13445 * main.c (captured_main): Don't use PTR.
13446 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13447 * gdbtypes.c (lookup_primitive_typename): Ditto.
13448 (lookup_struct_elt_type): Ditto.
13449 * f-valprint.c (info_common_command): Ditto.
13450 (list_all_visible_commons): Ditto.
13451 * jv-typeprint.c (java_type_print_base): Ditto.
13453 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13454 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13455 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13456 i386-interix-nat.c and i386-interix-tdep.c. Rename
13457 m68klinux-nat.c and m68klinux-tdep.c. Rename
13458 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13459 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13460 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13461 * main.c (captured_main): Use xfree, not free.
13463 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13465 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13466 ID back using a parameter.
13467 * frame.c (frame_id_unwind): Update call.
13468 (frame_saved_regs_id_unwind): Update.
13469 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13470 * dummy-frame.h (struct frame_id): Add opaque declaration.
13471 (dummy_frame_id_unwind): Update declaration.
13473 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13475 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13477 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13479 * MAINTAINERS (Stephen P. Smith): Updated email address.
13481 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13484 * breakpoint.c (until_break_command): Add new argument. Use it to
13485 decide whether to stop only at the current frame or not.
13486 * breakpoint.h (until_break_command): Update prototype.
13487 * infcmd.c (until_command): Add new argument to until_break_command
13489 (advance_command): New function.
13490 (_initialize_infcmd): Update help string for 'until' command.
13491 Add new 'advance' command.
13493 2003-01-14 David Carlton <carlton@math.stanford.edu>
13495 * linespec.c (decode_line_1): Normalize comments.
13496 (set_flags): Ditto.
13497 (locate_first_half): Ditto.
13498 (decode_compound): Ditto.
13499 (symtab_from_filename): Ditto.
13500 (decode_all_digits): Ditto.
13501 (decode_dollar): Ditto.
13502 (find_methods): Ditto.
13503 (find_toplevel_char): Ditto.
13505 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13507 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13508 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13509 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13510 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13511 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13512 * language.c, language.h, m32r-tdep.c: Update copyright.
13513 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13514 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13515 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13516 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13517 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13518 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13520 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13522 * stabsread.h (process_later, resolve_cfront_continuation):
13524 Update copyright years.
13525 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13526 Update copyright year.
13527 * dbxread.c(struct cont_elem): Obsolete.
13528 (process_later, process_now): Obsolete functions.
13529 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13530 Update copyright year.
13531 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13532 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13533 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13534 (parse_partial_symbols): Obsolete cfront support.
13536 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13538 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13539 read_cfront_baseclasses, read_cfront_member_functions,
13540 resolve_cfront_continuation,read_cfront_static_fields,
13541 copy_cfront_struct_fields): Obsolete functions.
13542 (define_symbol, read_one_struct_field): Obsolete cfront support.
13543 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13544 Update Copyright year.
13546 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13548 * stack.c (print_frame_info, print_stack_frame_base_stub,
13549 print_stack_frame_base, show_and_print_stack_frame_stub,
13550 show_and_print_stack_frame, print_only_stack_frame_stub,
13551 print_only_stack_frame): Delete functions.
13552 (print_stack_frame_stub): Call print_frame_info instead of
13553 print_frame_info_base.
13554 (print_frame_info_base): Rename to print_frame_info.
13555 (backtrace_command_1): Call print_frame_info, instead of
13556 print_frame_info_base.
13557 (current_frame_command): Call print_stack_frame, instead of
13558 print_only_stack_frame.
13559 (frame_command): Call print_stack_frame, instead of
13560 show_and_print_stack_frame.
13561 (up_command): Ditto.
13562 (down_command): Ditto.
13563 * frame.h (print_only_stack_frame): Delete prototype.
13564 * infrun.c (normal_stop): Call print_stack_frame, instead of
13565 show_and_print_stack_frame.
13566 * thread.c (info_threads_command): Call print_stack_frame, instead
13567 of print_only_stack_frame.
13569 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13571 * README (Graphical interface to GDB): Update URL. Point at
13574 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13577 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13579 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13582 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13584 * thread-db.c (attach_thread): Prototype.
13585 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13586 thread information (ti), and valid flags (th_valid, ti_valid).
13587 (attach_thread): Move target_pid_to_str call to after the thread
13588 is added to GDB's list. Initialize the cache.
13589 (thread_get_info_callback, thread_db_map_id2thr)
13590 (thread_db_get_info): New functions.
13591 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13592 (thread_db_store_registers, thread_db_thread_alive)
13593 (thread_db_get_thread_local_address): Use them.
13594 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13595 of calling error() for threads in unknown state.
13597 (clear_lwpid_callback): New function.
13598 (thread_db_resume): Use it to clear the cache.
13600 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13602 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13603 (resume_callback): Remove dead code.
13605 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13607 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13609 * gdbarch.h, gdbarch.c: Regenerate.
13610 * stack.c (frame_info): Only initialize the saved registers when
13611 FRAME_INIT_SAVED_REGS_P.
13612 * frame.c (frame_saved_regs_register_unwind): Assert
13613 FRAME_INIT_SAVED_REGS_P.
13614 (deprecated_generic_get_saved_register): Ditto.
13616 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13618 * source.c (openp): Squelch warning about "filename".
13620 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13622 * source.c (openp): If the file does not exist don't necessarily
13625 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13628 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13629 (integer_types_same_name_p): New function.
13630 (rank_one_type): Use it.
13631 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13633 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13635 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13637 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13638 * configure.in: Add --with-sysroot.
13639 * configure: Regenerated.
13640 * main.c (gdb_sysroot): New variable.
13641 (captured_main): Initialize gdb_sysroot.
13642 * defs.h (gdb_sysroot): New extern declaration.
13643 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13645 2003-01-12 Michael Chastain <mec@shout.net>
13647 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13649 2003-01-12 Michael Chastain <mec@shout.net>
13651 * top.c (print_gdb_version): Bump copyright year to 2003.
13653 2003-01-12 David Carlton <carlton@bactrian.org>
13655 * linespec.c (symtab_from_filename): Rename variable 's' to
13658 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13660 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13662 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13664 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13666 * d10v-tdep.c: Include "gdb_assert.h".
13667 (d10v_store_return_value): Rewrite to match current interface.
13668 (d10v_extract_struct_value_address): Ditto.
13669 (d10v_extract_return_value): Ditto.
13670 (d10v_gdbarch_init): Set store_restore_value,
13671 extract_struct_value_address and extract_return_value.
13673 2003-01-12 J. Brobecker <brobecker@gnat.com>
13675 * hpread.c (set_namestring): New procedure replacing the
13676 SET_NAMESTRING macro.
13677 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13678 by calls to set_namestring.
13680 2003-01-11 J. Brobecker <brobecker@gnat.com>
13682 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13683 a compilation warning.
13684 (hpread_process_one_debug_symbol): Likewise.
13686 2003-01-10 David Carlton <carlton@math.stanford.edu>
13688 * linespec.c (decode_line_1): Rename variable 's' to
13690 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13691 (decode_dollar): Ditto.
13692 (decode_variable): Ditto.
13693 (symbol_found): Ditto.
13695 2003-01-09 Michael Chastain <mec@shout.net>
13697 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13699 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13701 * win32-nat.c (set_process_privilege): New function.
13702 (child_attach): Call set_process_privilege() to enable the
13703 SE_DEBUG_NAME user privilege if available in process token.
13705 2003-01-10 J. Brobecker <brobecker@gnat.com>
13707 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13708 compilation error in the previous revision.
13710 2003-01-09 David Carlton <carlton@math.stanford.edu>
13712 * linespec.c: Update copyright.
13714 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13716 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13717 than inferior_ptid.
13718 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13720 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13722 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13724 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13725 (frame_saved_regs_zalloc): Update.
13726 (frame_saved_regs_register_unwind): Update.
13727 (create_new_frame): Update.
13728 (get_prev_frame): Update.
13729 (frame_extra_info_zalloc): Update.
13730 (deprecated_get_frame_saved_regs): Update.
13731 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13732 * cris-tdep.c: Update comment.
13734 * somsolib.h: Fix function indentation.
13735 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13736 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13737 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13738 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13739 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13741 * infrun.c (follow_fork): Use ISO C definition.
13742 * expprint.c (print_subexp): Use xfree instead of free.
13743 * charset.c: Include "gdb_string.h" instead of <string.h>.
13744 (register_iconv_charsets): Use ISO C definition.
13745 (host_charset, target_charset): Ditto.
13746 * Makefile.in (charset.o): Update dependencies.
13747 (mi-cmd-env.o): Update dependencies.
13749 2003-01-08 Andrew Cagney <cagney@redhat.com>
13751 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13754 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13756 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13757 build directories. Save edited gdb output in Mbuild.log. If a
13758 build fails, remove any final GDB executable.
13760 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13762 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13763 replacing hex constants with function names and stripping leading
13764 file name directory prefixes.
13766 2003-01-08 Andrew Cagney <cagney@redhat.com>
13768 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13771 2003-01-08 David Carlton <carlton@math.stanford.edu>
13773 * linespec.c (decode_line_1): Move code into decode_variable.
13774 (decode_variable): New function.
13776 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13778 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13780 2003-01-08 Andrew Cagney <cagney@redhat.com>
13782 * cris-tdep.c (cris_frame_init_saved_regs): Use
13783 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13785 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13786 (sh64_nofp_frame_init_saved_regs): Ditto.
13787 (sh_fp_frame_init_saved_regs): Ditto.
13788 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13789 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13790 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13791 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13793 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13795 * minsyms.c (lookup_minimal_symbol): Update comment.
13796 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13797 (lookup_minimal_symbol_solib_trampoline): Likewise.
13799 2003-01-08 Andrew Cagney <cagney@redhat.com>
13801 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13802 frame_relative_level.
13804 * alpha-tdep.c: Use get_frame_extra_info.
13805 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13806 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13807 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13808 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13810 * alpha-tdep.c: Use get_next_frame.
13811 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13812 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13813 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13814 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13815 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13816 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13817 * xstormy16-tdep.c: Ditto.
13819 2003-01-07 Andrew Cagney <cagney@redhat.com>
13821 * alpha-tdep.c: Use get_frame_base.
13822 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13823 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13824 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13825 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13826 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13827 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13828 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13829 * config/sparc/tm-sparc.h: Ditto.
13831 2003-01-07 Andrew Cagney <cagney@redhat.com>
13833 * frame.c (deprecated_get_frame_context): New function.
13834 (deprecated_set_frame_context): New function.
13835 * frame.h (deprecated_get_frame_context): Declare.
13836 (deprecated_set_frame_context): Declare.
13837 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13838 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13840 2003-01-07 Andrew Cagney <cagney@redhat.com>
13842 * frame.c (deprecated_set_frame_next_hack): New function.
13843 (deprecated_set_frame_prev_hack): New function.
13844 * frame.h (deprecated_set_frame_next_hack): Declare.
13845 (deprecated_set_frame_prev_hack): Declare.
13846 * mcore-tdep.c (analyze_dummy_frame): Use
13847 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13848 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13850 2003-01-07 David Carlton <carlton@math.stanford.edu>
13852 * linespec.c (decode_line_1): Move code into decode_dollar.
13853 (decode_dollar): New function.
13855 2003-01-07 Andrew Cagney <cagney@redhat.com>
13857 * arm-tdep.c (arm_init_extra_frame_info): Use
13858 deprecated_update_frame_base_hack.
13859 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13860 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13861 (fix_frame_pointer): Ditto.
13862 (mn10300_analyze_prologue): Ditto.
13864 2003-01-07 Andrew Cagney <cagney@redhat.com>
13866 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13867 extra_info using frame_extra_info_zalloc.
13868 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13869 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13870 (sh64_init_extra_frame_info): Ditto.
13871 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13872 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13873 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13874 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13875 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13876 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13877 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13878 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13879 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13880 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13881 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13882 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13884 * mn10300-tdep.c (analyze_dummy_frame): Use
13885 deprecated_set_frame_extra_info_hack.
13886 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13888 2003-01-07 J. Brobecker <brobecker@gnat.com>
13890 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13891 class is not scText. These do not define "real" procedures.
13892 (parse_partial_symbols): Likewise.
13894 2003-01-06 Michael Snyder <msnyder@redhat.com>
13896 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13898 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13900 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13901 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13902 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13903 deprecated_frame_xmalloc_with_cleanup.
13904 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13905 deprecated_frame_xmalloc.
13906 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13907 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13909 2003-01-06 Andrew Cagney <cagney@redhat.com>
13911 * x86-64-linux-tdep.c: Include "osabi.h".
13912 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13914 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13916 2003-01-06 Andrew Cagney <cagney@redhat.com>
13918 * MAINTAINERS (Target Instruction Set Architectures): Update
13919 arm-elf. Can be built with -Werror, has been multiarched.
13921 * value.h (unpack_long): Make buffer parameter constant.
13922 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13923 * scm-lang.h (scm_parse): Ditto.
13924 * defs.h (extract_typed_address, extract_address): Ditto.
13925 (extract_long_unsigned_integer): Ditto.
13926 * inferior.h (unsigned_pointer_to_address): Ditto.
13927 (signed_pointer_to_address): Ditto.
13928 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13929 * gdbarch.h, gdbarch.c: Regenerate.
13930 * findvar.c (extract_long_unsigned_integer): Update.
13931 (extract_address): Update.
13932 (extract_typed_address): Update.
13933 (unsigned_pointer_to_address): Update.
13934 * values.c (unpack_long): Update.
13935 (unpack_double): Update.
13936 (unpack_pointer): Update.
13937 (unpack_field_as_long): Update.
13938 * d10v-tdep.c (d10v_pointer_to_address): Update.
13939 * avr-tdep.c (avr_pointer_to_address): Update.
13940 * scm-lang.c (scm_unpack): Update.
13941 * findvar.c (signed_pointer_to_address): Update.
13943 2003-01-06 Michal Ludvig <mludvig@suse.cz>
13945 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13946 since it is in i386-tdep.c.
13948 2003-01-06 J. Brobecker <brobecker@gnat.com>
13950 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13951 failure introduced in the previous change.
13953 2003-01-05 Michael Chastain <mec@shout.net>
13955 * README: Remove references to deleted remote-*.c files:
13956 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13957 remote-nrom.c, remote-os9k.c, remote-udi.c.
13959 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13961 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13962 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13963 i386_get_longjmp_target.
13965 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13967 * arm-tdep.c (prologue_cache): Change to a pointer.
13968 (_initialize_arm_tdep): Allocate prologue_cache.
13969 (check_prologue_cache): Update.
13970 (save_prologue_cache): Update.
13971 (arm_gdbarch_init): Update.
13973 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13975 * stabsread.c (update_method_name_from_physname): Call complaint()
13978 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13980 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13981 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13982 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13984 * blockframe.c: Include "gdbcmd.h" and "command.h".
13985 (backtrace_below_main): New variable.
13986 (file_frame_chain_valid, func_frame_chain_valid)
13987 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13988 (generic_func_frame_chain_valid): Remove functions.
13989 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13990 (_initialize_blockframe): New function.
13991 * Makefile.in (blockframe.o): Update dependencies.
13992 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13993 comment. Call frame_chain_valid ().
13994 * frame.h: Remove old prototypes. Add prototype for
13995 frame_chain_valid and update comments to match.
13996 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13997 Remove old comment.
13998 * gdbarch.h: Regenerated.
13999 * gdbarch.c: Regenerated.
14001 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14002 set_gdbarch_frame_chain_valid.
14003 * avr-tdep.c (avr_gdbarch_init): Likewise.
14004 * cris-tdep.c (cris_gdbarch_init): Likewise.
14005 * frv-tdep.c (frv_gdbarch_init): Likewise.
14006 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14007 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14008 (i386_nw_init_abi): Likewise.
14009 (i386_gdbarch_init): Likewise.
14010 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14011 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14012 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14013 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14014 * mips-tdep.c (mips_gdbarch_init): Likewise.
14015 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14016 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14017 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14018 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14019 * s390-tdep.c (s390_gdbarch_init): Likewise.
14020 * sh-tdep.c (sh_gdbarch_init): Likewise.
14021 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14022 * v850-tdep.c (v850_gdbarch_init): Likewise.
14023 * vax-tdep.c (vax_gdbarch_init): Likewise.
14024 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14026 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14027 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14028 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14029 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14030 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14031 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14032 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14033 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14035 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14037 * Makefile.in (acconfig_h): Remove incorrect macro.
14038 (config_h): Define.
14039 (osabi.o): Update dependencies.
14040 * configure.tgt: Set gdb_osabi based on target triplet.
14041 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14042 * configure: Regenerated.
14043 * config.in: Regenerated.
14044 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14045 (GDB_OSABI_DEFAULT): Define if not already defined.
14046 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14047 (set_osabi_string): New variables.
14048 (gdbarch_register_osabi): Add new OS ABI to
14049 gdb_osabi_available_names.
14050 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14051 (set_osabi, show_osabi): New functions.
14052 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14054 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14056 * arch-utils.c (gdbarch_info_init): Set osabi to
14057 GDB_OSABI_UNINITIALIZED.
14058 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14059 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14060 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14061 * gdbarch.c: Regenerated.
14062 * gdbarch.h: Regenerated.
14063 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14065 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14066 * osabi.h (enum gdb_osabi): Move to defs.h.
14067 (gdbarch_init_osabi): Update prototype.
14068 * defs.h (enum gdb_osabi): Moved here.
14069 * Makefile.in: Update dependencies.
14071 * alpha-tdep.h: Don't include "osabi.h".
14072 (struct gdbarch_tdep): Remove osabi member.
14073 * alpha-tdep.c: Include "osabi.h".
14074 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14075 iterate over arches. Update call to gdbarch_init_osabi.
14076 (alpha_dump_tdep): Don't dump osabi.
14077 * alpha-linux-tdep.c: Include "osabi.h".
14078 * alpha-osf1-tdep.c: Include "osabi.h".
14079 * alphafbsd-tdep.c: Include "osabi.h".
14080 * alphanbsd-tdep.c: Include "osabi.h".
14082 * arm-tdep.h: Don't include "osabi.h".
14083 (struct gdbarch_tdep): Remove osabi member.
14084 * arm-tdep.c: Include "osabi.h".
14085 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14086 iterate over arches. Update call to gdbarch_init_osabi.
14087 (arm_dump_tdep): Don't dump osabi.
14088 * arm-linux-tdep.c: Include "osabi.h".
14089 * armnbsd-tdep.c: Include "osabi.h".
14091 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14092 Update call to gdbarch_init_osabi.
14094 * i386-tdep.h: Don't include "osabi.h".
14095 (struct gdbarch_tdep): Remove osabi member.
14096 * i386-tdep.c: Include "osabi.h".
14097 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14098 iterate over arches. Update call to gdbarch_init_osabi.
14099 (i386_dump_tdep): Don't dump osabi.
14100 * i386-linux-tdep.c: Include "osabi.h".
14101 * i386-sol2-tdep.c: Include "osabi.h".
14102 * i386bsd-tdep.c: Include "osabi.h".
14103 * i386gnu-tdep.c: Include "osabi.h".
14104 * i386ly-tdep.c: Include "osabi.h".
14105 * i386nbsd-tdep.c: Include "osabi.h".
14106 * i386obsd-tdep.c: Include "osabi.h".
14108 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14109 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14110 check osabi when iterating over arches. Update call to
14111 gdbarch_init_osabi.
14112 (mips_dump_tdep): Don't dump osabi.
14114 * ns32k-tdep.h: Don't include "osabi.h".
14115 (struct gdbarch_tdep): Remove.
14116 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14117 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14118 allocate tdep. Update call to gdbarch_init_osabi.
14119 (ns32k_dump_tdep): Remove.
14120 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14121 * ns32knbsd-tdep.c: Include "osabi.h".
14123 * ppc-tdep.h: Don't include "osabi.h".
14124 (struct gdbarch_tdep): Remove osabi member.
14125 * rs6000-tdep.c: Include "osabi.h".
14126 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14127 osabi when iterating over arches. Update call to
14128 gdbarch_init_osabi.
14129 (rs6000_dump_tdep): Don't dump osabi.
14130 * ppc-linux-tdep.c: Include "osabi.h".
14131 * ppcnbsd-tdep.c: Include "osabi.h".
14133 * sh-tdep.h: Don't include "osabi.h".
14134 (struct gdbarch_tdep): Remove osabi member.
14135 * sh-tdep.c: Include "osabi.h".
14136 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14137 iterate over arches. Update call to gdbarch_init_osabi.
14138 (sh_dump_tdep): Don't dump osabi.
14139 * shnbsd-tdep.c: Include "osabi.h".
14141 * sparc-tdep.c: Include "osabi.h".
14142 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14143 iterate over arches. Update call to gdbarch_init_osabi.
14144 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14147 * vax-tdep.h: Don't include "osabi.h".
14148 (struct gdbarch_tdep): Remove.
14149 * vax-tdep.c: Include "osabi.h".
14150 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14151 iterate over arches. Don't allocate tdep. Update call
14152 to gdbarch_init_osabi.
14153 (vax_dump_tdep): Remove.
14154 (_initialize_vax_tdep): Update call to gdbarch_register.
14156 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14158 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14160 (breakpoint_re_set_one): Don't fetch the value for a disabled
14163 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14165 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14166 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14167 (COERCE_FLOAT_TO_DOUBLE): Remove.
14168 * gdbarch.c: Regenerate.
14169 * gdbarch.h: Regenerate.
14170 * Makefile.in: Remove value_h from gdbarch_h.
14171 * valops.c (coerce_float_to_double): New variable.
14172 (default_coerce_float_to_double): Remove.
14173 (standard_coerce_float_to_double): Remove.
14174 (value_arg_coerce): Use coerce_float_to_double.
14175 (_initialize_valops): Add "set coerce-float-to-double".
14176 * value.h (default_coerce_float_to_double): Remove prototype.
14177 (standard_coerce_float_to_double): Remove prototype.
14179 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14181 * mdebugread.c (parse_symbol): Likewise.
14182 * stabsread.c (define_symbol): Mark all functions as prototyped.
14184 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14185 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14186 set_gdbarch_coerce_float_to_double.
14187 * arm-tdep.c (arm_gdbarch_init): Likewise.
14188 * frv-tdep.c (frv_gdbarch_init): Likewise.
14189 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14190 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14191 * mips-tdep.c (mips_gdbarch_init): Likewise.
14192 (mips_coerce_float_to_double): Remove.
14193 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14194 (rs6000_coerce_float_to_double): Remove.
14195 * s390-tdep.c (s390_gdbarch_init): Likewise.
14196 * sh-tdep.c (sh_gdbarch_init): Likewise.
14197 (sh_coerce_float_to_double): Remove.
14198 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14199 (sparc_coerce_float_to_double): Remove.
14200 * v850-tdep.c (v850_gdbarch_init): Likewise.
14201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14202 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14203 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14204 (hppa_coerce_float_to_double): Remove prototype.
14205 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14207 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14209 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14211 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14213 Suggested by Stewart Brown <sb24@avaya.com>:
14214 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14215 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14216 (c_type_print_varspec_suffix): Likewise.
14218 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14220 * configure.in: Don't set and AC_SUBST SUBDIRS.
14221 * configure: Regenerated.
14223 * configure.in: Remove code dealing with shared libraries.
14224 * Makefile.in: Remove HLDFLAGS and HLDENV.
14225 * configure: Regenerated.
14227 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14229 * frame.c (deprecated_frame_xmalloc): New function.
14230 (deprecated_set_frame_saved_regs_hack): New function.
14231 (deprecated_set_frame_extra_info_hack): New function.
14232 * frame.h (deprecated_frame_xmalloc): Declare.
14233 (deprecated_set_frame_saved_regs_hack): Declare.
14234 (deprecated_set_frame_extra_info_hack): Declare.
14236 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14238 * configure.in: Move code that provides the --enable-gdbtk option
14239 right after the code that handles the --enable-tui option, and
14240 polish it somewhat.
14241 * configure: Regenerated.
14243 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14244 AC_CHECK_FUNCS and remove the old check for pread64.
14245 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14246 * acconfig.h (_GNU_SOURCE): Add.
14247 (HAVE_PREAD64): Remove.
14248 * configure, aclocal.m4, config.in: Regenerated.
14250 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14252 * alpha-tdep.c: Use get_frame_saved_regs.
14253 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14254 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14255 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14256 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14257 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14259 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14261 * configure.in: Remove all use of the SUBDIRS variable; add
14262 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14263 code providing the --enable-multi-ice option, and move it right in
14264 front of the code that checks whether gdbserver is supported.
14266 * configure: Regenerated.
14267 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14270 2003-01-03 Andrew Cagney <cagney@redhat.com>
14272 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14273 * avr-tdep.c, cris-tdep.c: Ditto.
14274 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14275 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14277 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14279 * configure.in: Remove --enable-netrom option.
14280 * configure: Regenerated.
14282 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14284 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14285 declaration for `struct re_pattern_buffer' instead.
14286 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14288 2003-01-03 J. Brobecker <brobecker@gnat.com>
14290 * mdebugread.c (parse_symbol): Count until the stEnd matching
14291 the structure name.
14293 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14295 * configure.in: Remove --with-cpu option.
14296 subscripts. Remove evil changequotes here.
14297 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14298 * config.in, configure: Regenerated.
14300 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14301 * configure.in: Cleanup section that sources GDB and BFD configure
14302 subscripts. Remove evil changequotes here.
14303 * config.in, configure: Regenerated.
14305 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14307 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14308 frame accessor methods.
14309 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14310 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14311 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14312 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14313 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14314 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14315 * z8k-tdep.c: Ditto.
14317 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14319 * configure.in: Remove UI_OUT configuration code.
14320 * ada-lang.c: Update assuming UI_OUT is always true.
14321 * Makefile.in (UIOUT_CFLAGS): Remove.
14322 * configure: Regenerated.
14323 * TODO: Remove blurb about elimination of -DUI_OUT.
14325 * configure.in: Move code that provides the --enable-gdbcli,
14326 --enable-gdbmi options right before the code that handles the
14327 --enable-tui option. Polish a bit.
14328 * configure: Regenerated.
14330 * configure.in: Rewrite check for GNU regex and the
14331 --without-included regex option, and move it into the "Checks for
14332 library functions" section. This makes us use the system regex
14333 again by default on systems with version 2 of the GNU C library.
14334 This was apparently broken.
14335 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14336 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14337 * config.in, configure: Regenerated.
14339 * configure.in: Move code that provides the --enable-tui option
14340 before the "Checks for libraries" section. Polish the code
14341 somewhat and set need_curses to yes if we build the TUI. Rewrite
14342 code that looks for a library providing termcap functionality to
14343 match more closely what's done in the Readline library, and move
14344 it into to the "Checks for libraries" section.
14345 * configure: Regenerated.
14346 * Makefile.in (TERMCAP): Remove variable.
14347 * config/i386/go32.mh (TERMCAP): Remove variable.
14349 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14351 * MAINTAINERS: Mention gdb_mbuild.sh.
14352 * gdb_mbuild.sh: Rewrite.
14354 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14356 * configure.in: Fix typo in last change.
14357 * config.in, configure: Regenerated.
14359 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14361 * valarith.c (value_binop): Delete obsolete code and comments.
14362 * configure.host: Ditto.
14363 * buildsym.h (make_blockvector): Ditto.
14364 * buildsym.c (make_blockvector): Ditto.
14365 * defs.h (enum language): Ditto.
14366 (chill_demangle): Ditto.
14367 * elfread.c (elf_symtab_read): Ditto.
14368 * dwarfread.c (CHILL_PRODUCER): Ditto.
14369 (set_cu_language): Ditto.
14370 (handle_producer): Ditto.
14371 * expprint.c (print_subexp): Ditto.
14372 * gdbtypes.c (chill_varying_type): Ditto.
14373 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14374 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14375 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14376 (chill_varying_type): Ditto.
14377 * language.h (_LANG_chill): Ditto.
14378 * language.c (binop_result_type, integral_type): Ditto.
14379 (character_type, string_type, structured_type): Ditto.
14380 (lang_bool_type, binop_type_check): Ditto.
14381 * stabsread.h (os9k_stabs): Ditto.
14382 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14383 (define_symbol, read_type, read_struct_fields): Ditto.
14384 (read_array_type, read_enum_type, read_huge_number): Ditto.
14385 (read_range_type, start_stabs): Ditto.
14386 * symfile.c (init_filename_language_table): Ditto.
14387 (add_psymbol_with_dem_name_to_list): Ditto.
14388 * symtab.c (symbol_init_language_specific): Ditto.
14389 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14390 * symtab.h (struct general_symbol_info): Ditto.
14391 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14392 * typeprint.c (typedef_print): Ditto.
14393 * utils.c (fprintf_symbol_filtered): Ditto.
14394 * valops.c (value_cast, search_struct_field, value_slice): Delete
14396 (varying_to_slice): Delete function.
14397 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14398 (varying_to_slice): Delete declaration.
14399 * MAINTAINERS: Update.
14401 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14403 * configure.in: Reorganize "Checks for library functions section"
14404 a bit. Remove check for `btowc' and `isascii' functions.
14405 * configure: Regenerated.
14407 * acconfig.h (_MSE_INT_H): Remove.
14408 * configure.in: Create "Checks for header files" section, and move
14409 appropriate tests there. Don't check for objlist.h, wchar.h,
14410 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14411 misdetection fix. Also add "Checks for types", "Checks for
14412 compiler characteristics" and "Checks for library functions"
14414 * config.in, configure: Regenerated.
14416 * configure.in: Create "Checks for programs" section, and move
14417 appropriate tests there.
14419 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14421 * configure.in: Create "Checks for libraries" section, and move
14422 appropriate tests there. Cleanup check for wctype in libw. Use
14423 AC_SEARCH_LIBS to see whether we need libsocket.
14424 * configure: Regenerated.
14426 For older changes see ChangeLog-2002
14432 version-control: never