1 2003-11-07 Mark Kettenis <kettenis@gnu.org>
3 * fbsd-proc.c: Fix formatting.
5 2003-11-06 Kevin Buettner <kevinb@redhat.com>
7 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
9 (new_variant): Set name for iacc0_regnum.
10 (frv_register_name): Accommodate pseudo-registers.
11 (frv_register_type): Add case for iacc0_regnum.
12 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
13 (frv_gdbarch_init): Set number of pseudo registers. Establish
14 pseudo-register read/write methods.
16 2003-11-06 Andrew Cagney <cagney@redhat.com>
18 * valops.c (destructor_name_p): Replace STREQN with strncmp.
19 * top.c (command_line_input): Ditto.
20 * objc-exp.y (yylex): Ditto.
21 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
22 * jv-exp.y (yylex): Ditto.
23 * f-exp.y (yylex): Ditto.
24 * event-top.c (command_line_handler): Ditto.
25 * environ.c (get_in_environ): Ditto.
26 (set_in_environ): Ditto.
27 * dwarfread.c (handle_producer): Ditto.
28 * dbxread.c (process_one_symbol): Ditto.
29 * c-typeprint.c (c_type_print_base): Ditto.
30 * c-exp.y (yylex): Ditto.
32 2003-11-06 Andrew Cagney <cagney@redhat.com>
33 Jeff Johnston <jjohnstn@redhat.com>
35 * target.c (add_target): Only set "to_xfer_partial" when NULL.
36 (init_dummy_target): Set "to_xfer_partial".
38 2003-11-06 Andrew Cagney <cagney@redhat.com>
40 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
43 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
45 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
48 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
50 * breakpoint.c (remove_breakpoint): Take an bp_location
51 instead of a breakpoint argument. Check the bp_location's type.
52 Fix a reversed condition for hardware breakpoints.
54 (insert_bp_location): Update call to remove_breakpoint.
55 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
56 (remove_hw_watchpoints): Likewise.
57 (reattach_breakpoints): Likewise.
58 (detach_breakpoints): Likewise.
59 (delete_breakpoint): Likewise.
61 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
63 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
64 (beakpoint_init_inferior): Likewise.
65 (breakpoint_here_p): Likewise. Only check addresses for software
66 or hardware breakpoints.
67 (breakpoint_inserted_here_p): Likewise.
68 (breakpoint_thread_match): Likewise. Correct comment.
69 (bpstat_have_active_hw_watchpoints): Likewise.
70 (check_duplicates): Likewise.
72 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
74 * breakpoints.c (insert_bp_location): New function, broken out
75 from insert_breakpoints. Work on an bp_location instead of a
77 (insert_breakpoints): Use it.
79 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
81 * breakpoint.h (struct bp_location): Add section.
82 (struct breakpoint): Remove section.
83 * breakpoint.c (insert_breakpoints, remove_breakpoint)
84 (breakpoint_here_p, breakpoint_inserted_here_p)
85 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
86 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
87 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
90 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
92 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
93 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
95 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
97 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
98 arguments. Initialize owner and type for the new breakpoint
100 (set_raw_breakpoint): Update call to allocate_bp_location.
102 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
104 * breakpoint.h (struct bp_location): Add a chain pointer.
105 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
107 (bp_location_chain): New variable.
108 (allocate_bp_location): New function.
109 (set_raw_breakpoint): Use it.
110 (delete_breakpoint): Remove ->loc from the bp_location_chain.
112 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
114 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
115 (struct breakpoint): Remove address, shadow_contents, inserted,
116 requested_address, and duplicate. Add a struct bp_location.
117 * breakpoint.c (condition_command, read_memory_nobpt)
118 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
119 (reattach_breakpoints, update_breakpoints_after_exec)
120 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
121 (breakpoint_init_inferior, breakpoint_here_p)
122 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
123 (breakpoint_thread_match, bpstat_stop_status)
124 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
125 (describe_other_breakpoints, check_duplicates)
126 (make_breakpoint_permanent, create_thread_event_breakpoint)
127 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
128 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
129 (watch_command_1, print_one_exception_catchpoint)
130 (clear_command, breakpoint_re_set_one): Adjust member accesses to
131 use the breakpoint's ->loc.
132 (set_raw_breakpoint): Likewise. Initialize ->loc.
133 (delete_breakpoint): Likewise. Free ->loc.
135 2003-11-05 Andrew Cagney <cagney@redhat.com>
137 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
139 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
140 * config/i386/tm-cygwin.h
141 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
142 * config/powerpc/tm-linux.h
143 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
144 (at_subroutine_call_instruction_target): Delete declaration.
145 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
146 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
147 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
149 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
150 "struct bfd_section" and "struct bfd".
151 * target.h (struct section_table): Ditto.
152 * rs6000-nat.c (xcoff_relocate_core): Ditto.
153 * solib-svr4.c (elf_locate_base): Ditto.
154 * pa64solib.c (dld_cache_t): Ditto.
155 * objfiles.h (struct obj_section): Ditto.
156 * objfiles.c (add_to_objfile_sections): Ditto.
157 * exec.c (bfdsec_to_vmap): Ditto.
158 (add_to_section_table): Ditto.
159 (build_section_table): Ditto.
160 * corelow.c (get_core_register_section): Ditto.
161 * coffread.c (find_linenos): Ditto.
162 * elfread.c (elf_interpreter): Delete #if0'd function.
164 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
165 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
166 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
167 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
169 * arch-utils.h (generic_cannot_extract_struct_value_address):
171 * wince.c (_initialize_wince): Fix multi-line string.
172 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
174 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
176 * top.c (execute_command): Fix broken logic for command execution
177 while inferior is running in async mode.
179 2003-11-06 Mark Kettenis <kettenis@gnu.org>
181 * dwarf2-frame.c (execute_cfa_program): Mark register as
182 REG_SAVED_REG for DW_CFA_register opcode.
184 2003-11-05 Mark Kettenis <kettenis@gnu.org>
186 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
187 %rsp, %rip and %eflags to match ABI-change.
189 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
191 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
192 (ia64_gdbarch_init): Don't bother calculating the os.
193 Instead use the gdbarch_info struct and look at the osabi field.
194 Also use gdbarch_list_lookup_by_info() to look for a
197 2003-11-05 Kevin Buettner <kevinb@redhat.com>
199 * frv-tdep.c (frv_register_byte): Delete.
200 (frv_extract_return_value, frv_store_return_value)
201 (frv_extract_struct_value_address): Don't call frv_register_byte().
202 Convert to non-deprecated form.
203 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
204 Convert calls to set_gdbarch_deprecated_extract_return_value(),
205 set_gdbarch_deprecated_store_return_value(), and
206 set_gdbarch_deprecated_extract_struct_value_address() into
207 non-deprecated forms.
209 2003-11-05 Andrew Cagney <cagney@redhat.com>
211 * mips-tdep.c (mips_dump_tdep): Do not print
212 PRINT_EXTRA_FRAME_INFO.
213 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
214 Rename PRINT_EXTRA_FRAME_INFO.
215 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
216 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
217 (mips_print_extra_frame_info): Delete declaration.
218 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
220 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
222 * coffread.c (coff_symtab_read): Remove passing of info parameter
223 to prim_record_minimal_symbol_and_info.
225 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
227 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
228 (decode_base_type): Delete ifdeffed out code.
230 2003-11-04 Andrew Cagney <cagney@redhat.com>
232 * symtab.c (find_active_alias): Delete function.
233 (lookup_block_symbol): Delete alias code.
234 * stabsread.c (resolve_live_range): Delete function.
235 (add_live_range): Delete function.
236 (resolve_symbol_reference): Delete function.
237 (define_symbol): Delete live range and alias code.
238 (scan_file_globals): Delete alias code.
239 * symtab.h (SYMBOL_RANGES): Delete macro.
240 (struct range_list): Delete structure.
241 (struct symbol): Delete field "ranges".
242 (SYMBOL_ALIASES): Delete macro.
243 (struct alias_list): Delete structure.
244 (struct symbol): Delete field "aliases".
246 2003-11-04 Michael Snyder <msnyder@redhat.com>
248 * MAINTAINERS: Remove myself as owner of breakpoints and
251 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
253 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
254 (sh_sh4al_dsp_register_name): Ditto.
255 (sh4_nofpu_show_regs): Ditto.
256 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
257 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
259 2003-11-03 Andrew Cagney <cagney@redhat.com>
261 * bcache.c: Include "gdb_assert.h".
262 (struct bcache): Add fields "expand_count" and
264 (expand_hash_table): Update the expand counts.
265 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
266 on object sizes and hashes.
267 * Makefile.in (bcache.o): Update dependencies.
269 2003-11-03 Andrew Cagney <cagney@redhat.com>
271 * exec.c (xfer_memory): Eliminate xfer_fn.
273 2003-10-31 Kevin Buettner <kevinb@redhat.com>
275 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
276 (opcodes/frv-desc.h): Include.
277 (iacc0h_regnum, iacc0l_regnum): Define.
278 (last_spr_regnum, frv_num_regs): Update.
279 (new_variant): Don't supply default names for holes in the SPRs.
280 Supply names for iacc0h_regnum and iacc0l_regnum.
281 (frv_register_type): Use symbolic constants first_fpr_regnum and
282 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
283 builtin_type_int instead of builtin_type_int32.
284 (frv_register_sim_regno): New function.
285 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
286 * Makefile.in (gdb_sim_frv_h): Define.
287 (frv-tdep.o): Update dependencies.
289 2003-10-31 Andrew Cagney <cagney@redhat.com>
291 * avr-tdep.c (avr_frame_this_id): Do not call
292 deprecated_inside_entry_file.
293 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
294 * m32r-tdep.c (m32r_frame_this_id): Ditto.
295 * d10v-tdep.c (d10v_frame_this_id): Ditto.
296 * arm-tdep.c (arm_prologue_this_id): Ditto.
297 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
299 2003-10-31 Jim Blandy <jimb@redhat.com>
301 * elfread.c (elf_symtab_read): Allocate correct number of tail
302 elements to sectinfo structure. (Fix from Woody LaRue.)
304 2003-10-31 Andrew Cagney <cagney@redhat.com>
306 * stack.c (return_command): Use get_frame_type, instead of
307 CALL_DUMMY_HAS_COMPLETED.
308 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
309 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
311 2003-10-31 Mark Kettenis <kettenis@gnu.org>
313 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
314 explicitly specify size of array.
315 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
318 2003-10-31 Andrew Cagney <cagney@redhat.com>
320 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
322 (s390_gdbarch_init): Set extract_struct_value_address.
323 * arch-utils.c (generic_cannot_extract_struct_value_address):
325 * arch-utils.h (generic_cannot_extract_struct_value_address):
328 2003-10-31 Mark Kettenis <kettenis@gnu.org>
330 * i386-linux-nat.c (fetch_core_registers): Remove.
331 (linux_elf_core_fns): Remove.
332 (_initialize_i386_linux_nat): Remove.
334 2003-10-31 Andrew Cagney <cagney@redhat.com>
336 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
338 (exec_entry_point): New function.
339 (enable_break): Create a "tmp_bfd_target", use that and
340 entry_point_address when computing the relocation offset.
341 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
342 * Makefile.in (solib-svr4.o): Update dependencies.
344 2003-10-31 Andrew Cagney <cagney@redhat.com>
346 * defs.h (XZALLOC): Define.
347 * target.h (struct target_ops): Add "to_data";
348 * bfd-target.h, bfd-target.c: New files.
349 * Makefile.in (SFILES): Add "bfd-target.c".
350 (COMMON_OBS): Add "bfd-target.o".
351 (bfd-target.o): Specify dependencies.
352 (bfd_target_h): Define.
353 * defs.h (XZALLOC): Define.
355 2003-10-31 Andrew Cagney <cagney@redhat.com>
357 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
358 adjust_breakpoint_address.
359 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
360 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
361 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
362 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
364 2003-10-31 Andrew Cagney <cagney@redhat.com>
366 * target.h (struct target_ops): Replace "to_read_partial" and
367 "to_write_partial" with "to_xfer_partial". Update comments.
368 * target.c (debug_to_write_partial): Delete function.
369 (debug_to_xfer_partial): Replace debug_to_read_partial.
370 (add_target, update_current_target, setup_target_debug): Set
371 "to_xfer_partial" instead of "to_read_partial" and
373 (default_xfer_partial): Replace "default_write_partial".
374 (default_read_partial): Delete.
375 (target_read_partial, target_write_partial): Call
377 * remote.c (init_remote_ops): Set "to_xfer_partial".
378 (init_remote_async_ops): Ditto.
379 (remote_xfer_partial): Replace "remote_read_partial".
381 2003-10-31 Mark Kettenis <kettenis@gnu.org>
383 * i386-tdep.c (i386_supply_fpregset): Support floating-point
384 registers in `fxsave' format.
385 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
387 2003-10-30 Mark Kettenis <kettenis@gnu.org>
389 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
390 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
391 TDEP->gregset_num_regs and tdep->sizeof_gregset.
393 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
394 specify size of array.
395 (i386_linux_init_abi): Remove initialization of
396 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
397 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
399 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
400 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
403 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
406 2003-10-29 Mark Kettenis <kettenis@gnu.org>
408 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
409 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
412 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
414 * corelow.c: Include "arch-utils.h", "regset.h" and
416 (core_gdbarch): New variable.
417 (sniff_core_bfd): Don't sniff if we have support for register sets
419 (core_close): Reset CORE_GDBARCH.
420 (core_open): Initialize CORE_GDBARCH.
421 (get_core_register_section): Use register sets if they are
422 supported by CORE_GDBARCH.
423 (get_core_registers): Don't print error message if we have support
424 for register sets in CORE_GDBARCH.
426 2003-10-29 Andrew Cagney <cagney@redhat.com>
428 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
429 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
431 2003-10-29 Mark Kettenis <kettenis@gnu.org>
433 * objfiles.h (clear_objfile_data): New prototype.
434 * objfiles.c (clear_objfile_data): New function.
435 * symfile.c (reread_symbols): Clear per-objfile data.
437 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
439 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
440 printf_unfiltered instead of printf_filtered for output messages.
441 (add_symbol_file_command): Ditto.
442 (reread_symbols): Ditto.
443 (overlay_auto_command): Ditto.
444 (overlay_manual_command): Ditto.
445 (overlay_off_command): Ditto.
447 2003-10-27 Mark Kettenis <kettenis@gnu.org>
449 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
450 (gdbarch_from_bfd): New function.
451 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
452 deprecated_select_gdbarch_hack.
453 * arch-utils.h (gdbarch_from_bfd): New prototype.
455 2003-10-27 Andrew Cagney <cagney@redhat.com>
457 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
458 arch_info. Use warning instead of fprintf_filtered. Do not use
459 deprecated bfd_printable_arch_mach.
461 2003-10-26 Kevin Buettner <kevinb@redhat.com>
463 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
465 (frv_register_type): Rename from frv_register_virtual_type. Add
466 ``struct gdbarch *'' parameter.
467 (frv_gdbarch_init): Delete calls to the following functions:
468 set_gdbarch_deprecated_size(),
469 set_gdbarch_deprecated_register_bytes(),
470 set_gdbarch_deprecated_register_raw_size(),
471 set_gdbarch_deprecated_max_register_raw_size(),
472 set_gdbarch_deprecated_register_virtual_size(),
473 set_gdbarch_deprecated_max_register_virtual_size(),
474 set_gdbarch_deprecated_register_virtual_size(),
475 set_gdbarch_deprecated_register_virtual_type().
476 Add call to function set_gdbarch_register_type().
478 2003-10-26 Mark Kettenis <kettenis@gnu.org>
480 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
481 FDOFF_REGNUM): Remove defines.
482 * win32-nat.c (do_child_fetch_inferior_registers): Include
484 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
485 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
486 undefine I387_ST0_REGNUM.
488 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
489 * x86-64-tdep.c (x86_64_store_return_value): Use
490 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
492 Change register numbers to enumartion values.
493 * i386-tdep.h (enum i386_regnum): New.
494 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
495 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
496 I386_ST0_REGNUM): Remove defines.
497 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
498 I386_EDI_REGNUM): Remove defines.
500 2003-10-24 Andrew Cagney <cagney@redhat.com>
502 * target.c: Include "gdbcore.h".
503 (get_target_memory, get_target_memory_unsigned): New functions.
504 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
505 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
506 Use get_target_memory_unsigned.
507 * Makefile.in (target.o): Update dependencies.
509 2003-10-24 Andrew Cagney <cagney@redhat.com>
511 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
512 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
513 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
514 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
515 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
517 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
518 (can_run_code_for): Use the OO term "singleton".
520 2003-10-23 Andrew Cagney <cagney@redhat.com>
522 * Makefile.in (stack.o): Add $(regcache_h).
523 * stack.c: Include "regcache.h"
524 (return_command): Rewrite. Use get_frame_id and
525 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
526 about unhandled return-values.
527 * value.h (set_return_value): Delete declaration.
528 * values.c (set_return_value): Delete function.
530 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
532 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
533 (pseudo_regs): Add comment regarding register stack registers.
534 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
535 (floatformat_valid): New static routine.
536 (floatformat_ia64_ext): Add name field and set up is_valid routine
537 to floatformat_valid().
538 (examine_prologue): For the previous cfm, use
539 frame_unwind_register()
540 if the cfm is not stored in a register-stack register. Save the
541 previous cfm value in the prev_cfm field. Add debug output.
542 (ia64_frame_this_id): Use frame_id_build_special() to also register
543 the bsp. Add debug output.
544 (ia64_sigtramp_frame_this_id): Ditto.
545 (ia64_frame_prev_register): Look at cache saved_regs for a few more
546 registers and also add some checks for framelessness before accepting
547 current register values for fields such as return address. For cfm,
548 use the cached prev_cfm field if available. Add comment to explain
549 PSR logic. Add debug output.
550 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
551 as part of initialization.
552 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
553 calculated. Cache the bsp and cfm values.
554 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
555 instead of using ia64_frame_prev_register() which doesn't expect most
556 registers to be saved. The saved values for bsp and sp
557 can be taken from the cache. Add debug output.
558 (ia64_push_dummy_call): Use frame_id_build_special() to also register
561 2003-10-23 Jim Blandy <jimb@redhat.com>
563 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
564 architecture the current arch can run code for --- but not if it's
566 (can_run_code_for): New function.
568 2003-10-22 James E Wilson <wilson@specifixinc.com>
570 * MAINTAINERS: Move myself from paper trail section back to write
571 after approval section.
573 2003-10-22 Andrew Cagney <cagney@redhat.com>
576 * win32-nat.c: Include "exec.h".
577 * solib.c: Include "exec.h".
578 * target.h (build_section_table): Delete declaration.
579 * somsolib.c: Include "exec.h".
580 (exec_ops): Delete extern declaration.
581 * rs6000-nat.c: Update copyright. Include "exec.h".
582 (exec_ops): Delete extern declaration.
583 * pa64solib.c: Update copyright. Include "exec.h".
584 (exec_ops): Delete extern declaration.
585 * exec.c: Update copyright. Include "exec.h".
586 * corelow.c: Update dependencies. Include "exec.h".
587 * Makefile.in (exec_h): Define.
588 (exec.o, somsolib.o): Update dependencies.
589 (pa64solib.o, corelow.o): Update dependencies.
591 2003-10-22 Andrew Cagney <cagney@redhat.com>
593 * target.c: Include "gdb_assert.h" (target_read): Call
594 "target_read_partial", not "target_write_partial".
595 (default_read_partial, default_write_partial): New function.
596 (target_read_partial, target_write_partial): Simplify, assume that
597 there is always a read/write method.
598 (update_current_target, add_target): Always set "to_read_partial"
599 and "to_write_partial".
600 (target_write, target_read): Fail on a zero byte transfer.
601 * Makefile.in (target.o): Update dependencies.
602 * target.h: Update copyright date.
603 (target_object): Fix typo.
605 2003-10-22 Andrew Cagney <cagney@redhat.com>
607 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
608 multi-arch method, add "targ" parameter.
609 (struct target_ops): Declare.
610 * gdbarch.h, gdbarch.c: Re-generate.
611 * Makefile.in (c-valprint.o): Update dependencies.
612 * arch-utils.h: Update copyright.
613 (convert_from_func_ptr_addr_identity): Declare.
614 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
615 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
616 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
617 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
618 * infcall.c (find_function_addr, call_function_by_hand): Update.
619 * c-valprint.c: Include "target.h".
620 (print_function_pointer_address): Update.
622 2003-10-22 Andrew Cagney <cagney@redhat.com>
624 * target.c (target_close): New function.
625 (debug_to_close): Use "target_close".
626 (push_target): Use "target_close".
627 (unpush_target): Use "target_close".
628 (pop_target): Use "target_close".
629 * target.h (struct target_ops): Add "to_xclose".
630 (target_open): Delete macro. Move comment to "to_open".
631 (target_close): Replace macro with function that takes a target.
632 * top.c (quit_target): Pass "current_target" to "target_close".
634 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
636 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
637 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
638 * symtab.h (lookup_minimal_symbol_text): Update.
639 * breakpoint.c (create_overlay_event_breakpoint,
640 create_longjmp_breakpoint): Update callers.
641 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
642 * symtab.c (find_pc_sect_line): Ditto.
644 2003-10-21 Andrew Cagney <cagney@redhat.com>
646 * target.c (errno): Delete extern declaration.
648 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
650 * ia64-tdep.c: Change all occurrences of
651 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
652 (ia64_frame_prev_register): Minor whitespace change.
654 2003-10-20 Michael Chastain <mec@shout.net>
656 * config/djgpp/fnchange.lst: Add lines for:
657 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
658 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
659 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
660 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
661 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
662 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
663 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
665 2003-10-20 Andrew Cagney <cagney@redhat.com>
667 * values.c (register_value_being_returned): Update comments. Use
668 "gdbarch_return_value" when available.
669 (using_struct_return): Ditto.
670 (set_return_value): Ditto. Use "gdbarch_return_value" when
671 available.. Print a warning, and not an error, when an unhandled
672 return type is encountered.
673 * infcmd.c: Include "gdb_assert.h".
674 (print_return_value): When gdbarch_return_value_p, and using
675 struct return, assume that the value is not available.
676 * defs.h (return_value_convention): Define.
677 * gdbarch.sh (gdbarch_return_value): New predicate method.
678 * gdbarch.h, gdbarch.c: Re-generate
679 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
681 2003-10-20 Andrew Cagney <cagney@redhat.com>
683 * symtab.c: Replace "struct sec" with "struct bfd_section".
684 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
686 2003-10-19 Michael Chastain <mec@shout.net>
688 * config/djgpp/fnchange.lst: Add lines for:
689 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
690 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
691 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
693 2003-10-19 Mark Kettenis <kettenis@gnu.org>
695 * amd64fbsd-nat.c (fetch_inferior_registers,
696 store_inferior_registers): Remove functions.
697 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
699 2003-10-18 Mark Kettenis <kettenis@gnu.org>
701 Add NetBSD/amd64 native configuration:
702 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
703 * amd64nbsd-tdep.c: New file.
704 * amd64nbsd-nat.c: New file.
705 * amd64bsd-nat.c: New file.
706 * config/i386/nbsd64.mh: New file.
707 * config/i386/nbsd64.mt: New file.
708 * configure.host: Add x86_64-*-netbsd*.
709 * configure.tgt: Add x86_64-*-netbsd*.
710 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
712 * NEWS (New native configurations): Mention NetBSD/amd64.
714 2003-10-17 Michael Chastain <mec@shout.net>
716 * config/djgpp/fnchange.lst: Remove dead lines for:
717 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
718 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
719 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
720 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
721 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
722 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
723 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
724 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
725 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
726 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
727 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
728 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
729 gdb/config/sparc/tm-sparclite.h,
730 gdb/gdbtk/generic/ChangeLog-2001,
731 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
732 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
733 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
734 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
735 gdb/testsuite/gdb.mi/mi0-var-block.exp,
736 gdb/testsuite/gdb.mi/mi0-var-child.exp,
737 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
738 gdb/testsuite/gdb.mi/mi0-var-display.exp,
739 itcl/iwidgets3.0.0/demos/extfileselectionbox,
740 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
741 itcl/iwidgets3.0.0/demos/fileselectionbox,
742 itcl/iwidgets3.0.0/demos/fileselectiondialog,
743 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
744 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
745 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
746 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
747 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
748 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
749 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
750 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
751 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
752 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
753 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
754 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
755 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
756 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
757 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
758 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
759 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
760 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
761 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
762 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
763 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
764 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
765 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
766 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
767 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
768 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
769 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
770 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
771 itcl/iwidgets3.0.0/demos/html/shell.n.html,
772 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
773 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
774 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
775 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
776 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
777 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
778 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
779 itcl/iwidgets3.0.0/demos/scrolledcanvas,
780 itcl/iwidgets3.0.0/demos/scrolledframe,
781 itcl/iwidgets3.0.0/demos/scrolledhtml,
782 itcl/iwidgets3.0.0/demos/scrolledlistbox,
783 itcl/iwidgets3.0.0/demos/scrolledtext,
784 itcl/iwidgets3.0.0/demos/selectionbox,
785 itcl/iwidgets3.0.0/demos/selectiondialog,
786 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
787 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
788 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
789 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
790 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
791 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
792 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
793 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
794 itcl/iwidgets3.0.0/doc/scrolledframe.n,
795 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
796 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
797 itcl/iwidgets3.0.0/doc/scrolledtext.n,
798 itcl/iwidgets3.0.0/doc/selectionbox.n,
799 itcl/iwidgets3.0.0/doc/selectiondialog.n,
800 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
801 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
802 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
803 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
804 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
805 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
806 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
807 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
808 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
809 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
810 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
811 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
812 itcl/iwidgets3.0.0/generic/selectionbox.itk,
813 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
814 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
815 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
816 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
817 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
818 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
819 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
820 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
821 itcl/iwidgets3.0.0/tests/scrolledframe.test,
822 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
823 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
824 itcl/iwidgets3.0.0/tests/scrolledtext.test,
825 itcl/iwidgets3.0.0/tests/selectionbox.test,
826 itcl/iwidgets3.0.0/tests/selectiondialog.test,
827 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
828 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
829 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
830 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
831 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
832 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
833 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
834 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
835 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
836 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
837 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
838 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
839 tk/mac/tkMacProjects.sit.hqx.
841 2003-10-17 Andrew Cagney <cagney@redhat.com>
843 * target.c (target_section_by_addr): New function.
844 (do_xfer_memory): Use "target_section_by_addr".
845 * target.h (target_section_by_addr): Declare.
847 * target.h (struct target_ops): Add "to_read_partial" and
848 "to_write_partial", delete "to_query".
849 (target_read_partial, target_write_partial): Declare.
850 (target_read, target_write): Declare.
851 (target_query): Delete macro.
852 * target.c (target_read_partial): New function.
853 (target_write_partial, target_read, target_write): New function.
854 (update_current_target): Delete inheritance of "to_query". Add
855 comments about "to_read_partial" and "to_write_partial".
856 (debug_to_partial_read, debug_to_partial_write): New functions.
857 (debug_to_query): Delete function.
858 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
859 instead of "to_query".
860 * remote.c (remote_read_partial): Replace "remote_query".
861 (init_remote_ops): Set "to_read_partial" instead of "to_query".
862 (init_remote_async_ops): Ditto.
863 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
864 "target_read_partial" instead of "target_query".
865 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
866 Use "target_read_partial" instead of "target_query".
868 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
870 * frame.h (struct frame_id): Add new field: special_addr.
871 (frame_id_build_special): New prototype.
872 * frame.c (frame_id_build_special): New function.
873 (frame_id_build): Change to call frame_id_build_special().
874 (frame_id_eq): Change to also test special_addr field.
875 (frame_id_inner): Update comment.
877 2003-10-17 Andrew Cagney <cagney@redhat.com>
879 * target.c (update_current_target): Perform the target cleanup.
880 Put the target stack beneath the squashed "current_target".
881 (add_target): Delete disabled call to "cleanup_target".
882 (cleanup_target): Delete function.
883 (push_target, unpush_target): Do not call "cleanup_target".
885 2003-10-17 Andrew Cagney <cagney@redhat.com>
887 * target.c (target_stack): Change to a static target_ops.
888 (update_current_target): Walk the "struct target_ops" stack.
889 (pop_target, do_xfer_memory, target_info): Ditto.
890 (find_target_beneath): Ditto.
891 (push_target): Rewrite to use the "struct target_ops" stack.
892 (unpush_target): Ditto.
893 * target.h (struct target_stack_item): Delete definition.
894 (target_stack): Delete declaration.
895 (struct target_ops): Add field "beneath".
897 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
899 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
901 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
902 (h8300_examine_prologue): Use h8300_normal_mode flag
903 (h8300_gdbarch_init): Set architecture info for normal mode
905 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
907 * remote.c (remote_protocol_vcont): New variable.
908 (set_remote_protocol_vcont_packet_cmd): New function.
909 (show_remote_protocol_vcont_packet_cmd): New function.
910 (init_all_packet_configs): Handle remote_protocol_vcont.
911 (remote_vcont_probe): New function.
912 (remote_vcont_resume): New function.
913 (remote_resume): Use it.
914 (remote_async_resume): Call remote_resume.
915 (_initialize_remote): Add verbose-resume packet commands.
917 2003-10-16 Andrew Cagney <cagney@redhat.com>
919 * infrun.c (handle_inferior_event): Add comment about
920 "frame_id_inner" being too weak.
922 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
924 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
925 second parameter, which is always null. Remove
926 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
927 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
929 * somsolib.c (som_solib_create_inferior_hook,
930 som_solib_desire_dynamic_linker_symbols): Update callers.
931 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
933 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
935 * remote-m32r-sdi.c : New file, interface to m32r on-chip
936 debug interface, SDI (Scalable Debug Interface).
937 * NEWS: Mention m32r SDI protocol was supported.
938 * Makefile.in (remote-m32r-sdi.o): Add build rule.
939 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
941 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
943 * ia64-linux-tdep.c: Include gdbcore.h.
944 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
945 (ia64_linux_sigcontext_register_addr): Find the address of the
946 sigcontext area stored in the sigframe instead of using
947 a magic offset constant.
949 2003-10-15 Andrew Cagney <cagney@redhat.com>
951 * remote.c (remote_search): Delete function.
952 * target.h (target_search): Delete disabled macro.
953 (struct target_ops): Delete disabled field "to_search".
955 2003-10-14 Kevin Buettner <kevinb@redhat.com>
957 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
958 instead of deprecated_inside_entry_file().
960 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
962 * sh-tdep.c: Fix copy/paste hangover in comment.
963 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
965 (sh3e_sh4_extract_return_value): Ditto.
967 2003-10-13 Richard Henderson <rth@redhat.com>
969 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
970 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
971 match c_val_print a bit closer.
973 2003-10-13 Kevin Buettner <kevinb@redhat.com>
975 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
976 (frv_gdbarch_adjust_breakpoint_address): New function.
977 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
980 2003-10-13 Kevin Buettner <kevinb@redhat.com>
982 * breakpoint.h (struct breakpoint): Add new member
983 ``requested_address''.
984 * breakpoint.c (breakpoint_adjustment_warning)
985 (adjust_breakpoint_address): New static functions.
986 (print_it_typical): Issue warning if breakpoint's address is different
987 from its requested address.
988 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
989 (breakpoint_re_set_one): Set breakpoint's
990 ``requested_address'' field. Set ``address'' field to the
991 result of calling adjust_breakpoint_address() on the requested
994 2003-10-13 Kevin Buettner <kevinb@redhat.com>
996 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
997 * gdbarch.h, gdbarch.c: Regenerate.
999 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1001 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1004 * i386fbsd-tdep.c: New file.
1005 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1006 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1007 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1009 (_initialize_i386fbsd_tdep): New function.
1010 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1011 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1012 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1013 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1015 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1016 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1017 to initialize TDEP->sc_num_regs.
1018 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1019 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1020 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1021 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1022 FreeBSD ELF OS/ABI's here.
1023 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1024 (i386fbsd-tdep.o): New target.
1025 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1026 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1028 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1029 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1030 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1031 in initialization of TDEP->sc_num_regs.
1033 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1034 (x86_64_init_abi): Initialize regset_from_core_section if
1037 * i386-tdep.c (i386_regset_from_core_section): New function.
1038 (i386_gdbarch_init): Initialize regset_from_core_section if
1040 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1042 * i386-tdep.h (struct regset): Declare opaque.
1044 * gdbarch.sh (regset_from_core_section): New method.
1045 (struct regset): Declare opaque.
1046 * gdbarch.c, gdbarch.h: Regenerated.
1048 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1050 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1051 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1052 Correct test for pc within section.
1054 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1056 * gdbarch.sh: Remove trailing whitepsace from comments.
1058 2003-10-08 Roland McGrath <roland@redhat.com>
1060 * gcore.c (make_mem_sec): Function removed, folded into ...
1061 (gcore_create_callback): ... here. To omit a section, clear its
1062 SEC_LOAD bit rather than zeroing its size.
1063 Omit read-only sections only if they correspond to a known disk file.
1064 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1066 2003-10-10 Michael Snyder <msnyder@redhat.com>
1068 * d10v-tdep.c: Fix typo in comment.
1070 2003-10-10 Andrew Cagney <cagney@redhat.com>
1072 * rs6000-tdep.c (e500_store_return_value): Delete function.
1073 (e500_extract_return_value): Delete function.
1074 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1075 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1076 "ppc_sysv_abi_restore_return_value" where applicable.
1077 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1078 (ppc_sysv_abi_extract_return_value): Declare.
1079 (ppc_sysv_abi_broken_store_return_value): Declare.
1080 (ppc_sysv_abi_broken_extract_return_value): Declare.
1081 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1082 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1084 (do_ppc_sysv_return_value): New function.
1085 (ppc_sysv_abi_extract_return_value): New function.
1086 (ppc_sysv_abi_store_return_value): New function.
1087 (ppc_sysv_abi_broken_extract_return_value): New function.
1088 (ppc_sysv_abi_broken_store_return_value): New function.
1089 (ppc_sysv_abi_use_struct_convention): Call
1090 do_ppc_sysv_return_value.
1092 2003-10-10 J. Brobecker <brobecker@gnat.com>
1094 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1095 to lookup the main function symbol.
1097 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1099 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1101 (sh_push_dummy_call_fpu): Fix argument passing rules.
1102 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1104 (sh3e_sh4_store_return_value): Ditto.
1106 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1108 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1111 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1113 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1114 more readable code. Accomodate passing of bitfields.
1116 2003-10-10 Andrew Cagney <cagney@redhat.com>
1118 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1119 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1120 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1121 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1122 (ppc64_sysv_abi_push_dummy_call): New function.
1123 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1124 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1125 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1127 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1129 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1131 * d10v-tdep.c: Ditto.
1132 * h8300-tdep.c: Ditto.
1133 * remote-e7000.c: Ditto.
1134 * remote-hms.c: Ditto.
1135 * ser-e7kpc.c: Ditto.
1140 * sh64-tdep.c: Ditto.
1143 * config/d10v/d10v.mt: Ditto.
1144 * config/sh/embed.mt: Ditto.
1145 * config/sh/linux.mt: Ditto.
1146 * config/sh/tm-linux.h: Ditto.
1147 * config/sh/tm-sh.h: Ditto.
1148 * config/sh/wince.mt: Ditto.
1150 2003-10-09 Andrew Cagney <cagney@redhat.com>
1152 * ppc-tdep.h (struct type): Declare opaque.
1153 * x86-64-tdep.h (struct regcache): Declare opaque.
1154 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1157 2003-10-09 Andrew Cagney <cagney@redhat.com>
1159 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1160 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1161 (SOFTWARE_SINGLE_STEP_P): Ditto.
1162 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1163 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1164 (SOFTWARE_SINGLE_STEP_P): Ditto.
1165 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1166 software_single_step to rs6000_software_single_step.
1168 2003-10-09 Andrew Cagney <cagney@redhat.com>
1170 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1172 2003-10-09 Michael Snyder <msnyder@redhat.com>
1174 * frame.h: Fix typo in comment.
1175 * dummy-frame.c: Fix typo in comment.
1176 * d10v-tdep.c: Random whitespace/comment tweaks.
1178 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1180 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1181 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1184 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1185 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1188 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1190 * remote-mips.c (mips_initialize): Remove unneeded call to
1191 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1193 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1195 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1198 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1200 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1201 for any lwp we resume.
1202 (running_callback): Add lwps that have pending status events
1203 against them to be considered running.
1205 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1207 * m32r-tdep.c : Include "dis-asm.h".
1208 * Makefile.in (m32r-tdep.o): Update dependencies.
1210 2003-10-06 J. Brobecker <brobecker@gnat.com>
1212 * completer.h (get_gdb_completer_word_break_characters): Delete.
1213 * completer.c: include language.h.
1214 (gdb_completer_word_break_characters): Delete.
1215 (get_gdb_completer_word_break_characters): Delete.
1216 (location_completer): Use the word break characters of the current
1218 (complete_line): Likewise.
1219 (line_completion_function): Likewise.
1220 (skip_quoted_chars): Likewise.
1221 * Makefile.in (completer.o): Add dependency on language.h.
1222 * top.c (init_main): Set the readline word break characters
1223 to GDB's default word break characters.
1225 2003-10-06 J. Brobecker <brobecker@gnat.com>
1227 * language.h (language_defn): new field, la_word_break_characters.
1228 * language.c (unknown_language_defn): Set new field to
1229 default_word_break_characters.
1230 (auto_language_defn): Likewise.
1231 (local_language_defn): Likewise.
1232 * ada-lang.c (ada_language_defn): Likewise.
1233 * c-lang.c (c_language_defn): Likewise.
1234 (cplus_language_defn): Likewise.
1235 (asm_language_defn): Likewise.
1236 (minimal_language_defn): Likewise.
1237 * f-lang.c (f_language_defn): Likewise.
1238 * jv-lang.c (java_language_defn): Likewise.
1239 * m2-lang.c (m2_language_defn): Likewise.
1240 * objc-lang.c (objc_language_defn): Likewise.
1241 * p-lang.c (pascal_language_defn): Likewise.
1242 * scm-lang.c (scm_language_defn): Likewise.
1244 2003-10-06 Andrew Cagney <cagney@redhat.com>
1246 * ppc-sysv-tdep.c: Re-indent.
1248 2003-10-06 J. Brobecker <brobecker@gnat.com>
1250 * language.h (default_word_break_characters): Add prototype.
1251 * language.c (default_word_break_characters): New function.
1253 2003-10-06 Andreas Schwab <schwab@suse.de>
1255 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1258 2003-10-06 Andrew Cagney <cagney@redhat.com>
1260 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1262 (z8k-tdep.o): Delete custom build rule.
1264 2003-10-06 Andrew Cagney <cagney@redhat.com>
1266 * Makefile.in: Update all dependencies.
1268 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1269 No longer list PA as as obsolete candidate. List m32r as
1270 broken instead of obsolete.
1272 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1273 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1274 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1275 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1276 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1277 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1278 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1279 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1280 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1281 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1282 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1283 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1284 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1285 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1286 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1287 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1288 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1289 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1290 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1291 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1292 * config/z8k/z8k.mt: Ditto.
1294 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1295 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1296 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1297 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1298 sparclite were removed.
1299 * configure.host, configure.tgt: Remove corresponding tuples.
1301 * breakpoint.c, breakpoint.h: Remove obsolete code.
1302 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1303 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1304 * stabsread.h, xcoffread.c: Ditto.
1306 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1307 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1308 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1309 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1311 2003-10-06 David Lecomber <dsl@sources.redhat.com>
1313 * f-valprint.c: Reformatting
1315 2003-10-06 Mark Kettenis <kettenis@gnu.org>
1317 * x86-64-tdep.c: Remove duplicate comment.
1319 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1320 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1321 names for return values. This fixes a bug since we looked at %rbx
1324 2003-10-05 Mark Kettenis <kettenis@gnu.org>
1326 * x86-64-tdep.c: Include "regset.h".
1328 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1329 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1331 * i386-tdep.c: Include "regset.h".
1332 (i386_supply_gregset): New function.
1333 (i386_supply_fpregset): New function.
1334 (i386_gdbarch_init): Initialze register set-related members of
1336 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1337 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1339 2003-10-03 Andrew Cagney <cagney@redhat.com>
1341 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1342 set extract_return_value, store_return_value and
1343 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1344 ppc64_sysv_abi_store_return_value and
1345 ppc64_sysv_abi_use_struct_convention.
1346 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1347 (ppc64_sysv_abi_store_return_value): Declare.
1348 (ppc64_sysv_abi_use_struct_convention): Declare.
1349 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1350 (ppc64_sysv_abi_extract_return_value): New function.
1351 (ppc64_sysv_abi_store_return_value): New function.
1352 (ppc64_sysv_abi_use_struct_convention): New function.
1353 (ppc64_sysv_abi_return_value): New function.
1355 2003-10-03 Andrew Cagney <cagney@redhat.com>
1357 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1358 convert a descriptor to a function when it's in the ".opd"
1361 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1363 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1364 reg_size to keep GCC silent.
1366 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
1368 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1369 base for DW_EH_PE_textrel encodings.
1370 (read_encoded_value): Add a DW_EH_PE_textrel case.
1371 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1374 2003-10-03 Mark Kettenis <kettenis@gnu.org>
1376 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1378 2003-10-02 Andrew Cagney <cagney@redhat.com>
1380 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1382 * gdbarch.h, gdbarch.c: Re-generate.
1383 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1384 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1385 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1386 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1387 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1388 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1389 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1390 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1391 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1392 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1393 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1394 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1395 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1396 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1397 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1398 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
1400 2003-10-02 Jim Blandy <jimb@redhat.com>
1402 * dwarf2read.c (struct die_info): Doc fix.
1404 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1406 * sh-tdep.c: Running thru gdb_indent.sh.
1408 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
1410 * sh-tdep.c (sh_justify_value_in_reg): New function.
1411 (sh_stack_allocsize): Ditto.
1412 (flt_argreg_array): New array used for floating point argument
1414 (sh_init_flt_argreg): New function.
1415 (sh_next_flt_argreg): Ditto.
1416 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1417 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1418 Fix argument passing strategy.
1419 (sh_push_dummy_call_nofpu): Ditto.
1421 2003-10-01 Andrew Cagney <cagney@redhat.com>
1423 * value.h (register_value_being_returned): Declare. Replace
1424 "value_being_returned".
1425 * infcall.c (call_function_by_hand): Use
1426 register_value_being_returned.
1427 * infcmd.c (print_return_value): Call
1428 "register_value_being_returned", handle struct return locally.
1429 * values.c (register_value_being_returned): New function. Replace
1430 "value_being_returned".
1432 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
1434 * linux-proc.c (linux_do_registers): New function.
1435 (linux_make_note_section): Use linux_do_registers in case of
1436 single threaded inferior programs.
1438 2003-10-01 Andrew Cagney <cagney@redhat.com>
1440 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1441 use STRUCT_ADDR. When not using "struct return convention", pass
1442 "0" to "value_being_returned". Add FIXMEs.
1443 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1444 value_being_returned. Add comments.
1445 * values.c (value_being_returned): Add fixme.
1446 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1447 (hppa_value_returned_from_stack): Add FIXME.
1449 2003-09-30 David Carlton <carlton@kealia.com>
1451 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1452 'has_children' and 'next' by 'child' and 'sibling'.
1453 (read_comp_unit): Rework algorithm, breaking body into
1454 read_die_and_children and read_die_and_siblings.
1455 (read_die_and_children, read_die_and_siblings): New.
1456 (read_full_die): Add 'has_children' argument; set it instead of
1457 the die's 'has_children' field. Minor formatting cleanup.
1458 (free_die_list): Use die->child and die->sibling instead of
1460 (dump_die_list): Ditto.
1461 (sibling_die): Use die->sibling.
1462 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1463 'has_children' and 'next' fields.
1464 (process_die, read_file_scope, read_func_scope)
1465 (read_lexical_block_scope, read_structure_scope)
1466 (read_enumeration, read_array_type, read_common_block)
1467 (read_namespace, read_subroutine_type, dump_die): Ditto.
1469 2003-09-30 Andrew Cagney <cagney@redhat.com>
1471 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1474 2003-09-30 Andrew Cagney <cagney@redhat.com>
1476 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1477 REGISTER_VIRTUAL_SIZE.
1478 * gdbarch.h, gdbarch.c: Regenerate.
1479 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1480 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1481 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1483 2003-09-29 Andrew Cagney <cagney@redhat.com>
1485 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1486 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1487 * gdbarch.h, gdbarch.c: Regenerate.
1488 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1489 * sh64-tdep.c, sparc-tdep.c: Update.
1491 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1492 * remote-vxmips.c (vx_read_register): Ditto.
1493 * remote-vx68.c (vx_read_register): Ditto.
1494 * gnu-nat.c (inf_validate_procs): Ditto.
1496 2003-09-29 J. Brobecker <brobecker@gnat.com>
1498 * infcall.c (call_function_by_hand): Fix build failure
1499 introduced in the previous change to this file.
1501 2003-09-29 Andrew Cagney <cagney@redhat.com>
1503 * NEWS: Mention Objective-C.
1505 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
1507 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1508 test if the register has been saved on the stack.
1509 (arm_scan_prologue_cache): When analysing the instruction
1510 "str lr, [sp, #-4]", save the address where lr has been stored.
1512 2003-09-28 Andrew Cagney <cagney@redhat.com>
1514 * frame.c (frame_read_unsigned_register): Delete function.
1515 * frame.h (frame_read_unsigned_register): Delete declaration.
1516 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1517 get_frame_register_unsigned.
1518 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1519 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1520 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1522 * frame.h (frame_read_register): Delete declaration.
1523 * frame.c (frame_read_register): Delete function.
1524 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1525 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1526 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1527 * mips-tdep.c (mips_register_to_value): Ditto.
1528 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1529 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1531 * frame.c (frame_read_signed_register): Delete function.
1532 (frame_read_unsigned_register): Update comments.
1533 * frame.h (frame_read_signed_register): Delete declaration.
1534 * h8300-tdep.c (h8300_print_register): Use
1535 get_frame_register_signed.
1536 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1538 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1539 Rename VALUE_RETURNED_FROM_STACK.
1540 * infcmd.c (print_return_value): Update.
1541 * infcall.c (call_function_by_hand): Update.
1543 2003-09-28 Mark Kettenis <kettenis@gnu.org>
1545 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1546 regcache argument and reverse the order of the other two
1547 arguments. Remove local regcache variable. Determine
1548 architecture from REGCACHE. Update comments.
1549 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1550 reverse the order of the other two arguments. Remove local
1551 regcache variable. Determine architecture from REGCACHE. Update
1553 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1554 prototypes. Update comments.
1555 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1557 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1559 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1560 * i386-interix-nat.c (supply_fpregset): Update.
1561 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1562 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1563 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1564 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1565 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1567 * i386obsd-tdep.c (fetch_core_registers): Update.
1568 * i386v4-nat.c (supply_fpregset): Update.
1569 * x86-64-linux-nat.c (supply_fpregset): Update.
1570 * x86-64-linux-tdep.c (fetch_core_registers): Update.
1572 2003-09-27 Mark Kettenis <kettenis@gnu.org>
1574 * i386-tdep.h: Put opaque declarations in alphabetical
1575 order. Remove spurious whitespace.
1576 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1577 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1578 * i386-tdep.c (MM0_REGNUM): Remove define.
1579 (i386_mmx_regnum_p): Add gdbarch argument.
1580 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1581 Rewrite using new macro definitions for FPU/SSE registers.
1582 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1583 definitions from i387-tdep.h.
1584 (i386_register_name): Update.
1585 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1586 new macro definitions for FPU/SSE registers.
1587 (i386_extract_return_value): Determine whether floating-point
1588 registers are present by examining REGCACHE's architecture.
1589 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1590 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1592 (i386_register_type): Update.
1593 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1594 definitions for FPU registers. Use REGCACHE's architecture to
1595 determine the appropriate register numbers.
1596 (i386_pseudo_register_read, i386_pseudo_register_write,
1597 i386_register_reggroup_p): Update.
1598 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1600 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1601 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1602 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1603 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1604 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1605 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1607 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1608 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1609 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1610 definitions for FPU/SSE registers.
1611 (FXSAVE_MXCSR_ADDR): New define.
1612 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1614 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1615 (I387_ST0_REGNUM): Define.
1617 * regcache.h (get_regcache_arch): New prototype.
1618 * regcache.c (get_regcache_arch): New function.
1620 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1623 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1624 Initialize using ARRAY_SIZE.
1626 2003-09-27 Andrew Cagney <cagney@redhat.com>
1628 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1629 "init_frame_pc_default".
1630 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1631 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1632 * vax-tdep.c (vax_gdbarch_init): Update.
1633 * v850-tdep.c (v850_gdbarch_init): Update.
1634 * sh64-tdep.c (sh64_gdbarch_init): Update.
1635 * s390-tdep.c (s390_gdbarch_init): Update.
1636 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1637 * mcore-tdep.c (mcore_gdbarch_init): Update.
1638 * h8300-tdep.c (h8300_gdbarch_init): Update.
1639 * cris-tdep.c (cris_gdbarch_init): Update.
1640 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1642 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1644 * regset.h: New file.
1645 * Makefile.in (regset_h): Add.
1647 2003-09-25 Andrew Cagney <cagney@redhat.com>
1649 * frame.h (deprecated_frame_saved_regs): Rename
1650 get_frame_saved_regs.
1651 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1652 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1653 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1654 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1655 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1657 2003-09-25 Andrew Cagney <cagney@redhat.com>
1659 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1660 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1662 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1663 arm*-*-* do not use the new frame code.
1665 2003-09-25 David Carlton <carlton@kealia.com>
1667 * c-exp.y: Remove 'register' declarations.
1668 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1670 2003-09-25 David Carlton <carlton@kealia.com>
1672 * c-exp.y: Include cp-support.h. Add qualified_type.
1673 (yylex): Delete nested type hack; add comments.
1674 * cp-namespace.c (cp_lookup_nested_type): New function.
1675 * cp-support.h: Declare cp_lookup_nested_type.
1676 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1677 instead of value_struct_elt_for_reference.
1678 * valops.c: Include cp-support.h.
1679 (value_aggregate_elt): New function.
1680 (value_namespace_elt): Ditto.
1681 (value_struct_elt_for_reference): Make static.
1682 * value.h: Delete declaration of value_struct_elt_for_reference;
1683 add declaration for value_aggregate_elt.
1684 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1687 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1689 * stack.c: Include "reggroups.h".
1690 (frame_info): Only display registers in all_reggroup.
1691 * Makefile.in (stack.o): Update dependencies.
1693 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1695 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1696 "add ip, sp #n" in the prologue.
1697 (arm_scan_prologue): Ditto.
1699 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1701 * MAINTAINERS (write after approval): Add myself.
1703 2003-09-25 Andreas Schwab <schwab@suse.de>
1705 * m68k-tdep.c: Include "dwarf2-frame.h".
1706 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1707 * Makefile.in (m68k-tdep.o): Update dependencies.
1709 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1711 * sh-tdep.c (struct frame_extra_info): Remove.
1712 (struct sh_frame_cache): New structure.
1713 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1714 (GET_TARGET_REG): Ditto but target register.
1715 (GET_PUSHED_REG): Remove.
1716 (IS_MOV_ARG_TO_REG): New macro.
1717 (IS_MOV_ARG_TO_IND_R14): New macro.
1718 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1719 (IS_MOVW_PCREL_TO_REG): New macro.
1720 (IS_MOVL_PCREL_TO_REG): New macro.
1721 (IS_SUB_REG_FROM_SP): New macro.
1722 (IS_ARG_MOV): Remove.
1723 (IS_MOV_TO_R14): Remove.
1724 (IS_RESTORE_FP): New macro.
1725 (IS_RTS): New macro.
1726 (IS_LDS): New macro.
1727 (IS_MOV_FP_SP): New macro.
1728 (IS_ADD_REG_TO_FP): New macro.
1729 (IS_ADD_IMM_FP): New macro.
1730 (sh_skip_prologue_hard_way): Remove.
1731 (sh_saved_pc_after_call): Remove.
1732 (sh_frame_chain): Remove.
1733 (sh_find_callers_reg): Remove.
1734 (sh_nofp_frame_init_saved_regs): Remove.
1735 (sh_fp_frame_init_saved_regs): Remove.
1736 (sh_init_extra_frame_info): Remove.
1737 (sh_analyze_prologue): New function.
1738 (sh_skip_prologue): Remove deprecated code. Rely on new function
1739 sh_analyze_prologue when after_prologue fails.
1740 (sh_frame_saved_pc): Remove.
1741 (sh_alloc_frame_cache): New function.
1742 (sh_frame_cache): Ditto.
1743 (sh_frame_prev_register): Ditto.
1744 (sh_frame_this_id): Ditto.
1745 (sh_frame_unwind): New structure defining the heuristic frame
1747 (sh_frame_sniffer): New function.
1748 (sh_unwind_sp): Ditto.
1749 (sh_unwind_pc): Ditto.
1750 (sh_unwind_dummy_id): Ditto.
1751 (sh_frame_base_address): Ditto.
1752 (sh_frame_base): New structure defining new frame base code.
1753 (sh_in_function_epilogue_p): New function.
1754 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1755 code and to call all new code instead. Initialize dwarf2 and
1756 heuristic frame sniffer.
1758 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1760 * parser-defs.h (struct exp_descriptor): New definition, containing
1761 language-specific info for printing, prefixifying, dumping, and
1762 evaluating expressions.
1763 (exp_descriptor_standard): Declare new variable.
1764 (print_subexp): Make global and declare here (from expprint.c).
1765 (dump_subexp): Ditto.
1766 (dump_subexp_body_standard): Declare.
1767 (operator_length_standard): Declare.
1768 (op_name_standard): Declare.
1769 (print_subexp): Declare.
1770 (print_subexp_standard): Declare.
1772 * language.h (struct language_defn): Add la_exp_desc field to hold
1773 pointer to table for language-specific operators.
1774 Remove evaluate_exp field, which is now in struct exp_descriptor.
1776 * parse.c (operator_length): Move most code to new
1777 operator_length_standard function. Use language-specific information.
1778 (operator_length_standard): New function taking most code from
1780 (exp_descriptor_standard): New constant.
1782 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1783 and OP_EXTENDED_LAST.
1785 * expprint.c (print_subexp): Use language-specific print_subexp.
1786 Make global; remove static declaration.
1787 Move most code to print_subexp_standard.
1788 (print_subexp_standard): New function, containing code formerly in
1790 (op_name): Add expression to argument signature.
1791 Use langauge-specific op_name.
1792 Move most code to op_name_standard.
1793 (op_name_standard): New function, containing code formerly in op_name.
1794 (dump_subexp): Use new version of op_name function.
1795 Use language-specific dump_subexp_body, and move most existing code to
1796 dump_subexp_body_standard.
1797 (dump_raw_expression): Use new op_name interface.
1798 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1799 (dump_subexp_body_standard): New function, containing code formerly
1800 in dump_subexp_body.
1802 * language.c (unknown_language): Add default la_exp_desc field and
1803 remove evaluate_exp field.
1804 (auto_language): Ditto.
1805 (local_language): Ditto.
1806 * f-lang.c (f_language_defn): Ditto.
1807 * c-lang.c (c_language_defn): Ditto.
1808 (cplus_language_defn): Ditto.
1809 (asm_language_defn): Ditto.
1810 (minimal_language_defn): Ditto.
1811 * p-lang.c (pascal_language_defn): Ditto.
1812 * m2-lang.c (m2_language_defn): Ditto.
1813 * objc-lang.c (objc_language_defn): Ditto.
1815 * jv-lang.c (exp_descriptor_java): New variable, containing
1816 Java-specific expression evaluator.
1817 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1819 * scm-lang.c (exp_descriptor_scm): New variable, containing
1820 Scheme-specific expression evaluator.
1821 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1823 * objc-lang.c (print_object_command): Take evaluate_exp from the
1826 * Makefile.in (eval.o): Add dependency on parser-defs.h.
1828 * eval.c: Include parser-defs.h for the full declaration of
1830 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1832 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1834 * parser-defs.h (operator_length): Declare.
1836 * parse.c (length_of_subexp): Use operator_length to get operator
1837 lengths and arities for operators.
1838 Move most code to new operator_length function.
1839 (operator_length): New function absorbing most code from
1841 (prefixify_subexp): Remove large case and use operator_length instead.
1842 (parse_exp_1): Use renamings:
1843 dump_prefix_expression => dump_raw_expression and
1844 dump_postfix_expression => dump_prefix_expression.
1846 * expression.h (dump_prefix_expression): Rename to ...
1847 (dump_raw_expression): New name.
1848 (dump_postfix_expression): Rename to ...
1849 (dump_prefix_expression): New name.
1851 * expprint.c (dump_subexp): Make global. Add comment.
1852 Move most existing code to dump_subexp_body.
1853 (dump_subexp_body): New function.
1854 (dump_prefix_expression): Rename to dump_raw_expression.
1855 Remove attempt to print the expression via print_expression: it can't
1856 work before the expression is prefixified.
1857 (dump_raw_expression): Renamed from dump_prefix_expression.
1858 (dump_postfix_expression): Rename to dump_prefix_expression, since
1859 that's what it does.
1860 Remove 'note' parameter, since this routine must be used on
1861 prefixified expression.
1862 (dump_prefix_expression): Renamed from dump_postfix_expression.
1864 2003-09-22 Jim Blandy <jimb@redhat.com>
1866 * dwarf2read.c (read_array_type): When building the type for an
1867 array of unspecified length, make sure to choose the upper bound
1868 so that the array's total length comes out to be zero --- that's
1869 how we represent such arrays.
1871 2003-09-22 Michael Chastain <mec@shout.net>
1873 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1875 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1877 * top.c (quit_force): Fix indirect call to quit_target so
1878 a struct qt_args pointer is passed.
1880 2003-09-22 Andrew Cagney <cagney@redhat.com>
1882 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1883 * arch-utils.c (init_frame_pc_noop): Delete function.
1884 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1886 * mips-tdep.c (mips_gdbarch_init): Ditto.
1887 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1888 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1890 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1891 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1893 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1895 2003-09-22 Anthony Green <green@redhat.com>
1897 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1900 2003-09-20 Andrew Cagney <cagney@redhat.com>
1902 * breakpoint.c: Eliminate ARGSUSED.
1903 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1904 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1905 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1906 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1907 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1908 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1909 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1910 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1911 * wince.c, remote-vx.c: Ditto.
1913 * cli/cli-script.c: Remove "register" attributes.
1914 * config/pa/tm-hppa.h: Ditto.
1915 * cli/cli-decode.c: Ditto.
1916 * cli/cli-cmds.c: Ditto.
1918 2003-09-19 Andrew Cagney <cagney@redhat.com>
1920 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1921 DEPRECATED_NPC_REGNUM.
1922 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1924 2003-09-19 Christopher Faylor <cgf@redhat.com>
1926 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1928 2003-09-19 Jim Blandy <jimb@redhat.com>
1930 * macrotab.c (macro_include): Use the correct comparison to find
1931 the appropriate place for this inclusion in the list.
1933 2003-09-19 Andrew Cagney <cagney@redhat.com>
1935 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1936 (DEPRECATED_HPUX_TEXT_END): Define.
1937 (deprecated_hpux_text_end): Declare.
1938 (struct target_ops): Declare opaque.
1939 * hppah-nat.c (text_end): Make static.
1940 (deprecated_hpux_text_end): New function.
1941 * exec.c (text_end): Delete global variable.
1942 (NEED_TEXT_START_END): Do not define.
1943 (exec_file_attach): Replace code computing "text_end" code with
1944 call to DEPRECATED_HPUX_TEXT_END.
1946 2003-09-19 Andrew Cagney <cagney@redhat.com>
1948 * utils.c (align_up, align_down): New functions.
1949 * defs.h (align_up, align_down): Declare.
1950 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1951 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1953 (round_up, round_down): Delete functions.
1954 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1956 (ROUND_DOWN, ROUND_UP): Delete macros.
1957 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1958 * h8300-tdep.c: Replace "round_up" and "round_down" with
1959 "align_up" and "align_down".
1960 (round_up, round_down): Delete macros.
1961 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1963 (ROUND_UP, ROUND_DOWN): Delete macros.
1965 2003-09-18 J. Brobecker <brobecker@gnat.com>
1967 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1968 hard-coded constant. Use the proper machine name instead.
1970 2003-09-17 Andrew Cagney <cagney@redhat.com>
1972 * sparc-tdep.c (legacy_register_name): Delete function.
1973 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1974 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1975 * infcmd.c (gdb_register_name): Delete variable.
1976 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1977 REGISTER_NAME and "tm.h".
1978 * gdbarch.h, gdbarch.c: Regenerate.
1979 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1980 REGISTER_NAMES in comments.
1981 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1982 * m68klinux-nat.c (regmap): Ditto.
1984 2003-09-17 Jim Blandy <jimb@redhat.com>
1986 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1988 2003-09-17 Andrew Cagney <cagney@redhat.com>
1990 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1991 (ppcnbsd_init_abi): Set "use_struct_convention" to
1992 "ppcnbsd_use_struct_convention".
1994 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1996 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1997 * gdbarch.h, gdbarch.c: Regenerate.
1998 (stabs_argument_has_addr): New architecture method.
1999 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2000 * arch-utils.c: Include "buildsym.h".
2001 (default_stabs_argument_has_addr): New function.
2002 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2003 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2005 2003-09-17 Andrew Cagney <cagney@redhat.com>
2007 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2008 * gdbarch.h, gdbarch.c: Regenerate.
2009 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2010 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2011 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2012 * sparcnbsd-tdep.c: Update.
2014 2003-09-17 Andrew Cagney <cagney@redhat.com>
2016 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2017 * gdbarch.h, gdbarch.c: Regenerate.
2018 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2019 * d10v-tdep.c, frame.c: Update.
2020 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2021 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2022 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2023 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2024 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2025 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2026 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2027 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2028 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2029 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2030 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2031 * config/pa/nm-hppah.h: Update.
2033 2003-09-16 Andrew Cagney <cagney@redhat.com>
2035 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2036 "use_struct_convention" to "ppc_linux_use_struct_convention".
2037 (ppc_linux_use_struct_convention): New function.
2038 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2039 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2040 "rs6000_use_struct_convention".
2041 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2043 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2046 2003-09-16 Andrew Cagney <cagney@redhat.com>
2048 * buildsym.c: Remove more occurances of "register".
2049 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2050 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2051 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2052 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2053 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2054 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2055 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2056 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2058 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2060 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2061 numbers to enumeration values.
2062 * sh-tdep.c: Accomodate above change.
2063 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2064 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2065 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2066 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2067 (IS_FPUSH): Rename from IS_FMOV.
2068 (sh_extract_struct_value_address): Remove useless comment.
2069 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2070 instead of own local values.
2071 (sh_dump_tdep): Remove.
2072 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2073 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2075 2003-09-15 Andrew Cagney <cagney@redhat.com>
2077 * doublest.c (convert_floatformat_to_doublest): No longer need to
2078 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2080 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2082 * values.c (unpack_double): Call floatformat_is_valid.
2084 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2086 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2087 ps_strings into a long.
2089 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2090 _initialize_am64fbsd_nat.
2092 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2094 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2095 associated with DW_AT_ranges attribute is out of bounds.
2097 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2099 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2101 2003-09-14 Michael Chastain <mec@shout.net>
2103 * config/m68k/nm-apollo68v.h: Delete.
2104 * config/m68k/xm-apollo68v.h: Delete.
2106 2003-09-14 Andrew Cagney <cagney@redhat.com>
2108 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2109 * dcache.c: Update copyrights and descriptions.
2110 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2112 2003-09-14 Andrew Cagney <cagney@redhat.com>
2114 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2115 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2117 2003-09-14 Andrew Cagney <cagney@redhat.com>
2119 * alpha-nat.c: Remove some occurances of "register".
2120 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2121 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2122 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2123 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2124 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2125 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2126 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2127 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2128 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2129 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2130 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2131 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2132 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2133 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2134 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2135 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2136 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2137 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2138 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2139 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2140 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2141 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2143 2003-09-13 Andrew Cagney <cagney@redhat.com>
2145 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2146 * ppc-tdep.h (struct regcache): Declare opaque.
2147 * objfiles.h (struct objfile_data): Declare opaque.
2148 * cp-support.h (struct objfile): Declare opaque.
2149 * linux-nat.h (target_waitstatus): Declare opaque.
2151 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2153 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2154 (stabs_argument_has_addr): New architecture method.
2155 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2156 * arch-utils.c: Include "buildsym.h".
2157 (default_stabs_argument_has_addr): New function.
2158 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2159 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2161 * cris-tdep.c (cris_gdbarch_init): Set
2162 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2163 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2164 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2165 * mips-tdep.c (mips_gdbarch_init): Likewise.
2166 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2167 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2169 2003-09-13 Andrew Cagney <cagney@redhat.com>
2171 * values.c (using_struct_return): Delete "function" and "funcaddr"
2173 * value.h (using_struct_return): Update declaration.
2174 * infcmd.c (finish_command_continuation): Update.
2175 (finish_command): Update.
2176 * infcall.c (call_function_by_hand): Update.
2177 * eval.c (evaluate_subexp_standard): Update.
2179 2003-09-13 Christopher Faylor <cgf@redhat.com>
2181 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2182 SSE registers since gdb will not operate correctly without this.
2183 Restore include file ordering munged in previous change.
2184 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2186 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2188 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2189 REG_STRUCT_HAS_ADDR.
2190 * gdbarch.c, gdbarch.h: Updated.
2191 * infcall.c (call_function_by_hand): Update.
2192 * stabsread.c (define_symbol): Updated.
2194 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2196 2003-09-12 Christopher Faylor <cgf@redhat.com>
2198 * win32-nat.c: Reorganize so that defines used by target headers are
2199 actually defined by the system headers.
2200 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2201 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2203 2003-09-12 Jim Blandy <jimb@redhat.com>
2205 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2206 the file has no .data, .bss, or .rodata sections. Instead wait
2207 until we see a variable alleged to live in one of those sections.
2209 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2210 .bss section, presume that any variables we find live in the
2213 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2214 offsets for global and static variables.
2216 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2217 symbol types are, by definition, in the .data section, so it is
2218 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2219 If there is no .data section, there should be no N_DATA or N_DATA
2222 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2224 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2225 (amd64fbsd_sigcontext_addr): Rewrite.
2226 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2227 with correct values.
2228 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2229 (amd64fbsd_init_abi): Fix typo.
2231 2003-09-12 Andrew Cagney <cagney@redhat.com>
2233 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2234 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2236 2003-09-12 Andrew Cagney <cagney@redhat.com>
2238 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2239 "entry_file_highpc". Update comments.
2240 * defs.h (deprecated_inside_entry_file): Rename
2241 "inside_entry_file".
2242 * blockframe.c (deprecated_inside_entry_file): Rename
2243 "inside_entry_file".
2244 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2245 * vax-tdep.c (vax_frame_chain): Update.
2246 * sh64-tdep.c (sh64_frame_chain): Update.
2247 * sh-tdep.c (sh_frame_chain): Update.
2248 * rs6000-tdep.c (rs6000_frame_chain): Update.
2249 * ns32k-tdep.c (ns32k_frame_chain): Update.
2250 * mips-tdep.c (mips_frame_chain): Update.
2251 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2252 * m32r-tdep.c (m32r_frame_this_id): Update.
2253 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2254 * frv-tdep.c (frv_frame_this_id): Update.
2255 * d10v-tdep.c (d10v_frame_this_id): Update.
2256 * cris-tdep.c (cris_frame_chain): Update.
2257 * blockframe.c (legacy_frame_chain_valid): Update.
2258 * avr-tdep.c (avr_frame_this_id): Update.
2259 * arm-tdep.c (arm_prologue_this_id): Update.
2260 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2261 * objfiles.c (objfile_relocate): Update.
2262 * mipsread.c (mipscoff_symfile_read): Update.
2263 (mipscoff_symfile_read): Update.
2264 * mdebugread.c (parse_partial_symbols): Update.
2265 * dwarfread.c (read_file_scope): Update.
2266 * dwarf2read.c (read_file_scope): Update.
2267 * dbxread.c (read_dbx_symtab): Update.
2268 (read_dbx_symtab): Update.
2269 * coffread.c (complete_symtab): Update.
2271 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2273 * top.c (quit_target): New static helper function.
2274 (quit_force): Moved code to quit_target(). Call quit_target()
2275 via catch_errors() to catch errors during quit.
2277 2003-09-11 David Carlton <carlton@kealia.com>
2279 * buildsym.c (finish_block): Use allocate_block to allocate the
2281 * mdebugread.c (new_block): Add FIXME.
2283 2003-09-11 David Carlton <carlton@kealia.com>
2285 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2286 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2287 (recursive_dump_type): Ditto.
2288 * printcmd.c (print_formatted): Ditto.
2289 * typeprint.c (print_type_scalar): Ditto.
2290 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2291 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2292 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2293 maint_cplus_cmd_list.
2294 * cp-support.c: Make maint_cplus_cmd_list extern.
2295 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2297 (lookup_symbol_file): Look in possible namespace blocks when
2299 (initialize_namespace_symtab): New.
2300 (get_possible_namespace_block, free_namespace_block)
2301 (check_possible_namespace_symbols)
2302 (check_possible_namespace_symbols_loop)
2303 (check_one_possible_namespace_symbol)
2304 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2305 (_initialize_cp_namespace): Ditto.
2306 * block.h: Declare allocate_block.
2307 * block.c (allocate_block): New.
2308 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2310 * symfile.h: Update declaration of add_psymbol_to_list.
2311 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2313 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2314 scan_partial_symbols_call.
2315 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2317 (add_partial_symbol): If necessary, scan mangled names for names
2319 (add_partial_namespace): Add NAMESPACE argument; generate partial
2320 symbols associated to namespaces.
2321 (add_partial_enumeration): Add NAMESPACE argument.
2322 (new_symbol): Allow namespace syms.
2323 (read_namespace): Generate namespace syms.
2324 * objfiles.h: Add opaque declaration of struct symtab.
2325 (struct objfile): Add cp_namespace_symtab member.
2326 * objfiles.c (allocate_objfile): Set
2327 objfile->cp_namespace_symtab.
2328 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2329 dictionary_h, command_h.
2331 2003-09-11 Andrew Cagney <cagney@redhat.com>
2333 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2334 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2335 near the function's end.
2336 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2337 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2338 regcache_raw_write_signed to set SP_REGNUM.
2340 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
2342 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2343 orig_addrs is set up properly.
2345 2003-09-11 Andrew Cagney <cagney@redhat.com>
2347 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2348 * gdbarch.h, gdbarch.c: Re-generate.
2349 * infcall.c (call_function_by_hand): Update.
2350 * hppa-tdep.c (hppa_push_arguments): Update.
2351 * ada-lang.c (place_on_stack): Update.
2352 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2353 * sparc-tdep.c (sparc_gdbarch_init): Update.
2354 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2355 * hppa-tdep.c (hppa_gdbarch_init): Update.
2356 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2359 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
2361 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2362 register do need a frame.
2364 2003-09-11 Andrew Cagney <cagney@redhat.com>
2366 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2367 buildable since GDB 5.0.
2368 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2369 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2370 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2371 * irix4-nat.c: Delete file.
2372 * config/mips/irix4.mh: Delete file.
2373 * config/mips/irix3.mh: Delete file.
2374 * config/mips/irix3.mt: Delete file.
2375 * config/mips/tm-irix3.h: Delete file.
2376 * config/mips/nm-irix3.h: Delete file.
2377 * config/mips/xm-irix3.h: Delete file.
2378 * config/mips/nm-irix4.h: Delete file.
2379 * config/mips/xm-irix4.h: Delete file.
2380 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2382 2003-09-10 J. Brobecker <brobecker@gnat.com>
2384 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2385 * Makefile.in (hppa-tdep.o): Update dependencies.
2387 2003-09-10 James E Wilson <wilson@specifixinc.com>
2389 * MAINTAINERS: Change my e-mail address. Move to paper trail
2392 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2394 * MAINTAINERS (frv): New ISA entry.
2396 2003-09-10 Kevin Buettner <kevinb@redhat.com>
2398 * frv-tdep.c (dis-asm.h): Include.
2399 * Makefile.in (frv-tdep.o): Update dependencies.
2401 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2403 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2404 Fix typo for high range of floating registers.
2406 2003-09-09 David Carlton <carlton@kealia.com>
2408 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2409 highpc initialization here out of scan_partial_symbols.
2410 (scan_partial_symbols): Restructure into a recursive version,
2411 calling add_partial_namespace and add_partial_enumeration when
2413 (add_partial_namespace): New.
2414 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2416 2003-09-09 Andrew Cagney <cagney@redhat.com>
2418 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2419 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2420 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2421 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2423 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2424 (rs6000_push_dummy_call): Set the "TOC" register.
2426 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2427 methods "max_register_raw_size", "max_register_virtual_size" or
2428 "register_virtual_size".
2430 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2432 * MAINTAINERS: Update my e-mail address.
2434 2003-09-09 Andrew Cagney <cagney@redhat.com>
2436 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2437 (rs6000_push_dummy_call): Store the struct return address.
2438 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2440 2003-09-09 Andrew Cagney <cagney@redhat.com>
2442 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2443 "ppc_sysv_abi_push_arguments".
2444 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2445 "ppc_sysv_abi_push_arguments".
2446 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2447 instead of "push_arguments".
2448 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2450 2003-09-09 Andrew Cagney <cagney@redhat.com>
2452 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2453 instead of CALL_DUMMY_ADDRESS.
2455 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2457 * p-lang.c: Eliminate "register".
2459 * expprint.c: Ditto.
2462 * language.c: Ditto.
2465 * scm-lang.c: Ditto.
2466 * objc-lang.c: Ditto.
2468 2003-09-09 Nick Clifton <nickc@redhat.com>
2470 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2472 2003-09-04 Andrew Cagney <cagney@redhat.com>
2474 * avr-tdep.c: Include "dis-asm.h".
2475 * cris-tdep.c: Include "dis-asm.h".
2476 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2477 instead of corresponding typedef.
2478 * h8300-tdep.c: Include "dis-asm.h".
2479 * ia64-tdep.c: Include "dis-asm.h".
2480 * i386-tdep.c: Include "dis-asm.h".
2481 (i386_print_insn): Use "struct disassemble_info" instead of
2482 corresponding typedef.
2483 * m68k-tdep.c: Include "dis-asm.h".
2484 * mcore-tdep.c: Include "dis-asm.h".
2485 * mips-tdep.c: Include "dis-asm.h".
2486 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2487 instead of corresponding typedef.
2488 * ns32k-tdep.c: Include "dis-asm.h".
2489 * s390-tdep.c: Include "dis-asm.h".
2490 * sparc-tdep.c: Include "dis-asm.h".
2491 * vax-tdep.c: Include "dis-asm.h".
2492 * v850-tdep.c: Include "dis-asm.h".
2493 * mn10300-tdep.c: Include "dis-asm.h".
2494 * rs6000-tdep.c: Include "dis-asm.h".
2495 * xstormy16-tdep.c: Include "dis-asm.h".
2496 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2497 print_insn_xstormy16.
2498 * Makefile.in (v850-tdep.o): Update dependencies.
2499 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2500 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2501 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2502 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2503 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2504 (gdbarch_h): Remove $(dis_asm_h).
2505 * disasm.c: Include "dis-asm.h".
2506 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2507 corresponding typedef.
2508 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2509 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2510 * gdbarch.sh: Do not include "dis-asm.h".
2511 (struct disassemble_info): Declare opaque.
2512 (TARGET_PRINT_INSN): Update declaration.
2513 * gdbarch.h, gdbarch.c: Re-generate.
2515 2003-09-08 Andrew Cagney <cagney@redhat.com>
2517 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2518 CALL_DUMMY_ADDRESS, change to a predicate.
2519 * gdbarch.h, gdbarch.c: Re-generate.
2520 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2521 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2522 * infcall.c (call_function_by_hand): Ditto.
2523 * sparc-tdep.c (sparc_push_return_address): Ditto.
2524 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2525 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2526 CALL_DUMMY_ADDRESS with entry_point_address.
2527 * v850-tdep.c (v850_push_return_address): Ditto.
2528 * s390-tdep.c (s390_push_return_address): Ditto.
2529 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2530 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2531 * mcore-tdep.c (mcore_push_return_address): Ditto.
2532 * cris-tdep.c (cris_push_return_address): Ditto.
2533 * arm-tdep.c (arm_push_return_address): Ditto.
2535 2003-09-08 Andrew Cagney <cagney@redhat.com>
2537 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2538 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2539 and REG_UNMODIFIED to REG_SAME_VALUE.
2540 (execute_cfa_program): Update.
2541 (dwarf2_frame_cache): Update. Initialize table to
2542 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2544 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2546 2003-09-08 Andrew Cagney <cagney@redhat.com>
2548 * gnu-nat.c: Remove "inline" function attribute.
2549 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2551 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2553 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2556 2003-09-08 Kevin Buettner <kevinb@redhat.com>
2558 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2559 (frame_extra_info): Rename this struct to frv_unwind_cache.
2560 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2561 Add fields ``prev_sp'' and ``base''.
2562 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2563 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2564 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2566 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2567 Revise all callers. Fill in the unwind cache argument and make
2568 other adjustments to account for new frame mechanisms.
2569 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2570 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2571 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2572 (frv_frame_unwind, frv_frame_base): New structs.
2573 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2574 additional arguments expected by this method and adjust function
2576 (frv_gdbarch_init): Remove calls to the following functions:
2577 set_gdbarch_deprecated_init_frame_pc(),
2578 set_gdbarch_deprecated_saved_pc_after_call(),
2579 set_gdbarch_deprecated_frame_chain(),
2580 set_gdbarch_deprecated_frame_saved_pc(),
2581 set_gdbarch_deprecated_frame_init_saved_regs(),
2582 set_gdbarch_deprecated_push_arguments(),
2583 set_gdbarch_deprecated_push_return_address(),
2584 set_gdbarch_deprecated_pop_frame(),
2585 set_gdbarch_deprecated_call_dummy_words(),
2586 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2587 set_gdbarch_deprecated_init_extra_frame_info(),
2588 set_gdbarch_deprecated_dummy_write_sp(), and
2589 set_gdbarch_deprecated_pc_in_call_dummy().
2590 Add calls to the following functions:
2591 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2592 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2593 frame_base_set_default().
2594 * Makefile.in (frv-tdep.o): Update dependencies.
2596 2003-09-09 Mark Kettenis <kettenis@gnu.org>
2598 * dwarf2-frame.c (read_encoded_value): Add support for
2599 DW_EH_PE_aligned encoding.
2601 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2603 * infrun.c (normal_stop): Don't print a message if the inferior
2606 2003-09-08 Jim Blandy <jimb@redhat.com>
2608 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2609 * dbxread.c: #include "gdb_assert.h".
2610 (read_dbx_symtab): If the objfile has no .data section, use the
2611 section index for the .bss section instead.
2613 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
2615 * frame.c (deprecated_safe_get_selected_frame): New function.
2616 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2617 * findvar.c (read_var_value): Call it.
2619 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
2621 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2622 (sh64-tdep.o): Add dependencies.
2623 * configure.tgt: Add FIXME to sh-*-linux*.
2624 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2625 (sh_gdbarch_init): Always set correct sh_show_regs function
2626 pointer. Call sh64_gdbarch_init() if machine type is sh5.
2627 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2628 * sh64-tdep.c: New file, containing all sh64 related code from
2630 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2631 * config/sh/linux.mt (TDEPFILES): Ditto.
2632 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2633 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2634 * config/sh/wince.mt (TDEPFILES): Ditto.
2636 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2638 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2639 (stop_wait_callback): Handle !lp->signalled also.
2640 (lin_lwp_has_pending, flush_callback): New functions.
2641 (lin_lwp_wait): Call flush_callback.
2642 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2643 (linux_proc_pending_signals): New function.
2644 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2646 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2648 From Nick Kelsey <nickk@ubicom.com>:
2649 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2650 when the stop PC is at the beginning of a function also.
2652 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2654 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2655 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2657 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2659 * sol-thread.c: Include "gdb_string.h".
2661 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2663 * gcore.c: Reorder include files in alphabetical order. Include
2664 "gdb_assert.h". Various coding style fixes.
2665 (derive_stack_segment, derive_heap_segment): Replace check for
2666 non-null BOTTOM and TOP with gdb_assert.
2667 (derive_heap_segment): Replace check for successful creation of
2668 ZERO with gdb_assert.
2669 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2671 2003-09-04 Andrew Cagney <cagney@redhat.com>
2673 * thread-db.c (verbose_dlsym): New function.
2674 (thread_db_load): Use verbose_dlsym
2675 (thread_db_new_objfile): Print that libthread_db was loaded, and
2676 that thread debugging was enabled.
2678 2003-09-04 Andrew Cagney <cagney@redhat.com>
2680 * configure.tgt: Add "mips64*-*-*" target. Delete
2681 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2682 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2683 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2684 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2685 mips*-sony-*, and mips64*-*-elf* targets.
2686 * config/mips/embedl.mt: Delete file.
2687 * config/mips/embedl64.mt: Delete file.
2688 * config/mips/mips.mt: Delete file.
2689 * config/mips/mips64.mt: Delete file.
2690 * config/mips/tm-embed.h: Delete file.
2691 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2692 * config/mips/embed64.mt: Delete out-of-date comment.
2694 2003-09-04 Andrew Cagney <cagney@redhat.com>
2696 * hppa-tdep.c (hppa_gdbarch_init): Set
2697 "have_nonsteppable_watchpoint".
2698 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2699 * mips-tdep.c (mips_dump_tdep): Do not print
2700 HAVE_NONSTEPPABLE_WATCHPOINT.
2701 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2702 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2703 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2704 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2706 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2708 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2709 unused code. Add comment.
2711 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2713 * breakpoint.c (watchpoint_check): Check for pc being in an
2714 epilogue if watchpoint frame couldn't be found.
2716 2003-09-04 Andrew Cagney <cagney@redhat.com>
2718 * Makefile.in: Re-generate all dependencies.
2720 2003-09-03 Andrew Cagney <cagney@redhat.com>
2722 * arch-utils.h (legacy_print_insn): Delete declaration.
2723 * arch-utils.c (legacy_print_insn): Delete function.
2724 * disasm.c (deprecated_tm_print_insn_info): Delete.
2725 (_initialize_disasm): Delete function, contained code initializing
2726 deprecated_tm_print_insn_info.
2727 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2728 (deprecated_tm_print_insn_info): Delete.
2729 (TARGET_PRINT_INSN): Do not provide a default.
2730 * gdbarch.h, gdbarch.c: Re-generate.
2732 2003-09-03 Andrew Cagney <cagney@redhat.com>
2734 * disasm.c (fprintf_disasm): New function.
2735 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2736 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2737 reverts 2003-08-14 change.
2738 (_initialize_disasm): Call "init_disassemble_info", instead of
2739 INIT_DISASSEMBLE_INFO_NO_ARCH.
2741 2003-09-03 Michael Snyder <msnyder@redhat.com>
2743 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2745 2003-09-03 Andrew Cagney <cagney@redhat.com>
2747 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2748 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2749 * symfile.c (syms_from_objfile): Update.
2750 (reread_symbols): `Update
2751 * exec.c (exec_file_attach): Update.
2752 (exec_file_attach): Update.
2753 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2755 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2757 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2759 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2761 (arm_get_cache): Delete macro.
2762 (struct arm_prologue_cache): Update comments. Make saved_regs into
2763 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2765 (thumb_scan_prologue): Update for cache changes. Don't call
2766 DEPRECATED_PC_IN_CALL_DUMMY.
2767 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2768 argument and use it in desperation search for our prologue. Do not
2769 search past the specified PC.
2770 (arm_make_prologue_cache): Simplify.
2772 (arm_prologue_this_id, arm_prologue_prev_register)
2773 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2774 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2775 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2776 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2777 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2779 (arm_frame_chain_valid, arm_find_callers_reg)
2780 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2781 (arm_pop_frame): Delete obsolete methods.
2782 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2784 (arm_gdbarch_init): Update for new frame methods. Register prologue
2785 and sigtramp unwinders. Set the default frame base method.
2787 * Makefile.in (arm-tdep.o): Update dependencies.
2788 * varobj.c (find_frame_addr_in_frame_chain): Call
2789 get_frame_base_address.
2790 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2792 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2794 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2795 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2796 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2797 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2798 Take NEXT_FRAME and CACHE arguments. Call
2799 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2800 Set unwound_pc in CACHE instead of modifying the frame argument.
2801 Don't bother checking the frame type when looking for sigtramp
2803 (arm_make_prologue_cache, arm_frame_chain)
2804 (arm_init_extra_frame_info): New functions.
2806 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2808 * arm-tdep.c (arm_get_cache): Define.
2809 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2810 unwound_sp, unwound_pc, and saved_regs.
2811 (thumb_scan_prologue): Take a cache instead of the frame.
2812 (arm_scan_prologue): Likewise.
2813 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2814 instead of a temporary frame.
2815 (arm_init_extra_frame_info): Allocate and use a cache.
2816 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2818 2003-09-03 Andrew Cagney <cagney@redhat.com>
2820 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2821 * config/mips/wince.mt (TM_CLIBS): Ditto.
2822 * config/sh/wince.mt (TM_CLIBS): Ditto.
2823 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2824 * config/sparc/sp64.mt (CC): Delete.
2826 2003-09-03 Andrew Cagney <cagney@redhat.com>
2828 * defs.h: Do not include "arch-utils.h".
2829 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2830 GDB_MULTI_ARCH_PURE.
2831 * configure.in (GDB_MULTI_ARCH): Do not define.
2832 * configure, config.in: Regenerate.
2833 * configure.tgt: Do not set variable "gdb_multi_arch".
2834 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2835 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2836 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2837 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2838 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2839 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2840 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2841 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2842 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2843 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2844 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2845 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2846 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2847 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2848 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2849 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2850 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2851 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2853 2003-08-30 Michael Chastain <mec@shout.net>
2855 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2856 * config/m68k/nm-hp300hpux.h: Delete.
2857 * config/m68k/tm-hp300hpux.h: Delete.
2858 * config/m68k/xm-hp300hpux.h: Delete.
2859 * config/m68k/xm-hp300bsd.h: Delete.
2860 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2861 tm-hp300hpux.h, xm-hp300hpux.h.
2862 * somsolib.c: Remove comment about hp300 shared libraries.
2864 2003-08-31 Mark Kettenis <kettenis@gnu.org>
2866 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2867 Only define PTRACE_GET_THREAD_AREA is not already defined.
2868 Various style fixes in code and comments and some additional
2869 spelling fixes in comments. Move after functions dealing with
2871 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2874 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2875 frame_unwind_register_unsigned instead of
2876 frame_unwind_unsigned_register.
2878 2003-08-30 Mark Kettenis <kettenis@gnu.org>
2880 * configure.in: Search for gethostbyname in libnsl.
2881 * configure: Regenerated.
2883 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2885 * configure.in: Remove redundant AC_MSG_RESULT in check for
2886 uintptr_t in stdint.h.
2887 * configure: Regenerated.
2889 * amd64-nat.h (struct regcache): Add opaque declaration.
2891 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2892 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2893 Change "register array" to "register cache" in comments.
2894 (x86_64_linux_gregset64_reg_offset): New variable.
2895 (GETREGS_SUPPLIES): Remove macro.
2896 (supply_gregset): Call amd64_supply_native_gregset instead of
2897 x86_64_linux_supply_gregset.
2898 (fill_gregset): Rename `regno' to `regnum'. Call
2899 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2900 (store_regs): Rename `regno' to `regnum'.
2901 (store_fpregs): Rename `regno' to `regnum'.
2902 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2903 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2904 Reorganize function a bit.
2905 (store_inferior_registers): Rename `regno' to `regnum'. Use
2906 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2907 Reorganize function a bit.
2908 (_initialize_x86_64_linux_nat): New function.
2909 * config/i386/x86-64linux.mh.
2911 2003-08-29 Andrew Cagney <cagney@redhat.com>
2913 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2914 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2915 (target_remove_watchpoint): Delete macro.
2916 (target_insert_watchpoint): Delete macro.
2917 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2918 (remote_mips_stopped_by_watchpoint): Delete declaration.
2919 (remote_mips_remove_watchpoint): Delete declaration.
2920 (remote_mips_set_watchpoint): Delete declaration.
2921 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2922 * remote-mips.c (_initialize_remote_mips): Set
2923 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2924 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2925 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2926 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2927 (mips_stopped_by_watchpoint): Rename
2928 remote_mips_stopped_by_watchpoint.
2929 (mips_can_hardware_watchpoint): Rename
2930 remote_mips_can_use_hardware_watchpoint, update function
2933 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2935 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2936 USER_DS. We haven't given them a register number yet.
2938 * amd64-nat.h: New file.
2939 * amd64-nat.c: New file.
2940 * amd64fbsd-nat.c: Include "amd64-nat.h".
2941 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2942 (amd64fbsd32_r_reg_offset): New variable.
2943 (supply_gregset): Simply call amd64_supply_native_gregset.
2944 (fill_gregset): Rename `regno' to `regnum'. Simply call
2945 amd64_collect_native_gregset.
2946 (fill_fpregset): Rename `regno' to `regnum'.
2947 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2948 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2949 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2950 `fpregset_t'. Call amd64_supply_native_gregset instead of
2951 supply_gregset. Call x86_64_supply_fxsave instead of
2953 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2954 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2955 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2956 `fpregset_t'. Call amd64_collect_native_gregset instead of
2957 fill_gregset. Call x86_64_collect_fxsave instead of
2959 (_initialize_am64fbsd_nat): Initialize
2960 amd64_native_gregset32_reg_offset and
2961 amd64_native_gregset64_reg_offset.
2962 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2964 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2965 null pointer. Fix typo in comment.
2967 * regcache.c (supply_register): Reimplement to call
2968 regcache_raw_supply.
2969 (regcache_collect): Reimplement by calling regcache_raw_collect.
2971 2003-08-28 Mark Kettenis <kettenis@gnu.org>
2973 * regcache.c (register_buffer): Consitify first argument.
2974 (regcache_raw_supply, regcache_raw_collect): New
2977 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2979 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2980 by Nathan J. Williams.
2982 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2984 * lin-lwp.c (wait_lwp): New function, copied from
2985 stop_wait_callback. Clean up.
2986 (stop_wait_callback): Use wait_lwp.
2988 2003-08-28 Andrew Cagney <cagney@redhat.com>
2990 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2991 flavour and disassembler options.
2992 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2993 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2994 deprecated_tm_print_insn_info.
2996 2003-08-27 Andrew Cagney <cagney@redhat.com>
2998 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2999 Use target_read_memory.
3000 (s390_get_frame_info): Update. Do not reference
3001 deprecated_tm_print_insn_info.
3002 (s390_check_function_end, s390_is_sigreturn): Ditto.
3004 2003-08-27 Andrew Cagney <cagney@redhat.com>
3006 * Makefile.in (cris-tdep.o): Update dependencies.
3007 * cris-tdep.c: Include "gdb_assert.h".
3008 (cris_gdbarch_init): Set print_insn.
3009 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3010 (cris_delayed_get_disassembler): Simplify, directly call the
3011 disassembler returned by cris_get_disassembler.
3012 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3013 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3014 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3015 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3016 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3017 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3018 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3019 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3020 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3021 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3022 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3023 (gdb_print_insn_sparc): Delete function.
3024 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3025 deprecated_tm_print_insn_info.
3026 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3027 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3028 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3029 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3030 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3031 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3032 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3033 (s390_gdbarch_init): Set print_insn.
3035 2003-08-27 Andrew Cagney <cagney@redhat.com>
3037 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3038 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3039 * infcall.c (call_function_by_hand): Convert the entry point
3040 address into a code address.
3042 2003-08-27 Andrew Cagney <cagney@redhat.com>
3044 * dsrec.c: Include "gdb_string.h".
3045 * Makefile.in (dsrec.o): Update dependencies.
3047 2003-08-27 Michael Chastain <mec@shout.net>
3049 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3051 2003-08-27 Andrew Cagney <cagney@redhat.com>
3053 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3054 (alpha_osf1_init_abi): Do not set call_dummy_address.
3056 2003-08-27 David Carlton <carlton@kealia.com>
3058 From Randolph Chung <tausq@debian.org>:
3059 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3060 compiles with -Wformat-nonliteral -Werror.
3062 2003-08-26 Jim Blandy <jimb@redhat.com>
3064 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3065 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3066 bfd_lookup_symbol, since we only want symbols in code sections.
3067 (look_for_base): Pass zero as the SECT_FLAGS argument to
3068 bfd_lookup_symbol, since we're not concerned about which section
3071 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3073 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3074 we are frameless or the return address register is already known.
3076 2003-08-26 Andrew Cagney <cagney@redhat.com>
3078 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3079 in size. Add comments.
3081 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3083 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3084 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3086 2003-08-26 Jason Merrill <jason@redhat.com>
3088 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3089 case out of #ifdef MIPS block.
3091 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3094 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3095 available before calling SECT_OFF_TEXT.
3096 * PROBLEMS: Remove description of java/1322.
3098 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3100 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3101 bof, and nat0-nat127 as pseudo-registers.
3102 (ia64_frame_cache): New struct used to cache frame info.
3103 (ia64_register_reggroup_p): New routine used to override default
3104 register grouping so registers without names are still saved and
3106 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3108 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3109 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3110 (ia64_alloc_frame_cache): New routine to create a new
3112 (examine_prologue): Change prototype to add next_frame pointer.
3113 Assume frameless until otherwise proven. Verify that the cfm for
3114 current frame matches the cfm that should occur for the prologues
3115 alloc insn and if equal, mark as not frameless. At end of routine,
3116 if not frameless, calculate registers for the previous frame and store
3117 in the cache, if a cache is provided.
3118 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3119 and pass 0 for next_frame.
3120 (ia64_store_return_value): Change to use convert_typed_floating()
3121 instead of calling ia64_convert_to_raw().
3122 (ia64_extract_return_value): Change to use convert_typed_floating()
3123 instead of calling ia64_convert_to_virtual().
3124 (ia64_frame_cache): New routine to support new frame model.
3125 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3126 (ia64_frame_sniffer): Ditto.
3127 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3128 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3129 (ia64_sigtramp_frame_prev_register): Ditto.
3130 (ia64_sigtramp_frame_sniffer): Ditto.
3131 (ia64_frame_base_address): Ditto.
3132 (ia64_extract_struct_value_address): Change to issue error message.
3133 (ia64_frame_align): New routine to align sp.
3134 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3135 (ia64_push_arguments): Removed. Logic moved to
3136 ia64_push_dummy_call().
3137 (ia64_push_return_address): Ditto.
3138 (ia64_unwind_dummy_id): New function.
3139 (ia64_unwind_pc): Ditto.
3140 (ia64_convert_register_p): Ditto.
3141 (ia64_register_to_value): Ditto.
3142 (ia64_value_to_register): Ditto.
3143 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3144 (ia64_register_byte, ia64_register_raw_size): Ditto.
3145 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3146 (ia64_saved_pc_after_call): Ditto.
3147 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3148 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3149 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3150 (ia64_register_convert_to_raw): Ditto.
3151 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3152 (ia64_init_extra_frame_info): Ditto.
3153 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3154 (ia64_gdbarch_init): Remove registering of deprecated functions that
3155 are no longer used. Add registration of new gdbarch functions.
3156 Remove registering deprecated_write_sp. Replace
3157 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3158 Delete set_gdbarch_deprecated_register_convertible(),
3159 set_gdbarch_deprecated_register_convert_to_virtual(), and
3160 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3161 set_gdbarch_deprecated_register_size(),
3162 set_gdbarch_deprecated_register_bytes(),
3163 set_gdbarch_pcregnum(),
3164 set_gdbarch_deprecated_register_byte(),
3165 set_gdbarch_deprecated_register_raw_size(),
3166 set_gdbarch_deprecated_max_register_raw_size(),
3167 set_gdbarch_deprecated_register_virtual_size(),
3168 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3169 Replace set_gdbarch_deprecated_extract_return_value() with
3170 set_gdbarch_extract_return_value(). Remove calls to:
3171 set_gdbarch_deprecated_saved_pc_after_call();
3172 set_gdbarch_deprecated_frame_chain(),
3173 set_gdbarch_deprecated_frame_saved_pc(),
3174 set_gdbarch_deprecated_frame_init_saved_regs(),
3175 set_gdbarch_deprecated_get_saved_register(),
3176 set_gdbarch_deprecated_call_dummy_words(),
3177 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3178 set_gdbarch_deprecated_init_extra_frame_info(),
3179 set_gdbarch_deprecated_frame_args_address(),
3180 set_gdbarch_deprecated_frame_locals_address(),
3181 and set_gdbarch_deprecated_dummy_write_sp().
3182 Add set_gdbarch_convert_register_p(),
3183 set_gdbarch_register_to_value(),
3184 set_gdbarch_value_to_register(),
3185 set_gdbarch_push_dummy_call(),
3186 set_gdbarch_frame_align(),
3187 set_gdbarch_unwind_dummy_id(),
3188 set_gdbarch_unwind_pc(),
3189 frame_unwind_append_sniffer(),
3190 frame_unwind_append_sniffer(),
3191 and frame_base_set_default().
3193 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3195 * configure.tgt: Document need for special "mipsisa64" handling.
3196 (mipsisa64*-*-linux64): Handle as target linux64.
3197 (mipsisa64*-*-*): Handle as target embed64.
3199 2003-08-18 Michael Chastain <mec@shout.net>
3201 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3204 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3206 * i387-tdep.h: Update copyright date.
3207 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3209 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3210 CFLAGS games to reflect reality.
3212 2003-08-24 Andrew Cagney <cagney@redhat.com>
3214 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3215 GDB_MULTI_ARCH is always non-zero.
3216 * osabi.c (_initialize_gdb_osabi): Ditto.
3217 (gdbarch_init_osabi): Ditto.
3218 * sparc-tdep.c: Ditto for #if code.
3220 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3222 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3224 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3226 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3227 x86_64_supply_fxsave.
3228 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3229 x86_64_supply_fxsave.
3230 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3231 x86_64_supply_fxsave.
3233 2003-08-23 Andreas Jaeger <aj@suse.de>
3235 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3238 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3240 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3241 i387_supply_register.
3242 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3243 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3245 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3247 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3249 * i386bsd-nat.c (supply_fpregset): Adjust call to
3251 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3252 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3254 (store_inferior_registers): Remove extraneous whitespace. Call
3255 i387_fill_fsave instead of fill_fpregset.
3256 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3257 (supply_fpregset): Likewise.
3258 * i386v4-nat.c (supply_fpregset): Adjust call to
3260 * i386-interix-nat.c (supply_fpregset): Adjust call to
3262 * i386-linux-nat.c (supply_fpregset): Adjust call to
3264 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3265 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3266 i387supply_fsave and i387_supply_fxsave.
3267 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3268 Incorporate code from `i387_supply_register.
3269 (i387_supply_register): Remove.
3270 (i387_supply_fxsave): Add `regnum' argument.
3272 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3274 (i387_supply_register): remove prototype.
3277 2003-08-22 Michael Chastain <mec@shout.net>
3279 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3280 Add lines for files in gdb/testsuite/gdb.cp/* that are
3281 still not 8.3 unique.
3283 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
3285 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3286 TYPE_VPTR_FIELDNO is valid.
3288 2003-08-19 Mark Kettenis <kettenis@gnu.org>
3290 * utils.c (set_width_command): Remove prototypes.
3291 (set_screen_size): New prototype.
3292 (init_page_info): Simplify by fetching the screen size from
3293 Readline. Call set_screen_size.
3294 (set_screen_size): New function.
3295 (set_width): Add missing whitespace in comment.
3296 (set_width_command): Call set_screen_size.
3297 (set_height_command): New function.
3298 (initialize_utils): Fix formatting. Make "set height" command
3299 call set_height_command. Remove redundant code that turns off
3300 pagination if output isn't a terminal. Remove redundant call to
3303 2003-08-22 Mark Kettenis <kettenis@gnu.org>
3305 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3306 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3307 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3308 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3310 (sparc64_register_info): Give the reister with number
3311 SPARC64_STATE_REGNUM a name.
3312 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3314 (sparc64_push_dummy_call): Take BIAS into account when checking
3316 (sparc_software_single_step): Remove assertions that check whether
3317 NPC and NNPC were zero.
3318 (sparc_supply_rwindow): Make public. Merge functionality with
3319 sparc64_supply_rwindow.
3320 (sparc_fill_rwindow): Make public. Merge functionality with
3321 sparc64_fill_rwindow.
3322 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3323 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3324 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3325 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3326 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3328 * reggroups.c: Add whitespace after declarations of local
3329 variables in functions.
3331 2003-08-21 Michael Chastain <mec@shout.net>
3333 * gdbtypes.h: Change array bound type from an int to enum.
3335 2003-08-21 Andrew Cagney <cagney@redhat.com>
3337 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3338 * config/sparc/tm-sparc.h: Ditto.
3339 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3341 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3343 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3345 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3346 (register_objfile_data, set_objfile_data, objfile_data): New
3348 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3350 (allocate_objfile): Call objfile_alloc_data.
3351 (free_objfile): Call objfile_free_data.
3352 (struct objfile_data): New.
3353 (struct objfile_data_registration): New.
3354 (struct objfile_data_registry): New.
3355 (objfile_data_registry): New variable.
3356 (register_objfile_data): New function.
3357 (objfile_alloc_data, objfile_free_data): New functions.
3358 (set_objfile_data, objfile_data): New functions.
3359 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3360 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3361 (_initialize_dwarf2_frame): New function and prototype.
3363 2003-08-21 Andrew Cagney <cagney@redhat.com>
3365 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3366 a specific architecture.
3367 * arch-utils.h (set_architecture_from_arch_mach): Delete
3369 (target_architecture_hook): Delete declaration.
3370 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3371 (default_float_format): Assume GDB_MULTI_ARCH.
3372 (default_double_format): Assume GDB_MULTI_ARCH.
3373 (set_endian_from_file): Delete function.
3374 (arch_ok): Delete function.
3375 (set_arch): Delete function.
3376 (set_architecture_from_arch_mach): Delete function.
3377 (set_architecture_from_file): Delete function.
3378 (set_architecture): Assume GDB_MULTI_ARCH.
3379 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3381 2003-08-21 Mark Kettenis <kettenis@gnu.org>
3383 Rewrite FreeBSD/sparc64 native configuration.
3384 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3385 * sparc64fbsd-nat.c: New file.
3386 * sparc64fbsd-tdep.c: New file.
3387 * sparc64-tdep.c sparc64-tdep.h: New files.
3388 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3389 sparc64fbsd-tdep.o): New dependencies.
3390 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3391 and sparc64fbsd-tdep.c.
3392 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3393 * config/sparc/fbsd.mh: Remove copyright notice.
3394 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3396 * config/sparc/fbsd.mt: Remove copyright notice.
3397 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3398 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3399 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3400 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3401 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3402 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3403 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3404 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3406 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3407 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3409 2003-08-21 Michael Chastain <mec@shout.net>
3411 * symtab.h: Add doco on the space critical structures and
3412 some measurements of space usage.
3414 2003-08-21 Michael Snyder <msnyder@redhat.com>
3416 * tracepoint.c (trace_dump_command): Trace break address
3417 is subject to DECR_PC_AFTER_BREAK.
3418 (set_traceframe_context): Make "trace_line" an int.
3419 Fixes suggested by Mark Newman <mark.newman@lmco.com>
3421 2003-08-20 Michael Snyder <msnyder@redhat.com>
3423 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
3424 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3425 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
3427 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
3428 functions, replace sh_push_dummy_call.
3429 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3431 2003-08-20 Michael Chastain <mec@shout.net>
3433 * gdbtypes.h (struct main_type): Rearrange to save space.
3435 2003-08-20 Michael Snyder <msnyder@redhat.com>
3437 * trad-frame.c: Comment typo fix.
3439 2003-08-20 Michael Snyder <msnyder@redhat.com>
3440 Kevin Buettner <kevinb@redhat.com>
3442 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3443 (frv_frame_init_saved_regs): Add declaration.
3444 (frame_extra_info): Add new field ``saved_regs''.
3445 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3446 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3447 Update frame related code.
3448 (frv_extract_struct_value_address): Adjust formatting.
3449 * Makefile.in (frv-tdep.o): Update dependencies.
3450 * config/frv/tm-frv.h (target_insert_watchpoint)
3451 (target_remove_watchpoint, target_insert_hw_breakpoint)
3452 (target_remove_hw_breakpoint): Delete these macros.
3453 (remote_insert_watchpoint, remote_remove_watchpoint)
3454 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3457 2003-08-20 Michael Chastain <mec@shout.net>
3459 * defs.h (ENUM_BITFIELD): New macro.
3460 * symtab.h (ENUM_BITFIELD): Use it.
3461 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3463 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3465 * MAINTAINERS (write after approval): Add myself.
3467 2003-08-18 Andrew Cagney <cagney@redhat.com>
3469 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3470 * gdbarch.h, gdbarch.c: Re-generate.
3471 * infcall.c (call_function_by_hand): Adjust the SP by
3472 frame_red_zone_size before allocating any stack space.
3473 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3474 * x86-64-tdep.c (x86_64_frame_align): New function.
3475 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3477 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3478 Remove code adjusting SP so that it skips over the Red Zone.
3480 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3482 * NEWS (New native configurations): Mention FreeBSD/amd64.
3484 2003-08-18 Andrew Cagney <cagney@redhat.com>
3486 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3487 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3489 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3491 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3493 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3495 2003-08-18 Michal Ludvig <mludvig@suse.cz>
3497 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3499 * i386-linux-nat.c: Include "linux-nat.h".
3500 (child_post_startup_inferior): New function.
3502 2003-08-18 Mark Kettenis <kettenis@gnu.org>
3504 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3505 at the start of a frameless function. This probably fixes PR
3508 2003-08-17 Michael Chastain <mec@shout.net>
3510 * symfile.c (find_sym_fns): Remove special case for apollo target.
3512 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3514 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3515 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3516 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3517 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3518 (linux_supports_tracevforkdone): New function.
3519 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3521 (child_follow_fork): Handle vfork.
3522 (linux_handle_extended_wait): Likewise. Also handle exec.
3523 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3524 * NEWS: Mention fork tracing.
3526 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3528 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3530 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
3532 * Makefile.in (i386-linux-nat.o): Update dependencies.
3533 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3534 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3535 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3536 * i386-linux-nat.c: Include "linux-nat.h".
3537 (child_post_startup_inferior): New function.
3538 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3539 * infptrace.c (kill_inferior): Wrap in #ifdef.
3540 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3541 attaching to each LWP.
3542 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3543 (init_lin_lwp_ops): Fill in some more operations.
3544 * linux-nat.h (linux_enable_event_reporting)
3545 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3547 * linux-nat.c (linux_enable_event_reporting): New function.
3548 (child_post_attach, linux_child_post_startup_inferior)
3549 (child_post_startup_inferior, child_follow_fork)
3550 (linux_handle_extended_wait, kill_inferior): New functions.
3552 2003-08-16 Andrew Cagney <cagney@redhat.com>
3554 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3555 * gdbarch.h, gdbarch.c: Re-generate.
3557 2003-08-16 Mark Kettenis <kettenis@gnu.org>
3559 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3561 2003-08-16 Andrew Cagney <cagney@redhat.com>
3563 * NEWS: Mention that "set prompt-escape-char" was deleted.
3564 * top.c (get_prompt_1): Delete function.
3565 (gdb_prompt_escape):
3566 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3567 prompt-escape-char" command.
3568 (MAX_PROMPT_SIZE): Delete macro.
3569 (get_prompt): Simplify, do not call get_prompt_1.
3571 2003-08-16 Andrew Cagney <cagney@redhat.com>
3573 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3574 -Werror. -Wformat-nonliteral problems.
3576 2003-08-15 J. Brobecker <brobecker@gnat.com>
3578 Further multiarching work mostly for hppa64-*-hpux11:
3579 * hppa-tdep.h: New file.
3580 * hppa-tdep.c: #include hppa-tdep.c.
3581 (hppa32_num_regs): Renamed from hppa_num_regs.
3582 (hppa64_num_regs): New constant.
3583 (hppa64_call_dummy_breakpoint_offset): New constant.
3584 (hppa32_call_dummy_length): New constant.
3585 (hppa64_call_dummy_length): New constant.
3586 (hppa32_stack_align): Make name 32bit explicit.
3587 (hppa32_register_virtual_type): Likewise.
3588 (hppa32_extract_return_value): Likewise.
3589 (hppa32_use_struct_convention): Likewise.
3590 (hppa32_store_return_value): Likewise.
3591 (hppa64_register_virtual_type): New function.
3592 (hppa64_extract_return_value): New function.
3593 (hppa64_use_struct_convention): New function.
3594 (hppa64_store_return_value): New function.
3595 (hppa_frame_locals_address): Remove declaration, function does
3597 (hppa_register_byte): Add support for PA64 ABI.
3598 (hppa_gdbarch_init): Add support for PA64 ABI.
3599 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3600 Make name 32bit explicit.
3601 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3602 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3603 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3604 (hppa64_hpux_frame_base_before_sigtramp): New function.
3605 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3606 * config/pa/tm-hppa64.h: Remove macros that are no longer
3607 necessary now that the gdbarch vector is properly setup.
3608 Transform some macros into function calls. Some minor cleanup.
3609 * config/pa/tm-hppah.h: Update function calls in macros
3610 following the function renaming in hppa-hpux-tdep.c.
3611 * Makefile.in (hppa_tdep_h): New variable.
3612 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3614 2003-08-14 Michael Snyder <msnyder@redhat.com>
3616 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3618 2003-08-13 J. Brobecker <brobecker@gnat.com>
3620 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3621 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3624 2003-08-13 Michael Snyder <msnyder@redhat.com>
3626 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3627 (frv_saved_pc_after_call): Use deprecated ftype.
3628 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3629 (frv_remote_translate_xfer_address): Remove.
3630 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3632 2003-08-13 J. Brobecker <brobecker@gnat.com>
3634 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3635 initialization after the common gdbarch initialization, not before.
3637 2003-08-13 J. Brobecker <brobecker@gnat.com>
3639 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3640 (ADDR_BITS_REMOVE): Remove, redundant.
3642 2003-08-13 J. Brobecker <brobecker@gnat.com>
3644 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3645 gdbarch method to clear the 2 low bits of text addresses.
3647 2003-08-12 Andrew Cagney <cagney@redhat.com>
3649 * Makefile.in (dsrec.o): Update dependencies.
3650 * dsrec.c: Include "gdb_assert.h".
3651 (make_srec): Use snprintf instead of sprintf, use a literal format
3654 2003-08-12 Andrew Cagney <cagney@redhat.com>
3656 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3657 FRAME_OBSTACK_ZALLOC.
3659 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3661 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3664 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3666 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3667 amd64fbsd_sc_reg_offset): Add extern declarations.
3668 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3671 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3673 * MAINTAINERS (write after approval): Update my mail address.
3675 2003-08-10 Andrew Cagney <cagney@redhat.com>
3677 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3679 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3681 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3682 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3683 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3684 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3685 i386bsd_sc_reg_offset): Add extern declarations.
3686 * i386obsd-nat.c: Include "i386-tdep.h"
3687 (_initialize_i386obsd_nat): Remove extern declarations.
3688 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3690 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3693 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3694 instead of frame_read_register.
3695 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3696 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3698 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3699 instead of frame_unwind_unsigned_register. Use
3700 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3701 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3702 instead of read_register. Use builtin_type_void_data_ptr instead
3703 of builtin_type_void_func_ptr when extracting the address of the
3705 (i386_extract_return_value, i386_store_return_value,
3706 i386_pseudo_register_read, i386_pseudo_register_write): Use
3707 register_size instead REGISTER_RAW_SIZE.
3709 2003-08-10 Andrew Cagney <cagney@redhat.com>
3711 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3712 sprintf. Make "name" constant.
3714 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3716 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3717 instead of frame_read_register.
3718 (i387_print_float_info): Use get_frame_register and
3719 get_frame_register_unsigned instead of frame_register_read.
3721 * i386fbsd-nat.c: Include "i386-tdep.h".
3722 (child_resume): Make `eflags' an ULONGEST. Use
3723 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3724 instead of register_read and register_write.
3726 * i386bsd-nat.c (fetch_inferior_registers,
3727 store_inferior_registers): Don't use && at the end of a line.
3728 (_initialize_i386bsd_nat): Fix typo.
3730 * frame.c (_initialize_frame): Add missing backslash.
3732 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3733 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3734 and supply_register instead of manipulating the register buffer
3737 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3738 * config/i386/nm-i386sol2.h
3739 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3741 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3742 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3743 instructions that GCC likes to mingle into the prologue. Fixes
3744 gdb/1253 and gdb/1255.
3746 2003-08-09 Andrew Cagney <cagney@redhat.com>
3749 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3750 * command.h (add_setshow_uinteger_cmd): Declare.
3751 * frame.c (set_backtrace_cmd): New function.
3752 (show_backtrace_cmd): New function.
3753 * frame.c (_initialize_frame): Replace "set/show
3754 backtrace-below-main" with "set/show backtrace past-main". Add
3755 command "set/show backtrace limit".
3756 (backtrace_past_main): Rename "backtrace_below_main".
3757 (backtrace_limit): New variable.
3758 (get_prev_frame): Update. Check the backtrace_limit.
3760 2003-08-09 Andrew Cagney <cagney@redhat.com>
3762 * defs.h (xstrprintf): Declare.
3763 * utils.c (xstrprintf): New function.
3764 * breakpoint.c (insert_breakpoints): Replace sprintf and
3765 non-literal format strings, with xstrprintf and cleanups.
3766 (delete_breakpoint,breakpoint_re_set): Ditto.
3767 (commands_command, insert_breakpoints): Ditto.
3768 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3769 (break_at_finish_command_1): Ditto.
3771 2003-08-09 Andrew Cagney <cagney@redhat.com>
3773 * MAINTAINERS (language support): List Adam Fedor as Objective C
3776 2003-08-08 J. Brobecker <brobecker@gnat.com>
3778 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3779 are now multiarched.
3781 2003-08-08 J. Brobecker <brobecker@gnat.com>
3783 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3784 longer necessary now that hppa64 is partially multiarch'ed.
3786 2003-08-08 Andrew Cagney <cagney@redhat.com>
3788 * interps.c (interp_set): Check for a NULL "old_interp".
3790 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3792 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3793 (install-only): Support DESTDIR.
3794 (uninstall): Likewise.
3795 (install-gdbtk): Likewise.
3797 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
3799 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3800 contains something meaningful at all times.
3802 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
3804 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3806 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3808 * MAINTAINERS (write after approval): Added self.
3810 2003-08-07 Andrew Cagney <cagney@redhat.com>
3812 * inferior.h (AT_SYMBOL): Define.
3813 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3814 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3815 * mips-tdep.c (mips_call_dummy_address): Delete function.
3816 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3817 set call_dummy_address.
3819 2003-08-07 Andrew Cagney <cagney@redhat.com>
3821 * language.c (op_error): Delete function.
3822 (binop_type_check): Delete function.
3823 * language.h (type_op_error, range_op_error): Delete macros.
3824 (op_error): Delete declaration.
3826 2003-08-07 Andrew Cagney <cagney@redhat.com>
3828 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3830 2003-08-07 Michal Ludvig <mludvig@suse.cz>
3832 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3833 (x86_64_push_arguments): Skip the red zone.
3835 2003-08-05 Andrew Cagney <cagney@redhat.com>
3837 * reggroups.c (reggroup_next): Check for the final entry.
3839 2003-08-04 Andrew Cagney <cagney@redhat.com>
3841 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3842 * cli/cli-script.c (define_command): Call query directly, instead
3843 of passing it a buffer.
3844 * ocd.c (ocd_error): Pass error a constant format string.
3845 * remote-mips.c (mips_error): Use fputs_filtered.
3847 * solib-svr4.c (_initialize_svr4_solib): Update
3848 register_gdbarch_data call.
3849 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3851 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3852 (register_gdbarch_data): Delete "free" parameter. Update
3854 * gdbarch.h, gdbarch.c: Re-generate.
3855 * reggroups.c (_initialize_reggroup): Update.
3856 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3857 * frame-base.c (_initialize_frame_base): Update.
3858 * frame-unwind.c (_initialize_frame_unwind): Update.
3859 * user-regs.c (_initialize_user_regs): Update.
3860 * remote.c (_initialize_remote): Update.
3861 * regcache.c (_initialize_regcache): Update.
3863 * regcache.c (xfree_regcache_descr): Delete function.
3864 (_initialize_regcache): Update call to register_gdbarch_data.
3865 (init_regcache_descr, init_legacy_regcache_descr): Use
3866 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3868 * remote.c (free_remote_state): Delete function.
3869 (_initialize_remote): Update register_gdbarch_data.
3870 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3871 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3873 2003-08-04 Andrew Cagney <cagney@redhat.com>
3875 * reggroups.c (struct reggroup_el): Define.
3876 (struct reggroups): Delete field "nr_group". Replace array
3877 "group" with a "first" to "last" linked list.
3878 (reggroups_init): Update. Allocate using gdbarch's obstack.
3879 (reggroups_free): Delete function.
3880 (add_group): Update. Add "el" parameter.
3881 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3882 (default_groups): Update.
3883 (reggroup_next): Replace reggroups.
3884 (reggroups_dump): Update.
3885 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3886 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3887 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3889 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
3891 * Makefile.in (tui-interp.o): Update dependencies.
3893 2003-08-04 David Carlton <carlton@kealia.com>
3895 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3896 to internal_error call.
3897 * source.c (forward_search_command): Add "%s" format argument.
3898 (reverse_search_command): Ditto.
3899 * top.c (quit_confirm): Ditto.
3900 * cli/cli-setshow.c (do_setshow_command): Ditto.
3901 * cp-valprint.c (cp_print_class_method): Replace
3902 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3903 (cp_print_class_member): Ditto.
3904 * event-top.c (command_line_handler): Ditto.
3905 * linux-proc.c (linux_info_proc_cmd): Ditto.
3906 * p-typeprint.c (pascal_type_print_base): Ditto.
3907 * p-valprint.c (pascal_object_print_class_method): Ditto.
3908 (pascal_object_print_class_member): Ditto.
3909 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3910 * remote.c (remote_cisco_section_offsets): Ditto.
3911 * top.c (command_line_input): Ditto.
3912 * utils.c (vwarning,error_stream,quit): Ditto.
3913 * valprint.c (print_floating,print_binary_chars)
3914 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3916 2003-08-04 Andrew Cagney <cagney@redhat.com>
3918 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3920 2003-08-02 Andrew Cagney <cagney@redhat.com>
3922 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3923 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3926 2003-08-02 Andrew Cagney <cagney@redhat.com>
3928 * Makefile.in: Update all dependencies and definitions.
3930 2003-08-02 Adam Fedor <fedor@gnu.org>
3932 * linespec.c (is_objc_method_format): New function
3933 (decode_line_1, locate_first_half): Use it.
3936 2003-08-01 Andrew Cagney <cagney@redhat.com>
3938 * NEWS: Mention that m32r is multi-arch.
3939 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3940 * configure.tgt: Recognize m32r-*-*.
3941 * config/m32r/tm-m32r.h: Delete file.
3942 * config/m32r/m32r.mt: New file.
3943 * m32r-rom.c (m32r_upload_command): Use hostent only when
3944 gethostname succeeds, in order to avoid a compilation
3946 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3949 2003-08-01 Michael Snyder <msnyder@redhat.com>
3951 * sh-tdep.c (sh_frame_align): New gdbarch method.
3952 (sh_gdbarch_init): Set up frame_align method.
3954 2003-07-31 Michael Snyder <msnyder@redhat.com>
3956 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3957 which is already covered by the new frames infrastructure.
3959 2003-07-31 Andrew Cagney <cagney@redhat.com>
3961 * user-regs.c (struct user_reg): Add "next" link.
3962 (struct user_regs): Replace "user" with "first" and "last" links.
3963 (append_user_reg): Add pre-allocated "reg" parameter.
3964 (builtin_user_regs): Provide initial value for "last".
3965 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3966 (user_regs_init): Allocate memory from the gdbarch obstack.
3967 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3968 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3970 (usernum_to_user_reg): New function.
3971 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3972 (value_of_user_reg): Use usernum_to_user_reg.
3973 (user_regs_free): Delete function.
3974 (_initialize_user_regs): Update register_gdbarch_data call.
3976 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
3978 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3980 2003-07-30 Michael Snyder <msnyder@redhat.com>
3982 * value.h (value_being_returned): Add a struct_addr argument.
3983 * infcall.c (call_function_by_hand): Pass struct_addr to
3984 value_being_returned.
3985 * infcmd.c (print_return_value): Pass zero as struct_addr.
3986 * values.c (value_being_returned): If struct_addr is passed,
3987 use it instead of trying to recover it from the inferior.
3989 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3991 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3992 the prologue analyzer won't need to attempt to extract the pc
3993 value from the woefully incomplete dummy frame.
3994 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3995 possible. Disable code which modifies the frame.
3997 2003-07-28 Andrew Cagney <cagney@redhat.com>
3999 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4001 (annotate_breakpoints_table, annotate_record): Ditto.
4002 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4003 (annotate_field_name_end, annotate_field_value): Ditto.
4004 (annotate_field_end, annotate_frame_source_begin): Ditto.
4005 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4006 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4007 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4008 (annotate_frame_address_end, annotate_frame_address): Ditto.
4009 (annotate_frame_args, annotate_frame_end): Ditto.
4010 (annotate_frame_where, annotate_arg_begin): Ditto.
4011 (annotate_arg_name_end, annotate_arg_value): Ditto.
4012 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4013 (annotate_function_call, annotate_signal_name): Ditto.
4014 (annotate_signal_string, annotate_signal_name_end): Ditto.
4015 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4016 (annotate_value_begin, annotate_value_history_value): Ditto.
4017 (annotate_value_history_end, annotate_value_end): Ditto.
4018 (annotate_display_begin, annotate_display_number_end): Ditto.
4019 (annotate_display_format, annotate_display_expression): Ditto.
4020 (annotate_display_expression_end, annotate_display_value): Ditto.
4021 (annotate_display_end, annotate_array_section_begin): Ditto.
4022 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4023 (annotate_elt, annotate_array_section_end): Ditto.
4025 2003-07-28 Andrew Cagney <cagney@redhat.com>
4027 * regcache.c (struct regcache_descr): Update comments on
4029 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4030 sizeof_raw_register_valid_p.
4031 (init_regcache_descr): Set nr_raw_registers and
4032 sizeof_raw_register_valid_p before calling
4033 init_legacy_regcache_descr.
4035 2003-07-28 Andrew Cagney <cagney@redhat.com>
4037 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4040 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4042 * thread.c (info_threads_command): Use get_selected_frame ().
4043 Check that there is at least one non-sentinel frame.
4045 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4047 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4048 (m68hc11_pop_frame): Remove.
4049 (m68hc11_frame_saved_pc): Remove.
4050 (m68hc11_frame_chain): Remove.
4051 (m68hc11_frame_init_saved_regs): Remove.
4052 (m68hc11_init_extra_frame_info): Remove.
4053 (m68hc11_store_struct_return): Remove.
4054 (m68hc11_saved_pc_after_call): Remove.
4056 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4058 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4059 frame unwind information.
4060 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4061 and adapted for frame unwinding.
4062 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4063 (m68hc11_unwind_pc): New function.
4064 (m68hc11_frame_unwind_cache): New function to analyze frames.
4065 (m68hc11_frame_this_id): New function to create new frame struct.
4066 (m68hc11_frame_prev_register): New function to unwind a register from
4068 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4069 (m68hc11_frame_p): New function for the above.
4070 (m68hc11_frame_base_address): New function to return fp of frame.
4071 (m68hc11_frame_args_address): Update for frame.
4072 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4073 (m68hc11_unwind_sp): New function.
4074 (m68hc11_unwind_dummy_id): New function.
4075 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4078 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4080 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4081 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4082 when we are beyond the current pc.
4084 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4086 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4087 from m68hc11_push_arguments.
4088 (m68hc11_push_arguments): Remove.
4089 (m68hc11_push_return_address): Remove.
4090 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4091 handlers; remove deprecated_extra_stack_alignment_needed.
4093 2003-07-27 Andrew Cagney <cagney@redhat.com>
4095 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4096 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4097 REAL_PC and not the pointer.
4098 * hppa-hpux-tdep.c: Include frame.h
4100 2003-07-27 Andrew Cagney <cagney@redhat.com>
4102 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4103 GDB_MULTI_ACH_PARTIAL.
4105 2003-07-27 Andrew Cagney <cagney@redhat.com>
4107 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4108 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4109 operator at start and not end of line.
4110 (decode_prologue): Ditto.
4111 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4112 frame_unwind_register_unsigned instead of
4113 frame_unwind_unsigned_register.
4114 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4116 (m32r_push_dummy_call): Use register_size instead of
4118 (m32r_frame_sniffer): Replace m32r_frame_p.
4119 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4120 * m32r-rom.c (report_transfer_performance): Delete extern
4122 (m32r_load, m32r_upload_command): Use print_transfer_performance
4123 instead of report_transfer_performance.
4124 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4125 / add_show_from_set.
4127 2003-07-26 Andrew Cagney <cagney@redhat.com>
4129 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4130 store_return_value and extract_struct_value_address.
4132 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4135 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4136 NULL, default to the section containing PC.
4138 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4140 * NEWS: Mention "regs" deprecated for m68hc11 too.
4142 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4143 (m68hc11_print_register): New function to print out one register.
4144 (m68hc11_print_registers_info): New function to print registers.
4145 (show_regs): Deprecate and use the above.
4146 (m68hc11_gdbarch_init): Install the print_registers_info.
4148 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4150 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4151 that we have a SIGTRAP before returning non-zero.
4153 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4154 Elena Zannoni <ezannoni@redhat.com>
4156 * linespec.c (decode_line_2): Avoid crash if
4157 find_function_start_sal() returns empty record.
4159 2003-07-23 Andreas Schwab <schwab@suse.de>
4161 * ia64-tdep.c (ia64_print_insn): New function.
4162 (ia64_gdbarch_init): Set print_insn to it.
4163 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4164 deprecated_tm_print_insn_info.
4166 2003-07-22 Michael Snyder <msnyder@redhat.com>
4168 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4169 handle 8-bit returns (long long).
4170 (h8300h_extract_return_value): Ditto.
4171 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4173 2003-07-22 Andrew Cagney <cagney@redhat.com>
4175 * gdbarch.c Include "gdb_obstack.h".
4176 (struct gdbarch): Add an "obstack".
4177 (alloc_gdbarch_data): Allocate the gdbarch data using
4178 GDBARCH_OBSTACK_CALLOC.
4179 (free_gdbarch_data): Delete function.
4180 (gdbarch_obstack_zalloc): New function.
4181 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4182 Assert that the architecture is not initialized.
4183 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4184 vector from the obstack.
4185 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4186 architecture obstack.
4187 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4188 (set_gdbarch_data): Assert that the data is not initialized.
4189 (struct gdbarch_data): Delete member "free".
4190 (register_gdbarch_data): Do not initialize "free".
4191 * gdbarch.h, gdbarch.c: Re-generate.
4193 2003-07-22 Andrew Cagney <cagney@redhat.com>
4195 * configure.in (build_warnings): Add -Wformat-nonliteral.
4196 * configure: Re-generate.
4198 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4200 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4202 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4204 * findvar.c (read_var_value): Remove case for thread local storage
4205 variables. It is now entirely handled by the dwarf2 location
4207 * printcmd.c (address_info): Ditto.
4208 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4210 (struct symbol): Remove objfile field, which was used by
4211 LOC_THREAD_LOCAL_STATIC only.
4212 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4213 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4214 usage of objfile pointer.
4215 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4216 thread local variables.
4217 Add include of objfiles.h.
4218 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4220 * Makefile.in (dwarf2loc.o): Update dependencies.
4222 2003-07-22 Andrew Cagney <cagney@redhat.com>
4224 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4226 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4227 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4228 (struct value): Add opaque declaration.
4229 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4231 2003-07-21 Andrew Cagney <cagney@redhat.com>
4233 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4234 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4236 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4238 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4239 regcache_cooked_read_unsigned instead of read_register.
4240 (m68hc11_saved_pc_after_call): Likewise.
4241 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4242 instead of write_register.
4243 (m68hc11_register_type): New function.
4244 (m68hc11_register_virtual_type): Remove.
4245 (m68hc11_store_return_value): Convert to use the regcache.
4246 (m68hc11_extract_struct_value_address): Likewise.
4247 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4248 m68hc11_register_type; undeprecate store_return_value and
4249 extract_struct_value_address.
4251 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4253 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4254 and translate to use regcache.
4255 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4257 2003-07-18 Andrew Cagney <cagney@redhat.com>
4259 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4260 * gdbarch.h, gdbarch.c: Re-generate.
4261 * i386-tdep.c (i386_gdbarch_init): Do not set
4262 DWARF2_BUILD_FRAME_INFO.
4263 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4265 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4266 DWARF2_BUILD_FRAME_INFO.
4268 2003-07-18 Andrew Cagney <cagney@redhat.com>
4270 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4271 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4273 2003-07-18 Andrew Cagney <cagney@redhat.com>
4275 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4276 frame_unwind_address_in_block, instead of frame_pc_unwind.
4277 (dwarf2_frame_cache): Ditto.
4279 2003-07-18 Andrew Cagney <cagney@redhat.com>
4281 * user-regs.h (struct gdbarch): Declare opaque.
4282 * ui-out.h (struct ui_file): Declare opaque.
4283 * dwarf2-frame.h (struct frame_info): Declare opaque.
4285 2003-07-18 Kris Warkentin <kewarken@qnx.com>
4287 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4289 (procfs_meminfo): Change strerror to safe_strerror.
4290 (procfs_can_run): Remove K&R badness.
4292 2003-07-17 Michael Snyder <msnyder@redhat.com>
4294 * remote-sim.c: Comment typo fix.
4296 2003-07-17 Andrew Cagney <cagney@redhat.com>
4298 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4300 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4301 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4302 GDB_MULTI_ARCH_PARTIAL.
4304 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
4306 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4307 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4308 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4310 2003-07-16 Theodore A. Roth <troth@openavr.org>
4312 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4314 (avr_frame_unwind_cache): Don't unwind FP for main.
4316 Save the computed prev_sp.
4317 (avr_saved_regs_unwinder): Remove function.
4318 (avr_frame_prev_register): Use PC unwind logic from
4319 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4321 2003-07-16 Andrew Cagney <cagney@redhat.com>
4323 * frame-base.h (frame_base_p_ftype): Delete definition.
4324 (frame_base_append_predicate): Delete declaration.
4325 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4326 (frame_unwind_append_predicate): Delete declaration.
4327 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4328 (append_predicate): Delete parameter "p".
4329 (frame_unwind_append_predicate): Delete function.
4330 (frame_unwind_append_sniffer): Update call to append_predicate.
4331 (frame_unwind_free): Delete function.
4332 (_initialize_frame_unwind): Pass NULL as "free" to
4333 register_gdbarch_data.
4334 (frame_unwind_init): Append the dummy_frame_sniffer.
4335 (frame_unwind_find_by_frame): Simplify.
4336 * frame-base.c (struct frame_base_table): Delete field "p".
4337 (append_predicate): Delete parameter "p".
4338 (frame_base_append_predicate): Delete function.
4339 (frame_base_append_sniffer): Update call to append_predicate.
4340 (frame_base_free): Delete function.
4341 (frame_base_find_by_frame): Simplify.
4342 (_initialize_frame_base): Pass NULL as "free" to
4343 register_gdbarch_data.
4344 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4345 (x86_64_sigtramp_frame_sniffer): Replace
4346 "x86_64_sigtramp_frame_p".
4347 (x86_64_init_abi): Set the frame unwind sniffers.
4348 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4349 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4350 (m68k_gdbarch_init): Set the frame unwind sniffers.
4351 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4352 "i386_sigtramp_frame_p".
4353 (i386_frame_sniffer): Replace "i386_frame_p".
4354 (i386_gdbarch_init): Set the frame unwind sniffers.
4355 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4356 (avr_gdbarch_init): Set the frame unwind sniffers.
4357 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4358 "alpha_sigtramp_frame_p"
4359 (alpha_heuristic_frame_sniffer): Replace
4360 "alpha_heuristic_frame_p".
4361 (alpha_gdbarch_init): Set the frame unwind sniffers.
4362 (alpha_dwarf2_init_abi): Ditto.
4363 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4364 "alpha_debug_frame_p".
4365 (alpha_mdebug_frame_base_sniffer): Replace
4366 "alpha_mdebug_frame_base_p".
4367 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4368 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4369 (d10v_gdbarch_init): Set the frame unwind sniffer.
4370 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4371 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4372 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4373 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4374 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4375 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4377 2003-07-16 Michael Snyder <msnyder@redhat.com>
4379 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4380 should go thru sh_dsp_register_sim_regno, else the dsp regs
4381 will not get the right values.
4383 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4385 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4386 deprecated_store_floating by call to store_typed_floating.
4387 (sh_sh4_register_convert_to_raw): Substitute call to
4388 deprecated_extract_floating by call to extract_typed_floating.
4390 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4392 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4394 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
4396 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4397 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4398 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4400 (do_pseudo_register): Remove.
4401 (sh_push_dummy_code): New function.
4402 (sh64_store_struct_return): Rename from sh_store_struct_return.
4403 Only called for sh64 now.
4404 (sh_extract_struct_value_address): Regcache'ify.
4405 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4406 and accomodate new tasks.
4407 (sh64_push_return_address): Rename from sh_push_return_address.
4408 Only called for sh64 now.
4409 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4411 (sh3e_sh4_extract_return_value): Regcache'ify.
4412 (sh_default_store_return_value): Ditto.
4413 (sh3e_sh4_store_return_value): Ditto.
4414 (sh_default_register_byte): Remove.
4415 (sh_sh4_register_byte): Remove.
4416 (sh_default_register_raw_size): Remove.
4417 (sh_sh4_register_raw_size): Remove.
4418 (sh_register_virtual_size): Remove.
4419 (sh_sh3e_register_virtual_type): Remove.
4420 (sh_sh3e_register_type): New function.
4421 (sh_sh4_register_virtual_type): Remove.
4422 (sh_sh4_register_type): New function.
4423 (sh_default_register_virtual_type): Remove.
4424 (sh_default_register_type): New function.
4425 (do_fv_register_info): Add parameters to accomodate call from
4426 sh_print_registers_info.
4427 (do_dr_register_info): Ditto.
4428 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4429 Add parameters to accomodate call from sh_print_registers_info.
4430 (sh_do_fp_register): Ditto.
4431 (sh64_do_pseudo_register): Call do_dr_register_info,
4432 do_fv_register_info and sh_do_fp_register with default parameters.
4433 (sh_do_register): Add parameters to accomodate call from
4434 sh_print_registers_info.
4435 (sh_print_register): Ditto.
4436 (sh_print_registers_info): Rename from sh_do_registers_info.
4437 Add parameters to be used as gdbarch_print_registers_info
4438 implementation. Accomodate removed do_pseudo_register function
4440 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4441 function pointer. Call sh_print_register with default parameters.
4442 (sh64_do_registers_info): Call sh_print_registers_info instead of
4443 sh_do_registers_info.
4444 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4445 detection of deprecated vs. non-deprecated functionality.
4446 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4447 function pointer assignments by direct function calls.
4449 2003-07-15 Andrew Cagney <cagney@redhat.com>
4451 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4452 (frame_register_unwind, create_new_frame): Ditto.
4453 (legacy_get_prev_frame, get_frame_type): Ditto.
4454 (get_frame_base_address): Use frame_base_find_by_frame.
4455 (get_frame_locals_address): Use frame_base_find_by_frame.
4456 (get_frame_args_address): Use frame_base_find_by_frame.
4457 * frame-base.h (frame_base_sniffer_ftype): Declare.
4458 (frame_base_append_sniffer): Declare.
4459 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4460 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4461 (frame_base_append_sniffer): New function.
4462 (frame_base_append_predicate): Add a NULL sniffer.
4463 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4464 (struct frame_base_table): Add "sniffer".
4465 (frame_base_free): Free the "sniffer" table.
4466 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4467 (frame_unwind_append_sniffer): Declare.
4468 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4469 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4470 (struct frame_unwind_table): Add "sniffer", delete "middle".
4471 (append_predicate): Add "sniffer" parameter, append the sniffer.
4472 (frame_unwind_init): Update append_predicate call.
4473 (frame_unwind_append_sniffer): New function.
4474 (frame_unwind_append_predicate): Update append_predicate call.
4475 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4477 2003-07-15 Andrew Cagney <cagney@redhat.com>
4479 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4480 before code inhibiting repeated unwind attempts. Add to
4481 commentary on that test's problems.
4482 * blockframe.c (inside_main_func): Look for "main" in the minimal
4484 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4487 2003-07-15 Andrew Cagney <cagney@redhat.com>
4489 * complaints.c (struct explanation): Define.
4490 (struct complaints): Change type of "explanation" to "struct
4492 (symfile_explanations): Convert to a "struct explanation" table.
4493 (vcomplaint): Update.
4495 2003-07-15 Michal Ludvig <mludvig@suse.cz>
4497 * x86-64-linux-nat.c (regmap): Removed.
4498 (supply_gregset, fill_gregset): Call
4499 x86_64_linux_(fill,supply)_gregset functions.
4500 * x86-64-linux-tdep.c (USER_*): New defines.
4501 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4502 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4504 (fetch_core_registers): Ditto.
4505 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4506 * x86-64-linux-tdep.h: New file.
4507 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4509 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4511 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4513 * x86-64-tdep.c (x86_64_store_return_value): Use
4514 regcache_cooked_write_part instead of regcache_cooked_write.
4516 * configure.host: Add x86_64-*-freebsd*.
4517 * configure.tgt: Add x86_64-*-freebsd*.
4518 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4519 * amd64fbsd-nat.c: New file.
4520 * amd64fbsd-tdep.c: New file.
4521 * config/i386/nm-fbsd64.h: New file.
4522 * config/i386/fbsd64.mh: New file.
4523 * config/i386/fbsd64.mt: New file.
4525 2003-07-11 Mark Kettenis <kettenis@gnu.org>
4527 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4528 `sc_regs_offset' and `sc_fpregs_offset'.
4529 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4530 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4531 (alpha_sigtramp_register_address): Rewrite to use new members of
4532 `struct gdbarch_tdep'.
4533 (alpha_gdbarch_init): Initialize new members of struct
4535 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4536 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4537 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4538 (alphafbsd_pc_in_sigtramp): Implement.
4539 (alphafbsd_sigtramp_offset): New function.
4540 (alphafbsd_sigcontext_addr): New function.
4541 (alphafbsd_init_abi): Initialize signal trampoline related members
4542 of `struct gdbarch_tdep'.
4543 (_initialize_alphafbsd_tdep): Add prototype.
4545 2003-07-11 Theodore A. Roth <troth@openavr.org>
4547 * Makefile.in (install-only): Quote sed expression when generating
4550 2003-07-11 Richard Henderson <rth@redhat.com>
4552 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4553 * dwarf2-frame.c: Include complaints.h.
4554 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4555 variable initialization; return NULL on error.
4556 (decode_frame_entry): New.
4558 2003-07-11 Andrew Cagney <cagney@redhat.com>
4560 * frame.h (frame_address_in_block): Delete declaration.
4561 * blockframe.c (frame_address_in_block): Delete function.
4562 (get_frame_block): Use get_frame_address_in_block.
4563 (block_innermost_frame): Ditto.
4564 * stack.c (print_frame, backtrace_command_1): Ditto.
4566 * frame.h (get_frame_address_in_block): Declare.
4567 (frame_unwind_address_in_block): Declare.
4568 * frame.c (frame_unwind_address_in_block): New function.
4569 (get_frame_address_in_block): New function.
4571 2003-07-10 Andrew Cagney <cagney@redhat.com>
4573 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4574 pre-default. Note: re-generate has no effect.
4576 2003-07-10 Andrew Cagney <cagney@redhat.com>
4578 * gdbarch.sh: When a variable, but not a function, compare against
4579 0. Fix problem in previous patch.
4580 * gdbarch.c: Re-generate.
4582 2003-07-10 Andrew Cagney <cagney@redhat.com>
4584 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4585 functions against NULL, not 0.
4586 * gdbarch.c: Re-generate.
4588 2003-07-10 Fred Fish <fnf@ninemoons.com>
4590 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4591 null string instead of a null pointer.
4592 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4594 2003-07-09 Michael Snyder <msnyder@redhat.com>
4596 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4598 2003-07-09 Mark Kettenis <kettenis@gnu.org>
4600 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4601 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4602 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4603 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4604 * x86-64-tdep.c: ... from here.
4606 2003-07-09 Andreas Schwab <schwab@suse.de>
4608 * m68k-tdep.h (enum struct_return): Define.
4609 (struct gdbarch_tdep): Add struct_return.
4610 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4611 bytes are padded to the right, not to the left. Pass struct value
4612 address in register %a1, not on stack.
4613 (m68k_use_struct_convention): New function.
4614 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4615 struct_return in tdep to pcc_struct_return.
4616 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4619 2003-07-09 Joel Brobecker <brobecker@gnat.com>
4621 * somread.c (som_symfile_offsets): Fix compilation error.
4623 2003-07-09 Andrew Cagney <cagney@redhat.com>
4625 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4626 Add comments about the checks.
4628 2003-07-08 Andrew Cagney <cagney@redhat.com>
4630 * Makefile.in: Make dependency section headers consistent.
4631 (config_h): Move to $BUILD headers section.
4632 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4633 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4634 (ada-exp.tab.c): Move to YACC/LEX section.
4635 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4636 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4638 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4640 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4641 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4642 of strerror with safe_strerror, use ISO C function definitions,
4643 and replace instances of sprintf with snprintf.
4645 2003-07-07 Andrew Cagney <cagney@redhat.com>
4647 * frame.c (get_prev_frame): Enable check for identical frames.
4648 Update comments. Update error messages.
4650 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4652 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4654 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4656 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4657 sort_symtab_syms, no longer necessary.
4659 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4661 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4663 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4665 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4666 (mips_register_byte): Likewise.
4668 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4670 * Makefile.in (sparc_tdep_h): New.
4671 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4672 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4673 * sparc-linux-nat.c: Include "sparc-tdep.h".
4674 * sparc-nat.c: Likewise.
4675 * sparc-tdep.c: Likewise.
4676 * sparc64nbsd-nat.c: Likewise.
4677 * sparcnbsd-nat.c: Likewise.
4678 * sparcnbsd-tdep.c: Likewise.
4679 * sparc-tdep.h: New file.
4680 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4681 and sparc_npc_regnum.
4683 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4685 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4686 (mips_linux_cannot_store_register): List supported instead of
4687 unsupported registers.
4689 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4691 * disasm.c (dump_insns): Separate instructions from addresses.
4693 2003-07-07 Andreas Schwab <schwab@suse.de>
4695 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4697 * m68k-tdep.c (NUM_FREGS): Delete.
4698 (SIG_PC_FP_OFFSET): Delete.
4699 (TARGET_M68K): Delete.
4700 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4701 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4702 P_MOVEL_SP, P_MOVEML_SP): Define.
4703 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4705 (m68k_register_raw_size): Delete.
4706 (m68k_register_virtual_size): Delete.
4707 (m68k_register_type): Renamed from m68k_register_virtual_type and
4708 add gdbarch argument.
4709 (m68k_store_struct_return): Delete.
4710 (m68k_deprecated_extract_return_value): Delete.
4711 (m68k_deprecated_extract_struct_value_address): Delete.
4712 (m68k_frame_chain): Delete.
4713 (m68k_frame_saved_pc): Delete.
4714 (m68k_fix_call_dummy): Delete.
4715 (m68k_push_dummy_frame): Delete.
4716 (m68k_pop_frame): Delete.
4717 (m68k_extract_return_value): New function.
4718 (m68k_store_return_value): Rewrite using regcache.
4719 (m68k_extract_struct_value_address): Rewrite using regcache.
4720 (m68k_push_dummy_call): New function.
4721 (struct m68k_frame_cache): Define.
4722 (m68k_alloc_frame_cache): New function.
4723 (m68k_analyze_frame_setup): New function.
4724 (m68k_analyze_register_saves): New function.
4725 (m68k_analyze_prologue): New function.
4726 (m68k_skip_prologue): Rewrite using above functions.
4727 (m68k_unwind_pc): New function.
4728 (m68k_frame_cache): New function.
4729 (m68k_frame_this_id): New function.
4730 (m68k_frame_prev_register): New function.
4731 (m68k_frame_unwind): New variable.
4732 (m68k_frame_p): New function.
4733 (m68k_sigtramp_frame_cache): New function.
4734 (m68k_sigtramp_frame_this_id): New function.
4735 (m68k_sigtramp_frame_prev_register): New function.
4736 (m68k_sigtramp_frame_unwind): New variable.
4737 (m68k_sigtramp_frame_p): New function.
4738 (m68k_frame_base_address): New function.
4739 (m68k_frame_base): New function.
4740 (m68k_unwind_dummy_id): New function.
4741 (fill_gregset): Use regcache_collect.
4742 (fill_fpregset): Likewise.
4743 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4745 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4746 deprecated_init_frame_pc, deprecated_store_struct_return,
4747 deprecated_extract_return_value, deprecated_store_return_value,
4748 deprecated_frame_chain, deprecated_frame_saved_pc,
4749 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4750 deprecated_register_virtual_size,
4751 deprecated_max_register_raw_size,
4752 deprecated_max_register_virtual_size,
4753 deprecated_register_virtual_type, deprecated_register_size,
4754 deprecated_register_byte, deprecated_register_bytes,
4755 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4756 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4757 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4758 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4759 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4760 deprecated_push_dummy_frame, deprecated_pop_frame,
4761 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4762 only if SYSCALL_TRAP is defined. Set extract_return_value,
4763 store_return_value, extract_struct_value_address, register_type,
4764 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4766 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4767 M68K_MAX_REGISTER_SIZE): Define.
4768 (struct m68k_sigtramp_info): Define.
4769 (struct gdbarch_tdep): Add get_sigtramp_info.
4770 * m68klinux-nat.c (fetch_register): Use register_size instead of
4771 REGISTER_RAW_SIZE. Don't put assignment in if.
4772 (store_register): Likewise.
4773 (fetch_inferior_registers): Likewise.
4774 (store_inferior_registers): Likewise.
4775 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4776 (m68k_linux_frame_saved_pc): Delete.
4777 (m68k_linux_sigcontext_reg_offset,
4778 m68k_linux_ucontext_reg_offset): Define.
4779 (m68k_linux_get_sigtramp_info): New function.
4780 (m68k_linux_extract_return_value): Rewrite using regcache.
4781 (m68k_linux_store_return_value): Likewise.
4782 (m68k_linux_extract_struct_value_address): Likewise.
4783 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4784 Don't set deprecated_frame_saved_pc,
4785 deprecated_extract_return_value, deprecated_store_return_value,
4786 deprecated_extract_struct_value_address. Set
4787 extract_return_value, store_return_value,
4788 extract_struct_value_address.
4790 2003-07-07 Andrew Cagney <cagney@redhat.com>
4792 * expprint.c: Include "user-regs.h" instead of "frame.h".
4793 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4794 frame_map_regnum_to_name.
4795 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4796 (frame_map_name_to_regnum): Simplify, call
4797 user_reg_map_name_to_regnum.
4798 (frame_map_regnum_to_name): Simplify, call
4799 user_reg_map_regnum_to_name.
4800 (frame_register_unwind): Update.
4801 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4802 (_initialize_frame_reg): Call user_reg_add_builtin.
4803 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4804 (value_of_register): Use value_of_user_reg.
4805 * eval.c (evaluate_subexp_standard): Update.
4806 * parse.c (write_dollar_variable): Update.
4807 * d10v-tdep.c (d10v_print_registers_info): Update.
4808 * infcmd.c (registers_info): Update.
4809 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4810 (builtin_regs_h): Delete macro.
4811 (user_regs_h): Define.
4812 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4813 (builtin-regs.o): Delete target.
4814 (user-regs.o): Specify dependencies.
4815 (expprint.o): Update dependencies.
4816 (findvar.o): Update dependencies.
4817 (frame.o): Update dependencies.
4818 (std-regs.o): Update dependencies.
4820 2003-07-06 Christopher Faylor <cgf@redhat.com>
4822 * win32-nat.c (solib_symbols_add): Use one variable for all section
4823 address stuff. Pass variable rather than address of variable to
4824 safe_symbol_file_add.
4826 2003-07-06 Andreas Schwab <schwab@suse.de>
4828 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4830 2003-07-04 Joel Brobecker <brobecker@gnat.com>
4832 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4834 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4836 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4838 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4840 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4841 * config/i386/nto.mh: New file.
4842 * config/i386/nm-nto.h: New file.
4843 * configure.host: Add i[3456]86-*-nto*.
4845 2003-07-03 Joel Brobecker <brobecker@gnat.com>
4847 * remote-vx.c (vx_add_symbols): Fix compilation error.
4849 2003-07-03 Andrew Cagney <cagney@redhat.com>
4851 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4852 * gdbarch.h, gdbarch.c: Re-generate.
4853 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4854 (legacy_register_name): Declare.
4855 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4856 (REGISTER_NAME): Define.
4857 * sparc-tdep.c (legacy_register_name): New function.
4858 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4859 (REGISTER_NAME): Define.
4860 (hppa64_register_name): Declare.
4861 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4862 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4863 (hppa64_register_name): New function.
4864 (hppa_register_name): New function.
4865 * arch-utils.c (legacy_register_name): Delete.
4866 * arch-utils.h (legacy_register_name): Delete.
4868 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
4870 * cli/cli-interp.c (cli_interpreter_resume): Update the
4871 cli_uiout's stream to gdb_stdout.
4873 2003-07-03 Andrew Cagney <cagney@redhat.com>
4875 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4877 * gdbarch.h, gdbarch.c: Re-generate.
4878 * regcache.c (init_regcache_descr): Use legacy code when either
4879 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4881 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4883 * NEWS: Move "set logging" entry into GDB 6.0 section.
4885 2003-07-02 Jim Blandy <jimb@redhat.com>
4887 * s390-tdep.c (struct frame_extra_info): new member:
4888 'stack_bought_valid'.
4889 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4890 initialize fextra_info->stack_bought.
4891 (s390_frameless_function_invocation): Don't trust the value of
4892 fextra_info_ptr->stack_bought unless
4893 fextra_info->stack_bought_valid is set.
4895 New S390 prologue analyzer.
4896 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4897 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4898 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4899 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4900 compute_x_addr, s390_on_stack, s390_store,
4901 s390_get_signal_frame_info): New functions.
4902 (S390_NUM_SPILL_SLOTS): New macro.
4903 (s390_get_frame_info): Rewritten.
4904 (is_arg_reg): Deleted.
4906 Break out the decoding of S/390 instructions into separate
4907 functions, to make it more legible, and easier to check
4909 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4910 is_rx, is_rxe): New functions.
4911 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4912 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4913 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4914 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4915 enums for opcode values. (Is this an improvement?)
4917 2003-07-02 Andrew Cagney <cagney@redhat.com>
4919 * i386-tdep.c: Revert change committed as part of trad-frame code
4922 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4924 * breakpoint.c (insert_catchpoint): Make static.
4926 2003-07-02 Andreas Schwab <schwab@suse.de>
4928 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4929 former ia64_push_arguments and ia64_push_return_address, and use
4930 regcache functions instead of read/write_register.
4931 (ia64_gdbarch_init): Set push_dummy_call instead of
4932 deprecated_push_arguments and deprecated_push_return_address.
4934 2003-07-01 Andreas Jaeger <aj@suse.de>
4936 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4938 Set %rax only to number of SSE registers used.
4940 2003-07-01 Andrew Cagney <cagney@redhat.com>
4942 * trad-frame.h: Update comments, a -1 .addr is reserved.
4943 (trad_frame_value_p, trad_frame_addr_p): Declare.
4944 (trad_frame_reg_p): Declare.
4945 (trad_frame_set_value): Rename trad_frame_register_value.
4946 (trad_frame_set_unknown): Declare.
4947 * trad-frame.c (trad_frame_realreg_p): New function.
4948 (trad_frame_addr_p, trad_frame_value_p): New function.
4949 (trad_frame_set_unknown): New function.
4950 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4951 (trad_frame_prev_register): Use trad_frame_realreg_p,
4952 trad_frame_addr_p and trad_frame_value_p.
4953 (trad_frame_set_value): Rename trad_frame_register_value.
4954 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4955 and trad_frame_set_value.
4957 2003-06-30 Jim Blandy <jimb@redhat.com>
4959 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4960 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4961 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4962 for 16 registers, and then 32 more bytes.
4963 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4965 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4966 Move up in the file, since it's now used by is_simple_arg.
4967 (is_simple_arg): Don't assume registers are four bytes long.
4968 Exclude all double arguments. Extended floats are not simple
4970 (is_power_of_two): New function.
4971 (pass_by_copy_ref): Call is_power_of_two, and check that the
4972 length fits in a register, rather than listing all the acceptable
4973 sizes. Extended floats are not passed by reference.
4974 (s390_push_arguments): Don't assume registers are four bytes long.
4975 Reserve an argument register to point to the buffer for structures
4976 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4977 S390_STACK_FRAME_OVERHEAD.
4979 2003-06-30 Andreas Schwab <schwab@suse.de>
4981 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4982 format error message.
4984 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4986 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4988 2003-06-30 David Carlton <carlton@kealia.com>
4990 Band-aid for PR c++/1245.
4991 * Makefile.in (cp-support.o): Depend on complaints_h.
4992 * cp-support.c: Include complaints.h. Add declaration for
4993 find_last_component.
4994 (cp_find_first_component): Separate code into
4995 cp_find_first_component_aux.
4996 (cp_find_first_component_aux): Call demangled_name_complaint.
4997 (demangled_name_complaint): New.
4999 2003-06-30 Andrew Cagney <cagney@redhat.com>
5001 * remote.c (remote_write_bytes): Explicitly compute and then use
5002 the payload size. Update comments to reflect. Fixes problem of
5003 GDB not sending small packets as found by Fred Fish.
5005 2003-06-30 Andrew Cagney <cagney@redhat.com>
5007 * remote.c (remote_async_wait): Fix -Wformat problem.
5009 2003-06-29 Andrew Cagney <cagney@redhat.com>
5011 * remote.c (remote_wait): Call error, and not warning, when the
5013 (remote_async_wait): Ditto.
5015 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5017 * sparc-tdep.c (sparc_y_regnum): Make external again.
5019 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5021 * cli/cli-logging.c (pop_output_files): Add void to function
5024 2003-06-29 Andrew Cagney <cagney@redhat.com>
5026 * frame.c (frame_register_unwind): Use unsigned char when dumping
5027 the buffer contents.
5029 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5031 * cli/cli-logging.c: New file.
5032 * cli-out.c (struct ui_out_data): Add original_stream.
5033 (cli_redirect): New function.
5034 (cli_ui_out_impl): Add cli_redirect.
5035 (cli_out_new): Initialize original_stream.
5036 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5037 (uo_redirect, ui_out_redirect): New.
5038 * ui-out.h (struct ui_out_impl): Add redirect member.
5039 (redirect_ftype): New.
5040 (ui_out_redirect): Add prototype.
5041 * Makefile.in: Add rules for cli-logging.c.
5042 * NEWS: Mention "set logging".
5044 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5046 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5048 2003-06-27 Andrew Cagney <cagney@redhat.com>
5050 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5051 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5052 * avr-tdep.c (avr_call_dummy_address): Delete function.
5053 (avr_gdbarch_init): Do not set call_dummy_address.
5055 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5057 * symfile.c (syms_from_objfile): Move variables to inner block.
5058 Move the checks for the non-mainline case a bit earlier to avoid
5059 doing some useless computations.
5061 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5063 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5065 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5067 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5070 2003-06-26 Michael Chastain <mec@shout.net>
5072 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5073 gdb/testsuite/gdb.c++/pr-1210.exp.
5075 2003-06-26 Andrew Cagney <cagney@redhat.com>
5077 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5078 altivec_expression.h and altivec_registers.h.
5080 2003-06-26 Andrew Cagney <cagney@redhat.com>
5082 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5083 info->mach when MIPS16. Patch suggested by Fred Fish.
5085 2003-06-26 Andrew Cagney <cagney@redhat.com>
5087 * utils.c (internal_vproblem): Print the problem to a reason
5088 buffer and then pass to query. Make the msg variable more local.
5090 2003-06-26 Andrew Cagney <cagney@redhat.com>
5092 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5093 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5094 * gdbarch.h, gdbarch.c: Re-generate.
5095 * frame-base.c (default_frame_args_address): Update. Use
5096 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5098 (default_frame_locals_address): Ditto for
5099 DEPRECATED_FRAME_LOCALS_ADDRESS.
5100 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5101 (vax_frame_num_args): Update.
5102 (vax_gdbarch_init): Update.
5103 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5104 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5105 * mcore-tdep.c (mcore_gdbarch_init): Update.
5106 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5107 * ia64-tdep.c (ia64_gdbarch_init): Update.
5108 * symtab.h (address_class): Update comments.
5109 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5110 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5111 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5112 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5113 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5114 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5115 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5116 * alpha-mdebug-tdep.c: Update.
5117 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5119 2003-06-26 Andreas Jaeger <aj@suse.de>
5121 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5122 of SSE registers so that varargs functions work. Rework handling
5123 of passing arguments on the stack.
5124 (x86_64_store_return_value): Return double and float values in SSE
5127 2003-06-24 Michael Chastain <mec@shout.net>
5129 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5130 the "constructor breakpoints ignored" bug.
5132 2003-06-25 David Carlton <carlton@kealia.com>
5134 * MAINTAINERS: Update e-mail address.
5136 2003-06-24 Jim Blandy <jimb@redhat.com>
5138 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5140 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5142 (ppc_linux_init_abi): Register it as the
5143 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5145 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5146 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5149 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5150 (ppc64_standard_linkage_target): Use it.
5152 2003-06-23 Andrew Cagney <cagney@redhat.com>
5154 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5155 for 0 "int0" and 4 "int32" sized registers.
5156 * gdbtypes.c (builtin_type_int0): Define.
5157 (build_gdbtypes): Initialize builtin_type_int0.
5158 * gdbtypes.h (builtin_type_int0): Declare.
5160 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5162 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5163 as characters are unsigned.
5165 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5168 * dwarfread.c (struct_type): Skip static fields without crashing.
5170 2003-06-22 Andrew Cagney <cagney@redhat.com>
5172 GDB 6.0 branch created.
5174 * PROBLEMS: Update. Empty.
5177 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5179 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5180 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5182 2003-06-22 Andrew Cagney <cagney@redhat.com>
5184 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5185 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5188 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5190 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5193 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5195 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5196 argument of val_print.
5197 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5198 to the address argument of baseclass_offset or target_read_memory.
5199 Do add it to the argument of cp_print_value_fields.
5201 2003-06-21 Andrew Cagney <cagney@redhat.com>
5203 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5204 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5205 instead of 0..NUM_REGS.
5206 (mips_register_reggroup_p): New function.
5207 (mips_pseudo_register_write): New function.
5208 (mips_pseudo_register_read): New function.
5209 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5210 based on the register's type.
5211 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5213 (mips_get_saved_register): Simplify. Assert that REGNO is a
5215 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5216 (mips_register_type): Replace mips_register_virtual_type. Map
5217 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5219 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5220 that the register is cooked / virtual.
5221 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5222 Only get the extra info when needed.
5223 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5224 (mips32_heuristic_proc_desc): Fetch the cooked register.
5225 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5226 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5227 (mips_print_register): Use gdbarch_register_type, instead of
5228 REGISTER_VIRTUAL_TYPE.
5229 (print_gp_register_row): Use gdbarch_register_type, instead of
5230 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5231 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5232 Print the pseudo / cooked registers.
5233 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5234 Print the pseudo / cooked registers.
5235 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5236 REG_NUM is pseudo / cooked.
5237 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5238 (mips_n32n64_xfer_return_value): Ditto.
5239 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5240 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5241 (mips_register_sim_regno): New function.
5242 (mips_gdbarch_init): Set deprecated_register_byte,
5243 register_group_p, pseudo_register_write, pseudo_register_read,
5244 register_sim_regno, and num_pseudo_regs. Set register_type,
5245 instead of register_virtual_type.
5246 * Makefile.in (mips-tdep.o): Update dependencies.
5247 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5248 REGISTER_VIRTUAL_TYPE.
5249 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5250 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5251 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5252 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5253 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5255 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5257 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5258 * cli/cli-cmds.c: Include "gdb_vfork.h".
5259 (shell_escape): Use vfork.
5261 2003-06-21 Andrew Cagney <cagney@redhat.com>
5263 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5264 32 bit floating-point register saves.
5266 * frame.h (deprecated_unwind_get_saved_register): Delete.
5267 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5268 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5269 and deprecated_get_next_frame_hack instead of
5270 deprecated_unwind_get_saved_register.
5272 * mips-tdep.c (mips_dump_tdep): Do not print
5273 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5275 * frame.c (get_frame_register): New function.
5276 (frame_unwind_register_signed): New function.
5277 (get_frame_register_signed): New function.
5278 (frame_unwind_register_unsigned): New function.
5279 (get_frame_register_unsigned): New function.
5280 * frame.h: Add comments on naming schema.
5281 (get_frame_register, frame_unwind_register_signed): Declare.
5282 (get_frame_register_signed, get_frame_register_signed): Declare.
5283 (frame_unwind_register_unsigned): Declare.
5284 (get_frame_register_unsigned): Declare.
5286 2003-06-20 Theodore A. Roth <troth@openavr.org>
5288 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5290 2003-06-20 Theodore A. Roth <troth@openavr.org>
5292 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5293 (avr_read_sp): Ditto.
5295 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
5297 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5298 * config/arm/nm-linux.h: Likewise.
5299 * config/arm/tm-linux.h: Likewise.
5300 * config/ia64/nm-linux.h: Likewise.
5301 * config/ia64/tm-ia64.h: Likewise.
5302 * config/s390/tm-linux.h: Likewise.
5303 * config/s390/tm-s390.h: Likewise.
5304 * s390-nat.c: Likewise.
5305 * s390-tdep.c: Likewise.
5307 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5308 * config/ia64/linux.mt: Likewise.
5309 * config/m68k/linux.mh: Likewise.
5310 * config/mips/linux.mt: Likewise.
5311 * config/powerpc/linux.mh: Likewise.
5312 * config/sh/linux.mt: Likewise.
5314 2003-06-19 Kris Warkentin <kewarken@qnx.com>
5316 * solib.c (solib_open): Change tests for whether to search
5317 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5320 2003-06-19 Theodore A. Roth <troth@openavr.org>
5322 * avr-tdep.c (avr_frame_address): Delete function.
5323 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5324 set_gdbarch_frame_args_address.
5326 2003-06-19 Andrew Cagney <cagney@redhat.com>
5328 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5329 (REGISTER_CONVERT_FROM_TYPE): Delete.
5330 (mips_register_convert_to_type): Delete declaration.
5331 (mips_register_convert_from_type): Delete declaration.
5332 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5335 2003-06-19 Michael Snyder <msnyder@redhat.com>
5337 * linux-nat.h: New file.
5338 * linux-nat.c: Include linux-nat.h.
5339 * lin-lwp.c: Include linux-nat.h.
5340 Move struct lwp_info def to linux-nat.h.
5341 * linux-proc.c: Include linux-nat.h.
5342 (linux_make_note_section): Iterate over lwps instead of threads.
5343 (linux_do_thread_registers): Use lwp instead of merged pid.
5344 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5345 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5346 Add dependency on linux_nat_h.
5348 2003-06-19 Theodore A. Roth <troth@openavr.org>
5350 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5352 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5354 * varobj.c (get_type, get_target_type): Use check_typedef.
5356 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5358 * breakpoint.c (insert_catchpoint): Call internal_error.
5360 2003-06-19 Theodore A. Roth <troth@openavr.org>
5362 * avr-tdep.c (avr_push_dummy_code): Delete function.
5363 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5365 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
5367 * arch-utils.c (default_prepare_to_proceed): Remove.
5368 (generic_prepare_to_proceed): Remove.
5369 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5370 (generic_prepare_to_proceed): Remove prototype.
5371 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5372 * gdbarch.c: Regenerate.
5373 * gdbarch.h: Regenerate.
5374 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5375 * hppah-nat.c (hppa_switched_threads): Remove.
5376 * infrun.c (prepare_to_proceed): New static function, copied from
5377 generic_prepare_to_proceed. Remove select_it argument.
5378 (proceed): Call prepare_to_proceed.
5379 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5381 (ptrace_wait): Don't set the removed variables.
5382 (hppa_switched_threads): Remove.
5383 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5384 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5385 (lin_lwp_prepare_to_proceed): Remove prototype.
5386 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5387 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5389 2003-06-18 Theodore A. Roth <troth@openavr.org>
5391 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5393 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5394 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5395 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5396 (AVR_PROLOGUE_*): Enumerate prologue types.
5397 (struct frame_extra_info): Remove.
5398 (struct avr_unwind_cache): Define.
5399 (avr_write_sp): Delete function.
5400 (avr_read_fp): Ditto.
5401 (avr_init_extra_frame_info): Ditto.
5402 (avr_pop_frame): Ditto.
5403 (avr_frame_saved_pc): Ditto.
5404 (avr_saved_pc_after_call): Ditto.
5405 (avr_push_return_address): Ditto.
5406 (avr_frame_chain): Ditto.
5407 (avr_store_struct_return): Ditto.
5408 (avr_push_arguments): Ditto.
5409 (avr_scan_prologue): Update comments. Changed to set up the info for
5410 cache unwinding. Now returns end of prologue PC.
5411 (avr_skip_prologue): Better handling of functions lacking a prologue
5412 by using avr_scan_prologue.
5413 (avr_scan_arg_moves): New function.
5414 (avr_saved_regs_unwinder): Ditto.
5415 (avr_frame_unwind_cache): Ditto.
5416 (avr_unwind_pc): Ditto.
5417 (avr_frame_this_id): Ditto.
5418 (avr_frame_prev_register): Ditto.
5419 (avr_frame_p): Ditto.
5420 (avr_frame_base_address ): Ditto.
5421 (avr_unwind_dummy_id): Ditto.
5422 (avr_push_dummy_code): Ditto.
5423 (push_stack_item): Ditto.
5424 (pop_stack_item): Ditto.
5425 (avr_push_dummy_call): Ditto.
5426 (struct stack_item): Define.
5427 (avr_frame_unwind): Declare structure.
5428 (avr_frame_base): Ditto.
5429 (avr_gdbarch_init): Remove calls to
5430 set_gdbarch_deprecated_init_frame_pc,
5431 set_gdbarch_deprecated_target_read_fp,
5432 set_gdbarch_deprecated_dummy_write_sp,
5433 set_gdbarch_deprecated_fp_regnum,
5434 set_gdbarch_deprecated_push_arguments,
5435 set_gdbarch_deprecated_push_return_address,
5436 set_gdbarch_deprecated_pop_frame,
5437 set_gdbarch_deprecated_store_struct_return,
5438 set_gdbarch_deprecated_frame_init_saved_regs,
5439 set_gdbarch_deprecated_init_extra_frame_info,
5440 set_gdbarch_deprecated_frame_chain,
5441 set_gdbarch_deprecated_frame_saved_pc,
5442 set_gdbarch_deprecated_saved_pc_after_call.
5443 Add calls to set_gdbarch_push_dummy_call,
5444 set_gdbarch_push_dummy_code,
5445 frame_unwind_append_predicate,
5446 frame_base_set_default,
5447 set_gdbarch_unwind_dummy_id,
5448 set_gdbarch_unwind_pc.
5451 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
5453 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5454 registers for H8/300S.
5455 (h8300_print_registers_info): Ditto.
5456 (h8300_gdbarch_init): Accommodate register count for H8/300S.
5458 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
5460 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5461 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5462 (lin_lwp_wait): Likewise. Update comments.
5463 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5464 (pull_pid_from_list, linux_record_stopped_pid): New.
5466 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5468 * ada-lang.c (scan_discrim_bound): Name first argument.
5469 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5470 declared by ALL_BLOCK_SYMBOLS.
5472 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5474 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5475 ("regcache.h"): Include it.
5476 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5478 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5480 * NEWS: Mention gdbserver detach change and "disconnect" command.
5481 * infcmd.c (disconnect_command): New function.
5482 (_initialize_infcmd): Add ``disconnect'' command.
5483 * remote.c (remote_async_detach): Delete.
5484 (remote_detach): Merge remote_async_detach.
5485 (remote_disconnect): New.
5486 (init_remote_ops): Set to_disconnect.
5487 (init_remote_cisco_ops): Likewise.
5488 (init_remote_async_ops): Likewise. Use remote_detach.
5489 * target.c (cleanup_target): Default to_disconnect.
5490 (update_current_target): Inherit to_disconnect.
5491 (target_disconnect, debug_to_disconnect): New functions.
5492 (setup_target_debug): Set to_disconnect.
5493 * target.h (struct target_ops): Add to_disconnect.
5494 (target_disconnect): Add prototype.
5496 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5498 * breakpoint.c (insert_catchpoint): New function.
5499 (insert_breakpoints): Use catch_exceptions to call
5500 insert_catchpoint. Disable catchpoints if they fail to insert.
5502 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5504 * symfile.c (reread_symbols): Clear sym_private.
5506 2003-06-17 Andrew Cagney <cagney@redhat.com>
5508 * trad-frame.h (struct frame_info): Add opaque declaration.
5509 * remote-fileio.h (struct cmd_list_element): Add opaque
5511 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5514 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
5516 * remote.c (remote_prepare_to_store): Replace call to
5517 deprecated_read_register_bytes with multiple regcache_raw_read
5520 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5522 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5523 (nto_find_and_open_solib): Likewise.
5524 (nto_init_solib_absolute_prefix): Likewise.
5525 (_initialize_nto_tdep): Fix indentation.
5527 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5529 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5531 2003-06-17 Kris Warkentin <kewarken@qnx.com>
5533 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5535 2003-06-17 Jim Blandy <jimb@redhat.com>
5537 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5539 2003-06-16 Theodore A. Roth <troth@openavr.org>
5541 * avr-tdep.c (avr_extract_return_value): New function.
5542 (avr_gdbarch_init): Set extract_return_value method.
5544 2003-06-16 Andrew Cagney <cagney@redhat.com>
5546 * frame.h (deprecated_get_next_frame_hack): Declare.
5547 * frame.c (legacy_saved_regs_prev_register): Only require
5548 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5549 there are always saved regs.
5550 (deprecated_generic_get_saved_register): Do not require
5551 DEPRECATED_FRAME_INIT_SAVED_REGS.
5552 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5553 use frame ID unwind instead.
5554 (deprecated_get_next_frame_hack): New function.
5556 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5558 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5559 (h8300_push_dummy_call): ...this function. Some minor optimization.
5560 (h8300_push_return_address): Remove.
5561 (h8300_gdbarch_init): Remove calls to
5562 set_gdbarch_deprecated_dummy_write_sp,
5563 set_gdbarch_deprecated_push_arguments and
5564 set_gdbarch_deprecated_push_return_address.
5565 Add call to set_gdbarch_push_dummy_call.
5567 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
5569 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5570 (E_PSEUDO_EXR_REGNUM): Ditto.
5571 (h8300_is_argument_spill): Check for instructions moving argument
5572 registers into safe registers.
5573 (h8300_skip_prologue): Check for stm instruction to push registers
5574 used for register variables onto stack.
5575 (gdb_print_insn_h8300): Remove.
5576 (h8300_examine_prologue): Add a comment.
5577 (h8300_register_name): Take pseudo registers into account.
5578 (h8300s_register_name): Ditto.
5579 (h8300sx_register_name): Ditto.
5580 (h8300_print_register): Ditto.
5581 (h8300_print_registers_info): Define "nice" printing order.
5582 (h8300_saved_pc_after_call): Take pseudo registers into account.
5583 (h8300_register_type): Ditto. Return type used for remote connection
5584 when requesting real CCR or EXR register, return actual type when
5585 requesting pseudo CCR or EXR.
5586 (h8300_pseudo_register_read): New function.
5587 (h8300_pseudo_register_write): Ditto.
5588 (h8300_dbg_reg_to_regnum): Ditto.
5589 (h8300s_dbg_reg_to_regnum): Ditto.
5590 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5591 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5592 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5593 set_gdbarch_print_insn architecture dependent.
5594 Call set_gdbarch_pseudo_register_read and
5595 set_gdbarch_pseudo_register_write.
5596 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5598 2003-06-16 Andrew Cagney <cagney@redhat.com>
5600 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5601 * gdbarch.h, gdbarch.c: Re-generate.
5602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5603 * s390-tdep.c (s390_gdbarch_init): Update.
5604 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5605 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5606 * mips-tdep.c (mips_gdbarch_init): Update.
5607 * mcore-tdep.c (mcore_gdbarch_init): Update.
5608 * cris-tdep.c (cris_gdbarch_init): Update.
5609 * infcall.c (call_function_by_hand): Update.
5610 * ia64-tdep.c (ia64_push_arguments): Update comment.
5611 * frame.c (legacy_get_prev_frame): Do not assume
5612 SAVE_DUMMY_FRAME_TOS_P.
5613 * dummy-frame.c (find_dummy_frame): Update comment.
5615 2003-06-16 Andrew Cagney <cagney@redhat.com>
5617 * regcache.c (do_cooked_read): Do not use register_valid_p.
5619 2003-06-15 Theodore A. Roth <troth@openavr.org>
5621 * avr-tdep.c (avr_register_type): Remove a blank line.
5622 (avr_scan_prologue): Correct some comments.
5624 2003-06-15 Theodore A. Roth <troth@openavr.org>
5626 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5628 Properly scan prologues generated by gcc with the -mcall-prologues
5630 Add code to scan -mcall-prologues for mega devices.
5632 2003-06-15 Theodore A. Roth <troth@openavr.org>
5634 * avr-tdep.c (avr_register_byte): Delete function.
5635 (avr_register_raw_size): Delete function.
5636 (avr_register_virtual_size): Delete function.
5637 (avr_register_virtual_type): Delete function.
5638 (avr_register_type): New function.
5639 (avr_address_to_pointer): Remove unused code.
5640 (avr_read_fp): Need to read FP as two separate bytes due to change to
5641 avr_register_type() usage.
5642 (avr_gdbarch_init): Don't set deprecated_register_size.
5643 Don't set deprecated_register_bytes.
5644 Don't set deprecated_register_byte.
5645 Don't set deprecated_register_raw_size.
5646 Don't set deprecated_max_register_raw_size.
5647 Don't set deprecated_register_virtual_size.
5648 Don't set deprecated_max_register_virtual_size.
5649 Don't set deprecated_register_virtual_type.
5650 Set register_type method.
5652 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5654 * Makefile.in (linux-nat.o): Add rule.
5655 * linux-nat.c: New file.
5656 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5657 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5658 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5659 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5660 * config/arm/linux.mh (NATDEPFILES): Likewise.
5661 * config/i386/linux.mh (NATDEPFILES): Likewise.
5662 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5663 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5664 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5665 * config/mips/linux.mh (NATDEPFILES): Likewise.
5666 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5667 * config/s390/s390.mh (NATDEPFILES): Likewise.
5668 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5670 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5672 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5673 replace out-of-date comment.
5675 2003-06-15 Andrew Cagney <cagney@redhat.com>
5677 * rdi-share/host.h (Fail): Change to a varargs function.
5678 * remote-rdi.c (Fail): Update.
5680 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5682 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5683 (i386_convert_register_p, i386_register_to_value,
5684 i386_register_from_value): Handle types longer than 8 bytes.
5686 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5688 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5689 Move floating-point code to new function in i387-tdep.c.
5690 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5691 New functions containing code moved here from i386-tdep.c.
5692 * i387-tdep.h: Add opaque declaration for `struct type'.
5693 (i387_register_to_value, i387_value_to_register): New prototypes.
5694 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5695 (x86_64_init_abi): Set convert_register_p, register_to_value and
5696 value_to_register here.
5698 2003-06-14 Andrew Cagney <cagney@redhat.com>
5700 * mips-tdep.c (mips_register_to_value): Make static.
5701 (mips_value_to_register): Make static.
5702 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5703 * ia64-tdep.c (ia64_register_raw_size): Make static.
5704 (ia64_register_virtual_size): Make static.
5705 (ia64_register_byte): Make static.
5706 * i387-tdep.c: Include "i387-tdep.h".
5707 (print_387_control_word): Delete function.
5708 (print_387_status_word): Delete function.
5709 (print_387_status_bits): Delete function.
5710 (print_387_control_bits): Delete function.
5711 * Makefile.in (i387-tdep.o): Update dependencies.
5712 * rdi-share/host.h (Fail): Declare.
5713 * remote-rdi.c (Fail): Update to match declaration.
5715 2003-06-14 Andrew Cagney <cagney@redhat.com>
5717 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5718 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5719 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5720 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5721 * README: Delete reference to remote-array.
5722 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5723 (remote-array.o): Delete target.
5724 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5725 * remote-array.c: Delete file.
5727 2003-06-14 Andrew Cagney <cagney@redhat.com>
5728 Mark Kettenis <kettenis@gnu.org>
5730 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5731 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5732 parameter with "frame".
5733 * gdbarch.h, gdbarch.c: Re-generate.
5734 * frame.h (put_frame_register): Declare.
5735 * frame.c (put_frame_register): New function.
5736 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5737 (legacy_register_to_value): Rewrite, use "frame" to get the
5739 (legacy_value_to_register): Rewrite, use "frame" to find the
5740 register's location before storing.
5741 * arch-utils.h (legacy_convert_register_p): Update.
5742 (legacy_register_to_value, legacy_value_to_register): Update.
5743 * findvar.c (value_from_register): Rewrite, eliminate use of
5744 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5745 "frame" to REGISTER_TO_VALUE.
5746 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5747 lval_reg_frame_relative + lval_register branch of the switch. Do
5748 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5749 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5750 I386_EDI_REGNUM): New defines.
5751 (i386_next_regnum, i386_convert_register_p,
5752 i386_register_to_value, i386_value_to_register): New functions.
5753 (i386_register_convertible, i386_register_convert_to_virtual,
5754 i386_convert_to_raw): Remove functions.
5755 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5756 value_to_register instead of register_convertible,
5757 register_convert_to_virtual and register_convert_to_raw.
5758 * mips-tdep.c (mips_convert_register_p): New function.
5759 (mips_value_to_register): Replace mips_register_convert_from_type.
5760 (mips_register_to_value): Replace mips_register_convert_to_type.
5761 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5763 * alpha-tdep.c (alpha_convert_register_p): Update.
5764 (alpha_value_to_register): Update, store the register.
5765 (alpha_register_to_value): Update, fetch the register.
5767 2003-06-14 Theodore A. Roth <troth@openavr.org>
5769 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5770 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5771 Don't set deprecated_call_dummy_words.
5772 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5773 Don't set remote_translate_xfer_address.
5774 (avr_io_reg_read_command): Remove commented out debug printf.
5777 2003-06-14 Theodore A. Roth <troth@openavr.org>
5779 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5780 causes gdb to seg fault.
5782 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
5784 * sparc-nat.c (fetch_inferior_registers): Correct
5785 a reference to "registers".
5787 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5789 * Makefile.in (exc_request_U_h): Define
5790 (exc_request_S_h): Likewise.
5791 (msg_reply_S_h): Likewise.
5792 (msg_U_h): Likewise.
5793 (notify_S_h): Likewise.
5794 (process_reply_S_h): Likewise.
5795 (gnu-nat.o): Depend on gdb_obstack_h
5796 * gnu-nat.c: Include "gdb_obstack.h".
5798 2003-06-13 Andrew Cagney <cagney@redhat.com>
5800 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5801 * gdbarch.h, gdbarch.c: Re-generate.
5803 2003-06-13 Andrew Cagney <cagney@redhat.com>
5805 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5806 when deprecated REGISTER macros can be deleted.
5807 * gdbarch.h, gdbarch.c: Re-generate.
5809 2003-06-13 Jim Blandy <jimb@redhat.com>
5811 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5812 Linux entry point symbols for _dl_debug_state, too.
5814 2003-06-13 Andrew Cagney <cagney@redhat.com>
5816 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5817 available, do not use the FP register, and always save the TOS.
5818 * dummy-frame.c (dummy_frame_this_id): Do not assert
5819 SAVE_DUMMY_FRAME_TOS.
5820 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5821 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5822 (i386_push_dummy_call): Add 8 to the returned SP.
5823 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5824 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5825 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5826 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5827 (x86_64_push_dummy_call): Return "sp + 16".
5828 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5829 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5830 save_dummy_frame_tos.
5832 2003-06-13 Jim Blandy <jimb@redhat.com>
5834 * frv-tdep.c (frv_use_struct_convention): Delete static
5835 declaration for function deleted in my change of 2003-06-12.
5837 2003-06-13 Theodore A. Roth <troth@openavr.org>
5839 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5840 (avr_pointer_to_address): Shift code addrs left 1 bit.
5841 (avr_convert_from_func_ptr_addr): Delete function since operation is
5842 better handled by avr_address_to_pointer and avr_pointer_to_address.
5843 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5845 2003-06-13 Mark Kettenis <kettenis@gnu.org>
5847 From Kelley Cook <kelleycook@wideopenwest.com>:
5848 * configure.host: Accept i[34567]86 variants.
5849 * configure.tgt: Likewise.
5850 * nlm/configure.in: Likewise.
5851 * nlm/configure: Regenerated.
5853 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
5855 * arm-tdep.c (solib-svr4.h): Dont' include it.
5856 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5857 * arm-linux-tdep.c: ... here. Make static.
5858 (arm_linux_init_abi): Register it.
5859 (solib-svr4.h): Include it.
5860 * Makefile.in: Update dependencies.
5861 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5862 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5864 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5866 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5867 indicate registers used for return values.
5868 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5869 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5871 (h8300_init_extra_frame_info): Ditto.
5872 (h8300_frame_locals_address): Removed.
5873 (h8300_frame_args_address): Removed.
5874 (h8300_extract_return_value): Use new regcache structure. Only care
5876 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5877 (h8300_store_return_value): Use new regcache structure. Only care
5879 (h8300h_store_return_value): Same function for 32 bit CPUs.
5880 (h8300_store_struct_return): Removed.
5881 (h8300_extract_struct_value_address): Use new regcache structure.
5882 (h8300h_extract_struct_value_address): Removed.
5883 (h8300_push_dummy_code): New function.
5884 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5885 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5886 set_gdbarch_store_return_value architecture dependent.
5887 Call set_gdbarch_push_dummy_code and
5888 set_gdbarch_extract_struct_value_address.
5889 Remove calls to set_gdbarch_frame_args_address,
5890 set_gdbarch_frame_locals_address,
5891 set_gdbarch_deprecated_store_struct_return,
5892 set_gdbarch_deprecated_extract_return_value,
5893 set_gdbarch_deprecated_extract_struct_value_address,
5894 set_gdbarch_deprecated_call_dummy_words and
5895 set_gdbarch_deprecated_sizeof_call_dummy_words.
5897 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5899 * h8300-tdep.c (h8300_register_byte): Remove.
5900 (h8300h_register_byte): Remove.
5901 (h8300_register_virtual_type): Remove. Substitute by...
5902 (h8300_register_type): New function.
5903 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5904 (h8300h_extract_struct_value_address): Ditto.
5905 (h8300_gdbarch_init): Drop calls to
5906 set_gdbarch_deprecated_register_byte and
5907 set_gdbarch_deprecated_register_virtual_type.
5908 Add call to set_gdbarch_register_type.
5910 2003-06-13 Andrew Cagney <cagney@redhat.com>
5912 * gdbarch.sh: Update comments on registers.
5913 (deprecated_register_byte): Rename register_byte.
5914 (deprecated_register_raw_size): Rename register_raw_size.
5915 (deprecated_register_virtual_size): Rename register_virtual_size.
5916 (deprecated_register_virtual_type): Rename register_virtual_type.
5917 * gdbarch.h, gdbarch.c: Re-generate.
5918 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5919 * vax-tdep.c (vax_gdbarch_init): Update.
5920 * v850-tdep.c (v850_gdbarch_init): Update.
5921 * sparc-tdep.c (sparc_gdbarch_init): Update.
5922 * sh-tdep.c (sh_gdbarch_init): Update.
5923 * s390-tdep.c (s390_gdbarch_init): Update.
5924 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5925 * ns32k-tdep.c: 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 * m68k-tdep.c (m68k_gdbarch_init): Update.
5930 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5931 * ia64-tdep.c (ia64_gdbarch_init): Update.
5932 * hppa-tdep.c (hppa_gdbarch_init): Update.
5933 * h8300-tdep.c (h8300_gdbarch_init): Update.
5934 * frv-tdep.c (frv_gdbarch_init): Update.
5935 * cris-tdep.c (cris_gdbarch_init): Update.
5936 * avr-tdep.c (avr_gdbarch_init): Update.
5937 * alpha-tdep.c (alpha_gdbarch_init): Update.
5938 * arm-tdep.c (arm_gdbarch_init): Update.
5940 2003-06-13 Andrew Cagney <cagney@redhat.com>
5942 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5943 mips_o32_use_struct_convention with always_use_struct_convention.
5945 2003-06-12 David Carlton <carlton@kealia.com>
5947 * cp-namespace.c (cp_set_block_scope): Comment out
5948 processing_has_namespace_info branch.
5950 2003-06-12 Jim Blandy <jimb@redhat.com>
5952 Recognize and skip 64-bit PowerPC Linux linkage functions.
5953 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5954 insn_pattern, insns_match_pattern, d_field, ds_field): New
5955 functions, macros, and types for working with PPC instructions.
5956 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5957 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5958 ppc64_skip_trampoline_code): New functions, variables, and macros
5959 for recognizing and skipping linkage functions.
5960 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5961 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5963 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5964 register offsets for both the 32- and 64-bit interfaces.
5966 Actually finish the job started by my change of 2003-05-29.
5967 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5968 other #definition of this.
5969 (ppc_linux_skip_trampoline_code): Remove declaration.
5970 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5972 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5975 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5976 'long' on ppc64-*-linux*.
5978 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5979 isn't #defined, assume the register doesn't exist: act as if
5980 tdep->ppc_mq_regnum were -1.
5982 * configure.host, configure.tgt: Add entries for
5983 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5985 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5988 * arch-utils.c (always_use_struct_convention): New function.
5989 * arch-utils.h (always_use_struct_convention): New prototype.
5990 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5991 (alpha_gdbarch_init): Register always_use_struct_convention,
5992 instead of alpha_use_struct_convention.
5993 * cris-tdep.c (cris_use_struct_convention): Delete.
5994 (cris_gdbarch_init): Register always_use_struct_convention,
5995 instead of cris_use_struct_convention.
5996 * frv-tdep.c (frv_use_struct_convention): Delete.
5997 (frv_gdbarch_init): Register always_use_struct_convention,
5998 instead of frv_use_struct_convention.
5999 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6000 (h8300_gdbarch_init): Register always_use_struct_convention,
6001 instead of h8300_use_struct_convention.
6002 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6003 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6004 instead of mips_o32_use_struct_convention.
6006 2003-06-12 Andrew Cagney <cagney@redhat.com>
6008 * wince.c: Include "mips-tdep.h".
6009 * mips-tdep.h (mips_next_pc): Declare.
6010 * mcore-tdep.c: Make more local functions static.
6011 * Makefile.in (wince.o): Update dependencies.
6013 2003-06-12 David Carlton <carlton@kealia.com>
6015 * symtab.c (lookup_symbol_aux_minsyms): Replace
6016 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6017 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6018 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6019 SYMBOL_NATURAL_NAME.
6021 2003-06-12 Andreas Schwab <schwab@suse.de>
6023 * Makefile.in (tuiDisassem.o): Update dependencies.
6025 2003-06-12 David Carlton <carlton@bactrian.org>
6027 * symtab.h: Delete declaration of make_symbol_overload_list.
6028 Add declaration of lookup_partial_symbol.
6029 * symtab.c (remove_params): Move to cp-support.c.
6030 (overload_list_add_symbol, make_symbol_overload_list)
6031 (sym_return_val_size, sym_return_val_index): Ditto.
6032 (lookup_partial_symbol): Make extern.
6033 * cp-support.h: Add declaration of make_symbol_overload_list.
6034 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6035 symtab.h, and block.h.
6036 (remove_params): Move here from symtab.c.
6037 (overload_list_add_symbol, make_symbol_overload_list)
6038 (sym_return_val_size, sym_return_val_index): Ditto.
6039 * valops.c: Include cp-support.h.
6040 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6041 frame_h, and block_h.
6042 (valops.o): Depend on cp_support_h.
6044 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6046 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6047 substitute by NUM_REGS throughout.
6048 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6049 (h8300s_register_name): New function for H8S registers.
6050 (h8300sx_register_name): Ditto for H8SX registers.
6051 (h8300_print_register): Revise register printing, avoid depending
6053 (h8300_register_byte): Only care for H8/300 registers.
6054 (h8300h_register_byte): New function for any other architecture.
6055 (h8300_register_raw_size): Remove.
6056 (h8300_register_virtual_type): Revise to return actually useful
6058 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6059 (h8300h_extract_struct_value_address): New function for any other
6061 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6062 set_gdbarch_register_name, set_gdbarch_register_byte,
6063 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6064 Remove calls to set_gdbarch_deprecated_register_size,
6065 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6066 set_gdbarch_deprecated_max_register_raw_size,
6067 set_gdbarch_register_virtual_size and
6068 set_gdbarch_deprecated_max_register_virtual_size entirely.
6069 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6070 set_gdbarch_long_double_bit.
6072 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6074 * doublest.c (convert_doublest_to_floatformat): When dealing
6075 with the implied integer bit, only alter mant_bits if we are
6076 processing a full 32 bits of mantissa.
6078 2003-06-11 David Carlton <carlton@bactrian.org>
6080 * dictionary.h: New.
6081 * dictionary.c: New.
6082 * block.h: Add opaque declaration for struct dictionary.
6083 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6085 (BLOCK_DICT): New macro.
6086 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6087 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6089 (ALL_BLOCK_SYMBOLS): Update definition.
6090 * Makefile.in (SFILES): Add dictionary.c.
6091 (dictionary_h): New.
6092 (COMMON_OBS): Add dictionary.o.
6093 (dictionary.o): New.
6094 (ada-lang.o): Depend on dictionary_h.
6095 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6096 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6097 (mi-cmd-stack.o): Ditto.
6098 (gdbtk-cmds.o): Update dependencies.
6099 (gdbtk-stack.o): Ditto.
6100 * ada-lang.c: Include dictionary.h.
6101 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6102 (fill_in_ada_prototype, debug_print_block): Ditto.
6103 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6104 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6106 * mdebugread.c: Include dictionary.h.
6107 (struct parse_stack): Delete 'maxsyms' member.
6108 (parse_symbol): Update calls to new_block. Delete calls to
6109 shrink_block. Use dictionary methods.
6110 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6111 Update calls to new_symtab. Don't maintain maxsyms data.
6112 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6113 (add_symbol): Just call dict_add_symbol.
6114 (new_symtab): Delete 'maxsyms' argument.
6115 (new_symtab): Update calls to new_block.
6116 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6117 (shrink_block): Delete function.
6118 (fixup_sigtramp): Update call to new_block. Add symbol via
6120 * jv-lang.c: Include dictionary.h.
6121 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6122 appropriately. Set class_symtab->free_func. Make sure the
6123 blockvector is big enough to hold two blocks.
6124 (add_class_symtab_symbol): Use dictionary methods.
6125 (free_class_block): New function.
6126 (type_from_class): Replace explicit iteration by
6128 * symtab.h (struct symtab): Replace 'free_ptr' method by
6130 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6132 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6134 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6135 Include dictionary.h.
6136 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6137 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6139 * objfiles.c: Include dictionary.h.
6140 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6141 * buildsym.c: Include dictionary.h.
6142 (finish_block): Use dictionary methods.
6143 (end_symtab): Set free_func to NULL, not free_ptr.
6144 * tracepoint.c: Include dictionary.h.
6145 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6146 (scope_info): Ditto.
6147 * stack.c: Include dictionary.h.
6148 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6149 (print_block_frame_labels, print_frame_arg_vars)
6150 (print_frame_args): Ditto.
6151 * symmisc.c (free_symtab_block): Use dictionary methods.
6152 (dump_symtab): Ditto.
6153 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6154 Include dictionary.h.
6155 * symfile.h: Delete declarations of sort_block_syms,
6157 * symfile.c (sort_block_syms): Delete.
6158 (sort_symtab_syms): Delete.
6159 * symtab.c: Include dictionary.h.
6160 (lookup_block_symbol): Use dictionary iterators.
6161 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6162 (search_symbols, make_symbol_completion_list): Ditto.
6163 (make_symbol_overload_list): Ditto.
6164 * valops.c (value_of_local): Use dict_empty.
6165 Include dictionary.h.
6167 2003-06-11 J. Brobecker <brobecker@gnat.com>
6169 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6171 2003-06-11 David Carlton <carlton@bactrian.org>
6173 * block.h (BLOCK_SHOULD_SORT): Delete.
6174 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6176 * ada-lang.c (ada_add_block_symbols): Ditto.
6177 * symfile.c (sort_block_syms): Delete.
6178 (sort_symtab_syms): Ditto.
6179 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6181 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6182 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6183 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6184 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6185 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6186 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6187 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6189 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6191 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6194 2003-06-11 Andrew Cagney <cagney@redhat.com>
6196 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6197 REGISTER_CONVERTIBLE.
6198 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6199 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6200 * gdbarch.h, gdbarch.c: Re-generate.
6201 * arch-utils.h (deprecated_register_convertible_not): Rename
6202 generic_register_convertible_not.
6203 * arch-utils.c (deprecated_register_convertible_not): Rename
6204 generic_register_convertible.
6205 (legacy_convert_register_p, legacy_register_to_value): Update.
6206 * sh-tdep.c (sh64_push_arguments): Update.
6207 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6208 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6209 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6210 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6211 * arch-utils.c (legacy_value_to_register): Update.
6212 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6213 (rs6000_register_convert_to_raw): Make parameter "from" const.
6214 * mips-tdep.c (mips_gdbarch_init): Update.
6215 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6216 * infcmd.c (default_print_registers_info): Update.
6217 * ia64-tdep.c (ia64_gdbarch_init): Update.
6218 (ia64_register_convert_to_raw): Make parameter "from" const.
6219 * i386-tdep.c (i386_gdbarch_init): Update.
6220 (i386_register_convert_to_raw): Update.
6222 2003-06-11 Andrew Cagney <cagney@redhat.com>
6224 * remote-fileio.c: Include "remote-fileio.h".
6225 * Makefile.in (remote-fileio.o): Update dependencies.
6226 (remote_fileio_h): Fix typo.
6228 2003-06-11 Andrew Cagney <cagney@redhat.com>
6230 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6231 (xstormy16_save_dummy_frame_tos): Make static.
6232 (_initialize_xstormy16_tdep): Add declaration.
6233 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6234 * v850-tdep.c: Make local functions static.
6235 (_initialize_v850_tdep): Add declaration.
6236 * sparc-tdep.c: Make local functions static.
6237 (_initialize_sparc_tdep): Add declaration.
6238 * sh-tdep.c: Make local functions static.
6239 (_initialize_sh_tdep): Add declaration.
6240 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6241 * s390-tdep.c: Make local functions static.
6242 (_initialize_s390_tdep): Add declaration.
6243 * dbxread.c (find_stab_function_addr): Make static.
6244 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6245 * ocd.c (_initialize_remote_ocd): Add declaration.
6246 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6247 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6248 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6249 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6250 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6251 * remote-array.c (_initialize_array): Add declaration.
6252 (_initialize_remote_monitors): Add declaration.
6253 * remote-mips.c: Make local functions static.
6254 (_initialize_remote_mips): Add declaration.
6255 * mcore-tdep.c: Make all local functions static.
6256 (_initialize_mcore_tdep): Add declaration.
6257 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6258 * abug-rom.c (_initialize_abug_rom): Add declaration.
6259 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6260 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6261 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6262 * remote-est.c (_initialize_est): Add declaration.
6263 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6264 (m68hc11_call_dummy_address): Make static.
6265 * ia64-tdep.c: Make local functions static.
6266 (_initialize_ia64_tdep): Add declaration.
6267 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6268 * monitor.c (monitor_wait_filter): Make static.
6269 (_initialize_remote_monitors): Add declaration.
6270 * remote-hms.c (_initialize_remote_hms): Add declaration.
6271 * remote-e7000.c (fetch_regs_from_dump): Make static.
6272 (expect_n): Make static.
6273 (_initialize_remote_e7000): Add declaration.
6274 * ser-e7kpc.c: Always include "defs.h".
6275 (_initialize_ser_e7000pc): Add declaration.
6276 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6277 * cris-tdep.c: Make all but one function static.
6278 (_initialize_cris_tdep): Add declaration.
6279 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6280 * solib.c (update_solib_list): Make static.
6281 (_initialize_solib): Add declaration.
6282 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6283 (_initialize_avr_tdep): Add declaration.
6284 * remote-rdi.c (voiddummy): Make static.
6285 (_initialize_remote_rdi): Add declaration.
6286 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6287 * remote-rdp.c (send_rdp): Make static.
6288 (_initialize_remote_rdp): Add declaration.
6289 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6291 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
6293 * remote-fileio.c: Make ari happy.
6295 2003-06-10 J. Brobecker <brobecker@gnat.com>
6297 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6298 fetching the trailing bytes of the buffer we are about to write.
6300 2003-06-10 Andrew Cagney <cagney@redhat.com>
6302 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6303 * Makefile.in (remote-fileio.o): Update dependencies.
6304 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6305 include <setjmp.h>, or <sys/types.h> conditional on USG.
6306 (remote_fio_jmp_buf): Delete global variable.
6308 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
6309 Martin M. Hunt <hunt@redhat.com>
6311 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6312 (SFILES): Add remote-fileio.c.
6313 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6314 dependencies for building remote.o.
6315 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6316 * remote-fileio.h: New header file defining remote File-I/O interface.
6317 * remote.c (remote_write_bytes, remote_read_bytes): Remove
6318 static storage class.
6319 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6321 (_initialize_remote): Call initialize_remote_fileio().
6322 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6323 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6324 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6325 (captured_main): Initialize new ui_files.
6326 * ui-file.c: Add read and fgets input functions.
6327 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6328 (null_file_read): New function.
6329 (ui_file_read): New function.
6330 (set_ui_file_read): New function.
6331 (stdio_file_read): New function.
6332 * ui-file.h: New type ui_file_read_ftype.
6333 (set_ui_file_read): Declare.
6334 (ui_file_read): Declare.
6336 2003-06-09 Andrew Cagney <cagney@redhat.com>
6338 * frame.h (deprecated_unwind_get_saved_register): Rename
6339 generic_unwind_get_saved_register, update comments.
6340 * mips-tdep.c (mips_get_saved_register): Update.
6341 * frame.c (deprecated_unwind_get_saved_register): Update.
6343 2003-06-09 Andrew Cagney <cagney@redhat.com>
6345 * vax-tdep.c (vax_frame_locals_address): Delete function.
6346 (vax_gdbarch_init): Do not set frame_locals_address.
6347 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6348 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6349 * s390-tdep.c (s390_frame_args_address): Delete function.
6350 (s390_gdbarch_init): Do not set frame_args_address or
6351 frame_locals_address.
6352 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6353 (ns32k_gdbarch_init): Do not set frame_locals_address.
6354 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6355 (hppa_frame_locals_address): Delete function.
6356 (hppa_gdbarch_init): Do not set frame_args_address, or
6357 frame_locals_address.
6358 * arm-tdep.c (arm_frame_args_address): Delete.
6359 (arm_frame_locals_address): Delete.
6360 (arm_gdbarch_init): Do not set frame_args_address, or
6361 frame_locals_address.
6363 2003-06-09 Andrew Cagney <cagney@redhat.com>
6365 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6366 * gdbarch.h, gdbarch.c: Re-generate.
6367 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6368 * arch-utils.c (frame_num_args_unknown): Delete function.
6369 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6370 (frame_info): Use FRAME_NUM_ARGS_P.
6371 * arm-tdep.c (arm_frame_num_args): Delete function.
6372 (arm_gdbarch_init): Do not set frame_num_args.
6373 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6374 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6375 (hppa_gdbarch_init): Do not set frame_num_args.
6376 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6377 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6378 frame_num_args to default frame_num_args_unknown.
6379 * v850-tdep.c (v850_gdbarch_init): Ditto.
6380 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6381 * sh-tdep.c (sh_gdbarch_init): Ditto.
6382 * s390-tdep.c (s390_gdbarch_init): Ditto.
6383 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6384 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6385 * mips-tdep.c (mips_gdbarch_init): Ditto.
6386 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6387 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6389 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6390 * i386-tdep.c (i386_gdbarch_init): Ditto.
6391 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6392 * frv-tdep.c (frv_gdbarch_init): Ditto.
6393 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6394 * cris-tdep.c (cris_gdbarch_init): Ditto.
6395 * avr-tdep.c (avr_gdbarch_init): Ditto.
6396 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6398 2003-06-09 Andrew Cagney <cagney@redhat.com>
6400 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6401 (print_frame_args): Moved to "stack.c".
6402 * stack.c: Include "gdb_assert.h".
6403 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6404 (print_frame_args): Moved from "printcmd.c".
6405 * frame.h (print_frame_args): Delete declaration.
6406 * Makefile.in (stack.o): Update dependencies.
6408 2003-06-08 Andrew Cagney <cagney@redhat.com>
6410 * frame.c (get_prev_frame): Remove reference to
6411 frame_args_address_correct in comments.
6412 * frame-base.c (default_frame_args_address): Delete code
6413 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6414 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6415 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6416 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6417 (vax_frame_args_address_correct): Delete declaration.
6419 2003-06-08 Andrew Cagney <cagney@redhat.com>
6421 * gdbarch.sh (UNWIND_SP): Add.
6422 * gdbarch.h, gdbarch.c: Re-generate.
6423 * frame.c (frame_sp_unwind): New function.
6424 (get_frame_sp): New function.
6425 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6426 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6427 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6429 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6430 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6432 2003-06-08 Andrew Cagney <cagney@redhat.com>
6434 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6437 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6438 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6439 * config/m68k/tm-sun3.h: Update.
6440 * config/m68k/tm-m68klynx.h: Update.
6441 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6443 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6444 trad_frame". Update comments.
6445 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6446 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6447 (trad_frame_register_value, trad_frame_prev_register): Update.
6449 2003-06-08 Andrew Cagney <cagney@redhat.com>
6451 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6452 from GCC's acinclude.m4.
6453 * configure.in: Check for getopt's delcaration.
6454 * aclocal.m4, config.in, configure: Re-generate.
6455 * main.c (error_init): Delete declaration.
6456 * defs.h (error_init): Declare.
6457 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6458 (rs6000_convert_from_func_ptr_addr): Make static.
6459 (_initialize_rs6000_tdep): Add declaration.
6460 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6461 (show_commands, set_verbose, show_history): Delete declaration.
6462 * top.h (set_verbose): Add declaration.
6463 (show_history, set_history, show_commands): Add declaration.
6464 (do_restore_instream_cleanup): Add declaration.
6465 * objc-lang.c (specialcmp): Make static.
6466 (print_object_command): Make static.
6467 (find_objc_msgsend): Make static.
6468 (find_objc_msgcall_submethod_helper): Make static.
6469 (find_objc_msgcall_submethod): Make static.
6470 (_initialize_objc_language): Add declaration.
6471 (find_implementation_from_class): Make static.
6472 (find_implementation): Make static.
6473 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6474 * objc-lang.h (lookup_struct_typedef): Add declaration.
6475 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6476 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6477 (do_restore_user_call_depth): Make static.
6478 (do_restore_instream_cleanup): Delete declaration.
6479 (dont_repeat): Delete declaration.
6480 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6481 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6482 * reggroups.c (_initialize_reggroup): Add declaration.
6483 * cp-support.c (_initialize_cp_support): Add declaration.
6484 * cp-abi.c (_initialize_cp_abi): Add declaration.
6485 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6486 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6487 (_initialize_gnu_v3_abi): Add declaration.
6488 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6489 (_initialize_gnu_v2_abi): Add declaration.
6490 * frame-base.c (_initialize_frame_base): Add declaration.
6491 * doublest.c (floatformat_from_length): Make static.
6492 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6493 * frame.c (create_sentinel_frame): Make static.
6494 (_initialize_frame): Add declaration.
6495 * top.c (do_catch_errors): Make static.
6496 (gdb_rl_operate_and_get_next_completion): Make static.
6497 * typeprint.c: Include "typeprint.h".
6498 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6499 (sentinel_frame_this_id): Make static.
6500 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6501 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6502 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6503 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6504 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6505 * maint.c (maintenance_print_architecture): Make static.
6506 * signals/signals.c (_initialize_signals): Add declaration.
6507 * std-regs.c (_initialize_frame_reg): Add declaration.
6508 * jv-exp.y (push_variable): ISO C definition.
6509 (push_qualified_expression_name): Ditto.
6510 * memattr.c (_initialize_mem): Add declaration.
6511 * remote.c (remote_check_watch_resources): Make static.
6512 (remote_stopped_by_watchpoint): Make static.
6513 (remote_stopped_data_address): Make static.
6514 * d10v-tdep.c (nr_dmap_regs): Make static.
6515 (a0_regnum): Make static.
6516 (d10v_frame_unwind_cache): Make static.
6517 (d10v_frame_p): Make static.
6518 * osabi.c (show_osabi): Make static.
6519 (_initialize_gdb_osabi): Add extern declaration.
6520 * gdbtypes.c (make_qualified_type): Make static.
6521 (safe_parse_type): Make static.
6522 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6523 * macrotab.c (macro_bcache_free): Make static.
6524 * interps.c (interp_set_quiet): Make static.
6525 (interpreter_exec_cmd): Make static.
6526 * stack.h (select_frame_command): New file.
6527 * stack.c: Include "stack.h".
6528 (select_frame_command_wrapper): Delete function.
6529 (select_frame_command): Make global.
6530 * infcall.c: Include "infcall.h".
6531 * linespec.c: Include "linespec.h".
6532 * symfile.c (sections_overlap): Make static.
6533 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6534 * charset.c (_initialize_charset): Add missing prototype.
6535 * regcache.c (init_legacy_regcache_descr): Make static.
6536 (do_regcache_xfree): Make static.
6537 (regcache_xfer_part): Make static.
6538 (_initialize_regcache): Add missing prototype.
6539 * breakpoint.c (parse_breakpoint_sals): Make static.
6540 (breakpoint_sals_to_pc): Make static.
6541 * interps.h (clear_interpreter_hooks): ISO C declaration.
6542 * Makefile.in (stack_h): Define.
6543 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6544 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6546 2003-06-08 Andrew Cagney <cagney@redhat.com>
6548 * Makefile.in (d10v-tdep.o): Update dependencies.
6549 (SFILES): Add trad-frame.c.
6550 (trad_frame_h): Define.
6551 (COMMON_OBS): Add trad-frame.o.
6552 (trad-frame.o): Specify dependencies.
6553 * d10v-tdep.c: Include "trad-frame.h".
6554 (saved_regs_unwinder): Delete function.
6555 (d10v_frame_prev_register): Use trad_frame_prev_register.
6556 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6557 trad_frame", delete "regs" and "prev_sp".
6558 (prologue_find_regs): Use trad-frame.
6559 * trad-frame.h, trad-frame.c: New files.
6561 2003-06-08 Mark Kettenis <kettenis@gnu.org>
6563 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6565 2003-06-07 Adam Fedor <fedor@gnu.org>
6567 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6568 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6569 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6570 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
6571 resolve_msgsend_super, resolve_msgsend_super_stret):
6574 2003-06-07 Andrew Cagney <cagney@redhat.com>
6576 * symfile.h: Re-indent, clean up comments.
6578 2003-06-07 Andrew Cagney <cagney@redhat.com>
6580 * inferior.h (deprecated_write_sp): Replace
6581 generic_target_write_sp.
6582 * regcache.c (deprecated_write_sp): Replace
6583 generic_target_write_sp.
6584 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6585 * vax-tdep.c (vax_gdbarch_init): Update.
6586 * v850-tdep.c (v850_gdbarch_init): Update.
6587 * sparc-tdep.c (sparc_gdbarch_init): Update.
6588 * sh-tdep.c (sh_gdbarch_init): Update.
6589 * s390-tdep.c (s390_gdbarch_init): Update.
6590 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6591 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6592 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6593 * mcore-tdep.c (mcore_gdbarch_init): Update.
6594 * m68k-tdep.c (m68k_gdbarch_init): Update.
6595 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6596 * ia64-tdep.c (ia64_gdbarch_init): Update.
6597 * h8300-tdep.c (h8300_gdbarch_init): Update.
6598 * frv-tdep.c (frv_gdbarch_init): Update.
6599 * cris-tdep.c (cris_gdbarch_init): Update.
6600 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6602 2003-06-07 Andrew Cagney <cagney@redhat.com>
6604 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6605 Assert that PC_REGNUM is valid.
6606 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6608 2003-06-07 Andrew Cagney <cagney@redhat.com>
6610 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6611 * gdbarch.h, gdbarch.c: Regenerate.
6612 * mn10300-tdep.c: Include "gdb_assert.h".
6613 (mn10300_read_fp): New function.
6614 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6615 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6616 * ia64-tdep.c: Include "gdb_assert.h".
6617 (ia64_read_fp): New function.
6618 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6619 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6620 * regcache.c (generic_target_read_sp): Delete function.
6621 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6622 * inferior.h (generic_target_read_sp): Delete declaration.
6623 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6624 generic_target_read_sp.
6625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6626 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6627 * sh-tdep.c (sh_gdbarch_init): Ditto.
6628 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6629 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6631 2003-06-07 Andrew Cagney <cagney@redhat.com>
6633 * gdbarch.sh: Comment each field of startup_gdbarch.
6634 * gdbarch.h, gdbarch.c: Re-generate.
6636 2003-06-07 Andrew Cagney <cagney@redhat.com>
6638 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6639 * gdbarch.h, gdbarch.c: Re-generate.
6640 * regcache.c: Update comments on read_pc et.al.
6641 (generic_target_read_pc): Delete function.
6642 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6643 * inferior.h (generic_target_read_pc): Delete declaration.
6644 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6645 generic_target_read_pc.
6646 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6647 * sh-tdep.c (sh_gdbarch_init): Ditto.
6648 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6651 2003-06-07 Andrew Cagney <cagney@redhat.com>
6653 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6654 "index" with "special_local_sect". Use strcmp instead of STREQ.
6655 Append period to coments.
6657 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6659 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6660 (elfstab_offset_sections): Likewise.
6661 * gdb-stabs.h (stab_section_info): Likewise.
6662 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6663 * objfiles.c (objfile_relocate): Likewise.
6664 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6665 * remote.c (get_offsets): Likewise.
6666 (remote_cisco_objfile_relocate): Likewise.
6667 * somread.c (som_symfile_offsets): Likewise.
6668 * symfile.c (alloc_section_addr_info): New function.
6669 (build_section_addr_info_from_section_tab): Use it.
6670 (free_section_addr_info): Adjust.
6671 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6672 (syms_from_objfile): Allocate local_addr dynamically.
6673 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6675 (add_symbol_file_command): Allocate sect_opts dynamically.
6676 (reread_symbols): Avoid use of SECT_OFF_MAX.
6677 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6678 (alloc_section_addr_info): Declare it.
6679 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6680 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6682 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6684 2003-06-06 Andrew Cagney <cagney@redhat.com>
6686 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6687 (d10v_frame_unwind_cache): Do not set "return_pc".
6689 2003-06-06 Michael Snyder <msnyder@redhat.com>
6691 * h8300-tdep.c: Make tidy (long lines).
6693 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6695 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6696 to regcache_collect().
6698 2003-06-05 J. Brobecker <brobecker@gnat.com>
6700 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6701 pc_in_sigtramp multiarch method.
6702 (hppa_hpux_som_init_abi): Use it.
6703 (hppa_hpux_elf_init_abi): Likewise.
6704 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6705 macro has been multiarched.
6706 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6707 macro here, as hppa64 isn't multiarched yet.
6709 2003-06-05 Andrew Cagney <cagney@redhat.com>
6711 * Makefile.in (value_h): Add $(frame_h).
6712 * value.h: Include "frame.h".
6713 (struct value): Replace "frame_addr" with "frame_id".
6714 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6715 * values.c (allocate_value): Use VALUE_FRAME_ID.
6716 (value_copy): Use VALUE_FRAME_ID.
6717 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6718 * valops.c (value_assign): Update. Use frame_find_by_id.
6720 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6722 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6725 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6727 * thread-db.c (check_event): For create/death event breakpoints,
6728 loop through all messages to ensure that we read the message
6729 corresponding to the breakpoint we are at.
6731 2003-06-04 Michael Snyder <msnyder@redhat.com>
6733 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6735 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6737 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6738 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6739 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6740 when handling .eh_frame sections.
6742 2003-06-04 J. Brobecker <brobecker@gnat.com>
6744 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6745 prepare_to_proceed procedure instead of the hppa-specific one.
6746 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6748 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6750 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6751 * config.in: Regenerated.
6752 * configure.in: Add test for syscall function and check for
6753 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6754 * configure: Regenerated.
6755 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6757 (kill_lwp): New function that uses tkill syscall or
6758 uses kill, depending on whether threading model is nptl or not.
6759 All callers of kill() changed to use kill_lwp().
6760 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6761 see if all threads have already exited in the nptl model.
6762 (stop_and_resume_callback): New callback function used by the
6763 lin_lwp_wait thread exit handling code.
6764 (stop_wait_callback): Check for threads already having exited and
6765 delete such threads fromt the lwp list when discovered.
6766 (stop_callback): Don't assert retcode of kill call.
6768 Roland McGrath <roland@redhat.com>
6769 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6772 2003-06-03 Richard Henderson <rth@redhat.com>
6774 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6775 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6776 (alpha_sigtramp_frame_prev_register): Likewise.
6777 (alpha_heuristic_frame_prev_register): Likewise.
6778 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6780 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6781 alpha-specific register id names.
6782 (alpha_mdebug_frame_unwind_cache): Likewise.
6783 (alpha_mdebug_frame_prev_register): Likewise.
6785 2003-06-03 Richard Henderson <rth@redhat.com>
6787 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6788 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6789 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6790 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6792 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6793 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6794 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6796 * alpha-linux-tdep.c: Remove unnecessary includes.
6797 * Makefile.in (alpha-linux-tdep.o): Update.
6799 2003-06-03 Richard Henderson <rth@redhat.com>
6801 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6802 (alphabsd_fill_fpreg): Likewise.
6804 2003-06-03 J. Brobecker <brobecker@gnat.com>
6806 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6807 references to struct frame_info fields by calls to the equivalent
6808 accessors. Necessary now that frame_info is opaque.
6810 2003-06-03 J. Brobecker <brobecker@gnat.com>
6812 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6813 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6814 structure, field no longer exists.
6816 2003-06-03 J. Brobecker <brobecker@gnat.com>
6818 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6819 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6821 2003-06-03 J. Brobecker <brobecker@gnat.com>
6823 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6824 references to struct frame_info fields by calls to the equivalent
6825 accessors. Necessary now that frame_info is opaque.
6827 2003-06-03 J. Brobecker <brobecker@gnat.com>
6829 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6830 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6831 structure, field no longer exists.
6833 2003-06-03 Theodore A. Roth <troth@openavr.org>
6835 * remote.c (init_remote_state): Compute sizeof_g_packet by
6836 accumulation of the size of all registers instead of blindly using
6837 DEPRECATED_REGISTER_BYTES.
6839 2003-06-03 Michael Snyder <msnyder@redhat.com>
6841 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6842 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6845 2003-06-03 J. Brobecker <brobecker@gnat.com>
6847 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6848 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6850 2003-06-03 Andrew Cagney <cagney@redhat.com>
6852 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6853 (sparc_convert_to_raw): Delete function.
6854 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6855 register_convert_to_virtual.
6857 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6859 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6860 layer if not dealing with a statically-linked threaded program.
6862 2003-06-03 Kris Warkentin <kewarken@qnx.com>
6864 * solib.c (solib_open): Update comment to reflect actual search order.
6866 2003-06-03 Andrew Cagney <cagney@redhat.com>
6868 * frame.c (get_frame_memory_signed): New function.
6869 (get_frame_memory, get_frame_memory_unsigned): New function.
6870 (get_frame_arch): New function.
6871 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6872 (get_frame_memory, get_frame_unsigned_memory): Declare.
6873 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6874 get_frame_memory_unsigned and get_frame_arch.
6875 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6877 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6879 * MAINTAINERS (write after approval): Add myself.
6881 2003-06-03 Jim Blandy <jimb@redhat.com>
6883 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6884 elements of gregset_t are 64 bits each, but access registers
6885 are still 32 bits, so they're packed two per gregset_t
6886 element. Unpack/pack them properly.
6888 2003-06-02 David Carlton <carlton@bactrian.org>
6890 * linespec.c (find_methods): Break out code into
6891 add_matching_methods and add_constructors.
6892 (add_matching_methods): New.
6893 (add_constructors): Ditto.
6895 2003-06-02 Andrew Cagney <cagney@redhat.com>
6897 * sparc-tdep.c (sparc_print_registers): Delete call to
6898 REGISTER_CONVERTIBLE.
6899 (sparc_gdbarch_init): Do not set register_convertible.
6900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6901 * frv-tdep.c (frv_gdbarch_init): Ditto.
6902 * cris-tdep.c (cris_gdbarch_init): Ditto.
6904 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
6906 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6907 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6908 (syms_from_objfile): Ditto.
6910 2003-06-03 Andreas Schwab <schwab@suse.de>
6912 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6913 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6915 2003-06-02 Richard Henderson <rth@redhat.com>
6917 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6918 a member of all_reggroup.
6920 2003-06-02 Richard Henderson <rth@redhat.com>
6922 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6923 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6924 (alpha_lds, alpha_sts): New.
6925 (alpha_convert_register_p): Change from _register_convertible.
6926 (alpha_register_to_value): Change from _convert_to_virtual;
6927 restructure and fail for type sizes other than 4 or 8.
6928 (alpha_value_to_register): Similarly.
6929 (alpha_extract_return_value): Use alpha_sts.
6930 (alpha_store_return_value): Use alpha_lds.
6931 (alpha_gdbarch_init): Update hooks.
6933 2003-06-02 Richard Henderson <rth@redhat.com>
6935 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6937 (alpha_sigtramp_register_address): Likewise.
6939 2003-06-02 Richard Henderson <rth@redhat.com>
6941 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6942 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6943 * alpha-tdep.h: Declare them.
6945 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6946 Remove zerobuf. Don't error on UNIQUE.
6947 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6948 (ALPHA_REGSET_UNIQUE): Provide default.
6949 (supply_gregset): Use alpha_supply_int_regs.
6950 (fill_gregset): Use alpha_fill_int_regs.
6951 (supply_fpregset): Use alpha_supply_fp_regs.
6952 (fill_fpregset): Use alpha_fill_fp_regs.
6953 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6954 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6955 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6956 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6957 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6958 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6960 2003-06-02 Richard Henderson <rth@redhat.com>
6962 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6964 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6965 (alpha_store_return_value): Likewise.
6967 2003-06-02 David Carlton <carlton@math.stanford.edu>
6969 * block.c (contained_in): Add 'const' to arguments.
6970 (block_function): Ditto.
6971 * block.h: Update declarations for block_function and
6974 2003-06-02 David Carlton <carlton@math.stanford.edu>
6976 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6977 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6978 * p-valprint.c (pascal_val_print): Ditto.
6979 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6981 2003-06-02 Richard Henderson <rth@redhat.com>
6983 * alpha-tdep.c (alpha_push_dummy_call): Use
6984 builtin_type_ieee_double_little instead of builtin_type_double.
6986 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6987 sign-extension of 32-bit values.
6988 (alpha_store_return_value): Similarly.
6990 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6991 (alpha_extract_return_value): Likewise.
6992 (alpha_store_return_value): Likewise.
6994 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6995 (alpha_store_return_value): Error on IEEE Quad floats.
6997 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6998 (alpha_extract_struct_value_address): Likewise.
6999 (alpha_store_return_value): Likewise.
7000 (alpha_store_struct_return): Remove.
7001 (alpha_gdbarch_init): Update hook registration to match.
7003 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7004 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7005 macros where appropriate.
7006 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7007 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7009 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7010 for SP, GP; void_func_ptr for PC; non-language-specific types
7012 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7014 2003-06-02 Richard Henderson <rth@redhat.com>
7016 * top.h (lim_at_start): Declare.
7017 * main.c (captured_main): Set it.
7018 * top.c (lim_at_start): Define.
7019 (command_loop): Use it instead of &environ.
7020 * event-top.c (command_handler): Likewise.
7022 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7024 * mipsnbsd-tdep.c: Update copyright years.
7025 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7027 2003-06-01 Richard Henderson <rth@redhat.com>
7029 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7030 (alpha-linux-tdep.o): Update dependencies.
7031 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7032 * alpha-mdebug-tdep.c: Remove unneeded includes.
7034 2003-06-01 Richard Henderson <rth@redhat.com>
7036 * alpha-tdep.c (alpha_register_reggroup_p): New.
7037 (alpha_gdbarch_init): Register it.
7039 2003-06-02 Andrew Cagney <cagney@redhat.com>
7041 * dwarfread.c: Eliminate "register"
7042 (decode_die_type): Eliminate assignment within "if".
7043 (struct_type, decode_array_element_type): Ditto.
7044 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7045 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7046 (decode_modified_type, completedieinfo): Ditto.
7047 * block.c: Eliminate "register".
7048 (blockvector_for_pc_sect): Eliminate assignment within "if".
7049 * cp-support.h (struct symbol): Opaque declaration.
7050 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7052 2003-06-01 Richard Henderson <rth@redhat.com>
7054 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7055 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7057 2003-06-01 Adam Fedor <fedor@gnu.org>
7059 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7060 * gdbarch.[ch]: Regenerate.
7061 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7062 (hppa_gdbarch_init): Set it in the gdbarch vector.
7063 * i386-tdep.c (i386_fetch_pointer_argument): New
7064 (i386_gdbarch_init): Set it into gdbarch.
7065 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7066 (rs6000_gdbarch_init): Set it in gdbarch.
7067 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7068 (sparc_gdbarch_init): Set it in gdbarch.
7070 2003-06-01 Andrew Cagney <cagney@redhat.com>
7072 * defs.h (extract_address): Delete declaration.
7073 * findvar.c (extract_address): Delete function.
7074 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7075 extract_address with the inline equivalent,
7076 extract_unsigned_integer.
7077 (xstormy16_extract_struct_value_address): Ditto.
7078 (xstormy16_pointer_to_address): Ditto.
7079 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7080 * v850-tdep.c (v850_push_arguments): Ditto.
7081 (v850_extract_return_value): Ditto.
7082 (v850_extract_struct_value_address): Ditto.
7083 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7084 (sparcnbsd_get_longjmp_target_64): Ditto.
7085 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7086 (get_longjmp_target): Ditto.
7087 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7088 (sh64_extract_struct_value_address): Ditto.
7089 (sh_push_arguments): Ditto.
7090 (sh64_push_arguments): Ditto.
7091 * remote-vxsparc.c (vx_read_register): Ditto.
7092 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7093 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7094 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7095 * mipsv4-nat.c (get_longjmp_target): Ditto.
7096 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7097 * mips-nat.c (get_longjmp_target): Ditto.
7098 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7099 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7100 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7101 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7102 * irix5-nat.c (get_longjmp_target): Ditto.
7103 * irix4-nat.c (get_longjmp_target): Ditto.
7104 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7105 (ia64_push_arguments): Ditto.
7106 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7107 * h8300-tdep.c (h8300_push_arguments): Ditto.
7108 (h8300_store_return_value): Ditto.
7109 (h8300_extract_struct_value_address): Ditto.
7110 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7111 (frv_push_arguments): Ditto.
7112 * avr-tdep.c (avr_pointer_to_address): Ditto.
7113 (avr_push_arguments): Ditto.
7114 * arm-tdep.c (arm_push_dummy_call): Ditto.
7115 (arm_get_longjmp_target): Ditto.
7116 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7117 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7118 (alpha_get_longjmp_target): Ditto.
7120 * solib-irix.c (extract_mips_address): Inline extract_address,
7121 replacing it with extract_signed_integer.
7122 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7123 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7124 (first_link_map_member, open_symbol_file_object): Ditto.
7125 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7126 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7127 (LM_NEXT, LM_NAME): Ditto.
7129 2003-06-01 Richard Henderson <rth@redhat.com>
7131 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7132 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7133 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7134 (alpha_cannot_store_register): Likewise.
7135 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7136 * alpha-nat.c (supply_gregset): Likewise.
7137 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7139 2003-06-01 Andrew Cagney <cagney@redhat.com>
7141 * infcall.c (call_function_by_hand): Update comment on
7142 DEPRECATED_DUMMY_WRITE_SP.
7144 * mips-tdep.c (mips_gdbarch_init): Do not set
7145 deprecated_dummy_write_sp.
7146 (mips_eabi_push_dummy_call): Set the SP register.
7147 (mips_o64_push_dummy_call): Set the SP register.
7148 (mips_o32_push_dummy_call): Set the SP register.
7149 (mips_n32n64_push_dummy_call): Set the SP register.
7151 2003-06-01 Richard Henderson <rth@redhat.com>
7153 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7154 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7155 (supply_gregset): Likewise.
7156 * alpha-tdep.c (alpha_store_return_value): Likewise.
7157 (alpha_get_longjmp_target): Likewise.
7158 (alpha_register_name): Constify array.
7159 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7160 deprecated_register_size, deprecated_register_bytes,
7161 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7162 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7163 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7165 2003-06-01 Richard Henderson <rth@redhat.com>
7167 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7168 from arg_reg_buffer to regcache to avoid double conversion.
7170 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7172 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7174 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7175 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7177 2003-06-01 Richard Henderson <rth@redhat.com>
7179 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7180 (decode_frame_entry): Set it. Skip FDE augmentation.
7182 2003-06-01 Richard Henderson <rth@redhat.com>
7184 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7185 not overlapping PC_REGNUM.
7187 2003-06-01 Richard Henderson <rth@redhat.com>
7189 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7190 alpha_push_arguments. Don't dump argument register data to
7191 the target stack. Fix float and 128-bit long double semantics.
7192 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7193 (alpha_fix_call_dummy): Remove.
7194 (alpha_call_dummy_words): Remove.
7195 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7197 2003-06-01 Richard Henderson <rth@redhat.com>
7199 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7201 2003-06-01 Andrew Cagney <cagney@redhat.com>
7203 * mips-tdep.c (is_mips16_addr): New function.
7204 (make_mips16_addr, unmake_mips16_addr): New functions.
7205 (pc_is_mips16, mips_fetch_instruction): Use.
7206 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7207 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7208 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7209 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7211 * config/mips/tm-mips.h: Update copyright.
7212 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7213 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7214 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7215 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7216 (TM_PRINT_INSN_MACH): Delete.
7217 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7219 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7220 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7221 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7222 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7223 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7224 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7225 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7226 mips*-*-riscos* and mips*-*-sysv* onto mips.
7227 * config/mips/mips64.mt: New file.
7228 * config/mips/mips.mt: New file.
7229 * config/mips/littlemips.mt: Delete file.
7230 * config/mips/decstation.mt: Delete file.
7231 * config/mips/vr4300el.mt: Delete file.
7232 * config/mips/vr5000el.mt: Delete file.
7233 * config/mips/vr5000.mt: Delete file.
7234 * config/mips/vr4100.mt: Delete file.
7235 * config/mips/vr4xxxel.mt: Delete file.
7236 * config/mips/vr4300.mt: Delete file.
7237 * config/mips/vr4xxx.mt: Delete file.
7238 * config/mips/bigmips.mt: Delete file.
7239 * config/mips/bigmips64.mt: Delete file.
7240 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7241 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7242 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7243 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7244 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7246 * config/mips/tm-irix3.h: Ditto.
7247 * config/mips/tm-mipsv4.h: Ditto.
7248 * config/mips/tm-embed.h: Ditto.
7249 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7251 * config/mips/tm-vr5000el.h: Delete file.
7252 * config/mips/tm-tx39l.h: Delete file.
7253 * config/mips/tm-vr4300el.h: Delete file.
7254 * config/mips/tm-vr4xxxel.h: Delete file.
7255 * config/mips/tm-vr4300.h: Delete file.
7256 * config/mips/tm-vr4100.h: Delete file.
7257 * config/mips/tm-vr4xxx.h: Delete file.
7258 * config/mips/tm-vr5000.h: Delete file.
7259 * config/mips/tm-embedl64.h: Delete file.
7260 * config/mips/tm-embedl.h: Delete file.
7261 * config/mips/tm-embed64.h: Delete file.
7262 * config/mips/tm-bigmips64.h: Delete file.
7263 * config/mips/tm-bigmips.h: Delete file.
7265 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7268 * shnbsd-nat.c: Include "sh-tdep.h".
7270 From Richard Henderson <rth@redhat.com>:
7271 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7273 2003-05-31 Andrew Cagney <cagney@redhat.com>
7275 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7276 forward declaration.
7277 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7278 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7279 (mips_find_saved_regs): Use set_reg_offset.
7280 (mips_frame_init_saved_regs): Delete function.
7281 (mips_pop_frame): Call mips_find_saved_regs instead of
7282 DEPRECATED_FRAME_INIT_SAVED_REGS.
7284 2003-05-31 Andrew Cagney <cagney@redhat.com>
7286 * mips-tdep.c (mips_gdbarch_init): Do not set
7287 deprecated_max_register_raw_size, register_virtual_size, and
7288 deprecated_max_register_virtual_size.
7290 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7292 * i386-tdep.c: Include "dwarf2-frame.h".
7293 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7294 * Makefile.in (i386-tdep.o): Update dependencies.
7296 * dwarf2-frame.c, dwarf2-frame.h: New files.
7297 * Makefile.in (SFILES): Add dwarf2-frame.c.
7298 (dwarf2_frame_h): Define.
7299 (COMMON_OBS): Add dwarf2-frame.o.
7300 (dwarf2-frame.o): Add dependencies.
7302 2003-05-31 Andreas Jaeger <aj@suse.de>
7304 * x86-64-linux-nat.c: Fix comment.
7306 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7308 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7311 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7312 have a sigcontext_addr handler.
7313 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7314 sigcontext_addr handler.
7316 2003-05-31 Andrew Cagney <cagney@redhat.com>
7318 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7319 (print_fp_register_row): Replace do_fp_register_row.
7320 (mips_print_fp_register): Add "file" and "frame" parameters.
7321 (mips_print_register): Add "file" and "frame" parameters.
7322 (mips_print_registers_info): Replace mips_do_registers_info.
7323 (mips_gdbarch_init): Set print_registers_info instead of
7324 deprecated_do_registers_info.
7325 (mips_read_fp_register_single): Add "frame" parameter.
7326 (mips_read_fp_register_double): Add "frame" parameter.
7328 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7330 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7331 Fixes a bug where GDB would print the wrong register names for
7332 targets without SSE.
7334 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7335 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7338 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7339 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7340 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7343 From Michal Ludvig <mludvig@suse.cz>:
7344 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7346 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7347 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7348 I386_ST0_REGNUM): Move here from...
7349 * i386-tdep.c: ... here.
7350 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7351 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7352 registers if possible.
7353 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7354 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7356 (i386bsd_sc_reg_offset): New variable.
7357 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7358 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7360 (i386fbsd_sc_reg_offset): New variable.
7361 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7363 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7365 (i386fbsd4_sc_reg_offset): New variable.
7366 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7367 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7369 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7370 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7371 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7373 (i386nbsd_sc_reg_offset): New variable.
7374 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7375 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7377 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7379 (i386obsd_sc_reg_offset): New variable.
7380 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7381 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7383 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7384 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7385 for frame pointer offset in `struct sigcontext'.
7387 2003-05-31 Andrew Cagney <cagney@redhat.com>
7389 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7390 architecture methods call_dummy_words, sizeof_call_dummy_words,
7391 push_return_address, store_struct_return, and fix_call_dummy. Set
7392 push_dummy_call instead of deprecated_push_arguments.
7393 (mips_store_struct_return): Delete function.
7394 (mips_fix_call_dummy): Delete function.
7395 (mips_push_return_address): Delete function.
7396 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7397 RA_REGNUM and T9_REGNUM.
7398 (mips_n32n64_push_dummy_call): Ditto for
7399 mips_n32n64_push_arguments.
7400 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7401 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7403 2003-05-31 Andrew Cagney <cagney@redhat.com>
7405 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7406 "dummy_addr" to "bp_addr".
7407 * infcall.c (call_function_by_hand): Pass "funaddr" to
7408 gdbarch_push_dummy_call.
7409 * gdbarch.h, gdbarch.c: Re-generate.
7410 * i386-tdep.c (i386_push_dummy_call): Update.
7411 * arm-tdep.c (arm_push_dummy_call): Update.
7412 * d10v-tdep.c (d10v_push_dummy_call): Update.
7414 2003-05-31 Mark Kettenis <kettenis@gnu.org>
7416 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7417 variable declarations.
7418 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7419 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7420 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7421 x86_64_init_frame_pc, x86_64_init_frame_pc,
7422 x86_64_function_has_prologue): Remove prototypes.
7423 (X86_64_NUM_GREGS): New define.
7424 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7425 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7426 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7427 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7428 XMM1_REGNUM): Remove defines.
7429 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7430 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7431 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7432 X86_64_XMM1_REGNUM): New defines.
7433 (struct x86_64_register_info): Renamed from `struct
7434 register_info'. Remove `size' member.
7435 (x86_64_register_info_table): Remove variable.
7436 (x86_64_register_info): New variable.
7437 (X86_64_NUM_REGS): New define.
7438 (X86_64_NUM_GREGS): Remove define.
7439 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7440 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7442 (x86_54_dwarf2_reg_to_regnum): Remove function.
7443 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7444 (x86_64_dwarf_reg_to_regnum): New function.
7445 (x86_64_register_name): Rewrite.
7446 (x86_64_register_raw_size): Remove function.
7447 (x86_64_register_byte_table): Remove variable.
7448 (x86_64_register_byte): Remove function.
7449 (x86_64_register_virtual_type): Remove function.
7450 (x86_64_register_type): New function.
7451 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7452 x86_64_register_convert_to_raw): Remove functions.
7453 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7454 (x86_64_use_struct_convention): Make static. Adjust for renamed
7456 (x86_64_frame_init_saved_regs): Remove function.
7457 (x86_64_push_arguments): Make static. Change to accept a regcache
7459 (x86_64_store_return_value, x86_64_extract_return_value): Make
7460 static. Rewrite based on i386 counterparts.
7461 (x86_64_push_dummy_call): New function.
7462 (X86_64_NUM_SAVED_REGS): New define.
7463 (x86_64_register_number): Remove function.
7464 (x86_64_store_struct_return): Remove function.
7465 (x86_64_frameless_function_invocation,
7466 x86_64_function_has_prologue): Remove functions.
7467 (PROLOG_BUFSIZE): Remove define.
7468 (struct x86_64_frame_cache): New structure.
7469 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7470 x86_64_frame_cache, x86_64_frame_this_id,
7471 x86_64_frame_prev_register, x86_64_frame_p,
7472 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7473 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7475 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7477 (x86_64_skip_prologue): Rewrite in terms of
7478 x86_64_analyze_prologue.
7479 (x86_64_frame_base_address): New function.
7480 (x86_64_frame_base): New variable.
7481 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7482 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7483 set deprecated_fp_regnum, deprecated_register_size,
7484 deprecated_register_bytes, register_raw_size, register_byte,
7485 register_virtual_type, register_convertiable,
7486 register_convert_to_virtual, convert_to_raw,
7487 deprecated_get_saved_register, deprecated_target_read_fp,
7488 deprecated_push_arguments, deprecated_push_return_address,
7489 deprecated_pop_frame, deprecated_store_struct_return,
7490 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7491 frameless_function_invocation, deprecated_frame_saved_pc,
7492 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7493 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7494 deprecated_init_frame_pc and virtual_frame_pointer. Call
7495 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7496 and x86_64_frame_p. Call frame_base_set_default to register
7498 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7499 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7500 (_initialize_x86_64_tdep): Remove function.
7501 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7502 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7503 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7505 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7506 (x86_64_linux_sigcontext_addr): Rewrite.
7507 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7508 x86_64_linux_frame_saved_pc): Remove functions.
7509 (x86_64_linux_pc_in_sigtramp): Renamed from
7510 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7512 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7514 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7515 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7516 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7517 (x86_64_regmap): Rename to regmap.
7518 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7520 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7522 (x86_64_fxsave_offset): Remove function.
7523 (supply_fpregset): Simply call x86_64_supply_fxsave.
7524 (fill_fpregset): Simply call x86_64_fill_fxsave.
7525 (fetch_inferior_registers, store_inferior_registers): Avoid
7526 asignment in if-statement.
7527 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7528 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7529 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7530 (fetch_core_registers): Remove function.
7531 (linux_elf_core_fns): Remove.
7532 (offsetoff): Don't define.
7533 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7534 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7535 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7537 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7538 protection against multiple includes instead of NM_X86_64_h. Add
7539 various comments. Include "config/nm-linux.h". Don't include
7541 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7542 GET_THREAD_SIGNALS): Remove defines.
7543 (x86_64_register_u_addr, kernel_u_size,
7544 lin_thread_get_thread_signals): Remove prototypes.
7545 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7546 [HAVE_LINK_H]: Don't include "solib.h".
7547 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7548 * config/i386/tm-x86-64linux.h: Fix comments.
7549 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7550 x86-64-tdep.o): Update dependencies.
7552 2003-05-30 Andrew Cagney <cagney@redhat.com>
7554 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7555 Change parameter type to a "struct regcache *".
7557 * gdbarch.sh: Regardless of the multi-arch level, always define
7558 the macro when not already defined.
7559 * gdbarch.h, gdbarch.c: Re-generate.
7561 2003-05-30 Richard Henderson <rth@redhat.com>
7563 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7564 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7565 (alpha_mdebug_frame_this_id): Likewise.
7566 (alpha_mdebug_frame_prev_register): Likewise.
7567 (alpha_mdebug_frame_base_address): Likewise.
7568 (alpha_mdebug_frame_locals_address): Likewise.
7569 (alpha_mdebug_frame_args_address): Likewise.
7570 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7571 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7572 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7574 (alpha_heuristic_frame_this_id): Make static.
7575 (alpha_heuristic_frame_prev_register): Likewise.
7576 (alpha_heuristic_frame_base_address): Likewise.
7577 * alpha-tdep.h: Update.
7579 2003-05-30 Mark Kettenis <kettenis@gnu.org>
7581 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7582 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7584 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7585 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7586 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7587 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7588 I386_ST0_REGNUM): New defines.
7589 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7590 codestream_get): Remove define.
7591 (codestream_next_addr, condestream_addr, condestream_buf,
7592 codestream_off, codestream_cnt): Remove variables.
7593 (codestream_fill, codestream_seek, codestream_read): Remove
7595 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7597 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7598 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7599 i386_frame_saved_pc, i386_saved_pc_after_call,
7600 i386_frame_num_args, i386_frame_init_saved_regs,
7601 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7602 i386_push_arguments): Remove functions.
7603 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7604 functionality. Use i386_analyze_prologue instead of
7605 i386_get_frame_setup.
7606 (I386_NUM_SAVED_REGS): New define.
7607 (struct i386_frame_cache): New structure.
7608 (i386_alloc_frame_cache, i386_analyze_struct_return,
7609 i386_skip_probe, i386_analyze_frame_setup,
7610 i386_analyze_register_saves, i386_analyze_prologue,
7611 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7612 i386_frame_prev_register, i386_sigtramp_frame_cache,
7613 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7614 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7615 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7617 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7619 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7620 I386_EAX_REGNUM and I386_EDX_REGNUM.
7621 (i386_extract_return_value, i386_store_return_value): Use
7622 I386_ST0_REGNUM where appropriate.
7623 (i386_extract_struct_value_address): Rewrite to use extract_address.
7624 (i386_svr4_pc_in_sigtramp): Add comment.
7625 (i386_svr4_sigcontext_addr): Rewrite.
7626 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7628 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7629 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7630 of new defines. Set push_dummy_call, don't set
7631 deprecated_push_arguments, deprecated_push_return_address,
7632 deprecated_pop_frame. Don't set parm_boundary. Don't set
7633 deprecated_frame_chain, deprecated_frame_saved_pc,
7634 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7635 save_dummy_frame_tos, unwind_pc. Call
7636 frame_unwind_append_predicate and frame_base_set_default. Don't
7637 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7638 Don't set frameless_function_invocation. Don't set
7639 deprecated_register_bytes, deprecated_register_size,
7640 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7641 * i386-linux-tdep.c: Fix formatting in some comments.
7642 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7643 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7644 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7645 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7646 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7647 redundant parentheses.
7648 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7649 (i386_linux_sigcontext_addr): Use it. Rewrite.
7650 (find_minsym_and_objfile): Change name of second argument.
7651 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7652 changed. Use frame_pc_unwind instead of
7653 DEPRECATED_SAVED_PC_AFTER_CALL.
7654 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7655 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7656 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7658 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7660 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7661 (_initialize_i386_cygwin_tdep): New prototype.
7662 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7663 deprecated_frame_chain_valid.
7664 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7665 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7666 Rely on the SVR4 defaults.
7667 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7668 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7670 2003-05-30 Andrew Cagney <cagney@redhat.com>
7672 * infcall.c (call_function_by_hand): Always call
7673 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7675 2003-05-30 Richard Henderson <rth@redhat.com>
7677 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7680 2003-05-29 Jim Blandy <jimb@redhat.com>
7682 Use gdbarch methods for solib stuff on PowerPC Linux.
7683 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7684 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7686 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7687 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7688 giving the same effect as the #definitions above.
7690 2003-05-29 Adam Fedor <fedor@gnu.org>
7692 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7693 (find_implementation_from_class): Replace it with the standard
7694 case i.e. do nothing.
7696 2003-05-29 Richard Henderson <rth@redhat.com>
7698 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7699 (alpha_linux_sigtramp_offset): Use it. Make static.
7700 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7701 update for new frame model.
7702 * alpha-mdebug-tdep.c: New file.
7703 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7704 (alpha_osf1_init_abi): Install it.
7705 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7706 (linked_proc_desc_table): Remove.
7707 (alpha_frame_past_sigtramp_frame): Remove.
7708 (alpha_dynamic_sigtramp_offset): Remove.
7709 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7710 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7711 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7712 (push_sigtramp_desc): Remove.
7713 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7714 (alpha_cannot_store_register): Likewise.
7715 (alpha_sigcontext_addr): Remove.
7716 (alpha_find_saved_regs): Remove.
7717 (alpha_frame_init_saved_regs): Remove.
7718 (alpha_init_frame_pc_first): Remove.
7719 (read_next_frame_reg): Remove.
7720 (alpha_frame_saved_pc): Remove.
7721 (alpha_saved_pc_after_call): Remove.
7722 (temp_proc_desc, temp_saved_regs): Remove.
7723 (alpha_about_to_return): Remove.
7724 (cached_proc_desc): Remove.
7725 (alpha_frame_chain): Remove.
7726 (alpha_print_extra_frame_info): Remove.
7727 (alpha_init_extra_frame_info): Remove.
7728 (alpha_frame_locals_address): Remove.
7729 (alpha_frame_args_address): Remove.
7730 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7731 (alpha_push_dummy_frame): Remove.
7732 (alpha_pop_frame): Remove.
7733 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7734 (alpha_read_insn): New.
7735 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7736 for different insn encodings.
7737 (alpha_in_lenient_prologue): Remove.
7738 (struct alpha_sigtramp_unwind_cache): New.
7739 (alpha_sigtramp_frame_unwind_cache): New.
7740 (alpha_sigtramp_register_address): New.
7741 (alpha_sigtramp_frame_this_id): New.
7742 (alpha_sigtramp_frame_prev_register): New.
7743 (alpha_sigtramp_frame_unwind): New.
7744 (alpha_sigtramp_frame_p): New.
7745 (struct alpha_heuristic_unwind_cache): New.
7746 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7747 don't count nop insns that occur between functions.
7748 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7749 heuristic_proc_desc, but without the mdebug wrapping.
7750 (alpha_heuristic_frame_this_id): New.
7751 (alpha_heuristic_frame_prev_register): New.
7752 (alpha_heuristic_frame_unwind): New.
7753 (alpha_heuristic_frame_p): New.
7754 (alpha_heuristic_frame_base_address): New.
7755 (alpha_heuristic_frame_base): New.
7756 (alpha_unwind_dummy_id): New.
7757 (alpha_unwind_pc): New.
7758 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7759 frame related deprecated initializations; install replacements.
7760 (alpha_dump_tdep): Remove.
7761 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7762 (alpha_read_insn, alpha_after_prologue,
7763 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7764 alpha_heuristic_frame_prev_register,
7765 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7766 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7767 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7768 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7770 2003-05-29 Andrew Cagney <cagney@redhat.com>
7772 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7773 dependant on the availability of ASSERT_FUNCTION.
7774 (ASSERT_FUNCTION): Do not define when there is no function name.
7776 2003-05-29 Kevin Buettner <kevinb@redhat.com>
7778 From Jimi X <jimix@watson.ibm.com>:
7779 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7781 2003-05-28 Jim Blandy <jimb@redhat.com>
7783 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7784 argument to ptrace to int; the system headers should give it the
7785 right type, and pointers don't fit in ints on powerpc64-*-*.
7787 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7789 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7792 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7794 * stabsread.c (dbx_lookup_type): Make static.
7796 (add_undefined_type): Ditto.
7797 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7800 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7802 * hpread.c (hpread_has_name): Make static.
7803 (hpread_psymtab_to_symtab): Ditto.
7804 (file_exists): Ditto.
7805 (hpread_call_pxdb): Ditto.
7806 (hpread_pxdb_needed): Ditto.
7807 (hpread_quick_traverse): Ditto.
7808 (hpread_get_header): Ditto.
7809 (hpread_get_lntt): Ditto.
7810 (hpread_get_slt): Ditto.
7813 2003-05-25 Andreas Schwab <schwab@suse.de>
7815 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7816 stack_align and deprecated_extra_stack_alignment_needed.
7817 (m68k_stack_align): Delete.
7819 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7820 (m68k_register_virtual_size): Likewise.
7821 (altos_skip_prologue): Remove obsolete function.
7822 (isi_frame_num_args): Likewise.
7823 (news_frame_num_args): Likewise.
7824 (m68k_fix_call_dummy): Make static.
7825 (m68k_push_dummy_frame): Likewise.
7826 (m68k_pop_frame): Likewise.
7827 (m68k_skip_prologue): Likewise.
7828 (m68k_frame_init_saved_regs): Likewise.
7829 (m68k_saved_pc_after_call): Likewise.
7830 (m68k_get_longjmp_target): Make multi-arch.
7831 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7832 structure. Register m68k_get_longjmp_target if enabled.
7833 * m68k-tdep.h (struct gdbarch_tdep): Define.
7834 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7836 * Makefile.in (config.status): Also depend on configure.tgt
7838 (m68klinux-tdep.o): Update dependencies.
7839 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7840 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7841 (M68K_LINUX_JB_PC): Define.
7842 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7843 and take additional parameter.
7844 (m68k_linux_sigtramp_saved_pc): Update.
7845 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7846 m68k_linux_pc_in_sigtramp, in_plt_section,
7847 find_solib_trampoline_target.
7848 * config/m68k/tm-linux.h: Don't include any tm headers.
7849 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7850 (JB_ELEMENT_SIZE): Likewise.
7852 (GET_LONGJMP_TARGET): Likewise.
7853 (IN_SIGTRAMP): Likewise.
7854 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7856 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7858 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7859 (sparc32_push_arguments): Re-implement by calling
7860 sparc32_do_push_arguments.
7862 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7864 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7865 SPARC_O1_REGNUM): New defines.
7866 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7867 (sparc32_store_return_value): New function.
7868 (sparc_extract_struct_value_address): Rewrite to operate on a
7870 (sparc_gdbarch_init): Don't set
7871 deprecated_extract_struct_value_address. Set
7872 extract_struct_value_address instead. Don't set
7873 deprecated_extract_return_value and deprecated_store_return_value
7874 for 32-bit targets. Set extract_return_value and
7875 store_return_value instead.
7876 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7877 DEPRECTAED_EXTRACT_RETURN_VALUE,
7878 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7879 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7880 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7881 (sparc_store_return_value): Remove prototype.
7882 (sparc32_store_return_value): New prototype.
7883 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7886 2003-05-24 Mark Kettenis <kettenis@gnu.org>
7888 * sparcnbsd-tdep.c: Include "gdb_string.h".
7890 2003-05-23 Andrew Cagney <cagney@redhat.com>
7892 * p-valprint.c (pascal_val_print): Replace extract_address with
7893 the inline equivalent extract_unsigned_integer.
7894 * jv-valprint.c (java_value_print): Ditto.
7895 * ada-valprint.c (ada_val_print_1): Ditto.
7896 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7898 2003-05-23 Theodore A. Roth <troth@openavr.org>
7900 * blockframe.c (frameless_look_for_prologue): Remove unused
7901 after_prologue variable.
7903 2003-05-23 Mark Kettenis <kettenis@gnu.org>
7905 * blockframe.c (get_pc_function_start): Rewrite to avoid
7906 asignments in if-statements.
7908 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7910 Committed by Elena Zannoni <ezannoni@redhat.com>.
7911 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7912 files, don't relocate absolute symbols (and do use mst_abs).
7914 2003-05-23 Andrew Cagney <cagney@redhat.com>
7916 * objc-lang.c: Include "gdb_assert.h".
7917 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7918 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7919 (gdb_check, gdb_check_fatal): Delete functions.
7920 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7922 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7923 * Makefile.in (objc-lang.o): Update dependencies.
7925 2003-05-22 Ian Lance Taylor <ian@airs.com>
7927 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7928 with fprintf_filtered, not fprintf_unfiltered.
7930 2003-05-22 Andrew Cagney <cagney@redhat.com>
7932 * stack.c (frame_info): Inline extract_address, replacing it with
7933 extract_unsigned_integer.
7934 * findvar.c (unsigned_pointer_to_address): Ditto.
7935 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7936 * dwarf2expr.c (dwarf2_read_address): Ditto.
7937 * frame.c (frame_pc_unwind): Update comment.
7938 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7940 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7942 * infptrace.c (detach): Call print_sys_errmsg rather than
7943 perror_with_name to issue warning message when errno is non-zero
7944 after calling ptrace detach.
7946 2003-05-21 J. Brobecker <brobecker@gnat.com>
7948 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7949 macro definitions from here...
7950 * hppa-tdep.c: ...to there.
7952 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7954 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7955 register_ptrace_addr(). Fix all callers.
7957 2003-05-21 Andreas Schwab <schwab@suse.de>
7959 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7961 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7963 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7964 (_initialize_m68k_linux_tdep): New function.
7965 (m68k_linux_frame_saved_pc): Make static.
7966 (m68k_linux_extract_return_value): Likewise.
7967 (m68k_linux_store_return_value): Likewise.
7968 (m68k_linux_extract_struct_value_address): Likewise.
7969 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7971 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7972 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7973 (DEPRECATED_FRAME_SAVED_PC): Remove.
7975 2003-05-20 Kris Warkentin <kewarken@qnx.com>
7977 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7978 regset numbering rather than our own.
7980 2003-05-19 David Carlton <carlton@bactrian.org>
7982 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7984 2003-05-19 David Carlton <carlton@bactrian.org>
7986 Partial fix for PR c++/827.
7987 * cp-support.h: Include symtab.h.
7988 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7989 * cp-namespace.c: Update contributors.
7990 (cp_lookup_symbol_nonlocal): New.
7991 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7992 (lookup_symbol_file): Ditto.
7993 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7994 * block.h: Declare block_scope, block_using, block_global_block.
7995 * block.c (block_scope): New.
7996 (block_using, block_global_block): Ditto.
7997 * Makefile.in (cp_support_h): Depend on symtab_h.
7998 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8000 2003-05-19 David Carlton <carlton@bactrian.org>
8002 * language.h (struct language_defn): Add 'la_value_of_this'
8003 and 'la_lookup_symbol_nonlocal' members.
8004 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8005 lookup_symbol_static, lookup_symbol_global,
8006 lookup_symbol_aux_block.
8007 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8008 if we should search fields of this and how to do static/global
8010 (lookup_symbol_aux_block): Make extern.
8011 (basic_lookup_symbol_nonlocal): New.
8012 (lookup_symbol_static, lookup_symbol_global): Ditto.
8013 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8014 'la_lookup_symbol_nonlocal' members.
8015 * c-lang.c (c_language_defn, cplus_language_defn)
8016 (asm_language_defn, minimal_language_defn): Ditto.
8017 * jv-lang.c (java_language_defn): Ditto.
8018 * language.c (unknown_language_defn, auto_language_defn)
8019 (local_language_defn): Ditto.
8020 * m2-lang.c (m2_language_defn): Ditto.
8021 * objc-lang.c (objc_language_defn): Ditto.
8022 * scm-lang.c (scm_language_defn): Ditto.
8023 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8024 * p-lang.c (pascal_language_defn): Ditto for both.
8025 * Makefile.in (f-lang.o): Depend on value_h.
8028 2003-05-19 David Carlton <carlton@bactrian.org>
8030 * block.h: Declare block_static_block.
8031 * block.c (block_static_block): New.
8032 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8033 lookup_symbol_aux_local, calling block_static_block instead.
8034 (lookup_symbol_aux_local): Delete 'static_block' argument.
8036 2003-05-19 David Carlton <carlton@bactrian.org>
8038 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8040 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8042 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8043 register numbers mapping.
8045 2003-05-18 Adam Fedor <fedor@gnu.org>
8047 * symtab.c (completion_list_objc_symbol): New function.
8048 (make_symbol_completion_list): Use it to add ObjC symbols
8049 when looking though the list.
8050 (language_search_unquoted_string): New function.
8051 (make_file_symbol_completion_list): Use it.
8053 2003-05-18 Andreas Schwab <schwab@suse.de>
8055 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8057 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8058 as m68k_linux_extract_return_value.
8059 (DEPRECATED_STORE_RETURN_VALUE): Define as
8060 m68k_linux_store_return_value.
8061 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8062 m68k_linux_extract_struct_value_address.
8063 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8064 get_next_frame, get_frame_base, get_frame_pc.
8065 (m68k_linux_frame_saved_pc): Use get_frame_base.
8066 (m68k_linux_extract_return_value): New function.
8067 (m68k_linux_store_return_value): New function.
8068 (m68k_linux_extract_struct_value_address): New function.
8069 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8071 * c-exp.y (typebase): Remove duplicate occurence of
8072 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8073 of lookup_signed_typename.
8075 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8077 * dwarf2loc.c (find_location_expression): Change type of second
8078 argument to `size_t *'.
8079 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8082 2003-05-18 David Carlton <carlton@bactrian.org>
8084 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8085 'linkage_name'. Add comment.
8086 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8088 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8089 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8090 (lookup_block_symbol): Ditto.
8092 2003-05-16 Andrew Cagney <cagney@redhat.com>
8094 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8095 * gdbarch.h, gdbarch.c: Re-generate.
8096 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8097 * TODO (REGISTER_BYTES): Delete reference.
8098 * alpha-tdep.c (alpha_gdbarch_init): Update.
8099 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8100 * x86-64-tdep.c (x86_64_init_abi): Update.
8101 * vax-tdep.c (vax_gdbarch_init): Update.
8102 * v850-tdep.c (v850_gdbarch_init): Update.
8103 * sparc-tdep.c (sparc_gdbarch_init): Update.
8104 * sh-tdep.c (sh_gdbarch_init): Update.
8105 * s390-tdep.c (s390_gdbarch_init): Update.
8106 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8107 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8108 (ns32k_gdbarch_init_32382): Update.
8109 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8110 * mcore-tdep.c (mcore_gdbarch_init): Update.
8111 * m68k-tdep.c (m68k_gdbarch_init): Update.
8112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8113 * ia64-tdep.c (ia64_gdbarch_init): Update.
8114 * i386-tdep.c (i386_gdbarch_init): Update.
8115 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8116 * hppa-tdep.c (hppa_gdbarch_init): Update.
8117 * h8300-tdep.c (h8300_gdbarch_init): Update.
8118 * frv-tdep.c (frv_gdbarch_init): Update.
8119 * cris-tdep.c (cris_gdbarch_init): Update.
8120 * avr-tdep.c (avr_gdbarch_init): Update.
8121 * arm-tdep.c (arm_gdbarch_init): Update.
8122 * sparc-tdep.c (sparc_pop_frame): Update.
8123 * rs6000-tdep.c (rs6000_pop_frame): Update.
8124 * remote.c (init_remote_state): Update.
8125 (remote_prepare_to_store): Update.
8126 * remote-vx.c (vx_prepare_to_store): Update.
8127 * remote-sds.c (sds_fetch_registers): Update.
8128 (sds_prepare_to_store): Update.
8129 * remote-array.c: Update.
8130 * regcache.c (init_legacy_regcache_descr): Update.
8131 (init_regcache_descr): Update.
8132 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8133 (mips_o64_extract_return_value): Update.
8134 * irix5-nat.c (fetch_core_registers): Update.
8135 * irix4-nat.c (fetch_core_registers): Update.
8136 * i386-tdep.h: Update.
8137 * hppa-tdep.c (pa_do_registers_info): Update.
8138 (pa_do_strcat_registers_info): Update.
8139 * cris-tdep.c (cris_register_bytes_ok): Update.
8140 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8141 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8142 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8143 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8144 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8145 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8146 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8147 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8148 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8149 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8150 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8151 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8152 (REGISTER_BYTES_OK): Update.
8153 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8154 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8156 2003-05-16 Ian Lance Taylor <ian@airs.com>
8158 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8159 (vax_print_insn, print_insn_arg): Remove static functions.
8160 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8161 print_insn_vax from opcodes library.
8162 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8164 2003-05-15 Andrew Cagney <cagney@redhat.com>
8166 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8167 * target.h (memory_breakpoint_from_pc): Delete declaration.
8168 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8169 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8170 * monitor.c (monitor_insert_breakpoint): Use
8171 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8172 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8173 * gdbarch.h, gdbarch.c: Re-generate.
8174 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8175 (sparc_gdbarch_init): Set breakpoint_from_pc to
8176 sparc_breakpoint_from_pc.
8177 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8178 (BREAKPOINT_FROM_PC): Define.
8179 (sparc_breakpoint_from_pc): Declare.
8180 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8181 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8182 (BREAKPOINT_FROM_PC): Define.
8183 (BREAKPOINT): Delete macro.
8184 * target.h: Update comment.
8185 * s390-tdep.c (s390_gdbarch_init): Update comments.
8186 * remote.c: Update comments.
8187 * remote-mips.c: Update comments.
8188 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8189 * mem-break.c: Update comment.
8190 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8191 (ia64_memory_insert_breakpoint): Update.
8192 * config/sparc/tm-sparc.h: Update comment.
8193 * config/pa/tm-hppa64.h: Update comment.
8194 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8195 (rs6000_breakpoint_from_pc): Update.
8196 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8197 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8198 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8199 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8200 (mips_breakpoint_from_pc): Update.
8201 (mips_dump_tdep): Update.
8203 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8204 * minsyms.c (lookup_minimal_symbol): Inline
8205 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8207 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8208 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8209 * p-lang.c (pascal_printstr): Ditto.
8210 * objc-lang.c (objc_printstr): Ditto.
8211 * m2-lang.c (m2_printstr): Ditto.
8212 * jv-valprint.c (java_print_value_fields): Ditto.
8213 * f-lang.c (f_printstr): Ditto.
8214 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8215 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8216 for repeat_count_threshold.
8217 * Makefile.in (cp-valprint.o): Update dependencies.
8219 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8221 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8222 (examine_prologue): Support looking through leaf functions, knowing
8223 they start with mov r2,r12. Support skipping over indirect stores
8224 of the input registers. Upon hitting a non-nop branch instruction
8225 or predicated instruction, bail out by setting lim_pc to the current
8226 pc value in the loop. At the end, if the lim_pc value is still
8227 beyond our calculated value and we have trust_limit set,
8228 use the lim_pc value.
8230 2003-05-15 Andrew Cagney <cagney@redhat.com>
8232 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8233 generic_find_dummy_frame.
8234 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8235 (deprecated_generic_find_dummy_frame): Update.
8236 (deprecated_read_register_dummy): Update.
8237 * frame.c (deprecated_generic_get_saved_register): Update.
8239 2003-05-15 Theodore A. Roth <troth@openavr.org>
8241 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8242 (avr_gdbarch_init): Set breakpoint_from_pc method.
8244 2003-05-15 Andrew Cagney <cagney@redhat.com>
8246 * regcache.c (build_regcache): Set deprecated_register_valid
8248 (deprecated_grub_regcache_for_register_valid): Delete function.
8249 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8252 2003-05-15 David Carlton <carlton@bactrian.org>
8254 Committed by Elena Zannoni <ezannoni@redhat.com>
8255 * symtab.c (lookup_symbol_aux): Delete calls to
8256 lookup_symbol_aux_minsyms.
8257 (lookup_symbol_aux_minsyms): Comment out function and
8258 prototype. Delete lookup by mangled name.
8260 2003-05-14 Kevin Buettner <kevinb@redhat.com>
8262 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8263 correctly indicate an empty stack and ``stack_allocated'' to the
8264 indicate the number of elements initially allocated.
8265 (dwarf_expr_grow_stack): Simplify method for computing new
8266 stack size. Don't loop infinitely if ``stack_len'' is zero.
8267 (execute_stack_op): Move ``ctx->in_reg'' initialization
8268 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8269 be used in conjuction with DW_OP_piece. Revise error message
8272 2003-05-14 Theodore A. Roth <troth@openavr.org>
8274 * MAINTAINERS: Update my email address.
8275 * avr-tdep.c: Ditto.
8277 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
8279 * symtab.h (enum domain_enum): Rename from namespace_enum.
8280 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8281 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8282 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8283 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8284 TYPES_NAMESPACE, METHODS_NAMESPACE.
8285 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8286 (struct symbol, struct partial_symbol): Rename field
8287 'namespace_enum namespace' to 'domain_enum domain'.
8288 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8289 Delete old define kludge for namespace.
8291 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8292 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8293 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8294 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8295 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8296 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8297 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8298 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8299 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8300 occurrences of the above.
8302 2003-05-14 Ian Lance Taylor <ian@airs.com>
8304 * Makefile.in (install-only): Use $(SHELL) when running
8307 2003-05-13 Ian Lance Taylor <ian@airs.com>
8309 * MAINTAINERS (write after approval): Add myself.
8311 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8312 second and third arguments.
8313 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8314 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8316 2003-05-13 Andrew Cagney <cagney@redhat.com>
8318 * defs.h (store_address): Delete declaration.
8319 findvar.c (store_address): Delete function.
8320 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8321 store_unsigned_integer.
8322 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8323 * v850-tdep.c (v850_push_arguments): Ditto.
8324 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8325 * sh-tdep.c (sh64_get_saved_register): Ditto.
8326 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8327 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8328 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8329 (mips_get_saved_register): Ditto.
8330 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8331 (find_func_descr, ia64_push_arguments): Ditto.
8332 * i386-tdep.c (i386_push_arguments): Ditto.
8333 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8334 * frv-tdep.c (frv_push_arguments): Ditto.
8335 * frame.c (legacy_saved_regs_prev_register): Ditto.
8336 (deprecated_generic_get_saved_register): Ditto.
8337 * findvar.c (unsigned_address_to_pointer): Ditto.
8338 * dwarf2read.c (dwarf2_const_value): Ditto.
8339 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8340 * alpha-tdep.c (alpha_push_arguments): Ditto.
8342 2003-05-12 J. Brobecker <brobecker@gnat.com>
8344 * NEWS: Mention that the hppa-hpux port has been partially
8345 multiarched (32bit ABIT only, so far).
8347 2003-05-11 Andrew Cagney <cagney@redhat.com>
8349 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8350 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8351 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8352 sim/testsuite/sim/arm/misaligned2.ms, and
8353 sim/testsuite/sim/arm/misaligned3.ms.
8354 * disasm.h (struct ui_file): Add opaque struct declaration.
8355 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8356 * frame.h (struct ui_file): Ditto.
8358 2003-05-11 Mark Kettenis <kettenis@gnu.org>
8360 * value.h: Pretty print.
8362 2003-05-10 Mark Kettenis <kettenis@gnu.org>
8364 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8366 2003-05-08 Andrew Cagney <cagney@redhat.com>
8368 * regcache.h (max_register_size): Delete declaration.
8369 * regcache.c (max_register_size): Delete function.
8370 (struct regcache_descr): Delete field "max_register_size".
8371 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8372 registers fit in MAX_REGISTER_SIZE.
8373 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8374 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8375 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8376 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8377 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8378 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8379 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8380 * dve3900-rom.c, hppa-tdep.c: Ditto.
8382 2003-05-08 David Carlton <carlton@math.stanford.edu>
8384 * valops.c (push_word): Fix typo.
8386 2003-05-08 Andrew Cagney <cagney@redhat.com>
8388 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8389 * gdbarch.h: Re-generate.
8390 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8391 (legacy_max_register_raw_size): Delete declaration.
8392 * regcache.c (legacy_max_register_raw_size): Delete function.
8393 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8394 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8395 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8396 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8397 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8398 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8399 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8400 * findvar.c, dwarf2cfi.c: Ditto.
8402 2003-05-08 Andrew Cagney <cagney@redhat.com>
8404 * mips-tdep.c (read_signed_register): New function, moved to here
8406 (read_signed_register_pid): Ditto.
8407 * regcache.c (read_signed_register_pid): Delete function, moved to
8409 (read_signed_register): Ditto.
8410 * regcache.h (read_signed_register): Delete declaration.
8411 (read_signed_register_pid): Delete declaration.
8413 2003-05-08 Andrew Cagney <cagney@redhat.com>
8415 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8416 * gdbarch.h: Re-generate.
8417 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8418 (legacy_max_register_virtual_size): Delete declaration.
8419 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8420 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8421 * tracepoint.c (memrange_sortmerge): Ditto.
8422 * sparc-tdep.c (sparc_print_registers): Ditto.
8423 * regcache.c (legacy_max_register_virtual_size): Delete function.
8425 2002-05-08 J. Brobecker <brobecker@gnat.com>
8427 * fork-child.c (escape_bang_in_quoted_argument): New function.
8428 (fork_inferior): Escape '!' characters in quoted arguments
8431 2003-05-08 J. Brobecker <brobecker@gnat.com>
8433 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8434 the language of the CU is not currently supported by GDB.
8436 2003-05-08 J. Brobecker <brobecker@gnat.com>
8438 * defs.h (language): Add language_minimal enum value.
8439 * c-lang.c (minimal_language_defn): New language definition.
8440 (_initialize_c_language): Add the new minimal language to the list
8441 of languages known to GDB.
8443 2003-05-08 Kevin Buettner <kevinb@redhat.com>
8445 * frame.c (get_frame_type): Don't attempt to lazily initialize
8446 frame's unwinder for legacy frames.
8448 2003-05-07 Andrew Cagney <cagney@redhat.com>
8450 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8451 and "regcache" parameters.
8452 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8454 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8456 * dwarf2read.c (dwarf_decode_lines): Only use output of
8457 check_cu_functions() when calling record_line(). Do not update
8458 the current address.
8460 2003-05-07 Andrew Cagney <cagney@redhat.com>
8462 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8465 2003-05-07 Jim Blandy <jimb@redhat.com>
8467 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8468 'maint info symtabs' and 'maint info psymtabs'.
8469 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8470 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8471 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8472 Declarations updated.
8473 * maint.c (maintenance_list_command): Delete.
8474 (_initialize_maint_cmds): Update calls to add_cmd.
8475 * gdbcmd.h (maintenancelistlist): Delete declaration.
8476 * cli/cli-cmds.c (maintenancelistlist): Delete.
8477 (init_cmd_lists): Don't initialize it.
8478 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8480 2003-05-07 Andrew Cagney <cagney@redhat.com>
8482 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8484 (d10v_print_registers_info): Update.
8485 (d10v_dmap_register, d10v_imap_register): Delete functions.
8486 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8487 and "imap_register".
8488 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8489 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8490 * arch-utils.c (generic_remote_translate_xfer_address): Add
8491 "regcache" and "gdbarch" parameters.
8492 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8493 parameter. Change class to multi-arch.
8494 * gdbarch.h, gdbarch.c: Re-generate.
8495 * remote.c (remote_xfer_memory): Use
8496 gdbarch_remote_translate_xfer_address.
8498 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8500 * infrun.c (prev_pc): Move declaration ahead of proceed().
8501 (proceed): Refresh prev_pc value before resuming.
8502 (stop_stepping): Remove code to refresh prev_pc.
8504 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8506 * nto-tdep.c: Removed stray comment.
8508 2003-05-06 Kris Warkentin <kewarken@qnx.com>
8510 * i386-nto-tdep.c: Fix old K&R function definitions.
8511 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8512 Also change add_show_from_set() call to add_setshow_cmd().
8513 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8515 2003-05-05 Andrew Cagney <cagney@redhat.com>
8517 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8518 (fprint_dummy_frames): New function.
8519 (maintenance_print_dummy_frames): New function.
8520 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8521 * frame.c (fprint_frame_id): Make global.
8522 * frame.h (fprint_frame_id): Declare.
8523 * Makefile.in (dummy-frame.o): Update dependencies.
8525 2003-05-05 Andrew Cagney <cagney@redhat.com>
8527 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8528 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8529 SIZEOF_CALL_DUMMY_WORDS.
8530 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8531 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8532 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8533 CALL_DUMMY_BREAKPOINT_OFFSET.
8534 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8535 CALL_DUMMY_START_OFFSET.
8536 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8537 * gdbarch.h, gdbarch.c: Re-generate.
8538 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8539 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8540 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8541 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8542 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8543 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8544 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8545 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8546 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8547 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8548 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8549 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8550 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8551 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8552 * config/sparc/tm-sparc.h: Update.
8554 2003-05-05 Kris Warkentin <kewarken@qnx.com>
8556 * configure.tgt: Add i[3456]86-*-nto*.
8557 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8558 * nto-tdep.c: New file. Neutrino target support routines.
8559 * nto-tdep.h: New file. Neutrino target header.
8560 * config/tm-qnxnto.h: New file.
8561 * config/i386/i386nto.mt: New file.
8562 * config/i386/tm-i386nto.h: New file.
8564 2003-05-04 Andrew Cagney <cagney@redhat.com>
8566 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8567 (load_infrun_state): Ditto.
8568 (struct thread_info): Drop "prev_func_name" field.
8569 * thread.c (load_infrun_state): Update.
8570 (save_infrun_state): Update.
8571 * infrun.c (prev_func_name): Delete variable.
8572 (init_wait_for_inferior): Do not clear prev_func_name.
8573 (stop_stepping, keep_going, context_switch): Do not swap
8575 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8576 instead of PC_IN_SIGTRAMP.
8578 2003-05-04 Andrew Cagney <cagney@redhat.com>
8580 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8581 REGISTER_BYTE with register_offset_hack.
8582 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8583 that REGISTER_BYTE is consistent with the regcache.
8584 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8585 * gdbarch.h, gdbarch.c: Regenerate.
8587 2003-05-04 Mark Kettenis <kettenis@gnu.org>
8589 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8590 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8592 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8594 2003-05-03 J. Brobecker <brobecker@gnat.com>
8596 From Thierry Schneider <tpschneider1@yahoo.com>
8597 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8598 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8599 (mi-cmd-symbol.o): Add rule.
8601 2003-05-03 Andrew Cagney <cagney@redhat.com>
8603 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8604 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8605 * gdbarch.h, gdbarch.c: Re-generate.
8606 * d10v-tdep.c (d10v_push_dummy_code): New function.
8607 (d10v_gdbarch_init): Set push_dummy_code.
8608 * infcall.c (legacy_push_dummy_code): New function.
8609 (generic_push_dummy_code): New function.
8610 (push_dummy_code): New function.
8611 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8612 instead of dummy_addr, to push_dummy_call. Move call to
8613 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8615 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8617 2003-05-03 Andrew Cagney <cagney@redhat.com>
8619 * disasm.h (print_insn): Declare.
8620 * disasm.c (init_gdb_disassemble_info): New function.
8621 (gdb_disassembly): Call init_gdb_disassemble_info.
8622 (gdb_print_insn): New function.
8623 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8624 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8625 * mcore-tdep.c: Include "disasm.h"
8626 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8627 * d10v-tdep.c: Include "disasm.h".
8628 (display_trace): Call gdb_print_insn, instead of print_insn.
8629 (print_insn): Delete function.
8630 * printcmd.c: Include "disasm.h".
8631 (print_insn): Delete function.
8632 (print_formatted): Call gdb_print_insn, instead of print_insn.
8633 * Makefile.in (printcmd.o): Update dependencies.
8634 (mcore-tdep.o, d10v-tdep.o): Ditto.
8636 2003-05-02 Andrew Cagney <cagney@redhat.com>
8638 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8639 PC_REGNUM, re-indent.
8640 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8641 PC_REGNUM isn't set.
8643 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8644 * gdbarch.h, gdbarch.c: Re-generate.
8645 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8646 register_virtual_size, pc_regnum, or register_bytes.
8647 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8648 (d10v_register_type): Use D10V_PC_REGNUM.
8649 (d10v_print_registers_info, d10v_read_pc): Ditto.
8650 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8651 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8653 2003-05-02 David Carlton <carlton@bactrian.org>
8655 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8656 the name with mstrsave.
8658 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8660 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8661 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8662 (host_charset_name, target_charset_name): New vars for use by
8664 (host_charset_enum, target_charset_enum): New enums for set/show
8666 (set_charset_sfunc, set_host_charset_sfunc,
8667 set_target_charset_sfunc): New functions.
8668 (set_host_charset, set_target_charset): Make static.
8669 (list_charsets, set_host_charset_command,
8670 set_target_charset_command): Delete functions.
8671 (show_charset_command): Rewrite as....
8672 (show_charset): Hook this up with the set/show command mechanism.
8673 (_initialize_charset): Change names of charsets to match the
8674 set/show enums. Use host_charset_name and target_charset_name.
8675 Use set/show mechanism for charset, host-charset, target-charset
8676 commands. Do not make 'show host-charset' and 'show
8677 target-charset' be aliases of 'show charset'.
8679 * charset.h (set_host_charset, set_target_charset): Don't export,
8680 they are not used outside the file.
8682 2003-05-01 Andrew Cagney <cagney@redhat.com>
8684 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8685 (gdb_disassembly): Make "di" non static, always initialize and
8686 cleanup. Always use dis_asm_read_memory.
8687 (gdb_dis_asm_read_memory): Delete function.
8689 2003-05-01 Andrew Cagney <cagney@redhat.com>
8691 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8692 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8694 2003-04-30 Andrew Cagney <cagney@redhat.com>
8696 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8697 "tm_print_insn_info".
8698 (TARGET_PRINT_INSN_INFO): Delete macro.
8699 (dis_asm_read_memory): Delete function declaration.
8700 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8701 (tm_print_insn_info): Delete variable definition.
8702 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8703 * gdbarch.h, gdbarch.c: Re-generate.
8704 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8705 "deprecated_tm_print_insn_info".
8706 * mcore-tdep.c (mcore_dump_insn): Ditto.
8707 * mips-tdep.c (mips_gdbarch_init): Ditto.
8708 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8709 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8710 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8711 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8712 instead of TARGET_PRINT_INSN_INFO, add comment.
8713 * s390-tdep.c (s390_get_frame_info): Instead of
8714 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8715 (s390_check_function_end, s390_is_sigreturn): Ditto.
8716 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8717 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8718 * disasm.c: Include "gdbcore.h".
8719 (_initialize_disasm): New function, initialize
8720 "deprecated_tm_print_insn_info".
8721 (deprecated_tm_print_insn_info): New variable.
8722 (dis_asm_read_memory): Moved from "corefile.c", made static.
8723 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8724 * Makefile.in (disasm.o): Update dependencies.
8726 2003-04-30 Andrew Cagney <cagney@redhat.com>
8728 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8730 2003-04-29 Adam Fedor <fedor@gnu.org>
8732 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8733 * infcall.c (find_function_addr): Make non-static.
8734 * infcall.h (find_function_addr): Declare.
8735 * Makefile.in (eval.o): Update dependencies.
8737 2003-04-28 Adam Fedor <fedor@gnu.org>
8739 * symtab.c (symbol_find_demangled_name): Check for and demangle
8741 (symbol_init_demangled_name): Init for language_objc as well.
8743 2003-04-28 Andrew Cagney <cagney@redhat.com>
8745 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8746 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8747 * gdbarch.h, gdbarch.c: Re-generate.
8748 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8749 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8750 * inferior.h (deprecated_read_fp): Rename read_fp.
8751 (generic_target_read_fp): Delete declaration.
8752 * regcache.c (generic_target_read_fp): Delete function.
8753 (deprecated_read_fp): Replace read_fp, use
8754 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8755 * d10v-tdep.c (d10v_read_fp): Delete function.
8756 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8758 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8759 deprecated_target_read_fp to generic_target_read_fp.
8760 * sh-tdep.c (sh_gdbarch_init): Ditto.
8761 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8762 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8763 * frv-tdep.c (frv_gdbarch_init): Ditto.
8765 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8766 deprecated_fp_regnum.
8767 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8768 * vax-tdep.c (vax_gdbarch_init): Ditto.
8769 * v850-tdep.c (v850_gdbarch_init): Ditto.
8770 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8771 * sh-tdep.c (sh_gdbarch_init): Ditto.
8772 * s390-tdep.c (s390_gdbarch_init): Ditto.
8773 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8774 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8775 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8776 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8777 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8778 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8779 * i386-tdep.c (i386_gdbarch_init): Ditto.
8780 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8781 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8782 * frv-tdep.c (frv_gdbarch_init): Ditto.
8783 * cris-tdep.c (cris_gdbarch_init): Ditto.
8784 * avr-tdep.c (avr_gdbarch_init): Ditto.
8785 * arm-tdep.c (arm_gdbarch_init): Ditto.
8786 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8788 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8789 * v850-tdep.c (v850_gdbarch_init): Ditto.
8790 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8791 * sh-tdep.c (sh_gdbarch_init): Ditto.
8792 * s390-tdep.c (s390_gdbarch_init): Ditto.
8793 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8794 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8795 * mips-tdep.c (mips_gdbarch_init): Ditto.
8796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8797 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8798 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8799 * frv-tdep.c (frv_gdbarch_init): Ditto.
8800 * avr-tdep.c (avr_gdbarch_init): Ditto.
8801 * arm-tdep.c (arm_gdbarch_init): Ditto.
8803 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8804 DEPRECATED_FP_REGNUM.
8805 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8806 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8807 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8808 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8809 (sparc32_register_virtual_type): Ditto.
8810 * sh-tdep.c (sh64_frame_chain): Ditto.
8811 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8812 (sh_nofp_frame_init_saved_regs): Ditto.
8813 (sh64_nofp_frame_init_saved_regs): Ditto.
8814 (sh_fp_frame_init_saved_regs): Ditto.
8815 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8816 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8817 * procfs.c (procfs_fetch_registers): Ditto.
8818 (procfs_store_registers): Ditto.
8819 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8820 (store_inferior_registers, fetch_core_registers): Ditto.
8821 (fetch_kcore_registers, clear_regs): Ditto.
8822 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8823 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8824 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8825 * nlm/i386.c (do_status): Ditto.
8826 * mipsv4-nat.c (supply_gregset): Ditto.
8827 * mips-tdep.c: Ditto for comments.
8828 * mips-nat.c (fetch_inferior_registers): Ditto.
8829 (store_inferior_registers, fetch_core_registers): Ditto.
8830 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8831 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8832 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8833 (i386_do_pop_frame, i386_register_type): Ditto.
8834 * hppa-tdep.c (hppa_frame_chain): Ditto.
8835 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8836 (hppa_pop_frame, hppa_read_fp): Ditto.
8837 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8838 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8839 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8840 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8841 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8842 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8843 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8844 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8845 * blockframe.c: Ditto for comments.
8846 * arch-utils.h: Ditto for comments.
8847 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8848 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8849 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8850 * alpha-tdep.h: Ditto for comments.
8851 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8852 (alpha_cannot_store_register): Ditto.
8853 (alpha_push_dummy_frame): Ditto.
8854 * alpha-nat.c (supply_gregset): Ditto.
8856 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8857 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8858 * config/sparc/tm-sparc.h: Update comment.
8860 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8861 deprecated_read_fp instead of TARGET_READ_FP.
8862 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8863 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8864 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8865 deprecated_read_fp instead of read_fp.
8866 * s390-tdep.c (s390_push_arguments): Ditto.
8867 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8868 * frame.h: Ditto in comments.
8869 * frame.c (legacy_get_prev_frame): Ditto.
8870 * dummy-frame.c (dummy_frame_this_id): Ditto.
8871 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8873 2003-04-28 Andrew Cagney <cagney@redhat.com>
8875 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8876 * gdbarch.h, gdbarch.c: Re-generate.
8877 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8878 * vax-tdep.c (_initialize_vax_tdep): Update.
8879 * v850-tdep.c (_initialize_v850_tdep): Update.
8880 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8881 * s390-tdep.c (_initialize_s390_tdep): Update.
8882 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8883 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8884 * mips-tdep.c (_initialize_mips_tdep): Update.
8885 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8886 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8887 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8888 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8889 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8890 * frv-tdep.c (_initialize_frv_tdep): Update.
8891 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8892 (_initialize_cris_tdep): Update.
8893 * arch-utils.c (legacy_print_insn): Update.
8894 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8896 2003-04-26 Adam Fedor <fedor@gnu.org>
8898 * linespec.c (decode_objc): New function to decode ObjC calls
8899 (decode_line_1): Check for ObjC calls (using decode_objc)
8900 * Makefile (linespec.o): Update dependencies.
8902 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
8904 * breakpoint.h (struct breakpoint_ops): New.
8905 (struct breakpoint): Add ops member.
8907 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8908 (mention): Use new breakpoint ops member.
8909 (set_raw_breakpoint): Initialize ops field to NULL.
8910 (print_exception_catchpoint, print_one_exception_catchpoint)
8911 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8912 (gnu_v3_exception_catchpoint_ops): New.
8913 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8915 2003-04-25 Adam Fedor <fedor@gnu.org>
8917 * Makefile.in (COMMON_OBS): Add objc-lang.o
8919 2003-04-25 Andrew Cagney <cagney@redhat.com>
8921 * d10v-tdep.c (print_insn): Delete function.
8922 (display_trace): Use TARGET_PRINT_INSN.
8923 (_initialize_d10v_tdep): Do not set tm_print_insn.
8924 (d10v_gdbarch_init): Set print_insn.
8926 2003-04-25 Andrew Cagney <cagney@redhat.com>
8928 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8929 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8930 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8931 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8932 (nr_dmap_regs, a0_regnum): ... new functions.
8933 (d10v_print_registers_info): Use a0_regnum, use register_size.
8934 (d10v_register_byte): Delete function.
8935 (d10v_register_raw_size): Delete function.
8936 (d10v_register_type): Use a0_regnum.
8937 (d10v_print_registers_info): Use a0_regnum.
8938 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8939 (d10v_gdbarch_init): Do not set register_byte or
8940 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8941 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8943 (trace_command): Use XCALLOC.
8944 (print_insn): Delete reference to tm_print_insn.
8945 (saved_regs_unwinder): Use store_unsigned_integer instead of
8947 * frame.h (FRAME_OBSTACK_CALLOC): Define
8949 2003-04-25 David Carlton <carlton@bactrian.org>
8951 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8953 2003-04-24 Adam Fedor <fedor@gnu.org>
8955 * objc-lang.c: Include "valprint.h"
8956 * Makefile.in (objc-lang.o): Update dependencies.
8958 2003-04-24 Adam Fedor <fedor@gnu.org>
8960 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8961 architecture dependant compilation and mark as unimplemented
8962 (until they get put in the gdbarch vector).
8964 2003-04-23 David Carlton <carlton@bactrian.org>
8966 * cp-support.c (cp_find_first_component): Accept 'operator' in
8969 2003-04-23 Andrew Cagney <cagney@redhat.com>
8971 * infcall.c (call_function_by_hand): Eliminate redundant
8972 indentation. Move "saved_async" and "old_cleanups" to where they
8975 2003-04-23 Andrew Cagney <cagney@redhat.com>
8977 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8978 and "buffer". Move the "name" code to where it is needed.
8980 2003-04-23 Andrew Cagney <cagney@redhat.com>
8982 * infcall.c (call_function_by_hand): Move variables "start_sp",
8983 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8984 code to ON_STACK switch branch.
8986 2003-04-23 Andrew Cagney <cagney@redhat.com>
8988 * infcall.c (call_function_by_hand): Make declaration of "i",
8989 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8992 2003-04-23 Andrew Cagney <cagney@redhat.com>
8994 * infcall.c (call_function_by_hand): Delete variable
8995 "n_method_args". Localize "param_type"'s declaration to the loop
8996 that it is used. Reinstate code assigning to said variable -
8997 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8998 Rationalize code using "param_type".
9000 2003-04-22 Andrew Cagney <cagney@redhat.com>
9002 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9003 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9004 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9005 to DEPRECATED_PUSH_RETURN_ADDRESS.
9007 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9009 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9010 on the DWARF2 register number prior to fetching a register.
9012 2003-04-22 J. Brobecker <brobecker@gnat.com>
9014 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9015 Update all the tests using SOFT_FLOAT considering the fact that
9016 this macro was always set to 0.
9017 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9018 considering the fact that this macro was always set to 0.
9019 * hppa-tdep.h (hppa_store_return_value): Likewise.
9020 (hppa_extract_return_value): Likewise.
9022 2003-04-22 J. Brobecker <brobecker@gnat.com>
9024 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9025 the hppa-pro target only.
9027 2003-04-21 J. Brobecker <brobecker@gnat.com>
9029 Ongoing multi-arch conversion effort for HP/UX:
9030 * config/pa/tm-hppa.h: Move all macro that are no longer
9031 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9032 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9034 2003-04-21 J. Brobecker <brobecker@gnat.com>
9036 * config/pa/tm-hppa.h: Obsolete a section that was only used
9039 2003-04-21 J. Brobecker <brobecker@gnat.com>
9041 Ongoing multi-arch conversion for HP/UX.
9042 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9043 if already defined (allows hppa64 to stay non-multiarched for now).
9044 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9046 2003-04-21 Andrew Cagney <cagney@redhat.com>
9048 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9050 2003-04-21 Andrew Cagney <cagney@redhat.com>
9052 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9053 "i386_num_mmx_regs".
9055 2003-04-21 Andrew Cagney <cagney@redhat.com>
9057 * infcall.c: New file.
9058 * infcall.h: New file.
9059 * valarith.c: Include "infcall.h".
9060 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9061 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9062 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9063 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9064 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9065 (SFILES): Add "infcall.c"
9066 (COMMON_OBS): Add "infcall.o".
9067 (infcall.o): Specify dependencies.
9068 * value.h (call_function_by_hand): Delete declaration.
9069 * inferior.h (run_stack_dummy): Delete declaration.
9070 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9071 (run_stack_dummy): Move to "infcall.c", merged into
9072 call_function_by_hand.
9073 * valops.c (call_function_by_hand): Moved to "infcall.c".
9074 (find_function_addr, value_arg_coerce): Ditto.
9075 (unwindonsignal_p, coerce_float_to_double): Ditto.
9076 (_initialize_valops): Move "set/show coerce-float-to-double", and
9077 "set/show unwindonsignal" commands to "infcall.c".
9078 * v850-tdep.c, target.h: Update comments.
9079 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9080 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9081 (sh64_init_extra_frame_info): Update comments.
9082 * mn10300-tdep.c: Update comments.
9083 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9084 * config/sparc/tm-sparc.h: Update comments.
9085 * breakpoint.h: Update comments.
9086 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9087 * arm-tdep.c: Update comment.
9089 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9091 * i386-tdep.c (i386_num_register_names): New variable.
9092 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9093 (MM0_REGNUM): Remove redundant parentheses in define.
9094 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9095 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9096 i386_mxcsr_regnum_p): Remove redundant parentheses.
9097 (i386_register_name): Use i386_num_register_names.
9099 * i386-tdep.c (i386_extract_return_value,
9100 i386_store_return_value): Correct check for availability of
9101 floating-point registers.
9103 * i386-tdep.c (i386_frame_num_args): Remove function.
9104 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9106 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9107 mmx_regnum_to_fp_regnum. Adjust all callers.
9109 * i386-tdep.c (i386_get_longjmp_target): Use
9110 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9111 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9114 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9116 * core-regset.c: Update comments to reflect reality. Re-order
9118 (fetch_core_registers): Use switch instead of if. Remove
9119 redundant prototype.
9121 2003-04-18 Jim Blandy <jimb@redhat.com>
9123 * s390-tdep.c (s390_frame_align): New function.
9124 (s390_gdbarch_init): Register it with the gdbarch object.
9126 2003-04-17 Richard Henderson <rth@redhat.com>
9128 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9130 2003-04-17 Michael Snyder <msnyder@redhat.com>
9131 Karen Bennet <bennet@redhat.com>
9133 Committed by Elena Zannoni <ezannoni@redhat.com>
9134 * gdb_gcore.sh: New script to create a core dump of a process.
9136 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9138 * values.c (value_being_returned): Don't fetch the return
9139 value if the return type is void.
9141 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9143 * thread-db.c: Reindented.
9145 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9147 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9148 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9175 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9177 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9178 the size of ``long double'' to 16, instead of 8.
9180 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9182 * i386-linux-nat.c: Add some whitespace to make things more
9184 (fetch_register, store_register, fetch_inferior_registers,
9185 store_inferior_registers): Get rid of assignment in if-statement.
9186 (store_register): Fix typo in error message.
9188 2003-04-16 Andrew Cagney <cagney@redhat.com>
9190 * utils.c (xmmalloc): Always allocate something, matches
9191 libiberty/xmalloc's semantics.
9192 (xmrealloc, xmcalloc): Ditto.
9194 2003-04-16 Andrew Cagney <cagney@redhat.com>
9196 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9198 (get_frame_type): Initialize unwind and type when needed.
9199 (get_frame_id, frame_register_unwind): Ditto.
9201 2003-04-16 Andrew Cagney <cagney@redhat.com>
9203 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9205 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9206 * sparcl-stub.c: Obsolete file.
9207 * config/sparc/tm-sparclet.h: Obsolete file.
9208 * sparclet-stub.c: Obsolete file.
9209 * sparclet-rom.c: Obsolete file.
9210 * sparcl-tdep.c: Obsolete file.
9211 * config/sparc/tm-sparclite.h: Obsolete file.
9212 * config/sparc/sparclite.mt: Obsolete file.
9213 * config/sparc/sparclet.mt: Obsolete file.
9214 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9215 sparc86x-*-* obsolete.
9217 2003-04-15 David Carlton <carlton@math.stanford.edu>
9219 * Makefile.in (SFILES): Add cp-namespace.c.
9220 (COMMON_OBS): Add cp-namespace.o.
9221 (block.o): Depend on gdb_obstack_h and cp_support_h.
9222 (buildsym.o): Depend on cp_support_h.
9223 (cp-namespace.o): New.
9224 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9225 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9226 (dwarf2read.o): Depend on cp_support_h.
9227 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9228 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9229 processing_current_namespace.
9230 (read_namespace): Update processing_current_namespace; check for
9231 anonymous namespaces.
9232 (dwarf2_name): New function.
9233 (dwarf2_extension): Ditto.
9234 * cp-support.h: Update copyright, contributors.
9235 Add inclusion guards.
9236 Add opaque declaration for structs obstack, block, symbol.
9237 (struct using_direct): New struct.
9238 Add declarations for cp_find_first_component,
9239 cp_entire_prefix_len, processing_has_namespace_info,
9240 processing_current_namespace, cp_is_anonymous,
9241 cp_add_using_directive, cp_initialize_namespace,
9242 cp_finalize_namespace, cp_set_block_scope,
9243 cp_scan_for_anonymous_namespaces.
9244 * cp-namespace.c: New file.
9245 * cp-support.c: Update copyright.
9246 Include ctype.h, gdb_assert.h, gdbcmd.h.
9247 New variable maint_cplus_cmd_list.
9248 (cp_find_first_component): New function.
9249 (cp_entire_prefix_len, maint_cplus_command)
9250 (first_component_command, _initialize_cp_support): Ditto.
9251 * buildsym.c: Include cp-support.h.
9252 New variable using_list.
9253 (add_symbol_to_list): Check for anonymous namespaces.
9254 (finish_block): Set block's scope.
9255 (start_symtab): Initialize C++ namespace support.
9256 (end_symtab): Finalize C++ namespace support.
9257 * block.h: Add opaque declarations for structs
9258 block_namespace_info, using_direct, and obstack.
9259 Add declarations for block_set_scope and block_set_using.
9260 (struct block): Add 'language_specific' member.
9261 (BLOCK_NAMESPACE): New macro.
9262 * block.c: Include gdb_obstack.h and cp-support.h.
9263 (struct block_namespace_info): New struct.
9264 (block_set_scope): New function.
9265 (block_set_using, block_initialize_namespace): Ditto.
9267 2003-04-14 Kevin Buettner <kevinb@redhat.com>
9269 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9270 (locate_base): Return early if there aren't any link map offsets.
9271 (svr4_solib_create_inferior_hook): Warn if shared library support
9274 2003-04-14 David Carlton <carlton@math.stanford.edu>
9276 * symtab.c (symbol_set_names): Add prefix when storing Java names
9277 in hash table. Fix for PR java/1039.
9279 2003-04-14 David Carlton <carlton@math.stanford.edu>
9281 * symtab.c (symbol_set_names): Rename 'name' arg to
9282 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9283 * symtab.h: Change 'name' argument in declaration of
9284 symbol_set_names to 'linkage_name'.
9285 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9287 2003-04-14 Andrew Cagney <cagney@redhat.com>
9289 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9290 return the fully sign-extended register value.
9291 (get_frame_pointer): Ditto.
9292 (mips_pop_frame): Initialize "proc_desc" after checking for a
9295 2003-04-14 Andrew Cagney <cagney@redhat.com>
9297 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9298 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9299 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9300 (mips_push_register): Delete function.
9301 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9304 2003-04-14 Jim Blandy <jimb@redhat.com>
9306 * symmisc.c: #include "gdb_regex.h".
9307 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9309 * maint.c (maintenance_list_command): New function.
9310 (_initialize_maint_cmds): Register the above as commands.
9311 * symtab.h (maintenance_list_symtabs,
9312 maintenance_list_psymtabs): New declarations.
9313 * cli/cli-cmds.c (maintenancelistlist): New variable.
9314 (init_cmd_lists): Initialize it.
9315 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9316 * gdbcmd.h (maintenancelistlist): New declaration.
9317 * Makefile.in (symmisc.o): Update dependencies.
9319 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
9321 * s390-nat.c: Include asm/types.h for addr_t.
9323 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
9325 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9326 actually incoming type.
9328 2003-04-13 Andrew Cagney <cagney@redhat.com>
9330 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9331 get_next_frame and get_frame_saved_regs.
9333 2003-04-13 Andrew Cagney <cagney@redhat.com>
9335 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9336 of gdbarch_num_regs.
9338 2003-04-13 Andrew Cagney <cagney@redhat.com>
9340 * frame.h: Mention what replaced what in "struct frame_info".
9341 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9342 deprecated_update_frame_base_hack and
9343 deprecated_update_frame_pc_hack.
9344 * hppa-tdep.c: Ditto.
9346 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9348 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9349 to read_reg and update its comment. Remove regnum member.
9350 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9351 Don't call read_reg when setting in_reg. Call read_reg to get
9352 the frame base if it's in a register. Return the register number
9353 on the stack instead of in the context. Remove extra arguments
9355 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9356 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9357 the register number on the expression stack.
9358 (needs_frame_read_reg): Remove extra arguments.
9360 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9362 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9364 (execute_stack_op): All callers updated.
9365 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9366 * dwarf2loc.c (find_location_expression): New function.
9367 (dwarf_expr_frame_base): Call it.
9368 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9369 (dwarf2_tracepoint_var_ref): New function, broken out from
9370 locexpr_tracepoint_var_ref.
9371 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9373 (loclist_read_variable, loclist_read_needs_frame): New functions.
9374 (loclist_describe_location, loclist_tracepoint_var_ref): New
9376 (dwarf2_loclist_funcs): New struct location_funcs.
9377 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9378 (struct dwarf2_locexpr_baton): Add comments.
9379 (dwarf2_loclist_funcs): New extern.
9380 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9381 base_address and base_known.
9382 (dwarf_loc_buffer): New variable.
9383 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9384 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9385 (dwarf2_has_info): Initialize dwarf_loc_offset.
9386 (dwarf2_build_psymtabs): Read in .debug_loc.
9387 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9389 (psymtab_to_symtab_1): Likewise. Move base address calculation
9391 (dwarf2_get_pc_bounds): ... here. Use the base address from
9393 (dwarf2_symbol_mark_computed): Handle location lists.
9395 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
9397 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9398 if the linkage name demangled successfully.
9400 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9402 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9403 disassmbly_flavour): Removed.
9405 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9407 2003-04-13 Mark Kettenis <kettenis@gnu.org>
9409 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9411 2003-04-12 Andrew Cagney <cagney@redhat.com>
9413 * frame.h (struct frame_info): Move definition from here ...
9414 * frame.c (struct frame_info): ... to here.
9416 2003-04-12 Andrew Cagney <cagney@redhat.com>
9418 * gdbthread.h (save_infrun_state): Delete parameter
9420 (struct thread_info): Delete field "prev_func_start".
9421 (load_infrun_state): Ditto.
9422 * thread.c (load_infrun_state, save_infrun_state): Update.
9423 * infrun.c (prev_func_start): Delete variable.
9424 (context_switch, init_wait_for_inferior): Update.
9425 (stop_stepping, keep_going): Update.
9427 2003-04-12 Andrew Cagney <cagney@redhat.com>
9429 * gdbarch.sh: Add missing opaque declarations.
9430 * gdbarch.h: Regnerate.
9431 * symtab.h: Add missing opaque declarations.
9432 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9433 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9434 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9435 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9436 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9437 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9438 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9439 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9440 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9441 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9442 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9443 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9444 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9446 2003-04-11 Andrew Cagney <cagney@redhat.com>
9448 * frame.c (get_frame_id): Return this frame's "id".
9449 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9451 (legacy_saved_regs_this_id): Replace function body with
9453 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9454 FRAME_OBSTACK_ZALLOC.
9455 (create_new_frame): Mark the frame ID as valid.
9457 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9459 * Makefile.in (libbfd_h): Added missing setting.
9460 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9461 according to the selected ABI.
9463 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9465 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9467 2003-04-11 Andrew Cagney <cagney@redhat.com>
9469 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9470 SAVED_PC_AFTER_CALL.
9471 * gdbarch.h, gdbarch.c: Regenerate.
9472 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9473 * x86-64-tdep.c (x86_64_init_abi): Update.
9474 * vax-tdep.c (vax_gdbarch_init): Update.
9475 * v850-tdep.c (v850_gdbarch_init): Update.
9476 * sparc-tdep.c (sparc_gdbarch_init): Update.
9477 * sh-tdep.c (sh_gdbarch_init): Update.
9478 * s390-tdep.c (s390_gdbarch_init): Update.
9479 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9480 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9481 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9482 * mips-tdep.c (mips_gdbarch_init): Update.
9483 * mcore-tdep.c (mcore_gdbarch_init): Update.
9484 * m68k-tdep.c (m68k_gdbarch_init): Update.
9485 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9486 * ia64-tdep.c (ia64_gdbarch_init): Update.
9487 (ia64_saved_pc_after_call): Update declaration.
9488 * i386ly-tdep.c (i386lynx_init_abi): Update.
9489 * i386-tdep.c (i386_gdbarch_init): Update.
9490 * hppa-tdep.c (hppa_gdbarch_init): Update.
9491 * h8300-tdep.c (h8300_gdbarch_init): Update.
9492 * frv-tdep.c (frv_gdbarch_init): Update.
9493 * cris-tdep.c (cris_gdbarch_init): Update.
9494 * avr-tdep.c (avr_gdbarch_init): Update.
9495 * arm-tdep.c (arm_gdbarch_init): Update.
9496 * alpha-tdep.c (alpha_gdbarch_init): Update.
9497 * ns32knbsd-nat.c (frame_num_args): Update.
9498 * ns32k-tdep.c (umax_frame_num_args): Update.
9499 * mips-tdep.c (mips_init_frame_pc_first): Update.
9500 * infrun.c (step_over_function): Update.
9501 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9502 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9503 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9504 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9505 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9506 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9507 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9508 * arch-utils.c (init_frame_pc_default): Update.
9509 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9510 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9513 2003-04-11 Andrew Cagney <cagney@redhat.com>
9515 * i387-tdep.c: Update copyright.
9516 (i387_to_double): Delete function.
9517 (double_to_i387): Delete function.
9519 2003-04-10 Andrew Cagney <cagney@redhat.com>
9521 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9522 frame's function's address. Simplify.
9523 (d10v_frame_unwind_cache): Check that the frame's function is
9526 2003-04-10 Jim Blandy <jimb@redhat.com>
9528 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9529 call to set_gdbarch_deprecated_push_arguments.
9531 2003-04-10 Andrew Cagney <cagney@redhat.com>
9533 * frame.c (fprint_frame_id): New function.
9534 (fprint_frame_type, fprint_frame): New function.
9535 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9536 (create_sentinel_frame, get_frame_id): Ditto.
9537 (frame_id_p, frame_id_eq): Ditto.
9538 (frame_id_inner, create_new_frame): Ditto.
9539 (legacy_get_prev_frame, get_prev_frame): Ditto.
9540 (deprecated_update_frame_pc_hack): Ditto.
9541 (frame_register_unwind): Ditto.
9542 (deprecated_update_frame_base_hack): Ditto.
9544 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9546 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9547 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9548 frame_chain function.
9549 * Makefile.in: Add dependencies due to above change.
9551 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
9553 * blockframe.c (legacy_frame_chain_valid): Move call to
9554 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9557 2003-04-09 Andrew Cagney <cagney@redhat.com>
9559 * frame.h (struct frame_id): Replace "pc" and "base" with
9560 "stack_addr" and "code_addr". Update comments.
9561 (frame_id_build): Update parameter names and comment.
9562 (struct frame_info): Replace "id_p" and "id" with "this_id".
9563 * dummy-frame.c (dummy_frame_this_id): Update.
9564 * breakpoint.c (print_one_breakpoint): Update.
9565 * frame.c (get_frame_id): Update.
9566 (get_frame_base, frame_id_build): Update.
9567 (create_sentinel_frame, legacy_get_prev_frame): Update.
9568 (deprecated_update_frame_base_hack): Update.
9569 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9570 (frame_id_inner): Ditto.
9572 2003-04-09 Andrew Cagney <cagney@redhat.com>
9574 * defs.h (gdb_print_host_address): Make "addr" parameter a
9576 * utils.c (gdb_print_host_address): Update.
9578 2003-04-09 Kevin Buettner <kevinb@redhat.com>
9580 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9581 register number for R0 is 0.
9583 2003-04-09 J. Brobecker <brobecker@gnat.com>
9585 * frame.h (struct gdbarch): Add opaque structure definition
9586 to avoid a compilation warning on LynxOS 4.0.
9588 2003-04-09 Andrew Cagney <cagney@redhat.com>
9590 * frame.h (struct frame_info): Delete field "pc". Replace
9591 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9593 * frame.c (frame_pc_unwind): Update.
9594 (create_sentinel_frame): Do not set "pc".
9595 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9596 (get_frame_pc): Call frame_pc_unwind.
9597 (deprecated_update_frame_pc_hack): Update.
9598 (create_new_frame): Use "pc" not "->pc".
9600 2003-04-09 Andrew Cagney <cagney@redhat.com>
9602 * frame.c (get_frame_id): Eliminate code updating "frame".
9603 (legacy_get_prev_frame): Ditto.
9604 (get_frame_base): Return id.base directly.
9605 (deprecated_update_frame_base_hack): Update "id.base".
9606 * frame.h (struct frame_info): Delete field "frame".
9608 2003-04-09 Andrew Cagney <cagney@redhat.com>
9610 * NEWS: Mention that the "Sequent family" is obsolete.
9611 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9612 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9613 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9614 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9615 * config/i386/tm-ptx4.h: Obsolete file.
9616 * config/i386/tm-ptx.h: Obsolete file.
9617 * symm-tdep.c: Obsolete file.
9618 * config/i386/symmetry.mt: Obsolete file.
9619 * config/i386/tm-symmetry.h: Obsolete file.
9620 * symm-nat.c: Obsolete file.
9621 * config/i386/nm-symmetry.h: Obsolete file.
9622 * config/i386/xm-symmetry.h: Obsolete file.
9623 * config/i386/symmetry.mh: Obsolete file.
9624 * config/i386/nm-ptx4.h: Obsolete file.
9625 * config/i386/ptx4.mh: Obsolete file.
9626 * config/i386/ptx.mt: Obsolete file.
9627 * config/i386/ptx.mh: Obsolete file.
9628 * config/i386/xm-ptx4.h: Obsolete file.
9629 * config/i386/xm-ptx.h: Obsolete file.
9631 2003-04-09 Andrew Cagney <cagney@redhat.com>
9633 Obsolete mips*-*-mach3*.
9634 * NEWS: Mention that mips*-*-mach3* is obsolete.
9635 * m3-nat.c: Obsolete file.
9636 * config/nm-m3.h: Obsolete file.
9637 * config/mips/tm-mipsm3.h: Obsolete file.
9638 * config/mips/mipsm3.mt: Obsolete file.
9639 * config/mips/mipsm3.mh: Obsolete file.
9640 * config/mips/xm-mipsm3.h: Obsolete file.
9641 * mipsm3-nat.c: Obsolete file.
9642 * configure.host: Obsolete mips-dec-mach3*.
9643 * configure.tgt: Obsolete mips*-*-mach3*.
9645 2003-04-09 Andrew Cagney <cagney@redhat.com>
9647 * doublest.h: Update copyright.
9648 (deprecated_store_floating, deprecated_extract_floating): Rename
9649 store_floating and extract_floating. Update comments.
9650 * doublest.c: Update copyright.
9651 (extract_floating_by_length): Replace extract_floating.
9652 (store_floating_by_length): Replace store_floating.
9653 (deprecated_extract_floating): New function.
9654 (deprecated_store_floating): New function.
9655 (extract_typed_floating): Call extract_floating_by_length.
9656 (store_typed_floating): Call store_floating_by_length.
9657 * x86-64-tdep.c (x86_64_store_return_value): Update.
9658 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9659 (sh64_extract_return_value): Update.
9660 (sh_sh4_register_convert_to_virtual): Update.
9661 (sh_sh64_register_convert_to_virtual): Update.
9662 (sh_sh4_register_convert_to_raw): Update.
9663 (sh_sh64_register_convert_to_raw): Update.
9664 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9665 (rs6000_register_convert_to_raw): Update.
9666 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9667 (ia64_register_convert_to_raw): Update.
9668 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9669 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9670 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9671 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9672 (alpha_register_convert_to_raw): Update.
9674 2003-04-08 Andrew Cagney <cagney@redhat.com>
9676 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9677 * gdbarch.h, gdbarch.c: Re-generate.
9678 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9679 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9680 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9681 conditionally, use frame_pc_unwind as an alternative. Add
9683 * arch-utils.c (init_frame_pc_default): Only call
9684 SAVED_PC_AFTER_CALL when available.
9686 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9688 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9689 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9690 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9691 (start_remote): Ditto.
9692 (handle_inferior_event): Ditto.
9693 (save_inferior_status): Ditto.
9694 (restore_inferior_status): Ditto.
9695 * infcmd.c (attach_command): Ditto.
9696 * fork-child.c (startup_inferior): Ditto.
9697 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9698 * alpha-tdep.c (heuristic_proc_start): Ditto.
9699 * mips-tdep.c (heuristic_proc_start): Ditto.
9700 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9701 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9702 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9703 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9704 * remote-vx.c (vx_create_inferior): Ditto.
9706 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9708 * infrun.c (stop_soon_quietly): Make it an enum, to better
9709 override the default behavior of handle_inferior_event.
9710 (clear_proceed_status): Update uses of stop_soon_quietly to
9711 reflect that it is now an enum.
9712 (start_remote): Ditto.
9713 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9714 is set to handle the new GNU/Linux kernel behavior for
9715 attach/sigstop. Update uses of stop_soon_quietly.
9716 * inferior.h (enum stop_kind): New enum.
9717 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9718 Reset normal handle_inferior_event behavior, afterwards.
9719 * fork-child.c (startup_inferior): Update.
9720 * alpha-tdep.c (heuristic_proc_start): Update.
9721 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9722 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9723 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9724 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9725 * remote-vx.c (vx_create_inferior): Update.
9726 * mips-tdep.c (heuristic_proc_start): Update.
9728 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9730 * disasm.c (dump_insns): Move variables inside loop, or they will
9731 be freed more than once, causing wild memory corruptions.
9732 (gdb_disassembly): Look for the substring "-thread",
9733 instead of "-threads" in the target name, to make sure to find
9734 the 'multi-thread' target. Also, make sure we do the right thing
9735 with the "core" target.
9737 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9739 * mips-tdep.c (mips_print_fp_register): New function, created from
9740 do_fp_register_row(). Registers are now (also) printed as hex.
9741 Only one register is printed per row.
9742 (mips_print_register, do_fp_register_row): Print floating point
9743 registers with mips_print_fp_register().
9745 2003-04-06 Andrew Cagney <cagney@redhat.com>
9747 * valprint.h (inspect_it): Add extern declaration.
9748 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9749 (selectors_info, classes_info): Ditto.
9750 (find_objc_msgcall): Fix indentation.
9751 (objc_printstr): Delete extern declarations.
9753 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9755 2003-04-06 Andrew Cagney <cagney@redhat.com>
9757 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9759 * frame.c (legacy_saved_regs_this_id): Update.
9760 (legacy_get_prev_frame): Update.
9761 * xstormy16-tdep.c: Update comment.
9762 * sparc-tdep.c (sparc_frame_chain): Update comment.
9763 * blockframe.c (legacy_frame_chain_valid): Update.
9765 2003-04-06 Andrew Cagney <cagney@redhat.com>
9767 * valprint.c (val_print_type_code_int): Delete #ifdef
9768 PRINT_TYPELESS_INTEGER code.
9770 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9771 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9772 multi-arch definition.
9773 * gdbarch.h: Re-generate.
9775 2003-04-05 Andrew Cagney <cagney@redhat.com>
9777 Eliminate FRAME_FIND_SAVED_REGS.
9778 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9779 Change FSR parameter to a pointer.
9780 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9781 Assume FSR parameter is a pointer.
9782 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9784 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9785 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9786 saved_regs a pointer.
9787 (hppa_frame_saved_pc): Ditto.
9788 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9789 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9791 (restore_pc_queue): Make fsr a pointer.
9792 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9793 (hppa_frame_chain): Make saved_regs a pointer, call
9794 hppa_frame_init_saved_regs.
9795 * sparc-tdep.c: Include "gdb_assert.h".
9796 (sparc_frame_find_saved_regs): Replace internal_error with
9798 * remote-vxsparc.c (vx_read_register): Delete reference to
9799 FRAME_FIND_SAVED_REGS.
9800 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9801 * gdbarch.h: Regenerate.
9802 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9803 (deprecated_get_frame_saved_regs): Delete declaration.
9804 (struct frame_saved_regs): Delete definition.
9805 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9806 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9807 (hppa_frame_find_saved_regs): Delete declaration.
9808 (FRAME_FIND_SAVED_REGS): Delete macro.
9809 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9810 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9811 FRAME_FIND_SAVED_REGS in comment.
9813 2003-04-05 Andrew Cagney <cagney@redhat.com>
9815 * frame.c (frame_func_unwind, get_frame_func): New functions.
9816 * frame.h (get_frame_func, frame_func_unwind): Declare.
9817 (struct frame_info): Add field "prev_func" for caching the
9818 previous frame's function address.
9819 * arm-tdep.c (arm_frameless_function_invocation): Combine
9820 get_pc_function_start and get_frame_pc into get_frame_func.
9821 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9822 (sh64_nofp_frame_init_saved_regs): Ditto.
9823 * s390-tdep.c (s390_function_start): Ditto.
9824 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9825 (rs6000_frameless_function_invocation): Ditto.
9826 (rs6000_frame_saved_pc): Ditto.
9827 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9828 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9829 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9830 (i386_frame_init_saved_regs): Ditto.
9831 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9832 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9833 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9834 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9835 * blockframe.c (frameless_look_for_prologue): Ditto.
9837 2003-04-05 Andrew Cagney <cagney@redhat.com>
9839 * frame.c (legacy_get_prev_frame): Link prev to next at the
9840 function start. Update comments.
9842 2003-04-05 Andrew Cagney <cagney@redhat.com>
9844 * frame.c (get_frame_id): Update comment.
9845 (legacy_get_prev_frame): Update comment.
9846 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9847 * gdbarch.h: Regenerate.
9848 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9849 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9851 2003-04-05 Andrew Cagney <cagney@redhat.com>
9853 * stack.c (print_frame_info): Use get_frame_pc.
9855 2003-04-04 Andrew Cagney <cagney@redhat.com>
9857 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9858 the frame's type from the unwinder.
9859 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9860 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9861 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9862 (get_frame_base_address): Use get_frame_type.
9863 (get_frame_locals_address, get_frame_args_address): Ditto.
9864 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9865 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9866 (struct frame_info): Add comment explaining why the frame contains
9868 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9869 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9870 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9872 * frame-unwind.h: Include "frame.h".
9873 (struct frame_unwind): Add "type" field.
9874 * Makefile.in (frame_unwind_h): Add $(frame_h).
9876 2003-04-04 Andrew Cagney <cagney@redhat.com>
9878 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9879 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9880 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9882 (d10v_unwind_dummy_id): Use frame_id_build.
9883 * frame.c (find_frame_sal): Use get_frame_pc.
9884 (create_new_frame): Use deprecated_update_frame_pc_hack and
9885 deprecated_update_frame_base_hack.
9886 (create_sentinel_frame): Add comment about ->pc going away.
9887 (get_prev_frame): Add comment about ->pc going away.
9888 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9889 frame_id_build, deprecated_update_frame_pc_hack and
9890 deprecated_update_frame_base_hack.
9891 (select_frame): Use get_frame_pc.
9892 (legacy_saved_regs_this_id): Use frame_id_build.
9894 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
9896 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9897 signed integer case.
9898 (classify_argument): Handle enumerations and references.
9900 2003-04-04 Andrew Cagney <cagney@redhat.com>
9902 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9905 2003-04-01 Adam Fedor <fedor@gnu.org>
9907 * gdb/objc-lang.c (selectors_info): Replace calls to
9908 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9909 SYMBOL_NATURAL_NAME.
9910 (classes_info, find_methods): Likewise.
9912 2003-04-03 Kevin Buettner <kevinb@redhat.com>
9914 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9915 ``mach'' to the value determined by bfd_default_set_arch_mach().
9917 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9919 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9920 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9921 (mi-cmd-file.o): Update dependencies.
9923 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9925 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9926 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9928 2003-04-01 Adam Fedor <fedor@gnu.org>
9930 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9931 * language.h (struct language_defn): Add la_demangle.
9932 (language_demangle): Declare.
9933 * language.c (language_demangle): New function.
9934 (unk_lang_demangle): Likewise.
9935 (unknown_language_defn, auto_language_defn, local_language_defn):
9936 Add ukn_lang_demangle.
9937 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9938 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9939 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9940 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9941 * jv-lang.c (java_demangle): New function
9942 (java_language_defn): Use it for la_demangle element.
9943 * objc-lang.c (objc_demangle): Add options argument
9944 (objc_language_defn): Use objc_demangle for la_demangle element.
9945 * maint.c (maintenance_demangle): Replace switch with
9946 call to language_demangle.
9947 * utils.c (fprintf_symbol_filtered): Likewise.
9949 2003-04-01 Andrew Cagney <cagney@redhat.com>
9951 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9952 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9953 PRINT_TYPELESS_INTEGER.
9954 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9955 PUSH_RETURN_ADDRESS.
9957 2003-04-01 Andrew Cagney <cagney@redhat.com>
9959 * Makefile.in (d10v-tdep.o): Update dependencies.
9960 * d10v-tdep.c: Include "frame-base.h".
9961 (d10v_frame_unwind): Make constant.
9962 (d10v_frame_base_address): New function.
9963 (d10v_frame_base): New variable.
9964 (d10v_gdbarch_init): Set frame_base default.
9965 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9967 (d10v_frame_unwind_cache): Set and use "prev_sp".
9968 (d10v_frame_this_id): Use the previous frame's inner most stack
9969 address and this frame's func address for the frame ID. Use
9970 frame_id_build. Don't analyze beyond the current instruction.
9972 2003-04-01 Andrew Cagney <cagney@redhat.com>
9974 * frame.h (get_frame_locals_address, get_frame_args_address):
9975 Refer to the base address, instead of the address of the first
9978 2003-04-01 Andrew Cagney <cagney@redhat.com>
9980 Add frame debug info addresses:
9981 * frame-base.c: New file.
9982 * frame-base.h: New file.
9983 * frame.h (struct frame_base): Add opaque declaration.
9984 (get_frame_base): Update comment.
9985 (get_frame_base_address): Declare.
9986 (get_frame_locals_address): Declare.
9987 (get_frame_args_address): Declare.
9988 (struct frame_info): Add "base" and "base_cache". Update
9989 comments on the unwinder.
9990 * frame.c: Include "frame-base.h".
9991 (get_frame_locals_address): New function.
9992 (get_frame_base_address): New function.
9993 (get_frame_args_address): New function.
9994 * findvar.c (read_var_value): Use get_frame_locals_address and
9995 get_frame_args_address.
9996 * stack.c (frame_info): Use get_frame_locals_address and
9997 get_frame_args_address.
9998 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9999 moved to "frame-base.c".
10000 * printcmd.c (print_frame_nameless_args): Ditto.
10001 * symtab.h (address_class): Update comments.
10002 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10003 get_frame_base_address.
10004 * dwarf2expr.c (execute_stack_op): Ditto.
10005 * Makefile.in (frame_base_h): Define.
10006 (frame.o): Update dependencies.
10007 (frame-base.o): Add dependencies.
10008 (SFILES): Add frame-base.c.
10009 (COMMON_OBS): Add frame-base.o.
10011 2003-04-01 Andrew Cagney <cagney@redhat.com>
10013 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10014 CALL_DUMMY_LENGTH): Ditto.
10015 * gdbarch.c: Re-generate.
10016 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10017 (CALL_DUMMY_LENGTH): Delete macro.
10018 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10019 * arm-tdep.c (arm_gdbarch_init): Ditto.
10020 * avr-tdep.c (avr_gdbarch_init): Ditto.
10021 * cris-tdep.c (cris_gdbarch_init): Ditto.
10022 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10023 * frv-tdep.c (frv_gdbarch_init): Ditto.
10024 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10025 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10026 * i386-tdep.c (i386_gdbarch_init): Ditto.
10027 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10028 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10029 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10030 * mips-tdep.c (mips_gdbarch_init): Ditto.
10031 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10032 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10033 * s390-tdep.c (s390_gdbarch_init): Ditto.
10034 * sh-tdep.c (sh_gdbarch_init): Ditto.
10035 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10036 * v850-tdep.c (v850_gdbarch_init): Ditto.
10037 * vax-tdep.c (vax_gdbarch_init): Ditto.
10038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10040 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10042 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10044 2003-04-01 Andrew Cagney <cagney@redhat.com>
10046 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10047 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10048 * gdbarch.h, gdbarch.c: Re-generate.
10049 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10050 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10051 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10052 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10053 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10054 * infcmd.c (run_stack_dummy): Simplify assuming
10055 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10056 * infrun.c (handle_inferior_event): Ditto.
10057 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10058 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10059 * arm-tdep.c (arm_gdbarch_init): Ditto.
10060 * avr-tdep.c (avr_gdbarch_init): Ditto.
10061 * cris-tdep.c (cris_gdbarch_init): Ditto.
10062 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10063 * frv-tdep.c (frv_gdbarch_init): Ditto.
10064 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10065 * i386-tdep.c (i386_gdbarch_init): Ditto.
10066 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10067 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10068 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10069 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10070 * mips-tdep.c (mips_gdbarch_init): Ditto.
10071 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10072 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10073 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10074 * s390-tdep.c (s390_gdbarch_init): Ditto.
10075 * sh-tdep.c (sh_gdbarch_init): Ditto.
10076 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10077 * v850-tdep.c (v850_gdbarch_init): Ditto.
10078 * vax-tdep.c (vax_gdbarch_init): Ditto.
10079 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10081 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10083 * symfile.c (symfile_relocate_debug_section): Update call to
10084 bfd_simple_get_relocated_section_contents.
10086 2003-03-31 Andrew Cagney <cagney@redhat.com>
10088 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10089 * gdbarch.h, gdbarch.c: Regenerate.
10090 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10091 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10093 * frame.h (generic_fix_call_dummy): Delete declaration.
10094 * dummy-frame.h: Update comment.
10095 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10098 * sh-tdep.c (sh_gdbarch_init): Ditto.
10099 * s390-tdep.c (s390_gdbarch_init): Ditto.
10100 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10101 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10102 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10103 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10104 * i386-tdep.c (i386_gdbarch_init): Ditto.
10105 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10106 * frv-tdep.c (frv_gdbarch_init): Ditto.
10107 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10108 * cris-tdep.c (cris_gdbarch_init): Ditto.
10109 * avr-tdep.c (avr_gdbarch_init): Ditto.
10110 * arm-tdep.c (arm_gdbarch_init): Ditto.
10112 2003-03-31 J. Brobecker <brobecker@gnat.com>
10114 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10115 (INIT_FRAME_AP): Likewise.
10116 (EXTRA_FRAME_INFO): Likewise.
10118 2003-03-31 Andrew Cagney <cagney@redhat.com>
10120 * gdbarch.sh: Include "symfile.h".
10121 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10122 * gdbarch.h, gdbarch.c: Re-generate.
10123 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10124 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10125 call_dummy_address, the default is at entry_point_address.
10126 * v850-tdep.c (v850_gdbarch_init): Ditto.
10127 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10128 * sh-tdep.c (sh_gdbarch_init): Ditto.
10129 * s390-tdep.c (s390_gdbarch_init): Ditto.
10130 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10131 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10132 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10133 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10134 * i386-tdep.c (i386_gdbarch_init): Ditto.
10135 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10136 * frv-tdep.c (frv_gdbarch_init): Ditto.
10137 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10138 * cris-tdep.c (cris_gdbarch_init): Ditto.
10139 * arm-tdep.c (arm_gdbarch_init): Ditto.
10141 2003-03-31 Andrew Cagney <cagney@redhat.com>
10143 * gdbarch.sh (CALL_DUMMY_P): Delete.
10144 * gdbarch.h, gdbarch.c: Re-generate.
10145 * inferior.h (CALL_DUMMY_P): Delete macro.
10146 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10147 * vax-tdep.c (vax_gdbarch_init): Update.
10148 * v850-tdep.c (v850_gdbarch_init): Update.
10149 * sparc-tdep.c (sparc_gdbarch_init): Update.
10150 * sh-tdep.c (sh_gdbarch_init): Update.
10151 * s390-tdep.c (s390_gdbarch_init): Update.
10152 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10153 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10154 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10155 * mips-tdep.c (mips_gdbarch_init): Update.
10156 * mcore-tdep.c (mcore_gdbarch_init): Update.
10157 * m68k-tdep.c (m68k_gdbarch_init): Update.
10158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10159 * ia64-tdep.c (ia64_gdbarch_init): Update.
10160 * i386-tdep.c (i386_gdbarch_init): Update.
10161 * h8300-tdep.c (h8300_gdbarch_init): Update.
10162 * frv-tdep.c (frv_gdbarch_init): Update.
10163 * d10v-tdep.c (d10v_gdbarch_init): Update.
10164 * cris-tdep.c (cris_gdbarch_init): Update.
10165 * breakpoint.c (deprecated_frame_in_dummy): Update.
10166 * avr-tdep.c (avr_gdbarch_init): Update.
10167 * alpha-tdep.c (alpha_gdbarch_init): Update.
10168 * arm-tdep.c (arm_gdbarch_init): Update.
10169 * dummy-frame.c (dummy_frame_this_id): Update comments.
10170 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10171 * frame.c (legacy_get_prev_frame): Ditto.
10172 * valops.c (call_function_by_hand): Delete function.
10173 (hand_function_call): Rename to call_function_by_hand
10175 2003-03-30 Andrew Cagney <cagney@redhat.com>
10177 2002-11-10 Klee Dienes <kdienes@apple.com>
10178 * value.h (struct value): Update comment.
10180 2003-03-30 Andrew Cagney <cagney@redhat.com>
10182 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10184 (d10v_gdbarch_init): Do not set fp_regnum.
10186 * frame.c (get_frame_base): Force ID initialization.
10187 (get_prev_frame): Move computation of the frame ID from here ...
10188 (get_frame_id): ... to here.
10189 (legacy_get_prev_frame): Mark the frame ID as valid.
10190 * frame.h (struct frame_info): Add field "id_p".
10192 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10194 * i386-tdep.c (i386_store_struct_return): Removed.
10195 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10197 2003-03-30 Andrew Cagney <cagney@redhat.com>
10199 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10200 * gdbarch.h, gdbarch.c: Regenerate.
10201 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10202 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10203 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10204 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10205 * i386-tdep.c (i386_gdbarch_init): Ditto.
10206 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10207 * cris-tdep.c (cris_gdbarch_init): Ditto.
10208 * vax-tdep.c (vax_gdbarch_init): Ditto.
10209 * s390-tdep.c (s390_gdbarch_init): Ditto.
10210 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10211 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10212 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10213 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10214 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10215 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10216 * sparc-tdep.c (sparc_gdbarch_init): Update.
10217 * sh-tdep.c (sh_gdbarch_init): Update.
10218 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10219 * mips-tdep.c (mips_gdbarch_init): Update.
10220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10221 * ia64-tdep.c (ia64_gdbarch_init): Update.
10222 * frv-tdep.c (frv_gdbarch_init): Update.
10223 * avr-tdep.c (avr_gdbarch_init): Update.
10224 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10225 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10226 instead of when push_dummy_call is not available.
10228 2003-03-30 Andrew Cagney <cagney@redhat.com>
10230 * infttrace.c: Include "gdbthread.h".
10231 (parent_attach_all): Fix function signature.
10232 (call_ptrace): Update call.
10233 * Makefile.in (infttrace.o): Update dependencies.
10235 2003-03-30 Andrew Cagney <cagney@redhat.com>
10237 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10238 PUSH_RETURN_ADDRESS.
10239 * gdbarch.h, gdbarch.c: Regenerate.
10240 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10241 * x86-64-tdep.c (x86_64_init_abi): Update.
10242 * v850-tdep.c (v850_gdbarch_init): Update.
10243 * sparc-tdep.c (sparc_gdbarch_init): Update.
10244 * sh-tdep.c (sh_gdbarch_init): Update.
10245 * s390-tdep.c (s390_gdbarch_init): Update.
10246 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10247 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10248 * mips-tdep.c (mips_gdbarch_init): Update.
10249 * mcore-tdep.c (mcore_gdbarch_init): Update.
10250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10251 * ia64-tdep.c (ia64_gdbarch_init): Update.
10252 * i386-tdep.c (i386_gdbarch_init): Update.
10253 * h8300-tdep.c (h8300_gdbarch_init): Update.
10254 * frv-tdep.c (frv_gdbarch_init): Update.
10255 * cris-tdep.c (cris_gdbarch_init): Update.
10256 * avr-tdep.c (avr_gdbarch_init): Update.
10257 * arm-tdep.c (arm_gdbarch_init): Update.
10258 * valops.c (hand_function_call): Update.
10260 2003-03-29 Andrew Cagney <cagney@redhat.com>
10262 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10263 sizeof_call_dummy_words.
10264 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10266 * gdbarch.h: Regenerate.
10268 2003-03-29 Andrew Cagney <cagney@redhat.com>
10270 * infttrace.h: New file.
10271 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10272 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10273 (hpread_read_doc_function_type): Detect an initialized type1.
10274 (hpread_quick_traverse): Initialize mod_name_string.
10275 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10276 (som_solib_get_solib_by_pc): Declare.
10277 (so_lib_thread_start_addr): Declare.
10278 (no_shared_libraries): Declare.
10279 * somread.c (init_import_symbols): Make static. Add forward
10281 * config/pa/nm-hppah.h: Include "infttrace.h" for
10283 (hppa_insert_hw_watchpoint): Declare.
10284 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10285 * hppah-nat.c: Include "gdb_string.h".
10286 (parent_attach_all): Delete extern declaration, moved to
10288 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10290 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10291 * Makefile.in (infttrace_h): Define.
10292 (hpread.o): Update dependencies.
10293 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10294 * hppa-hpux-tdep.c: Include "gdb_string.h".
10295 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10296 * infrun.c (handle_inferior_event): Always initialize
10297 stepped_after_stopped_by_watchpoint. Add default and remove
10298 fallthrough in switch statement.
10299 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10301 (hppa_remove_hw_watchpoint): Ditto.
10303 2003-03-29 Andrew Cagney <cagney@redhat.com>
10305 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10308 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
10310 * arm-tdep.c (arm_push_arguments): Delete.
10311 (struct stack_item): New type.
10312 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10313 (arm_store_struct_return): Delte.
10314 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10315 arm_push_arguments or arm_store_struct_return.
10317 2003-03-28 Andrew Cagney <cagney@redhat.com>
10319 * Makefile.in (d10v-tdep.o): Update dependencies.
10320 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10321 * d10v-tdep.c: Include "remote.h".
10322 (target_resume_hook): Delete extern declaration.
10323 (target_wait_loop_hook): Ditto.
10324 (tdisassemble_command): Eliminate assignment in "if" conditional.
10325 (d10v_ts2_register_sim_regno): Eliminate call to
10326 legacy_register_sim_regno.
10327 (d10v_ts3_register_sim_regno): Ditto.
10329 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10331 * thread.c: Reindented.
10332 * lin-lwp.c: Ditto.
10333 * linux-proc.c: Ditto.
10335 2003-03-28 Bob Rossi <bob_rossi@cox.net>
10337 * MAINTAINERS (write after approval): Add myself.
10339 2003-03-27 Theodore A. Roth <troth@openavr.org>
10341 * objc-exp.y: Add missing semi-colons.
10343 2003-03-27 Andrew Cagney <cagney@redhat.com>
10345 * regcache.c (write_sp): Delete function and references.
10346 * inferior.h (write_sp): Delete declaration.
10347 * valops.c (hand_function_call): Replace write_sp with
10349 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10350 (sparc_pop_frame): Ditto.
10352 2003-03-27 Andrew Cagney <cagney@redhat.com>
10354 * NEWS: Mention removal of support for hppa*-*-bsd* and
10355 hppa*-*-osf* natives, and hppa*-*-pro* target.
10356 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10357 * config/pa/xm-pa.h: Obsolete file.
10358 * config/pa/xm-hppab.h: Obsolete file.
10359 * config/pa/nm-hppab.h: Obsolete file.
10360 * config/pa/tm-hppab.h: Obsolete file.
10361 * config/pa/tm-hppao.h: Obsolete file.
10362 * config/pa/nm-hppao.h: Obsolete file.
10363 * config/pa/tm-pro.h: Obsolete file.
10364 * config/pa/hppaosf.mt: Obsolete file.
10365 * config/pa/hppaosf.mh: Obsolete file.
10366 * config/pa/hppapro.mt: Obsolete file.
10367 * config/pa/hppabsd.mt: Obsolete file.
10368 * config/pa/hppabsd.mh: Obsolete file.
10369 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10370 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10373 2003-03-27 Andrew Cagney <cagney@redhat.com>
10375 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10376 push_arguments. Don't set push_return_address or write_sp.
10377 (d10v_push_dummy_call): Replace d10v_push_arguments.
10378 (d10v_push_return_address, d10v_write_sp): Delete function,
10379 handled by push_dummy_call.
10381 2003-03-26 Andrew Cagney <cagney@redhat.com>
10383 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10384 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10385 regcache and dummy_addr parameters.
10386 * gdbarch.h, gdbarch.c: Re-generate.
10387 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10388 available; assume it will handle stack alignment and return
10389 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10390 legacy_push_arguments.
10391 (legacy_push_arguments): Rename default_push_arguments.
10392 * value.h (legacy_push_arguments): Rename default_push_arguments.
10393 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10394 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10395 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10396 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10397 * config/i386/tm-symmetry.h: Update.
10398 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10399 * x86-64-tdep.c (x86_64_init_abi): Update.
10400 * v850-tdep.c (v850_gdbarch_init): Update.
10401 * sparc-tdep.c (sparc_gdbarch_init): Update.
10402 * sh-tdep.c (sh_gdbarch_init): Update.
10403 * s390-tdep.c (s390_gdbarch_init): Update.
10404 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10405 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10406 * mips-tdep.c (mips_gdbarch_init): Update.
10407 * mcore-tdep.c (mcore_gdbarch_init): Update.
10408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10409 * ia64-tdep.c (ia64_gdbarch_init): Update.
10410 * i386-tdep.c (i386_gdbarch_init): Update.
10411 * hppa-tdep.c (hppa_gdbarch_init): Update.
10412 * h8300-tdep.c (h8300_gdbarch_init): Update.
10413 * frv-tdep.c (frv_gdbarch_init): Update.
10414 * d10v-tdep.c (d10v_gdbarch_init): Update.
10415 * cris-tdep.c (cris_gdbarch_init): Update.
10416 * avr-tdep.c (avr_gdbarch_init): Update.
10417 * arm-tdep.c (arm_gdbarch_init): Update.
10418 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10419 * alpha-tdep.c (alpha_gdbarch_init): Update.
10421 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10423 * signals/signals.c (do_target_signal_to_host): Correct realtime
10426 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10428 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10429 (struct sal_chain, map_catch_names): Remove.
10430 (catch_exception_command_1): Don't call
10431 handle_gnu_4_16_catch_command.
10433 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10435 From Mark Dettinger <dettinge@de.ibm.com>:
10436 * dwarf2cfi.c (read_2u): Increment pointer by two.
10438 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10440 * signals/signals.c: Fix typos in last change.
10442 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
10444 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10445 not already defined. Use __SIGRTMIN if available.
10446 (target_signal_from_host): Remove SIGRTMIN block.
10447 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10448 the signal is within the realtime range.
10450 2003-03-25 Adam Fedor <fedor@gnu.org>
10452 * Makefile.in (infrun.o): Add $(language_h)
10453 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10454 for language specific trampolines.
10455 * language.h (struct language_defn): Add skip_trampoline.
10456 (skip_language_trampoline): Declare.
10457 * language.c (unk_lang_trampoline, skip_language_trampoline):
10459 (unknown_language_defn, auto_language_defn, local_language_defn):
10460 Add ukn_lang_trampoline.
10461 * ada-lang.c (ada_language_defn): Add NULL for language
10462 specific skip_trampoline.
10463 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10464 scm-lang.c: Likewise.
10465 * objc-lang.c (objc_skip_trampoline): New function.
10466 (objc_language_defn): Add objc_skip_trampoline.
10468 2003-03-25 Andrew Cagney <cagney@redhat.com>
10470 * frame.c (get_prev_frame): Delay validating a frame's ID -
10471 non-NULL, didn't go backwards - until an attempt to unwind it to
10472 the previous frame.
10474 2003-03-25 Andrew Cagney <cagney@redhat.com>
10476 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10477 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10478 * gdbarch.h, gdbarch.c: Re-generate.
10479 * config/sparc/tm-sparc.h
10480 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10481 * sparc-tdep.c (sparc_gdbarch_init): Set
10482 deprecated_extra_stack_alignment_needed.
10483 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10484 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10485 extra_stack_alignment_needed.
10486 * v850-tdep.c (v850_gdbarch_init): Ditto.
10487 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10488 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10489 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10490 * cris-tdep.c (cris_gdbarch_init): Ditto.
10491 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10494 2003-03-25 Andrew Cagney <cagney@redhat.com>
10496 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10497 STORE_STRUCT_RETURN.
10498 * gdbarch.h, gdbarch.c: Regenerate.
10499 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10500 (d10v_push_arguments): Set the struct return register.
10501 (d10v_gdbarch_init): Update.
10502 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10503 * x86-64-tdep.c (x86_64_init_abi): Update.
10504 * vax-tdep.c (vax_gdbarch_init): Update.
10505 * v850-tdep.c (v850_gdbarch_init): Update.
10506 * sparc-tdep.c (sparc_gdbarch_init): Update.
10507 * sh-tdep.c (sh_gdbarch_init): Update.
10508 * s390-tdep.c (s390_gdbarch_init): Update.
10509 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10510 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10511 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10512 * mips-tdep.c (mips_gdbarch_init): Update.
10513 * mcore-tdep.c (mcore_gdbarch_init): Update.
10514 * m68k-tdep.c (m68k_gdbarch_init): Update.
10515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10516 * ia64-tdep.c (ia64_gdbarch_init): Update.
10517 * i386-tdep.c (i386_gdbarch_init): Update.
10518 * hppa-tdep.c (hppa_gdbarch_init): Update.
10519 * h8300-tdep.c (h8300_gdbarch_init): Update.
10520 * frv-tdep.c (frv_gdbarch_init): Update.
10521 * cris-tdep.c (cris_gdbarch_init): Update.
10522 * avr-tdep.c (avr_gdbarch_init): Update.
10523 * arm-tdep.c (arm_gdbarch_init): Update.
10524 * alpha-tdep.c (alpha_gdbarch_init): Update.
10526 2003-03-25 Andrew Cagney <cagney@redhat.com>
10528 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10529 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10530 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10531 * gdbarch.h, gdbarch.c: Regenerate.
10532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10533 call_dummy_stack_adjust_p.
10534 * vax-tdep.c (vax_gdbarch_init): Ditto.
10535 * v850-tdep.c (v850_gdbarch_init): Ditto.
10536 * sh-tdep.c (sh_gdbarch_init): Ditto.
10537 * s390-tdep.c (s390_gdbarch_init): Ditto.
10538 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10539 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10540 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10541 * mips-tdep.c (mips_gdbarch_init): Ditto.
10542 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10543 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10545 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10546 * i386-tdep.c (i386_gdbarch_init): Ditto.
10547 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10548 * frv-tdep.c (frv_gdbarch_init): Ditto.
10549 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10550 * cris-tdep.c (cris_gdbarch_init): Ditto.
10551 * avr-tdep.c (avr_gdbarch_init): Ditto.
10552 * arm-tdep.c (arm_gdbarch_init): Ditto.
10553 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10554 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10555 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10556 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10557 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10558 call_dummy_stack_adjust_p.
10559 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10560 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10561 * sparc-tdep.c (sparc32_push_arguments): Update.
10562 * valops.c (hand_function_call): Update.
10564 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
10566 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10567 set_gdbarch_char_signed.
10569 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10572 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10574 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
10576 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10577 (_initialize_arm_tdep): Don't set tm_print_insn.
10579 2003-03-24 Adam Fedor <fedor@gnu.org>
10581 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10582 * objc-lang.h: Add multiple inclusion protection.
10583 (start_msglist, add_msglist, end_msglist): Additional declarations.
10585 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
10587 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10588 value was renamed to ARM_FLOAT_SOFT_FPA.
10590 2003-03-23 Andrew Cagney <cagney@redhat.com>
10592 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10593 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10594 * gdbarch.h, gdbarch.c: Regenerate.
10595 * valops.c (hand_function_call): Update.
10596 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10597 * frame.c (legacy_saved_regs_this_id): Update.
10598 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10599 * dummy-frame.h: Update.
10600 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10601 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10602 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10603 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10604 * config/m68k/tm-sun3.h: Update.
10605 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10606 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10607 * x86-64-tdep.c (x86_64_init_abi): Update.
10608 * vax-tdep.c (vax_gdbarch_init): Update.
10609 * v850-tdep.c (v850_gdbarch_init): Update.
10610 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10611 * sh-tdep.c (sh_gdbarch_init): Update.
10612 * s390-tdep.c (s390_gdbarch_init): Update.
10613 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10614 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10615 (frame_get_saved_regs): Update.
10616 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10617 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10618 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10619 * mips-tdep.c (mips_gdbarch_init): Update.
10620 * mcore-tdep.c (mcore_gdbarch_init): Update.
10621 * m68k-tdep.c (m68k_gdbarch_init): Update.
10622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10623 * ia64-tdep.c (ia64_gdbarch_init): Update.
10624 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10625 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10626 (i386_interix_back_one_frame): Update.
10627 * hppa-tdep.c (hppa_gdbarch_init): Update.
10628 (hppa_init_extra_frame_info): Update.
10629 * h8300-tdep.c (h8300_gdbarch_init): Update.
10630 * frv-tdep.c (frv_gdbarch_init): Update.
10631 * cris-tdep.c (cris_gdbarch_init): Update.
10632 * avr-tdep.c (avr_gdbarch_init): Update.
10633 * arm-tdep.c (arm_gdbarch_init): Update.
10634 * alpha-tdep.c (alpha_gdbarch_init): Update.
10636 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10638 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10639 (arm_get_fp_model): Declare.
10640 * arm-tdep.c (fp_model_strings): New string array.
10641 (arm_fp_model, current_fp_model): New variables.
10642 (arm_get_fp_model): New function.
10643 (arm_set_fp): New function.
10644 (set_fp_model_sfunc): New function.
10645 (show_fp_model): New function.
10646 (_initialize_arm_tdep): Add new command to set/show the FPU.
10647 (arm_extract_return_value): Use arm_get_fp_model.
10648 (arm_store_return_value): Likewise.
10649 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10650 to initialize the floating-point data types.
10651 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10654 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10656 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10657 the current setting of each value.
10658 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10659 new_set and new_show. Use add_setshow_cmd_full and
10660 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10661 commands and add new version as subcommands of "set/show arm".
10663 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10665 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10666 (set_arm_command, show_arm_command): New functions.
10667 (_initialize_arm_tdep): Add them.
10668 (num_disassembly_options): Renamed from num_flavor_options.
10669 (valid_disassembly_styles): Renamed from valid_flavors.
10670 (disassembly_style): Renamed from disassembly_flavor.
10671 (set_disassembly_style_sfunc): Renamed from
10672 set_disassembly_flavor_sfunc.
10673 (set_disassembly_style): Renamed from set_disassembly_flavor.
10674 (arm_othernames): Updated.
10675 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10676 command. Add "set/show arm disassembly" commands. Deprecate
10677 "othernames" command.
10679 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10681 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10682 (arm-tdep.o): Depend on elf_arm_h.
10684 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10686 * Makefile.in (coff_internal_h): Define.
10687 (arm-tdep.o): Update dependencies.
10689 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10691 * arm-tdep.c (prologue_cache): Delete.
10692 (check_prologue_cache, save_prologue_cache): Delete.
10693 (arm_scan_prologue): Don't check or update the prologue_cache.
10694 (arm_gdb_arch_init): Don't initialize it.
10695 (_initialize_arm_tdep): Likewise.
10697 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10699 * MAINTAINERS (tui): Maintainer of tui code.
10701 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10703 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10704 (i386-cygwin-tdep.o): Add dependencies.
10705 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10706 * i386-cygwin-tdep.c: New file.
10707 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10708 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10710 2003-03-20 Andrew Cagney <cagney@redhat.com>
10712 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10713 (handle_inferior_event): Remove code calling
10714 DYNAMIC_TRAMPOLINE_NEXTPC.
10716 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10717 already has a full path.
10719 * main.c (gdb_main): Return 1.
10720 (captured_main): Call error to report an invalid interpreter.
10722 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10723 * alpha-osf1-tdep.c: Include "gdb_string.h".
10725 2003-03-19 J. Brobecker <brobecker@gnat.com>
10727 Continuing work to convert the hppa targets to multiarch partial.
10729 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10730 method, now that hppa_push_dummy_frame has a conformant prototype.
10731 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10732 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10733 for the switch to multiarch partial.
10735 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10737 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10738 when iss is issNull.
10740 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10742 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10743 NUM_REGS bounds check.
10745 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10747 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10748 * mips-tdep.c (gdb_assert.h): Include.
10749 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10750 (mips_register_name): Handle integer registers explicitly. Add
10752 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10753 (mips_lsi33k_reg_names): Don't list integer registers; they're
10754 handled by mips_register_name() now.
10755 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10756 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10757 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10758 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10759 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10761 2003-03-18 Andrew Cagney <cagney@redhat.com>
10763 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10765 * gdbtypes.h (print_scalar_formatted): Update declaration.
10766 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10768 2003-03-18 J. Brobecker <brobecker@gnat.com>
10770 * infrun.c (observer.h): Add #include.
10771 (normal_stop): Add call to observer_notify_normal_stop.
10772 * Makefile.in (infrun.o): Add dependency on observer.h.
10774 2003-03-18 J. Brobecker <brobecker@gnat.com>
10776 Continuing work to convert the hppa targets to multiarch partial.
10777 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10778 parameter. Reformat comment.
10779 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10780 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10781 to match new profile.
10783 2003-03-18 J. Brobecker <brobecker@gnat.com>
10785 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10786 appear to be working in any case.
10788 2003-03-18 J. Brobecker <brobecker@gnat.com>
10790 * observer.c (observer_test_first_observer): New static variable.
10791 (observer_test_second_observer): Likewise.
10792 (observer_test_third_observer): Likewise.
10793 (observer_test_first_notification_function): New static function.
10794 (observer_test_second_notification_function): Likewise.
10795 (observer_test_third_notification_function): Likewise.
10797 2003-03-17 J. Brobecker <brobecker@gnat.com>
10799 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10800 * somsolib.c (gdb_assert.h): Likewise.
10801 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10802 (somsolib.o): Likewise.
10804 2003-03-17 Andrew Cagney <cagney@redhat.com>
10806 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10807 BFD. Simplify setting of di.endian.
10809 2003-03-17 Andrew Cagney <cagney@redhat.com>
10811 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10812 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10814 From Elena Zannoni <ezannoni@redhat.com>
10815 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10816 vector and floating-point parameters.
10817 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10819 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10821 2003-03-17 Fernando Nasser <fnasser@redhat.com>
10823 * MAINTAINERS: Remove my name from several maintainership roles.
10825 2003-03-17 Andrew Cagney <cagney@redhat.com>
10827 Fix frame off-by-one bug.
10828 * frame-unwind.h (frame_this_id_ftype): Replace
10829 frame_unwind_id_ftype.
10830 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10831 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10832 with "prev_register".
10833 * frame-unwind.c (frame_unwind_find_by_pc): Return
10834 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10836 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10837 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10838 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10839 (dummy_frame_unwind): Update.
10840 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10841 sentinel_frame_register_unwind.
10842 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10843 (sentinel_frame_unwinder): Update.
10844 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10845 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10846 * frame.c (create_sentinel_frame): Update. Initialize
10847 "prologue_cache" instead of "unwind_cache".
10848 (frame_register_unwind): Call this frame's prev_register with the
10849 next frame and this frame's prologue cache.
10850 (get_prev_frame): Simplify. Always call prev frame's this_id with
10851 this frame and prev frame's prologue cache. Document that this
10852 call is shifted one to the left when compared to the
10853 frame_register_unwind call.
10854 (legacy_saved_regs_prev_register): Replace
10855 frame_saved_regs_register_unwind.
10856 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10857 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10858 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10859 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10860 (d10v_frame_unwind): Update.
10861 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10862 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10863 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10864 "saved_regs" with "this_saved_regs".
10866 2003-03-16 Andrew Cagney <cagney@redhat.com>
10868 * frame.c (frame_pop): Don't call target_store_registers. Fix
10869 problem reported by Mark Kettenis.
10871 2003-03-16 Mark Kettenis <kettenis@gnu.org>
10873 * i386-tdep.c (i386_register_type): Renamed from
10874 i386_register_virtual_type. Adjust function signature.
10875 (i386_gdbarch_init): Set register_type instead of
10876 deprecated_max_register_raw_size,
10877 deprecated_max_register_virtual_size and register_virtual_type.
10879 2003-03-14 Andrew Cagney <cagney@redhat.com>
10881 * frame.c (get_prev_frame): When a legacy frame, always call
10882 legacy_get_prev_frame. Simplify unwind code using assumption that
10883 the unwinder is new.
10884 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10885 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10886 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10888 2003-03-14 Andrew Cagney <cagney@redhat.com>
10890 * frame.c (get_saved_register): Delete function.
10891 * frame.h (get_saved_register): Delete declaration.
10892 * xstormy16-tdep.c: Update comment.
10893 * regcache.h: Update comments.
10894 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10895 get_saved_register and extract_address, use
10896 frame_read_unsigned_register.
10897 (sparc_frame_saved_pc): Ditto.
10898 (sparc_get_saved_register): Instead of get_saved_register, use
10900 (sparc_pop_frame): Ditto.
10901 * findvar.c: Update comments.
10902 (value_of_register): Call frame_register instead of
10903 get_saved_register.
10904 (value_from_register): Ditto.
10905 * config/sparc/tm-sparc.h: Update comment.
10906 * breakpoint.c: Update comment.
10908 2003-03-14 Andrew Cagney <cagney@redhat.com>
10910 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10911 GET_SAVED_REGISTER.
10912 * gdbarch.h, gdbarch.c: Re-generate.
10913 * frame.h: Update comments.
10914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10915 * x86-64-tdep.c (x86_64_init_abi): Update.
10916 * sparc-tdep.c (sparc_gdbarch_init): Update.
10917 * sh-tdep.c (sh_gdbarch_init): Update.
10918 * mips-tdep.c (mips_gdbarch_init): Update.
10919 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10920 * cris-tdep.c (cris_gdbarch_init): Update.
10921 * ia64-tdep.c (ia64_gdbarch_init): Update.
10922 * frame.c (frame_register): Update.
10923 (get_saved_register): Update.
10924 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10926 2003-03-13 Andrew Cagney <cagney@redhat.com>
10928 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10929 * gdbarch.h, gdbarch.c: Regenerate.
10930 * valops.c (hand_function_call): Update comment.
10931 * stack.c (return_command): Update comment.
10932 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10933 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10934 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10935 * x86-64-tdep.c (x86_64_init_abi): Update.
10936 * vax-tdep.c (vax_gdbarch_init): Update.
10937 * v850-tdep.c (v850_gdbarch_init): Update.
10938 * sparc-tdep.c (sparc_gdbarch_init): Update.
10939 * sh-tdep.c (sh_gdbarch_init): Update.
10940 * s390-tdep.c (s390_gdbarch_init): Update.
10941 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10942 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10943 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10944 * mips-tdep.c (mips_gdbarch_init): Update.
10945 * mcore-tdep.c (mcore_gdbarch_init): Update.
10946 * m68k-tdep.c (m68k_gdbarch_init): Update.
10947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10948 * ia64-tdep.c (ia64_gdbarch_init): Update.
10949 * i386-tdep.c (i386_gdbarch_init): Update.
10950 * hppa-tdep.c (hppa_gdbarch_init): Update.
10951 * h8300-tdep.c (h8300_gdbarch_init): Update.
10952 * frv-tdep.c (frv_gdbarch_init): Update.
10953 * cris-tdep.c (cris_gdbarch_init): Update.
10954 * avr-tdep.c (avr_gdbarch_init): Update.
10955 * arm-tdep.c (arm_gdbarch_init): Update.
10956 * alpha-tdep.c (alpha_gdbarch_init): Update.
10958 2003-03-13 Andrew Cagney <cagney@redhat.com>
10960 * frame.c (legacy_frame_p): New function.
10961 (get_prev_frame): Use legacy_frame_p.
10962 * frame.h (legacy_frame_p): Declare.
10964 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10966 * MAINTAINERS (write after approval): Alphabetically
10969 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10971 * MAINTAINERS (write after approval): Add myself.
10973 2003-03-12 Andrew Cagney <cagney@redhat.com>
10975 * frame.c (get_prev_frame): Rename the frame parameter to
10977 (get_next_frame, legacy_get_prev_frame): Ditto.
10979 2003-03-12 Andrew Cagney <cagney@redhat.com>
10981 * frame.c (get_current_frame): Check target_has_registers before
10982 checking target_has_stack.
10983 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10984 instead of deprecated_selected_frame.
10985 * findvar.c (value_of_register): Pass "frame", not
10986 deprecated_selected_frame, to value_of_builtin_reg.
10988 2003-03-12 Andrew Cagney <cagney@redhat.com>
10990 * regcache.c (regcache_cooked_write_signed): New function.
10991 (regcache_cooked_write_unsigned): New function.
10992 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10993 (regcache_cooked_read_signed): Fix regnum in range assertion.
10994 * regcache.h (regcache_cooked_write_signed): Declare.
10995 (regcache_cooked_write_unsigned): Declare.
10997 2003-03-12 Andrew Cagney <cagney@redhat.com>
10999 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11000 * gdbarch.h, gdbarch.c: Re-generate.
11001 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11002 * x86-64-tdep.h: Update.
11003 * x86-64-tdep.c (x86_64_init_abi): Update.
11004 * v850-tdep.c (v850_gdbarch_init): Update.
11005 * sparc-tdep.c (sparc_gdbarch_init): Update.
11006 * sh-tdep.c (sh_gdbarch_init): Update.
11007 * s390-tdep.c (s390_gdbarch_init): Update.
11008 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11009 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11010 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11011 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11012 * mips-tdep.c (mips_gdbarch_init): Update.
11013 * mcore-tdep.c (mcore_gdbarch_init): Update.
11014 * m68k-tdep.c (m68k_gdbarch_init): Update.
11015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11016 * ia64-tdep.c (ia64_gdbarch_init): Update.
11017 * i386-tdep.c (i386_gdbarch_init): Update.
11018 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11019 * hppa-tdep.c (hppa_gdbarch_init): Update.
11020 * h8300-tdep.c (h8300_gdbarch_init): Update.
11021 * frv-tdep.c (frv_gdbarch_init): Update.
11022 * cris-tdep.c (cris_gdbarch_init): Update.
11023 * avr-tdep.c (avr_gdbarch_init): Update.
11024 * arm-tdep.c (arm_gdbarch_init): Update.
11025 * alpha-tdep.c (alpha_gdbarch_init): Update.
11026 * sh-tdep.c (sh_init_extra_frame_info): Update.
11027 (sh64_init_extra_frame_info): Update.
11028 * ns32knbsd-nat.c (frame_num_args): Update.
11029 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11030 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11031 (xstormy16_frame_chain_valid): Update.
11032 * vax-tdep.c (vax_saved_pc_after_call): Update.
11033 * v850-tdep.c (v850_frame_chain): Update.
11034 (v850_pop_frame): Update.
11035 (v850_init_extra_frame_info): Update.
11036 * sparc-tdep.c (setup_arbitrary_frame): Update.
11037 * ns32k-tdep.c (umax_frame_num_args): Update.
11038 * s390-tdep.c (s390_pop_frame_regular): Update.
11039 * mn10300-tdep.c (mn10300_frame_chain): Update.
11040 (mn10300_pop_frame_regular): Update.
11041 (mn10300_init_extra_frame_info): Update.
11042 * mips-tdep.c (mips_init_frame_pc_first): Update.
11043 (mips_frame_chain): Update.
11044 (mips_pop_frame): Update.
11045 * mcore-tdep.c (mcore_frame_chain): Update.
11046 (mcore_pop_frame): Update.
11047 (mcore_init_extra_frame_info): Update.
11048 * arch-utils.c (init_frame_pc_default): Update.
11049 * m68k-tdep.c (isi_frame_num_args): Update.
11050 (delta68_frame_num_args): Update.
11051 (news_frame_num_args): Update.
11052 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11053 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11054 (alpha_frame_chain): Update.
11055 (alpha_pop_frame): Update.
11056 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11057 (hppa_init_extra_frame_info): Update.
11058 (hppa_frame_chain): Update.
11059 (hppa_frame_chain_valid): Update.
11060 * cris-tdep.c (cris_init_extra_frame_info): Update.
11061 * avr-tdep.c (avr_init_extra_frame_info): Update.
11062 * arm-tdep.c (arm_frame_chain_valid): Update.
11063 (arm_init_extra_frame_info): Update.
11064 (arm_pop_frame): Update.
11065 * frame.c (frame_pc_unwind): Update.
11066 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11067 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11068 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11069 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11070 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11071 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11073 2003-03-12 Andrew Cagney <cagney@redhat.com>
11075 Eliminate the need for POP_FRAME.
11076 * frame.c (do_frame_unwind_register): New function.
11077 (frame_pop): When no POP_FRAME, pop the frame using register
11078 unwind and a scratch regcache.
11079 (frame_saved_regs_pop): Delete function.
11080 (trad_frame_unwinder): Update.
11081 * d10v-tdep.c (d10v_frame_pop): Delete function.
11082 (d10v_frame_unwind): Update.
11083 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11084 (sentinel_frame_unwinder): Update.
11085 * dummy-frame.c (dummy_frame_pop): Delete function.
11086 (dummy_frame_unwind): Update.
11087 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11088 (struct frame_unwind): Update.
11090 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11092 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11093 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11094 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11095 Do range checks on register number obtained from debugging info.
11096 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11097 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11098 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11100 (do_fp_register_row): Fix typo which caused double type to be
11101 used when attempting to unpack a float.
11103 2003-03-11 J. Brobecker <brobecker@gnat.com>
11105 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11107 2003-03-11 Andrew Cagney <cagney@redhat.com>
11109 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11110 frame. Problem found by Corinna Vinschen.
11112 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11114 * doublest.c (floatformat_from_length): Accept also
11115 the real size of 'long double' type.
11117 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11119 From Klee Dienes <kdienes@apple.com>:
11120 * breakpoint.c (bpstat_copy): Copy the command lines as well
11121 as the old value, to match what is freed in bpstat_clear.
11123 2003-03-10 David Carlton <carlton@math.stanford.edu>
11125 * minsyms.c (add_minsym_to_hash_table): Replace
11126 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11127 (compare_minimal_symbols, compact_minimal_symbols)
11128 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11129 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11130 of DEPRECATED_SYMBOL_MATCHES_NAME.
11131 (lookup_minimal_symbol_solib_trampoline): Ditto.
11133 2003-03-10 Andrew Cagney <cagney@redhat.com>
11135 * regcache.h (regcache_cooked_read_ftype): Define.
11136 (regcache_save, regcache_restore): Add a cooked_read parameter.
11137 * regcache.c (regcache_save, regcache_restore): Update.
11138 (do_cooked_read): New function.
11139 (regcache_cpy): Pass do_cooked_read to regcache_save and
11142 2003-03-10 Andrew Cagney <cagney@redhat.com>
11144 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11145 * gdbarch.h, gdbarch.c: Re-generate.
11146 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11147 * x86-64-tdep.h: Update.
11148 * x86-64-tdep.c (x86_64_init_abi): Update.
11149 * v850-tdep.c (v850_gdbarch_init): Update.
11150 * sparc-tdep.c (sparc_gdbarch_init): Update.
11151 * sh-tdep.c (sh_gdbarch_init): Update.
11152 * s390-tdep.c (s390_gdbarch_init): Update.
11153 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11154 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11155 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11156 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11157 * mips-tdep.c (mips_gdbarch_init): Update.
11158 * mcore-tdep.c (mcore_gdbarch_init): Update.
11159 * m68k-tdep.c (m68k_gdbarch_init): Update.
11160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11161 * ia64-tdep.c (ia64_gdbarch_init): Update.
11162 * i386-tdep.c (i386_gdbarch_init): Update.
11163 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11164 * hppa-tdep.c (hppa_gdbarch_init): Update.
11165 * h8300-tdep.c (h8300_gdbarch_init): Update.
11166 * frv-tdep.c (frv_gdbarch_init): Update.
11167 * cris-tdep.c (cris_gdbarch_init): Update.
11168 * avr-tdep.c (avr_gdbarch_init): Update.
11169 * arm-tdep.c (arm_gdbarch_init): Update.
11170 * alpha-tdep.c (alpha_gdbarch_init): Update.
11171 * sh-tdep.c (sh_init_extra_frame_info): Update.
11172 (sh64_init_extra_frame_info): Update.
11173 * ns32knbsd-nat.c (frame_num_args): Update.
11174 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11175 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11176 (xstormy16_frame_chain_valid): Update.
11177 * vax-tdep.c (vax_saved_pc_after_call): Update.
11178 * v850-tdep.c (v850_frame_chain): Update.
11179 (v850_pop_frame): Update.
11180 (v850_init_extra_frame_info): Update.
11181 * sparc-tdep.c (setup_arbitrary_frame): Update.
11182 * ns32k-tdep.c (umax_frame_num_args): Update.
11183 * s390-tdep.c (s390_pop_frame_regular): Update.
11184 * mn10300-tdep.c (mn10300_frame_chain): Update.
11185 (mn10300_pop_frame_regular): Update.
11186 (mn10300_init_extra_frame_info): Update.
11187 * mips-tdep.c (mips_init_frame_pc_first): Update.
11188 (mips_frame_chain): Update.
11189 (mips_pop_frame): Update.
11190 * mcore-tdep.c (mcore_frame_chain): Update.
11191 (mcore_pop_frame): Update.
11192 (mcore_init_extra_frame_info): Update.
11193 * arch-utils.c (init_frame_pc_default): Update.
11194 * m68k-tdep.c (isi_frame_num_args): Update.
11195 (delta68_frame_num_args): Update.
11196 (news_frame_num_args): Update.
11197 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11198 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11199 (alpha_frame_chain): Update.
11200 (alpha_pop_frame): Update.
11201 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11202 (hppa_init_extra_frame_info): Update.
11203 (hppa_frame_chain): Update.
11204 (hppa_frame_chain_valid): Update.
11205 * cris-tdep.c (cris_init_extra_frame_info): Update.
11206 * avr-tdep.c (avr_init_extra_frame_info): Update.
11207 * arm-tdep.c (arm_frame_chain_valid): Update.
11208 (arm_init_extra_frame_info): Update.
11209 (arm_pop_frame): Update.
11210 * frame.c (frame_pc_unwind): Update.
11211 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11212 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11213 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11214 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11215 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11216 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11218 2003-03-10 Andrew Cagney <cagney@redhat.com>
11220 * gdbarch.sh (gdbarch_unwind_pc): New method.
11221 * gdbarch.h, gdbarch.c: Regenerate.
11222 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11223 but use read_pc and FRAME_SAVED_PC as fall backs.
11224 (frame_saved_regs_pc_unwind): Delete function.
11225 (trad_frame_unwinder): Update.
11226 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11227 (struct frame_unwind): Update.
11228 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11229 (dummy_frame_unwind): Update.
11230 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11231 (sentinel_frame_unwinder): Update.
11232 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11233 (d10v_frame_unwind): Update.
11234 (d10v_unwind_pc): New function.
11235 (d10v_gdbarch_init): Set unwind_pc.
11237 2003-03-10 Andrew Cagney <cagney@redhat.com>
11239 * gdbarch.h: Re-generate.
11241 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11243 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11246 2003-03-08 Mark Kettenis <kettenis@gnu.org>
11248 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11250 2003-03-08 Andrew Cagney <cagney@redhat.com>
11252 * cli-out.c: Update copyright.
11253 (cli_out_data): Define typedef. Use instead of ui_out_data.
11255 2003-03-08 Andrew Cagney <cagney@redhat.com>
11257 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11260 2003-03-07 Andrew Cagney <cagney@redhat.com>
11262 * gdbarch.sh: Don't generate two macro definitions when an
11263 undefined macro taking no arguments.
11264 * gdbarch.h: Regenerate.
11266 2002-03-07 Michal Ludvig <mludvig@suse.cz>
11268 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11269 (x86_64_unwind_dummy_id): New functions.
11270 (x86_64_init_abi): Register these two new functions.
11272 2003-03-07 Michal Ludvig <mludvig@suse.cz>
11274 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11275 (x86_64_skip_prologue): Move prologue detection to
11277 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11279 2003-03-05 Andrew Cagney <cagney@redhat.com>
11281 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11282 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11283 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11284 to use unwind_dummy_id when a dummy frame.
11285 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11287 * gdbarch.h, gdbarch.c: Regneerate.
11289 2003-03-05 Andrew Cagney <cagney@redhat.com>
11291 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11292 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11293 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11296 2003-03-05 Andrew Cagney <cagney@redhat.com>
11298 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11299 (struct d10v_unwind_cache): Delete field "frameless". Replace
11300 "next_addr" with "sp_offset". Add "r11_offset".
11301 (d10v_frame_unwind_cache): Update.
11302 (prologue_find_regs): Update. When "mv r11, sp", save the
11303 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11304 RN was saved in r11_offset.
11306 2003-03-05 Andrew Cagney <cagney@redhat.com>
11308 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11309 cached PC value in the next frame.
11311 2003-03-05 Andrew Cagney <cagney@redhat.com>
11313 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11314 "id_unwind_cache" with "id".
11315 (frame_id_unwind): Delete declaration.
11316 * frame.c (frame_id_unwind): Delete function.
11317 (get_prev_frame): Call the frame id unwind method directly. Store
11318 the returned next frame's ID value in NEXT_FRAME. Note that there
11319 is a problem with the wrong unwind ID being called with the wrong
11322 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11324 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11326 2003-03-05 James Ingham <jingham@apple.com>
11327 Daniel Jacobowitz <drow@mvista.com>
11329 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11330 (auto_cp_abi): New variable.
11331 (current_cp_abi, num_cp_abis): Make static.
11332 (CP_ABI_MAX): Define.
11333 (cp_abis): Turn into an array.
11334 (value_virtual_fn_field): Fix formatting.
11335 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11337 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11338 (list_cp_abis, _initialize_cp_abi): New functions.
11339 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11340 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11341 switch_to_cp_abi. Update prototype for register_cp_abi.
11342 * Makefile.in (cp-abi.o): Update dependencies.
11343 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11344 instead of switch_to_cp_abi.
11345 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11347 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11349 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11351 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
11353 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11354 * dwarf2loc.c: Include "regcache.h".
11355 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11357 * Makefile.in (dwarf2loc.o): Update dependencies.
11359 2003-03-04 Theodore A. Roth <troth@openavr.org>
11361 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11362 number of io registers reported by remote target is not a multiple of
11365 2003-03-04 David Carlton <carlton@math.stanford.edu>
11367 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11368 (lookup_symbol_aux_psymtabs): Update call to
11369 lookup_partial_symbol.
11370 (lookup_transparent_type, find_main_psymtab)
11371 (make_symbol_overload_list): Ditto.
11373 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11375 * MAINTAINERS (Write after approval): Update my email address.
11377 2003-03-03 Andrew Cagney <cagney@redhat.com>
11379 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11380 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11381 predicate. Replace MAX_REGISTER_RAW_SIZE.
11382 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11383 MAX_REGISTER_VIRTUAL_SIZE.
11384 * regcache.c (legacy_max_register_raw_size): New function.
11385 (legacy_max_register_virtual_size): New function.
11386 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11387 (MAX_REGISTER_RAW_SIZE): Define.
11388 (legacy_max_register_raw_size): Declare.
11389 (legacy_max_register_virtual_size): Declare.
11390 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11391 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11392 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11393 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11394 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11395 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11396 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11397 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11398 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11399 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11400 * vax-tdep.c (vax_gdbarch_init): Update.
11401 * v850-tdep.c (v850_gdbarch_init): Update.
11402 * sparc-tdep.c (sparc_gdbarch_init): Update.
11403 * sh-tdep.c (sh_gdbarch_init): Update.
11404 * s390-tdep.c (s390_gdbarch_init): Update.
11405 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11406 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11407 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11408 * mips-tdep.c (mips_gdbarch_init): Update.
11409 * mcore-tdep.c (mcore_gdbarch_init): Update.
11410 * m68k-tdep.c (m68k_gdbarch_init): Update.
11411 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11412 * ia64-tdep.c (ia64_gdbarch_init): Update.
11413 * i386-tdep.c (i386_gdbarch_init): Update.
11414 * hppa-tdep.c (hppa_gdbarch_init): Update.
11415 * h8300-tdep.c (h8300_gdbarch_init): Update.
11416 * frv-tdep.c (frv_gdbarch_init): Update.
11417 * cris-tdep.c (cris_gdbarch_init): Update.
11418 * avr-tdep.c (avr_gdbarch_init): Update.
11419 * arm-tdep.c (arm_gdbarch_init): Update.
11420 * alpha-tdep.c (alpha_gdbarch_init): Update.
11421 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11422 max_register_raw_size or max_register_virtual_size.
11424 2003-03-03 David Carlton <carlton@math.stanford.edu>
11426 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11427 SYMBOL_MATCHES_NAME, add comment.
11428 (SYMBOL_MATCHES_NATURAL_NAME): New.
11429 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11430 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11431 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11432 * symtab.c (lookup_partial_symbol): Use
11433 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11435 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11436 SYMBOL_MATCHES_NAME.
11439 2003-03-03 David Carlton <carlton@math.stanford.edu>
11441 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11442 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11443 by regexp matching against SYMBOL_NATURAL_NAME.
11445 2003-03-03 David Carlton <carlton@math.stanford.edu>
11447 * linespec.c (find_method): Extract code into collect_methods.
11448 (collect_methods): New.
11450 2003-03-02 Mark Kettenis <kettenis@gnu.org>
11452 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11455 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11456 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11458 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11460 * arch-utils.c (generic_register_byte): Fix to use the loop index
11461 and not regnum when summing the size of all registers up to regnum.
11463 2003-03-01 Andrew Cagney <cagney@redhat.com>
11465 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11466 FRAME_INIT_SAVED_REGS.
11467 * gdbarch.h, gdbarch.c: Regenerate.
11468 * stack.c (frame_info): Update.
11469 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11470 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11471 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11472 * ns32k-tdep.c (ns32k_pop_frame): Update.
11473 * mips-tdep.c (mips_pop_frame): Update.
11474 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11475 * ia64-tdep.c (ia64_frame_chain): Update.
11476 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11477 (ia64_frameless_function_invocation): Update.
11478 (ia64_init_extra_frame_info): Update.
11479 (ia64_pop_frame_regular): Update.
11480 * frame.h (struct frame_info): Update comment.
11481 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11482 * frame.c (frame_saved_regs_register_unwind): Update.
11483 (frame_saved_regs_register_unwind): Update.
11484 (deprecated_generic_get_saved_register): Update.
11485 * cris-tdep.c: Update comment.
11486 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11488 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11489 * x86-64-tdep.c (x86_64_init_abi): Update.
11490 * vax-tdep.c (vax_gdbarch_init): Update.
11491 * v850-tdep.c (v850_gdbarch_init): Update.
11492 * sparc-tdep.c (sparc_gdbarch_init): Update.
11493 * sh-tdep.c (sh_gdbarch_init): Update.
11494 * s390-tdep.c (s390_gdbarch_init): Update.
11495 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11496 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11497 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11498 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11499 * mips-tdep.c (mips_gdbarch_init): Update.
11500 * mcore-tdep.c (mcore_gdbarch_init): Update.
11501 * m68k-tdep.c (m68k_gdbarch_init): Update.
11502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11503 * ia64-tdep.c (ia64_gdbarch_init): Update.
11504 * i386-tdep.c (i386_gdbarch_init): Update.
11505 * frv-tdep.c (frv_gdbarch_init): Update.
11506 * avr-tdep.c (avr_gdbarch_init): Update.
11507 * arm-tdep.c (arm_gdbarch_init): Update.
11508 * alpha-tdep.c (alpha_gdbarch_init): Update.
11510 2003-03-01 Andrew Cagney <cagney@redhat.com>
11512 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11513 option enum and switch. When no windows, set the interpreter to
11516 2003-03-01 Andrew Cagney <cagney@redhat.com>
11518 * main.c (captured_main): Replace magic option characters with an
11521 2003-03-01 Andrew Cagney <cagney@redhat.com>
11523 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11524 INIT_EXTRA_FRAME_INFO.
11525 * gdbarch.h, gdbarch.c: Regenerate.
11526 * arm-tdep.c: Update comments.
11527 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11528 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11529 * frame.h, avr-tdep.c: Ditto.
11530 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11531 (create_new_frame, legacy_get_prev_frame): Ditto.
11532 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11533 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11535 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11536 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11537 * v850-tdep.c (v850_gdbarch_init): Ditto.
11538 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11539 * sh-tdep.c (sh_gdbarch_init): Ditto.
11540 * s390-tdep.c (s390_gdbarch_init): Ditto.
11541 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11542 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11543 * mips-tdep.c (mips_gdbarch_init): Ditto.
11544 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11546 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11547 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11548 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11549 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11550 * frv-tdep.c (frv_gdbarch_init): Ditto.
11551 * cris-tdep.c (cris_gdbarch_init): Ditto.
11552 * avr-tdep.c (avr_gdbarch_init): Ditto.
11553 * arm-tdep.c (arm_gdbarch_init): Ditto.
11554 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11555 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11557 2003-03-01 Andrew Cagney <cagney@redhat.com>
11559 * gdbarch.sh (register_type): New function with predicate.
11560 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11561 * gdbarch.h, gdbarch.c: Re-generate.
11562 * arch-utils.c (generic_register_byte): Use generic_register_size.
11563 (generic_register_size): When available, use
11564 gdbarch_register_type.
11565 * regcache.c (init_regcache_descr): When available, initialize the
11566 register type array using gdbarch_register_type. If the
11567 architecture supplies gdbarch_register_type, do not use the legacy
11569 * d10v-tdep.c (d10v_register_type): Replace
11570 d10v_register_virtual_type.
11571 (d10v_gdbarch_init): Set register_type instead of
11572 register_virtual_type.
11574 2003-03-01 Andrew Cagney <cagney@redhat.com>
11576 * Makefile.in (ax-gdb.o): Update dependencies.
11577 * ax-gdb.c: Include "regcache.h".
11578 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11579 * findvar.c (value_of_register): Ditto.
11580 * infcmd.c (default_print_registers_info): Ditto.
11582 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11584 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11585 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11587 2003-03-01 Mark Kettenis <kettenis@gnu.org>
11589 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11592 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
11594 * Makefile.in (dwarf2loc.o): Update dependencies.
11595 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11596 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11597 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11598 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11599 (locexpr_tracepoint_var_ref): New function.
11600 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11602 2003-02-28 Andrew Cagney <cagney@redhat.com>
11604 * regcache.c (register_size): New function.
11605 * regcache.h (register_size): Declare
11606 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11607 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11609 2003-02-28 David Carlton <carlton@math.stanford.edu>
11611 * linespec.c (decode_compound): Extract code into find_method.
11612 (find_method): New.
11614 2003-02-28 J. Brobecker <brobecker@gnat.com>
11616 * Makefile.in: Add rules to build and link in observer.o.
11618 2003-02-27 J. Brobecker <brobecker@gnat.com>
11620 * observer.c: Minor comments edits.
11622 2003-02-27 J. Brobecker <brobecker@gnat.com>
11624 * observer.h, observer.c: New file.
11626 2003-02-27 Andrew Cagney <cagney@redhat.com>
11628 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11630 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11632 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11633 (M6812_OP_STS_EXT): Likewise.
11634 (m6811_prologue): Use the above to recognize prologue.
11635 (m6812_prologue): Likewise.
11637 2003-02-27 David Carlton <carlton@math.stanford.edu>
11639 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11641 (compare_psymbols): Ditto.
11642 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11644 2003-02-27 Michael Snyder <msnyder@redhat.com>
11646 * f-lang.c (build_fortran_types): New function.
11647 (_initialize_f_language): Gdbarch-register built-in fortran types.
11648 * doublest.c (extract_floating): Fix warning text.
11650 2003-02-27 Andrew Cagney <cagney@redhat.com>
11652 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11653 predicate. Replaces PUSH_DUMMY_FRAME.
11654 * gdbarch.h, gdbarch.c: Regnerate.
11655 * valops.c (hand_function_call): Update. Call
11656 generic_push_dummy_frame directly.
11657 * vax-tdep.c (vax_gdbarch_init): Update.
11658 * sparc-tdep.c (sparc_gdbarch_init): Update.
11659 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11660 * m68k-tdep.c (m68k_gdbarch_init): Update.
11661 * hppa-tdep.c (hppa_gdbarch_init): Update.
11662 * alpha-tdep.c (alpha_gdbarch_init): Update.
11663 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11664 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11665 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11666 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11667 push_dummy_frame to generic_push_dummy_frame.
11668 * v850-tdep.c (v850_gdbarch_init): Ditto.
11669 * sh-tdep.c (sh_gdbarch_init): Ditto.
11670 * s390-tdep.c (s390_gdbarch_init): Ditto.
11671 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11672 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11673 * mips-tdep.c (mips_gdbarch_init): Ditto.
11674 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11676 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11677 * i386-tdep.c (i386_gdbarch_init): Ditto.
11678 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11679 * frv-tdep.c (frv_gdbarch_init): Ditto.
11680 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11681 * cris-tdep.c (cris_gdbarch_init): Ditto.
11682 * avr-tdep.c (avr_gdbarch_init): Ditto.
11683 * arm-tdep.c (arm_gdbarch_init): Ditto.
11685 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11687 * mips-tdep.c (show_mips_abi): New function.
11688 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11689 command ``show mips abi''.
11691 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11693 From Elena Zannoni <ezannoni@redhat.com>
11694 * dbxread.c (process_one_symbol): Only record line 0 if one or
11695 more sline entries have been seen for the function.
11697 2003-02-26 Michael Chastain <mec@shout.net>
11699 * configure: Regenerate with autoconf 000227.
11701 2003-02-26 Michael Chastain <mec@shout.net>
11703 Close PR build/660.
11704 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11705 for old libc5/glibc.
11706 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11708 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11710 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11711 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11713 2003-02-26 Michael Chastain <mec@shout.net>
11715 * configure.in: New variable HAVE_UINTPTR_T.
11716 * configure, config.in: Regenerated.
11718 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11721 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11723 2003-02-25 Andrew Cagney <cagney@redhat.com>
11725 * frame.c (get_prev_frame): Add comment on check for
11726 inside_entry_func. Only check for inside_entry_file when not a
11727 dummy and not a sentinel. Check that the new frame is not inner
11730 2003-02-25 Andrew Cagney <cagney@redhat.com>
11732 * frame.c (frame_debug): New variable.
11733 (_initialize_frame): Add "set/show debug frame" command.
11734 (get_prev_frame): When frame_debug, print reason why unwind
11737 2003-02-25 Michael Chastain <mec@shout.net>
11739 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11740 to avoid uintptr_t definition problems.
11742 2003-02-25 David Carlton <carlton@math.stanford.edu>
11744 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11745 (SYMBOL_LINKAGE_NAME): Ditto.
11746 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11747 SYMBOL_LINKAGE_NAME.
11748 (struct general_symbol_info): Expand comment.
11749 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11750 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11751 (SYMBOL_MATCHES_REGEXP): Ditto.
11752 * symtab.c (symbol_natural_name): New function.
11753 * objfiles.h: Replace all uses of SYMBOL_NAME by
11754 DEPRECATED_SYMBOL_NAME.
11755 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11756 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11757 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11758 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11759 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11760 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11761 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11762 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11763 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11764 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11765 * ada-exp.y: Ditto.
11766 * ada-exp.y: Update copyright.
11767 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11768 * cp-valprint.c: Ditto.
11770 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11772 * infptrace.c (detach): Do not flag error if ptrace detach fails
11773 and errno is set to ESRCH.
11775 2003-02-24 Andrew Cagney <cagney@redhat.com>
11777 * infptrace.c (udot_info): Change type of udot_off to long. Use
11778 paddr when printing udot_off's value.
11780 2003-02-24 David Carlton <carlton@math.stanford.edu>
11782 * symtab.c (make_symbol_overload_list): Only read in partial
11783 symtabs containing a matching partial symbol.
11785 2003-02-24 David Carlton <carlton@math.stanford.edu>
11787 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11788 do the comparison, not strcmp.
11789 * symfile.c (compare_psymbols): Ditto.
11790 * defs.h: Declare strcmp_iw_ordered.
11791 * utils.c (strcmp_iw_ordered): New function.
11793 2003-02-24 Jim Blandy <jimb@redhat.com>
11795 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11796 support, shared libs): Remove my name from here, to better reflect
11799 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11801 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11802 (target_ops): Add to_have_continuable_watchpoint.
11803 * target.c (update_current_target): Add INHERIT line for
11804 to_have_continuable_watchpoint.
11805 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11806 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11807 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11808 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11810 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
11812 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11815 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11817 * solib.c (solib_open): Call target defined search function after
11818 failing with solib-search-path.
11819 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11820 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11822 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11824 * MAINTAINERS: Add myself to Write After section.
11826 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11828 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11830 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11832 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11833 (m68hc11_add_reggroups): New function.
11834 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11835 (m68hc11_gdbarch_init): Install the reggroups.
11836 (_initialize_m68hc11_tdep): Initialize them.
11838 2003-02-21 James E Wilson <wilson@tuliptree.org>
11840 * MAINTAINERS: Update my email address.
11842 2003-02-21 David Carlton <carlton@math.stanford.edu>
11844 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11846 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
11848 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11849 * symtab.h: Add opaque declarations of struct axs_value and
11851 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11852 (struct location_funcs): New type.
11853 (struct symbol): Add "loc" to aux_value.
11854 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11855 * dwarf2read.c: Include "dwarf2expr.h".
11856 (dwarf2_symbol_mark_computed): New function.
11857 (read_func_scope): Use it.
11858 (var_decode_location): New function.
11859 (new_symbol): Use it.
11860 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11862 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11863 (dwarf2expr_h, dwarf2loc_h): New variables.
11864 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11865 (dwarf2expr.o, dwarf2loc.o): New rules.
11866 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11867 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11869 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11870 * m2-exp.y (yylex): Likewise.
11871 * printcmd.c (address_info, print_frame_args): Likewise.
11872 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11873 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11874 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11875 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11876 * symtab.c (lookup_block_symbol): Likewise.
11878 2003-02-20 Adam Fedor <fedor@gnu.org>
11880 * symtab.h: Remove objc_specific struct
11881 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11882 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11883 Have language_objc use cplus_specific struct.
11885 2003-02-20 Tom Tromey <tromey@redhat.com>
11887 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11888 TYPE_NAME, when printing a String value. PR java/1075.
11890 2003-02-20 Adam Fedor <fedor@gnu.org>
11892 * objc-lang.h (find_methods): Remove declaration.
11893 * objc-lang.c (find_methods): Make static.
11895 2003-02-20 Christopher Faylor <cgf@redhat.com>
11897 * win32-nat.c (get_image_name): Check return value from
11899 (child_xfer_memory): Ditto.
11901 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
11903 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11904 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11905 '${exec_prefix}' (in addition to the expansion thereof) as
11907 * configure: Rebuilt.
11909 2003-02-20 David Carlton <carlton@math.stanford.edu>
11911 * symtab.c (search_symbols): Revert the search_symbols part of my
11912 2002-12-23 patch. Add comment.
11914 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11916 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11917 * dbxread.c (elfstab_build_psymtabs): Don't call
11918 install_minimal_symbols.
11919 (stabsect_build_psymtabs): Likewise.
11920 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11922 * somread.c (som_symfile_read): Call install_minimal_symbols
11923 and do_cleanups earlier.
11924 * nlmread.c (nlm_symfile_read): Likewise.
11925 * mdebugread.c (elfmdebug_build_psymtabs): Call
11926 install_minimal_symbols and make appropriate cleanups.
11928 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11930 * solib.c (reload_shared_libraries): New function.
11931 (_initialize_solib): Add callbacks for ``set solib-search-path''
11932 and ``set solib-absolute-prefix''.
11934 2003-02-20 David Carlton <carlton@math.stanford.edu>
11936 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11938 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11939 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11940 * ada-typeprint.c (ada_typedef_print): Ditto.
11941 * ax-gdb.c (gen_var_ref): Ditto.
11942 * breakpoint.c (print_one_breakpoint): Ditto.
11943 * buildsym.c (finish_block): Ditto.
11944 * c-valprint.c (c_val_print): Ditto.
11945 * expprint.c (print_subexp): Ditto.
11946 * findvar.c (locate_var_value): Ditto.
11947 * infcmd.c (jump_command): Ditto.
11948 * linespec.c (decode_line_2, decode_compound): Ditto.
11949 * maint.c (maintenance_translate_address): Ditto.
11950 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11951 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11953 * p-valprint.c (pascal_val_print): Ditto.
11954 * stabsread.c (define_symbol): Ditto.
11955 * stack.c (print_frame, frame_info, print_block_frame_locals)
11956 (print_frame_arg_vars, return_command): Ditto.
11957 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11958 * symmisc.c (print_symbol): Ditto.
11959 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11960 (compare_search_syms, print_symbol_info, print_msymbol_info)
11961 (rbreak_command): Ditto.
11962 * tracepoint.c (tracepoints_info): Ditto.
11963 * typeprint.c (typedef_print): Ditto.
11964 * valops.c (value_of_variable, hand_function_call): Ditto.
11965 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11966 * ada-typeprint.c: Update Copyright.
11967 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11968 * tracepoint.c, cli/cli-cmds.c: Ditto.
11970 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11972 * frame.c (generic_unwind_get_saved_register): Make non-static.
11973 * frame.h (generic_unwind_get_saved_register): Declare.
11974 * mips-tdep.c (read_next_frame_reg): Fetch register from
11975 current regcache when frame is NULL.
11976 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11978 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11979 instead of frame_register_unwind().
11981 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11983 * remote-sim.c (gdbsim_insert_breakpoint)
11984 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11987 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11989 * remote.c (_initialize_remote): Add commands "set/show remote
11990 hardware-watchpoint-limit" and "set/show remote
11991 hardware-breakpoint-limit".
11992 (remote_hw_watchpoint_limit): Initialize to -1.
11993 (remote_hw_breakpoint_limit): Ditto.
11994 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11996 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11998 * coff-pe-read.c: New file - support reading of minimal symbols from a
11999 portable executable using the export table.
12000 * coff-pe-read.h: New file.
12001 * coffread.c: Include coff-pe-read.h.
12002 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12003 debugging symbols found.
12004 * Makefile.in (SFILES): Add coff-pe-read.o.
12005 (coff_pe_read_h): Define.
12006 (COMMON_OBS): Add coff-pe-read.o.
12007 (coffread.o): Add coff_pe_read_h dependency.
12008 (coff-pe-read.o): New target.
12010 2003-02-19 David Carlton <carlton@math.stanford.edu>
12012 * Makefile.in (SFILES): Add block.c.
12014 (COMMON_OBS): Add block.o.
12016 (x86-64-tdep.o): Add $(block_h).
12017 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12018 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12019 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12020 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12021 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12022 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12023 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12024 * value.h: Add opaque declaration for struct block.
12025 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12026 * ada-lang.h: Ditto.
12027 * x86-64-tdep.c: #include "block.h"
12028 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12029 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12030 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12031 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12032 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12033 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12034 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12035 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12036 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12037 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12038 * symtab.c (block_function): Ditto.
12039 (contained_in): Ditto.
12040 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12041 block.h. Add opaque declaration for struct block.
12042 * symtab.h: Move block_function and contained_in declarations to
12043 block.h. Add opaque declarations for struct block, struct
12045 (struct block): Move to block.h.
12046 (struct blockvector): Ditto.
12047 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12048 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12049 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12050 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12051 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12053 * block.c: New file.
12054 * block.h: New file.
12056 2003-02-19 Theodore A. Roth <troth@openavr.org>
12058 * avr-tdep.c (avr_extract_return_value): Remove function.
12059 (avr_store_return_value): Remove function.
12060 (avr_extract_struct_value_address): Remove function.
12061 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12063 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12065 * rs6000-tdep.c: Include "gdb_assert.h".
12066 (registers_e500): Add "acc" and "spefscr".
12067 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12068 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12069 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12071 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12073 2003-02-18 Keith Seitz <keiths@redhat.com>
12075 * Makefile.in: Add gdbtk-interps.c.
12077 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12079 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12080 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12082 2003-02-18 Andrew Cagney <cagney@redhat.com>
12084 * symtab.h (struct objfile): Add opaque declaration.
12086 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12088 From Jim Ingham <jingham@apple.com>:
12089 * dbxread.c (process_one_symbol): Use last_function_start rather
12090 than function_start_offset to find the real beginning of the
12091 current function. The latter is just the text section offset on
12092 some systems, the former is always the real function start.
12094 2003-02-17 Andrew Cagney <cagney@redhat.com>
12096 * configure.in: Revert ${target} != ${host}.
12098 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12100 * configure.in (Makefile): Use the test ${target} != ${host},
12101 instead of the absence of the "nm.h" file, to determine of the
12102 configuration non-native.
12103 * configure: Regenerate.
12105 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12107 From Brian Ford <ford@vss.fsi.com>
12109 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12110 conditionalize tui_active test.
12111 (lookup_cmd_1): Ditto.
12113 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12115 * configure.in: Add check for _etext.
12116 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12118 * config.in, configure: regenerated.
12120 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12122 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12124 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12126 * main.c (tui_version): Delete variable.
12127 (captured_main): When --tui, set interpreter_p to "tui" instead of
12128 enabling tui_version.
12129 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12131 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12132 * cli/cli-cmds.c (disassemble_command): Ditto.
12133 * defs.h (tui_version): Delete declaration.
12134 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12135 (tui-interp.o): Add rules.
12136 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12138 2003-02-14 Christopher Faylor <cgf@redhat.com>
12140 * win32-nat.c (register_loaded_dll): Correctly set address range for
12143 2003-02-12 Jason Molenda (jmolenda@apple.com)
12145 * symmisc.c (print_objfile_statistics): Include information about
12146 the number of psymtabs and symtabs in each object file.
12148 2003-02-13 Keith R Seitz <keiths@redhat.com>
12150 * main.h (struct captured_main_args): Add interpreter_p.
12151 * main.c (captured_main): Initialize interpreter_p from context.
12152 * gdb.c (main): Set interpreter_p argument.
12153 * Makefile.in (gdb.o): Add dependency for interps.h.
12155 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12157 * event-top.c (cli_command_loop): Delete declaration.
12158 (_initialize_event_loop): Delete function setting event_loop_hook.
12159 * event-top.h (cli_command_loop): Declare. Update copyright.
12160 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12161 * interps.c (current_interp_command_loop): When event_loop_p, call
12164 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12166 * interps.h (interp_command_loop_ftype): Change return type to
12169 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12171 * x86-64-tdep.c (x86_64_extract_return_value)
12172 (x86_64_store_return_value): Use regcache instead of regbuf.
12173 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12174 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12176 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12178 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12179 * aclocal.m4: Regenerate.
12180 * configure: Regenerate.
12182 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12183 TCL_LD_SEARCH_FLAGS.
12185 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12187 * dwarf2cfi.c: Reindented.
12189 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12191 * interps.c (clear_interpreter_hooks): Convert function definition
12194 2003-02-07 David Carlton <carlton@math.stanford.edu>
12196 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12198 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12200 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12201 (struct type): ...to here.
12202 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12204 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12205 (replace_type): Set length on all type variants for a given type.
12207 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12209 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12211 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12213 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12215 * Makefile.in (symm-nat.o): Update dependencies.
12216 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12217 (lynx-nat.o, ia64-linux-nat.): Ditto.
12218 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12219 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12220 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12222 * Makefile.in (inflow_h): Define.
12223 (procfs.o, inflow.o, procfs.o): Update dependencies.
12224 * inftarg.c (child_stop): Delete extern declaration of
12225 inferior_process_group. Include "inflow.h".
12226 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12227 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12228 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12229 (our_process_group, inferior_process_group): Extern declarations.
12231 * procfs.c: Include "gdb_assert.h".
12233 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12234 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12235 * jv-typeprint.c (java_type_print_base): Ditto.
12236 * typeprint.c (typedef_print): Eliminate STREQ.
12237 * cli/cli-script.c (define_command, define_command): Ditto.
12238 * main.c (captured_main): Ditto.
12239 * values.c (lookup_internalvar): Ditto.
12240 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12241 within `if' conditional.
12242 * linespec.c (decode_line_2): Ditto.
12243 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12244 (bfd_openw_with_cleanup): Ditto.
12246 2003-02-07 Mark Kettenis <kettenis@gnu.org>
12248 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12249 legacy_extract_return_value and store_return_value to
12250 legacy_return_value.
12252 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12254 * win32-nat.c (get_relocated_section_addrs): New function. Find
12255 section load addresses for symbol handling in relocated DLLs.
12256 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12258 2003-02-05 Fred Fish <fnf@intrinsity.com>
12260 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12262 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12264 (angel_RDI_info): Ditto.
12265 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12267 (threads_continue_all_with_signals): Ditto.
12269 2003-02-05 Jim Ingham <jingham@apple.com>
12270 Keith Seitz <keiths@redhat.com>
12271 Elena Zannoni <ezannoni@redhat.com>
12272 Andrew Cagney <ac131313@redhat.com>
12274 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12275 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12276 (SUBDIR_MI_OBS): Add "mi-interp.o".
12277 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12278 (SFILES): Add "interps.c".
12279 (COMMON_OBS): Add "interps.o".
12280 (interps_h, mi_main_h): Define.
12281 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12282 (mi-main.o, main.o, event-top.o): Update dependencies.
12283 * cli/cli-interp.c: New file.
12284 * interps.h, interps.c: New files.
12285 * top.c: (gdb_init): Don't install the default interpreter, handed
12287 * main.c: Include "interps.h".
12288 (interpreter_p): Note that it should malloc'ed.
12289 (captured_command_loop): Call current_interp_command_loop.
12290 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12291 xfree and xstrdup when updating interpreter_p. Install the
12292 default interpreter. Add hack to stop mi1's copyright notice
12294 * event-top.h (gdb_setup_readline): Declare.
12295 (gdb_disable_readline): Declare.
12296 * event-top.c: Include "interps.h".
12297 (display_gdb_prompt): Call current_interp_display_prompt_p.
12298 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12299 gdb_stdlog, and gdb_stdtarg.
12300 (_initialize_event_loop): Don't call gdb_setup_readline.
12301 * cli-out.c (cli_out_set_stream): New function.
12302 * cli-out.h (cli_out_set_stream): Declare.
12304 2003-02-06 Mark Kettenis <kettenis@gnu.org>
12306 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12307 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12308 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12309 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12310 config/i386/i386v42mp.mt: Removed.
12312 2003-02-05 Mark Kettenis <kettenis@gnu.org>
12314 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12317 2003-02-05 Michael Chastain <mec@shout.net>
12319 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12320 2.12.1 and earlier versions.
12322 2003-02-05 Andrew Cagney <ac131313@redhat.com>
12324 Remove orphaned hosts, targets and files.
12325 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12326 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12327 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12328 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12329 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12330 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12331 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12332 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12333 * config/sparc/tm-sp64sim.h: Delete.
12334 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12336 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12337 mips*-dec-mach3* targets.
12339 2003-02-04 Michael Chastain <mec@shout.net>
12341 * NEWS: Fix typo: sepcifying -> specifying.
12343 2003-02-04 Michael Chastain <mec@shout.net>
12345 * dwarfread.c: Add documentation on the state of dwarf-1,
12346 looking towards obsoletion.
12348 2003-02-03 Michael Chastain <mec@shout.net>
12350 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12351 gdb/testsuite/gdb.c++/pr-1023.exp.
12353 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12355 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12356 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12358 * utils.c (init_page_info): Delete reference to MPW in comments.
12359 * main.c (captured_main): Delete #ifdef MPW.
12361 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12363 * NEWS: Note that the m32r-*-elf* is obsolete.
12364 * monitor.c (monitor_expect): Obsolete reference to m32r.
12365 * configure.tgt: Mark m32r-*-elf* as obsolete.
12366 * MAINTAINERS: Mark m32k as obsolete.
12367 * m32r-rom.c: Obsolete file.
12368 * config/m32r/m32r.mt: Obsolete file.
12369 * config/m32r/tm-m32r.h: Obsolete file.
12370 * m32r-stub.c: Obsolete file.
12371 * m32r-tdep.c: Obsolete file.
12373 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12375 * NEWS: Mention that the z8k-zilog-none is obsolete.
12376 * MAINTAINERS: Mark z8k as obsolete.
12377 * configure.tgt: Obsolete the z8k-*-coff* target.
12378 * config/z8k/z8k.mt: Obsolete file.
12379 * config/z8k/tm-z8k.h: Obsolete file.
12380 * z8k-tdep.c: Obsolete file.
12382 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12384 * NEWS: Mention that the mn10200-elf is obsolete.
12385 * configure.tgt: Obsolete mn10200-*-* target.
12386 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12387 mention that the mn10200 is obsolete.
12388 * breakpoint.h: Ditto.
12389 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12390 * config/mn10200/mn10200.mt: Obsolete file.
12391 * config/mn10200/tm-mn10200.h: Obsolete file.
12392 * mn10200-tdep.c: Obsolete file.
12394 2003-02-04 Andrew Cagney <ac131313@redhat.com>
12396 * MAINTAINERS: Mark h8500 as obsolete.
12397 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12398 * findvar.c (value_from_register): Ditto.
12399 * h8500-tdep.c: Mark file as obsolete.
12400 * config/h8500/h8500.mt: Ditto.
12401 * config/h8500/tm-h8500.h: Ditto.
12402 * NEWS: Mention that h8500 is obsolete.
12404 2003-02-04 David Carlton <carlton@math.stanford.edu>
12406 * objfiles.c (allocate_objfile): Always set name. Add comment at
12408 * jv-lang.c (get_dynamics_objfile): Add comment.
12410 2003-02-04 David Carlton <carlton@math.stanford.edu>
12412 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12413 * printcmd.c (build_address_symbolic): Replace uses of
12414 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12415 SYMBOL_NAME, and asm_demangle.
12418 2003-02-04 David Carlton <carlton@math.stanford.edu>
12420 * linespec.c (decode_compound): Extract code into
12422 (lookup_prefix_sym): New function.
12424 2003-02-04 David Carlton <carlton@math.stanford.edu>
12426 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12427 FLOAT_COERCION_BADNESS.
12428 * gdbtypes.c (rank_one_type): Replace all uses of
12429 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12431 2003-02-04 Jim Blandy <jimb@redhat.com>
12433 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12434 section, let dwarf_macinfo_section point to it, not
12437 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12439 Pointed out by Anton Blanchard <anton@samba.org>.
12440 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12441 (ppc_linux_at_sigtramp_return_path): Use it.
12443 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
12445 * defs.h (streq): Add prototype.
12446 * utils.c (streq): New function.
12448 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12449 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12450 * mdebugread.c (new_symbol): Likewise.
12451 * stabsread.c (define_symbol): Likewise.
12452 * coffread.c (process_coff_symbol): Likewise.
12453 * dwarfread.c (new_symbol): Likewise.
12455 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12456 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12458 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12459 SYMBOL_INIT_DEMANGLED_NAME.
12460 * objfiles.c: Include "hashtab.h".
12461 (allocate_objfile): Call htab_set_functions_ex for the
12462 demangled_names_hash.
12463 (free_objfile): Call htab_delete for the demangled_names_hash.
12464 * objfiles.h (struct htab): Add declaration.
12465 (struct objfile): Add demangled_names_hash.
12466 * symfile.c: Include "hashtab.h".
12467 (reread_symbols): Call htab_delete for the demangled_names_hash.
12468 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12469 SYMBOL_NAME in the bcache.
12470 * symtab.c: Include "hashtab.h". Update comments.
12471 (create_demangled_names_hash, symbol_set_names): New functions.
12472 (symbol_find_demangled_name): New function, broken out from
12473 symbol_init_demangled_names.
12474 (symbol_init_demangled_names): Use it.
12475 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12476 (SYMBOL_SET_NAMES): New macro.
12477 (symbol_set_names): Add prototype.
12479 2003-02-03 Jim Blandy <jimb@redhat.com>
12481 Use a single, consistent representation for an empty minimal
12482 symbol table in an objfile.
12483 * objfiles.c (terminate_minimal_symbol_table): New function.
12484 (allocate_objfile): Call it.
12485 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12486 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
12488 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12489 objfile has minimal symbols, compare minimal_symbol_count to zero,
12490 instead of comparing msymbols with NULL.
12491 * objfiles.c (have_minimal_symbols): Same.
12492 * solib-sunos.c (solib_add_common_symbols): Call
12493 terminate_minimal_symbol_table.
12494 * symfile.c (reread_symbols): Same.
12496 2003-02-03 Kevin Buettner <kevinb@redhat.com>
12498 * s390-tdep.c (s390_address_class_type_flags)
12499 (s390_address_class_type_flags_to_name)
12500 (s390_address_class_name_to_type_flags): New functions.
12501 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12502 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12504 2003-02-03 Michael Snyder <msnyder@redhat.com>
12506 * arm-tdep.c: Fix spell-o in comment.
12508 2003-02-03 Michal Ludvig <mludvig@suse.cz>
12510 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12511 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
12512 error messages to contain BFD filename.
12514 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
12516 Fix PR gdb/742 gdb/743 gdb/877
12517 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12518 (do_mixed_source_and_assembly): Use
12519 make_cleanup_ui_out_tuple_begin_end and
12520 make_cleanup_ui_out_tuple_begin_end.
12521 (do_mixed_source_and_assembly): Ditto.
12522 * thread.c (do_captured_list_thread_ids): Ditto.
12523 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12524 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12525 ui_out_tuple_end): Delete prototypes.
12526 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12527 ui_out_list_end, ui_out_tuple_end): Delete.
12529 From Kevin Buettner <kevinb@redhat.com>:
12530 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
12531 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12532 (do_cleanup_table_end): New functions.
12533 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12534 Use cleanups to invoke_ui_out_tuple_end().
12535 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
12536 * cli/cli-setshow.c (cmd_show_list): Use
12537 make_cleanup_ui_out_tuple_begin_end.
12539 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12541 * frame.c (frame_unwind_register): New function.
12542 (frame_unwind_unsigned_register): Use.
12543 (frame_unwind_signed_register): Use.
12544 (frame_read_register): New function.
12545 * frame.h (frame_unwind_register): Declare.
12546 (frame_read_register): Declare.
12548 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12549 and frame_unwind_register instead of read_memory, write_register
12550 and deprecated_write_register_bytes.
12552 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12554 * frame.h: Note that namelen can be negative.
12555 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12558 * NEWS: Mention that the d10v's `regs' command is deprecated.
12559 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12560 (d10v_print_registers_info): New function.
12561 (show_regs): Call d10v_print_registers_info.
12562 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12564 2003-02-02 Mark Kettenis <kettenis@gnu.org>
12566 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12567 lost in the previous patch.
12569 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12571 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
12572 * stack.c (print_frame_info_base): Output complete FRAME tuple
12573 for synthesized frames.
12575 2003-02-02 Andrew Cagney <ac131313@redhat.com>
12577 * mips-nat.c (zerobuf): Delete.
12578 (fetch_inferior_registers): Alloc local zerobuf.
12579 (fetch_core_registers): Alloc local zerobuf.
12580 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12581 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12582 * thread-db.c (thread_db_store_registers): Ditto.
12583 * sh-tdep.c (sh_do_register): Ditto.
12584 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12585 * remote-sim.c (gdbsim_store_register): Ditto.
12586 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12587 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12588 * monitor.c (monitor_supply_register): Ditto.
12589 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12590 * mips-nat.c (fetch_inferior_registers): Ditto.
12591 * m68klinux-nat.c (fetch_register): Ditto.
12592 * lynx-nat.c (fetch_inferior_registers): Ditto.
12593 (fetch_inferior_registers): Ditto.
12594 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12595 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12596 (hpux_thread_store_registers): Ditto.
12597 * hppah-nat.c (fetch_register): Ditto.
12598 * hppab-nat.c (fetch_register): Ditto.
12599 * hppa-tdep.c (pa_register_look_aside): Ditto.
12600 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12601 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12603 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12605 * gdbarch.sh: Explictly specify all method levels. When a
12606 variable with an empty level, provide a non-multi-arch default.
12607 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12608 * gdbarch.h: Re-generate.
12609 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12610 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12612 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12614 * defs.h (host_pointer_to_address): Delete declaration.
12615 (address_to_host_pointer): Delete declaration.
12616 * utils.c (host_pointer_to_address): Delete function.
12617 (address_to_host_pointer): Delete function.
12618 * procfs.c (procfs_address_to_host_pointer): New function.
12619 * procfs.c (proc_set_watchpoint): Use.
12620 (procfs_can_use_hw_breakpoint): Update comments.
12621 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12622 (som_solib_add): Use.
12623 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12624 * hppa-tdep.c (unwind_command): Use.
12626 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12628 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12631 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12632 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12633 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12634 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12635 (define_symbol): Update.
12636 * symfile.c (generic_load): Remove references to nindy.
12637 * symtab.c: Remove references to nindy.
12639 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12641 * infcmd.c (print_float_info): Delete code conditional on
12643 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12644 * config/m68k/nm-apollo68b.h: Ditto.
12645 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12646 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12647 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12649 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12651 * config/i386/tm-i386os9k.h: Removed.
12653 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12654 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12655 they're identical to i[3456]86-*-sysv* now.
12656 * config/i386/i386v32.mh: Removed.
12657 * config/i386/xm-i386v32.h: Removed.
12658 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12660 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12662 * config/i386/i386dgux.mh: Removed.
12663 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12665 * configure.in: Fix typo.
12666 * configure: Regenerated.
12668 2003-01-31 David Carlton <carlton@math.stanford.edu>
12670 * dwarf2read.c (dwarf2_locate_sections): Set
12671 dwarf_ranges_section.
12673 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12675 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12676 * utils.c: Update comments documenting legitimate uses of PTR.
12678 * utils.c: Re-indent.
12680 * config/djgpp/fnchange.lst: Delete nindy files.
12681 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12682 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12683 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12684 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12685 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12686 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12687 * Makefile.in (init.c): Remove nindy references.
12688 (saber_gdb): Delete rule.
12689 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12690 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12692 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12693 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12694 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12695 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12696 nindy-share/stop.h.
12697 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12698 * saber.suppress: Delete file.
12700 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12702 * dbxread.c (stabs_data): New static variable.
12703 (fill_symbuf): Support an in-memory buffer for stabs data.
12704 (stabs_seek): New function.
12705 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12706 (read_ofile_symtab): Use stabs_seek.
12707 (elfstab_build_psymtabs): Take an asection* instead of
12708 an offset and size. Relocate the stabs data if necessary.
12709 Save the section* for dbx_psymtab_to_symtab.
12710 * dwarf2read.c: Add section variables for each debug section.
12711 (dwarf2_locate_sections): Fill them in.
12712 (dwarf2_read_section): Take an asection* argument.
12713 Relocate the section contents if necessary.
12714 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12715 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12716 it to dwarf2_read_section.
12717 (dwarf2_build_frame_info): Update callers.
12718 * elfread.c (elf_symfile_read): Update call to
12719 elfstab_build_psymtabs.
12720 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12721 (DBX_STAB_SECTION): New macro.
12722 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12723 * symfile.c (symfile_dummy_outputs): New function.
12724 (symfile_relocate_debug_section): New function.
12725 * symfile.h (symfile_relocate_debug_section): Add prototype.
12727 2003-01-31 Richard Henderson <rth@redhat.com>
12729 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12730 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12731 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12732 * alpha-tdep.c (alpha_register_name): Add "unique".
12733 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12734 (ALPHA_UNIQUE_REGNUM): New.
12735 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12737 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12739 * README: Remove reference to Ericsson 1800 monitor.
12740 * Makefile.in (remote-es.o): Delete rule.
12741 (ALLDEPFILES): Delete remote-es.c.
12742 * remote-es.c: Delete file.
12743 * config/m68k/es1800.mt: Delete file.
12744 * config/djgpp/fnchange.lst: Update.
12745 * configure.tgt: Delete m68*-ericsson-* target.
12747 2003-01-31 Adam Fedor <fedor@gnu.org>
12749 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12750 Remove duplicate/shadowing variable of same name.
12752 2003-01-30 Jim Blandy <jimb@redhat.com>
12754 * symfile.c (find_separate_debug_file): Assert that the objfile's
12755 directory name we compute ends with a slash, and then assume that
12756 that's so everywhere we use it.
12758 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12760 * valops.c (value_assign): Flush frame cache after stores to memory
12763 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12765 * Makefile.in (mon960-rom.o): Delete rule.
12766 * mon960-rom.c: Delete file.
12768 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12770 * d10v-tdep.c: Include "frame-unwind.h".
12771 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12773 (next_addr, uses_frame): Delete.
12774 (struct d10v_unwind_cache): Define.
12775 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12776 Use info instead of next_addr and uses_frame globals.
12777 (d10v_frame_init_saved_regs): Delete function.
12778 (d10v_init_extra_frame_info): Delete function.
12779 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12780 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12781 init_frame_pc or frame_saved_pc.
12782 (d10v_pop_frame): Delete function.
12783 (do_d10v_pop_frame): Delete function.
12784 (d10v_frame_chain): Delete function.
12785 (d10v_frame_chain_valid): Delete function.
12786 (d10v_frame_pc_unwind): New function.
12787 (d10v_frame_id_unwind): New function.
12788 (saved_regs_unwinder): New function.
12789 (d10v_frame_register_unwind): New function.
12790 (d10v_frame_pop): New function.
12791 (d10v_frame_unwind): New variable.
12792 (d10v_frame_p): New function.
12793 (d10v_frame_saved_pc): Delete function.
12794 * Makefile.in (d10v-tdep.o): Update dependencies.
12796 2003-01-30 J. Brobecker <brobecker@gnat.com>
12798 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12799 causing some regressions due to a change in the default value
12802 2003-01-29 Richard Henderson <rth@redhat.com>
12803 Elena Zannoni <ezannoni@redhat.com>
12804 Daniel Jacobowitz <drow@mvista.com>
12807 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
12809 (RANGES_SECTION): New.
12810 (dwarf_ranges_buffer): New variable.
12811 (struct comp_unit_head): Add member "die".
12812 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12813 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12814 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12815 (dwarf2_locate_sections): Likewise.
12816 (dwarf2_build_psymtabs): Read .debug_ranges.
12817 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12818 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12819 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12820 Look for DW_AT_ranges and return the bounding box.
12822 2003-01-29 Brian Ford <ford@vss.fsi.com>
12824 * win32-nat.c (cygwin_pid): Removed as unused.
12825 (child_attach): Try fall back to Cygwin pid.
12827 2003-01-29 Jim Blandy <jimb@redhat.com>
12829 * objfiles.h (struct objfile): Doc fix.
12831 2003-01-29 Andrew Cagney <ac131313@redhat.com>
12833 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12834 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12835 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12836 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12837 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12838 (FRAME_SAVED_PC): Change to a function with predicate.
12839 * gdbarch.h, gdbarch.c: Re-generate.
12841 2003-01-28 Andrew Cagney <ac131313@redhat.com>
12843 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12845 * complaints.c (complain): Delete function.
12846 * complaints.h (struct deprecated_complaint): Delete definition.
12847 (complain): Delete declaration.
12849 2003-01-28 Kevin Buettner <kevinb@redhat.com>
12851 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12854 2003-01-27 Andrew Cagney <ac131313@redhat.com>
12856 * sentinel-frame.h, sentinel-frame.c: New files.
12857 * Makefile.in (frame.o): Update dependencies.
12858 (SFILES): Add sentinel-frame.c.
12859 (sentinel_frame_h): Define.
12860 (COMMON_OBS): Add sentinel-frame.o.
12861 (sentinel-frame.o): Specify dependencies.
12862 * frame.c: Include "sentinel-frame.h".
12863 (frame_register_unwind): Rewrite assuming that there is always a a
12865 (frame_register, generic_unwind_get_saved_register): Ditto.
12866 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12867 (create_sentinel_frame, unwind_to_current_frame): New functions.
12868 (get_current_frame): Rewrite using create_sentinel_frame and
12869 unwind_to_current_frame. When possible, always create a frame.
12870 (create_new_frame): Set next to the sentinel frame.
12871 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12872 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12873 ID cache when necessary.
12874 (frame_saved_regs_id_unwind): Use frame_relative_level.
12875 (deprecated_generic_get_saved_register): Use frame_relative_level,
12876 get_frame_saved_regs, get_frame_pc, get_frame_base and
12878 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12881 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12883 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12885 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12887 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12888 (maintenance_set_profile_cmd): Use error () instead of warning ().
12890 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12892 * configure.in: Check that -pg works if using --enable-profiling.
12893 Check for monstartup and _mcleanup regardless of --enable-profiling.
12894 * maint.c: Check for monstartup and _mcleanup before using them.
12895 * config.in: Regenerated.
12896 * configure: Regenerated.
12898 2003-01-24 Nick Clifton <nickc@redhat.com>
12900 * Add sh2e support:
12902 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12904 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12905 (sh2e_show_regs): New.
12906 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12907 * config/sh/tm-sh.h: Added sh2e to comments.
12909 2003-01-23 Jim Blandy <jimb@redhat.com>
12911 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12912 symbols found)" message here; we haven't checked for a separate
12913 debug info file yet, so we don't know yet.
12914 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12915 we've looked everywhere. Also, there's no need to print a special
12916 message when we're loading the separate debug info file: the one
12917 symbol_file_add prints is fine.
12919 2003-01-23 Alexander Larsson <alexl@redhat.com>
12920 Jim Blandy <jimb@redhat.com>
12922 Add support for executables whose debug info has been separated
12923 out into a separate file, leaving only a link behind.
12924 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12925 and separate_debug_objfile_backlink.
12926 (put_objfile_before): New declaration.
12927 * symfile.c: #include "filenames.h".
12928 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12929 debug info in a separate file, read that, too. Save the addrs
12930 argument, so we can use it again to read the separated debug info;
12931 syms_from_objfile modifies the table we pass it.
12932 (reread_symbols): After re-reading an objfile, call
12933 reread_separate_symbols to refresh its separate debug info
12934 objfile, if it has one.
12935 (reread_separate_symbols, find_separate_debug_file,
12936 get_debug_link_info, separate_debug_file_exists): New functions.
12937 (debug_file_directory): New global var.
12938 (_initialize_symfile): Initialize debug_file_directory, and
12939 provide the new `set debug-file-directory' command to let the user
12941 * objfiles.c (free_objfile): If this objfile has its debug info in
12942 a separate objfile, free that one too. If this is itself a
12943 separate debug info objfile, clear our parent's backlink.
12944 (put_objfile_before): New function.
12945 * utils.c (gnu_debuglink_crc32): New function.
12946 * defs.h (gnu_debuglink_crc32): New declaration.
12947 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12948 * configure.in: Handle --with-separate-debug-dir config option.
12949 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12950 * acconfig.h (DEBUGDIR): New macro.
12951 * configure, aclocal.m4, config.in: Regenerated.
12953 2003-01-22 Jim Blandy <jimb@redhat.com>
12955 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12956 like the old symbol_file_add, but taking new arguments: you can
12957 now pass in either a `struct section_addr_info' list to say where
12958 each section is loaded, or a `struct section_offsets' table. Pass
12959 these new arguments through to syms_from_objfile as appropriate.
12960 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12961 with the appropriate quiescent values for the new arguments.
12963 * symfile.c: #include "gdb_assert.h".
12964 (syms_from_objfile): Add the ability to pass in a section offset
12965 table directly, as an alternative to the section_addr_info table.
12966 Document arguments better.
12967 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12968 * symfile.h (syms_from_objfile): Update declaration.
12969 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12971 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12973 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
12975 Original patch by Tom Tromey <tromey@cygnus.com> and
12976 Jason Molenda <jmolenda@apple.com>.
12977 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12978 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12979 * NEWS: Mention profiling.
12980 * configure.in (--enable-gdbtk): Fix typo.
12981 (--enable-profiling): New. Set PROFILE_CFLAGS.
12982 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12984 (profiling_state): New variable.
12985 (mcleanup_wrapper): New function.
12986 (_initialize_maint): Remove NOTYET, fix call to
12987 add_setshow_boolean_cmd for "maint set profile".
12988 * configure: Regenerated.
12990 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12992 * Makefile.in (install-gdbtk): Install PNG images too.
12994 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12996 * exec.c (text_start): Delete global variable.
12997 (exec_file_attach): Make text_start local to the function.
12998 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12999 * valops.c (hand_function_call): Delete code that handles
13000 BEFORE_TEXT_END and AFTER_TEXT_END.
13001 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13002 of CALL_DUMMY_LOCATION.
13003 * gdbarch.c: Regenerate.
13004 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13005 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13006 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13007 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13008 (text_end): Delete extern declaration.
13010 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13012 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13013 * blockframe.c (backtrace_below_main): Move to "frame.c".
13014 (frame_chain_valid): Delete check for backtrace_below_main.
13015 (_initialize_blockframe): Delete initialization, move ``set
13016 backtrace-below-main'' command to "frame.c".
13017 (do_flush_frames_sfunc): Delete function.
13018 * frame.c: Include "command.h" and "gdbcmd.h".
13019 (frame_type_from_pc): New function.
13020 (create_new_frame): Use frame_type_from_pc.
13021 (legacy_get_prev_frame): New function.
13022 (get_prev_frame): Rewrite. When an old style frame, call
13023 legacy_get_prev_frame. Otherwize, unwind the PC first.
13024 (_initialize_frame): Add ``set backtrace-below-main'' command.
13025 * Makefile.in (frame.o): Update dependencies.
13027 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13029 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13030 DEPRECATED_REGISTERS_INFO.
13032 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13034 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13035 Maintainers'. Update `Various Maintainers'.
13037 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13039 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13040 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13041 Suppress actual parameters when `-'.
13042 * gdbarch.h, gdbarch.c: Regenerate.
13044 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13046 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13047 code handling dummy frames.
13049 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13051 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13052 (struct frame_unwind): Add field pop.
13053 * frame.h (frame_pop): Declare.
13054 * frame.c (frame_saved_regs_pop): New function.
13055 (trad_frame_unwinder): Add frame_saved_regs_pop.
13056 (frame_pop): New function.
13057 * dummy-frame.c (dummy_frame_pop): New function.
13058 (discard_innermost_dummy): New function.
13059 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13060 (dummy_frame_unwind): Add dummy_frame_pop.
13061 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13062 * valops.c (hand_function_call): Ditto.
13063 * stack.c (return_command): Ditto.
13065 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13067 * cris-tdep.c: Fix function declaration indentation.
13068 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13069 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13070 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13071 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13072 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13073 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13075 2003-01-18 Michael Chastain <mec@shout.net>
13077 * README (Unpacking and Installation -- quick overview):
13078 Warn against ".../gdb-5.3/gdb/configure".
13080 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13082 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13083 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13084 (struct frame_unwind): Declare opaque.
13085 (dummy_frame_p): Declare function.
13086 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13087 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13088 * dummy-frame.c: Include "frame-unwind.h".
13089 (dummy_frame_p): New function.
13090 (dummy_frame_unwind): New variable.
13091 * frame.c: Include "frame-unwind.h".
13092 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13093 to use the new unwind field.
13094 (set_unwind_by_pc): Delete function.
13095 (create_new_frame, get_prev_frame): Set unwind field using
13096 frame_unwind_find_by_pc.
13097 (trad_frame_unwind, trad_frame_unwinder): New variables.
13098 * frame.h (trad_frame_unwind): Declare variable.
13099 (frame_id_unwind_ftype): Delete declaration.
13100 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13101 (struct frame_unwind): Declare opaque.
13102 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13103 register_unwind with a single unwind pointer.
13104 * frame-unwind.h, frame-unwind.c: New files.
13105 * Makefile.in (SFILES): Add frame-unwind.c.
13106 (frame_unwind_h): Define.
13107 (COMMON_OBS): Add frame-unwind.o.
13108 (frame-unwind.o): Specify dependencies.
13109 (frame.o, dummy-frame.o): Update dependencies.
13111 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13113 * ada-valprint.c: Eliminate PTR.
13114 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13115 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13116 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13117 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13118 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13119 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13120 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13122 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13124 * main.c (captured_main): Don't use PTR.
13125 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13126 * gdbtypes.c (lookup_primitive_typename): Ditto.
13127 (lookup_struct_elt_type): Ditto.
13128 * f-valprint.c (info_common_command): Ditto.
13129 (list_all_visible_commons): Ditto.
13130 * jv-typeprint.c (java_type_print_base): Ditto.
13132 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13133 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13134 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13135 i386-interix-nat.c and i386-interix-tdep.c. Rename
13136 m68klinux-nat.c and m68klinux-tdep.c. Rename
13137 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13138 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13139 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13140 * main.c (captured_main): Use xfree, not free.
13142 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13144 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13145 ID back using a parameter.
13146 * frame.c (frame_id_unwind): Update call.
13147 (frame_saved_regs_id_unwind): Update.
13148 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13149 * dummy-frame.h (struct frame_id): Add opaque declaration.
13150 (dummy_frame_id_unwind): Update declaration.
13152 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13154 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13156 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13158 * MAINTAINERS (Stephen P. Smith): Updated email address.
13160 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13163 * breakpoint.c (until_break_command): Add new argument. Use it to
13164 decide whether to stop only at the current frame or not.
13165 * breakpoint.h (until_break_command): Update prototype.
13166 * infcmd.c (until_command): Add new argument to until_break_command
13168 (advance_command): New function.
13169 (_initialize_infcmd): Update help string for 'until' command.
13170 Add new 'advance' command.
13172 2003-01-14 David Carlton <carlton@math.stanford.edu>
13174 * linespec.c (decode_line_1): Normalize comments.
13175 (set_flags): Ditto.
13176 (locate_first_half): Ditto.
13177 (decode_compound): Ditto.
13178 (symtab_from_filename): Ditto.
13179 (decode_all_digits): Ditto.
13180 (decode_dollar): Ditto.
13181 (find_methods): Ditto.
13182 (find_toplevel_char): Ditto.
13184 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13186 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13187 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13188 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13189 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13190 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13191 * language.c, language.h, m32r-tdep.c: Update copyright.
13192 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13193 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13194 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13195 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13196 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13197 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13199 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13201 * stabsread.h (process_later, resolve_cfront_continuation):
13203 Update copyright years.
13204 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13205 Update copyright year.
13206 * dbxread.c(struct cont_elem): Obsolete.
13207 (process_later, process_now): Obsolete functions.
13208 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13209 Update copyright year.
13210 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13211 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13212 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13213 (parse_partial_symbols): Obsolete cfront support.
13215 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13217 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13218 read_cfront_baseclasses, read_cfront_member_functions,
13219 resolve_cfront_continuation,read_cfront_static_fields,
13220 copy_cfront_struct_fields): Obsolete functions.
13221 (define_symbol, read_one_struct_field): Obsolete cfront support.
13222 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13223 Update Copyright year.
13225 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13227 * stack.c (print_frame_info, print_stack_frame_base_stub,
13228 print_stack_frame_base, show_and_print_stack_frame_stub,
13229 show_and_print_stack_frame, print_only_stack_frame_stub,
13230 print_only_stack_frame): Delete functions.
13231 (print_stack_frame_stub): Call print_frame_info instead of
13232 print_frame_info_base.
13233 (print_frame_info_base): Rename to print_frame_info.
13234 (backtrace_command_1): Call print_frame_info, instead of
13235 print_frame_info_base.
13236 (current_frame_command): Call print_stack_frame, instead of
13237 print_only_stack_frame.
13238 (frame_command): Call print_stack_frame, instead of
13239 show_and_print_stack_frame.
13240 (up_command): Ditto.
13241 (down_command): Ditto.
13242 * frame.h (print_only_stack_frame): Delete prototype.
13243 * infrun.c (normal_stop): Call print_stack_frame, instead of
13244 show_and_print_stack_frame.
13245 * thread.c (info_threads_command): Call print_stack_frame, instead
13246 of print_only_stack_frame.
13248 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13250 * README (Graphical interface to GDB): Update URL. Point at
13253 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13256 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13258 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13261 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13263 * thread-db.c (attach_thread): Prototype.
13264 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13265 thread information (ti), and valid flags (th_valid, ti_valid).
13266 (attach_thread): Move target_pid_to_str call to after the thread
13267 is added to GDB's list. Initialize the cache.
13268 (thread_get_info_callback, thread_db_map_id2thr)
13269 (thread_db_get_info): New functions.
13270 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13271 (thread_db_store_registers, thread_db_thread_alive)
13272 (thread_db_get_thread_local_address): Use them.
13273 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13274 of calling error() for threads in unknown state.
13276 (clear_lwpid_callback): New function.
13277 (thread_db_resume): Use it to clear the cache.
13279 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13281 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13282 (resume_callback): Remove dead code.
13284 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13286 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13288 * gdbarch.h, gdbarch.c: Regenerate.
13289 * stack.c (frame_info): Only initialize the saved registers when
13290 FRAME_INIT_SAVED_REGS_P.
13291 * frame.c (frame_saved_regs_register_unwind): Assert
13292 FRAME_INIT_SAVED_REGS_P.
13293 (deprecated_generic_get_saved_register): Ditto.
13295 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13297 * source.c (openp): Squelch warning about "filename".
13299 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13301 * source.c (openp): If the file does not exist don't necessarily
13304 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13307 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13308 (integer_types_same_name_p): New function.
13309 (rank_one_type): Use it.
13310 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13312 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
13314 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13316 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13317 * configure.in: Add --with-sysroot.
13318 * configure: Regenerated.
13319 * main.c (gdb_sysroot): New variable.
13320 (captured_main): Initialize gdb_sysroot.
13321 * defs.h (gdb_sysroot): New extern declaration.
13322 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13324 2003-01-12 Michael Chastain <mec@shout.net>
13326 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13328 2003-01-12 Michael Chastain <mec@shout.net>
13330 * top.c (print_gdb_version): Bump copyright year to 2003.
13332 2003-01-12 David Carlton <carlton@bactrian.org>
13334 * linespec.c (symtab_from_filename): Rename variable 's' to
13337 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13339 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13341 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13343 2003-01-12 Andrew Cagney <ac131313@redhat.com>
13345 * d10v-tdep.c: Include "gdb_assert.h".
13346 (d10v_store_return_value): Rewrite to match current interface.
13347 (d10v_extract_struct_value_address): Ditto.
13348 (d10v_extract_return_value): Ditto.
13349 (d10v_gdbarch_init): Set store_restore_value,
13350 extract_struct_value_address and extract_return_value.
13352 2003-01-12 J. Brobecker <brobecker@gnat.com>
13354 * hpread.c (set_namestring): New procedure replacing the
13355 SET_NAMESTRING macro.
13356 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13357 by calls to set_namestring.
13359 2003-01-11 J. Brobecker <brobecker@gnat.com>
13361 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13362 a compilation warning.
13363 (hpread_process_one_debug_symbol): Likewise.
13365 2003-01-10 David Carlton <carlton@math.stanford.edu>
13367 * linespec.c (decode_line_1): Rename variable 's' to
13369 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13370 (decode_dollar): Ditto.
13371 (decode_variable): Ditto.
13372 (symbol_found): Ditto.
13374 2003-01-09 Michael Chastain <mec@shout.net>
13376 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13378 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
13380 * win32-nat.c (set_process_privilege): New function.
13381 (child_attach): Call set_process_privilege() to enable the
13382 SE_DEBUG_NAME user privilege if available in process token.
13384 2003-01-10 J. Brobecker <brobecker@gnat.com>
13386 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13387 compilation error in the previous revision.
13389 2003-01-09 David Carlton <carlton@math.stanford.edu>
13391 * linespec.c: Update copyright.
13393 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
13395 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13396 than inferior_ptid.
13397 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13399 2003-01-09 Andrew Cagney <ac131313@redhat.com>
13401 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13403 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13404 (frame_saved_regs_zalloc): Update.
13405 (frame_saved_regs_register_unwind): Update.
13406 (create_new_frame): Update.
13407 (get_prev_frame): Update.
13408 (frame_extra_info_zalloc): Update.
13409 (deprecated_get_frame_saved_regs): Update.
13410 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13411 * cris-tdep.c: Update comment.
13413 * somsolib.h: Fix function indentation.
13414 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13415 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13416 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13417 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13418 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13420 * infrun.c (follow_fork): Use ISO C definition.
13421 * expprint.c (print_subexp): Use xfree instead of free.
13422 * charset.c: Include "gdb_string.h" instead of <string.h>.
13423 (register_iconv_charsets): Use ISO C definition.
13424 (host_charset, target_charset): Ditto.
13425 * Makefile.in (charset.o): Update dependencies.
13426 (mi-cmd-env.o): Update dependencies.
13428 2003-01-08 Andrew Cagney <cagney@redhat.com>
13430 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13433 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13435 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13436 build directories. Save edited gdb output in Mbuild.log. If a
13437 build fails, remove any final GDB executable.
13439 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13441 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13442 replacing hex constants with function names and stripping leading
13443 file name directory prefixes.
13445 2003-01-08 Andrew Cagney <cagney@redhat.com>
13447 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13450 2003-01-08 David Carlton <carlton@math.stanford.edu>
13452 * linespec.c (decode_line_1): Move code into decode_variable.
13453 (decode_variable): New function.
13455 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13457 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13459 2003-01-08 Andrew Cagney <cagney@redhat.com>
13461 * cris-tdep.c (cris_frame_init_saved_regs): Use
13462 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13464 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13465 (sh64_nofp_frame_init_saved_regs): Ditto.
13466 (sh_fp_frame_init_saved_regs): Ditto.
13467 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13468 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13469 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13470 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13472 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
13474 * minsyms.c (lookup_minimal_symbol): Update comment.
13475 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13476 (lookup_minimal_symbol_solib_trampoline): Likewise.
13478 2003-01-08 Andrew Cagney <cagney@redhat.com>
13480 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13481 frame_relative_level.
13483 * alpha-tdep.c: Use get_frame_extra_info.
13484 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13485 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13486 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13487 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13489 * alpha-tdep.c: Use get_next_frame.
13490 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13491 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13492 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13493 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13494 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13495 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13496 * xstormy16-tdep.c: Ditto.
13498 2003-01-07 Andrew Cagney <cagney@redhat.com>
13500 * alpha-tdep.c: Use get_frame_base.
13501 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13502 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13503 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13504 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13505 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13506 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13507 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13508 * config/sparc/tm-sparc.h: Ditto.
13510 2003-01-07 Andrew Cagney <cagney@redhat.com>
13512 * frame.c (deprecated_get_frame_context): New function.
13513 (deprecated_set_frame_context): New function.
13514 * frame.h (deprecated_get_frame_context): Declare.
13515 (deprecated_set_frame_context): Declare.
13516 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13517 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
13519 2003-01-07 Andrew Cagney <cagney@redhat.com>
13521 * frame.c (deprecated_set_frame_next_hack): New function.
13522 (deprecated_set_frame_prev_hack): New function.
13523 * frame.h (deprecated_set_frame_next_hack): Declare.
13524 (deprecated_set_frame_prev_hack): Declare.
13525 * mcore-tdep.c (analyze_dummy_frame): Use
13526 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13527 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13529 2003-01-07 David Carlton <carlton@math.stanford.edu>
13531 * linespec.c (decode_line_1): Move code into decode_dollar.
13532 (decode_dollar): New function.
13534 2003-01-07 Andrew Cagney <cagney@redhat.com>
13536 * arm-tdep.c (arm_init_extra_frame_info): Use
13537 deprecated_update_frame_base_hack.
13538 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13539 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13540 (fix_frame_pointer): Ditto.
13541 (mn10300_analyze_prologue): Ditto.
13543 2003-01-07 Andrew Cagney <cagney@redhat.com>
13545 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13546 extra_info using frame_extra_info_zalloc.
13547 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13548 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13549 (sh64_init_extra_frame_info): Ditto.
13550 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13551 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13552 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13553 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13554 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13555 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13556 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13557 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13558 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13559 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13560 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13561 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13563 * mn10300-tdep.c (analyze_dummy_frame): Use
13564 deprecated_set_frame_extra_info_hack.
13565 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13567 2003-01-07 J. Brobecker <brobecker@gnat.com>
13569 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13570 class is not scText. These do not define "real" procedures.
13571 (parse_partial_symbols): Likewise.
13573 2003-01-06 Michael Snyder <msnyder@redhat.com>
13575 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13577 2003-01-06 Andrew Cagney <ac131313@redhat.com>
13579 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13580 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13581 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13582 deprecated_frame_xmalloc_with_cleanup.
13583 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13584 deprecated_frame_xmalloc.
13585 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13586 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13588 2003-01-06 Andrew Cagney <cagney@redhat.com>
13590 * x86-64-linux-tdep.c: Include "osabi.h".
13591 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13593 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13595 2003-01-06 Andrew Cagney <cagney@redhat.com>
13597 * MAINTAINERS (Target Instruction Set Architectures): Update
13598 arm-elf. Can be built with -Werror, has been multiarched.
13600 * value.h (unpack_long): Make buffer parameter constant.
13601 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13602 * scm-lang.h (scm_parse): Ditto.
13603 * defs.h (extract_typed_address, extract_address): Ditto.
13604 (extract_long_unsigned_integer): Ditto.
13605 * inferior.h (unsigned_pointer_to_address): Ditto.
13606 (signed_pointer_to_address): Ditto.
13607 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13608 * gdbarch.h, gdbarch.c: Regenerate.
13609 * findvar.c (extract_long_unsigned_integer): Update.
13610 (extract_address): Update.
13611 (extract_typed_address): Update.
13612 (unsigned_pointer_to_address): Update.
13613 * values.c (unpack_long): Update.
13614 (unpack_double): Update.
13615 (unpack_pointer): Update.
13616 (unpack_field_as_long): Update.
13617 * d10v-tdep.c (d10v_pointer_to_address): Update.
13618 * avr-tdep.c (avr_pointer_to_address): Update.
13619 * scm-lang.c (scm_unpack): Update.
13620 * findvar.c (signed_pointer_to_address): Update.
13622 2003-01-06 Michal Ludvig <mludvig@suse.cz>
13624 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13625 since it is in i386-tdep.c.
13627 2003-01-06 J. Brobecker <brobecker@gnat.com>
13629 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13630 failure introduced in the previous change.
13632 2003-01-05 Michael Chastain <mec@shout.net>
13634 * README: Remove references to deleted remote-*.c files:
13635 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13636 remote-nrom.c, remote-os9k.c, remote-udi.c.
13638 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13640 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13641 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13642 i386_get_longjmp_target.
13644 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13646 * arm-tdep.c (prologue_cache): Change to a pointer.
13647 (_initialize_arm_tdep): Allocate prologue_cache.
13648 (check_prologue_cache): Update.
13649 (save_prologue_cache): Update.
13650 (arm_gdbarch_init): Update.
13652 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13654 * stabsread.c (update_method_name_from_physname): Call complaint()
13657 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13659 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13660 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13661 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13663 * blockframe.c: Include "gdbcmd.h" and "command.h".
13664 (backtrace_below_main): New variable.
13665 (file_frame_chain_valid, func_frame_chain_valid)
13666 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13667 (generic_func_frame_chain_valid): Remove functions.
13668 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13669 (_initialize_blockframe): New function.
13670 * Makefile.in (blockframe.o): Update dependencies.
13671 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13672 comment. Call frame_chain_valid ().
13673 * frame.h: Remove old prototypes. Add prototype for
13674 frame_chain_valid and update comments to match.
13675 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13676 Remove old comment.
13677 * gdbarch.h: Regenerated.
13678 * gdbarch.c: Regenerated.
13680 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13681 set_gdbarch_frame_chain_valid.
13682 * avr-tdep.c (avr_gdbarch_init): Likewise.
13683 * cris-tdep.c (cris_gdbarch_init): Likewise.
13684 * frv-tdep.c (frv_gdbarch_init): Likewise.
13685 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13686 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13687 (i386_nw_init_abi): Likewise.
13688 (i386_gdbarch_init): Likewise.
13689 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13691 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13692 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13693 * mips-tdep.c (mips_gdbarch_init): Likewise.
13694 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13695 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13696 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13697 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13698 * s390-tdep.c (s390_gdbarch_init): Likewise.
13699 * sh-tdep.c (sh_gdbarch_init): Likewise.
13700 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13701 * v850-tdep.c (v850_gdbarch_init): Likewise.
13702 * vax-tdep.c (vax_gdbarch_init): Likewise.
13703 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13705 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13706 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13707 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13708 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13709 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13710 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13711 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13712 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13714 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13716 * Makefile.in (acconfig_h): Remove incorrect macro.
13717 (config_h): Define.
13718 (osabi.o): Update dependencies.
13719 * configure.tgt: Set gdb_osabi based on target triplet.
13720 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13721 * configure: Regenerated.
13722 * config.in: Regenerated.
13723 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13724 (GDB_OSABI_DEFAULT): Define if not already defined.
13725 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13726 (set_osabi_string): New variables.
13727 (gdbarch_register_osabi): Add new OS ABI to
13728 gdb_osabi_available_names.
13729 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13730 (set_osabi, show_osabi): New functions.
13731 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13733 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13735 * arch-utils.c (gdbarch_info_init): Set osabi to
13736 GDB_OSABI_UNINITIALIZED.
13737 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13738 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13739 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13740 * gdbarch.c: Regenerated.
13741 * gdbarch.h: Regenerated.
13742 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13744 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13745 * osabi.h (enum gdb_osabi): Move to defs.h.
13746 (gdbarch_init_osabi): Update prototype.
13747 * defs.h (enum gdb_osabi): Moved here.
13748 * Makefile.in: Update dependencies.
13750 * alpha-tdep.h: Don't include "osabi.h".
13751 (struct gdbarch_tdep): Remove osabi member.
13752 * alpha-tdep.c: Include "osabi.h".
13753 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13754 iterate over arches. Update call to gdbarch_init_osabi.
13755 (alpha_dump_tdep): Don't dump osabi.
13756 * alpha-linux-tdep.c: Include "osabi.h".
13757 * alpha-osf1-tdep.c: Include "osabi.h".
13758 * alphafbsd-tdep.c: Include "osabi.h".
13759 * alphanbsd-tdep.c: Include "osabi.h".
13761 * arm-tdep.h: Don't include "osabi.h".
13762 (struct gdbarch_tdep): Remove osabi member.
13763 * arm-tdep.c: Include "osabi.h".
13764 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13765 iterate over arches. Update call to gdbarch_init_osabi.
13766 (arm_dump_tdep): Don't dump osabi.
13767 * arm-linux-tdep.c: Include "osabi.h".
13768 * armnbsd-tdep.c: Include "osabi.h".
13770 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13771 Update call to gdbarch_init_osabi.
13773 * i386-tdep.h: Don't include "osabi.h".
13774 (struct gdbarch_tdep): Remove osabi member.
13775 * i386-tdep.c: Include "osabi.h".
13776 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13777 iterate over arches. Update call to gdbarch_init_osabi.
13778 (i386_dump_tdep): Don't dump osabi.
13779 * i386-linux-tdep.c: Include "osabi.h".
13780 * i386-sol2-tdep.c: Include "osabi.h".
13781 * i386bsd-tdep.c: Include "osabi.h".
13782 * i386gnu-tdep.c: Include "osabi.h".
13783 * i386ly-tdep.c: Include "osabi.h".
13784 * i386nbsd-tdep.c: Include "osabi.h".
13785 * i386obsd-tdep.c: Include "osabi.h".
13787 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13788 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13789 check osabi when iterating over arches. Update call to
13790 gdbarch_init_osabi.
13791 (mips_dump_tdep): Don't dump osabi.
13793 * ns32k-tdep.h: Don't include "osabi.h".
13794 (struct gdbarch_tdep): Remove.
13795 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13796 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13797 allocate tdep. Update call to gdbarch_init_osabi.
13798 (ns32k_dump_tdep): Remove.
13799 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13800 * ns32knbsd-tdep.c: Include "osabi.h".
13802 * ppc-tdep.h: Don't include "osabi.h".
13803 (struct gdbarch_tdep): Remove osabi member.
13804 * rs6000-tdep.c: Include "osabi.h".
13805 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13806 osabi when iterating over arches. Update call to
13807 gdbarch_init_osabi.
13808 (rs6000_dump_tdep): Don't dump osabi.
13809 * ppc-linux-tdep.c: Include "osabi.h".
13810 * ppcnbsd-tdep.c: Include "osabi.h".
13812 * sh-tdep.h: Don't include "osabi.h".
13813 (struct gdbarch_tdep): Remove osabi member.
13814 * sh-tdep.c: Include "osabi.h".
13815 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13816 iterate over arches. Update call to gdbarch_init_osabi.
13817 (sh_dump_tdep): Don't dump osabi.
13818 * shnbsd-tdep.c: Include "osabi.h".
13820 * sparc-tdep.c: Include "osabi.h".
13821 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13822 iterate over arches. Update call to gdbarch_init_osabi.
13823 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13826 * vax-tdep.h: Don't include "osabi.h".
13827 (struct gdbarch_tdep): Remove.
13828 * vax-tdep.c: Include "osabi.h".
13829 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13830 iterate over arches. Don't allocate tdep. Update call
13831 to gdbarch_init_osabi.
13832 (vax_dump_tdep): Remove.
13833 (_initialize_vax_tdep): Update call to gdbarch_register.
13835 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13837 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13839 (breakpoint_re_set_one): Don't fetch the value for a disabled
13842 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13844 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13845 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13846 (COERCE_FLOAT_TO_DOUBLE): Remove.
13847 * gdbarch.c: Regenerate.
13848 * gdbarch.h: Regenerate.
13849 * Makefile.in: Remove value_h from gdbarch_h.
13850 * valops.c (coerce_float_to_double): New variable.
13851 (default_coerce_float_to_double): Remove.
13852 (standard_coerce_float_to_double): Remove.
13853 (value_arg_coerce): Use coerce_float_to_double.
13854 (_initialize_valops): Add "set coerce-float-to-double".
13855 * value.h (default_coerce_float_to_double): Remove prototype.
13856 (standard_coerce_float_to_double): Remove prototype.
13858 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13860 * mdebugread.c (parse_symbol): Likewise.
13861 * stabsread.c (define_symbol): Mark all functions as prototyped.
13863 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13864 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13865 set_gdbarch_coerce_float_to_double.
13866 * arm-tdep.c (arm_gdbarch_init): Likewise.
13867 * frv-tdep.c (frv_gdbarch_init): Likewise.
13868 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13869 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13870 * mips-tdep.c (mips_gdbarch_init): Likewise.
13871 (mips_coerce_float_to_double): Remove.
13872 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13873 (rs6000_coerce_float_to_double): Remove.
13874 * s390-tdep.c (s390_gdbarch_init): Likewise.
13875 * sh-tdep.c (sh_gdbarch_init): Likewise.
13876 (sh_coerce_float_to_double): Remove.
13877 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13878 (sparc_coerce_float_to_double): Remove.
13879 * v850-tdep.c (v850_gdbarch_init): Likewise.
13880 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13881 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13882 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13883 (hppa_coerce_float_to_double): Remove prototype.
13884 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13886 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13888 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13890 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13892 Suggested by Stewart Brown <sb24@avaya.com>:
13893 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13894 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13895 (c_type_print_varspec_suffix): Likewise.
13897 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13899 * configure.in: Don't set and AC_SUBST SUBDIRS.
13900 * configure: Regenerated.
13902 * configure.in: Remove code dealing with shared libraries.
13903 * Makefile.in: Remove HLDFLAGS and HLDENV.
13904 * configure: Regenerated.
13906 2003-01-04 Andrew Cagney <ac131313@redhat.com>
13908 * frame.c (deprecated_frame_xmalloc): New function.
13909 (deprecated_set_frame_saved_regs_hack): New function.
13910 (deprecated_set_frame_extra_info_hack): New function.
13911 * frame.h (deprecated_frame_xmalloc): Declare.
13912 (deprecated_set_frame_saved_regs_hack): Declare.
13913 (deprecated_set_frame_extra_info_hack): Declare.
13915 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13917 * configure.in: Move code that provides the --enable-gdbtk option
13918 right after the code that handles the --enable-tui option, and
13919 polish it somewhat.
13920 * configure: Regenerated.
13922 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13923 AC_CHECK_FUNCS and remove the old check for pread64.
13924 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13925 * acconfig.h (_GNU_SOURCE): Add.
13926 (HAVE_PREAD64): Remove.
13927 * configure, aclocal.m4, config.in: Regenerated.
13929 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13931 * alpha-tdep.c: Use get_frame_saved_regs.
13932 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13933 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13934 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13935 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13936 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13938 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13940 * configure.in: Remove all use of the SUBDIRS variable; add
13941 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13942 code providing the --enable-multi-ice option, and move it right in
13943 front of the code that checks whether gdbserver is supported.
13945 * configure: Regenerated.
13946 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13949 2003-01-03 Andrew Cagney <cagney@redhat.com>
13951 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13952 * avr-tdep.c, cris-tdep.c: Ditto.
13953 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13954 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13956 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13958 * configure.in: Remove --enable-netrom option.
13959 * configure: Regenerated.
13961 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13963 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13964 declaration for `struct re_pattern_buffer' instead.
13965 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13967 2003-01-03 J. Brobecker <brobecker@gnat.com>
13969 * mdebugread.c (parse_symbol): Count until the stEnd matching
13970 the structure name.
13972 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13974 * configure.in: Remove --with-cpu option.
13975 subscripts. Remove evil changequotes here.
13976 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13977 * config.in, configure: Regenerated.
13979 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13980 * configure.in: Cleanup section that sources GDB and BFD configure
13981 subscripts. Remove evil changequotes here.
13982 * config.in, configure: Regenerated.
13984 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13986 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13987 frame accessor methods.
13988 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13989 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13990 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13991 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13992 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13993 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13994 * z8k-tdep.c: Ditto.
13996 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13998 * configure.in: Remove UI_OUT configuration code.
13999 * ada-lang.c: Update assuming UI_OUT is always true.
14000 * Makefile.in (UIOUT_CFLAGS): Remove.
14001 * configure: Regenerated.
14002 * TODO: Remove blurb about elimination of -DUI_OUT.
14004 * configure.in: Move code that provides the --enable-gdbcli,
14005 --enable-gdbmi options right before the code that handles the
14006 --enable-tui option. Polish a bit.
14007 * configure: Regenerated.
14009 * configure.in: Rewrite check for GNU regex and the
14010 --without-included regex option, and move it into the "Checks for
14011 library functions" section. This makes us use the system regex
14012 again by default on systems with version 2 of the GNU C library.
14013 This was apparently broken.
14014 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14015 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14016 * config.in, configure: Regenerated.
14018 * configure.in: Move code that provides the --enable-tui option
14019 before the "Checks for libraries" section. Polish the code
14020 somewhat and set need_curses to yes if we build the TUI. Rewrite
14021 code that looks for a library providing termcap functionality to
14022 match more closely what's done in the Readline library, and move
14023 it into to the "Checks for libraries" section.
14024 * configure: Regenerated.
14025 * Makefile.in (TERMCAP): Remove variable.
14026 * config/i386/go32.mh (TERMCAP): Remove variable.
14028 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14030 * MAINTAINERS: Mention gdb_mbuild.sh.
14031 * gdb_mbuild.sh: Rewrite.
14033 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14035 * configure.in: Fix typo in last change.
14036 * config.in, configure: Regenerated.
14038 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14040 * valarith.c (value_binop): Delete obsolete code and comments.
14041 * configure.host: Ditto.
14042 * buildsym.h (make_blockvector): Ditto.
14043 * buildsym.c (make_blockvector): Ditto.
14044 * defs.h (enum language): Ditto.
14045 (chill_demangle): Ditto.
14046 * elfread.c (elf_symtab_read): Ditto.
14047 * dwarfread.c (CHILL_PRODUCER): Ditto.
14048 (set_cu_language): Ditto.
14049 (handle_producer): Ditto.
14050 * expprint.c (print_subexp): Ditto.
14051 * gdbtypes.c (chill_varying_type): Ditto.
14052 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14053 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14054 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14055 (chill_varying_type): Ditto.
14056 * language.h (_LANG_chill): Ditto.
14057 * language.c (binop_result_type, integral_type): Ditto.
14058 (character_type, string_type, structured_type): Ditto.
14059 (lang_bool_type, binop_type_check): Ditto.
14060 * stabsread.h (os9k_stabs): Ditto.
14061 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14062 (define_symbol, read_type, read_struct_fields): Ditto.
14063 (read_array_type, read_enum_type, read_huge_number): Ditto.
14064 (read_range_type, start_stabs): Ditto.
14065 * symfile.c (init_filename_language_table): Ditto.
14066 (add_psymbol_with_dem_name_to_list): Ditto.
14067 * symtab.c (symbol_init_language_specific): Ditto.
14068 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14069 * symtab.h (struct general_symbol_info): Ditto.
14070 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14071 * typeprint.c (typedef_print): Ditto.
14072 * utils.c (fprintf_symbol_filtered): Ditto.
14073 * valops.c (value_cast, search_struct_field, value_slice): Delete
14075 (varying_to_slice): Delete function.
14076 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14077 (varying_to_slice): Delete declaration.
14078 * MAINTAINERS: Update.
14080 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14082 * configure.in: Reorganize "Checks for library functions section"
14083 a bit. Remove check for `btowc' and `isascii' functions.
14084 * configure: Regenerated.
14086 * acconfig.h (_MSE_INT_H): Remove.
14087 * configure.in: Create "Checks for header files" section, and move
14088 appropriate tests there. Don't check for objlist.h, wchar.h,
14089 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14090 misdetection fix. Also add "Checks for types", "Checks for
14091 compiler characteristics" and "Checks for library functions"
14093 * config.in, configure: Regenerated.
14095 * configure.in: Create "Checks for programs" section, and move
14096 appropriate tests there.
14098 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14100 * configure.in: Create "Checks for libraries" section, and move
14101 appropriate tests there. Cleanup check for wctype in libw. Use
14102 AC_SEARCH_LIBS to see whether we need libsocket.
14103 * configure: Regenerated.
14105 For older changes see ChangeLog-2002
14111 version-control: never