3 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
4 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
8 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
9 case out of #ifdef MIPS block.
14 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
15 available before calling SECT_OFF_TEXT.
16 * PROBLEMS: Remove description of java/1322.
20 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
21 bof, and nat0-nat127 as pseudo-registers.
22 (ia64_frame_cache): New struct used to cache frame info.
23 (ia64_register_reggroup_p): New routine used to override default
24 register grouping so registers without names are still saved and
26 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
28 (ia64_pseudo_register_read): New routine to read pseudo-registers.
29 (ia64_pseudo_register_write): New routine to write pseudo-registers.
30 (ia64_alloc_frame_cache): New routine to create a new
32 (examine_prologue): Change prototype to add next_frame pointer.
33 Assume frameless until otherwise proven. Verify that the cfm for
34 current frame matches the cfm that should occur for the prologues
35 alloc insn and if equal, mark as not frameless. At end of routine,
36 if not frameless, calculate registers for the previous frame and store
37 in the cache, if a cache is provided.
38 (ia64_skip_prologue): Use new prototype when calling examine_prologue
39 and pass 0 for next_frame.
40 (ia64_store_return_value): Change to use convert_typed_floating()
41 instead of calling ia64_convert_to_raw().
42 (ia64_extract_return_value): Change to use convert_typed_floating()
43 instead of calling ia64_convert_to_virtual().
44 (ia64_frame_cache): New routine to support new frame model.
45 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
46 (ia64_frame_sniffer): Ditto.
47 (ia64_sigtramp_frame_init_saved_regs): Ditto.
48 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
49 (ia64_sigtramp_frame_prev_register): Ditto.
50 (ia64_sigtramp_frame_sniffer): Ditto.
51 (ia64_frame_base_address): Ditto.
52 (ia64_extract_struct_value_address): Change to issue error message.
53 (ia64_frame_align): New routine to align sp.
54 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
55 (ia64_push_arguments): Removed. Logic moved to
56 ia64_push_dummy_call().
57 (ia64_push_return_address): Ditto.
58 (ia64_unwind_dummy_id): New function.
59 (ia64_unwind_pc): Ditto.
60 (ia64_convert_register_p): Ditto.
61 (ia64_register_to_value): Ditto.
62 (ia64_value_to_register): Ditto.
63 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
64 (ia64_register_byte, ia64_register_raw_size): Ditto.
65 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
66 (ia64_saved_pc_after_call): Ditto.
67 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
68 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
69 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
70 (ia64_register_convert_to_raw): Ditto.
71 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
72 (ia64_init_extra_frame_info): Ditto.
73 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
74 (ia64_gdbarch_init): Remove registering of deprecated functions that
75 are no longer used. Add registration of new gdbarch functions.
76 Remove registering deprecated_write_sp. Replace
77 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
78 Delete set_gdbarch_deprecated_register_convertible(),
79 set_gdbarch_deprecated_register_convert_to_virtual(), and
80 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
81 set_gdbarch_deprecated_register_size(),
82 set_gdbarch_deprecated_register_bytes(),
83 set_gdbarch_pcregnum(),
84 set_gdbarch_deprecated_register_byte(),
85 set_gdbarch_deprecated_register_raw_size(),
86 set_gdbarch_deprecated_max_register_raw_size(),
87 set_gdbarch_deprecated_register_virtual_size(),
88 and set_gdbarch_deprecated_max_register_virtual_size() calls.
89 Replace set_gdbarch_deprecated_extract_return_value() with
90 set_gdbarch_extract_return_value(). Remove calls to:
91 set_gdbarch_deprecated_saved_pc_after_call();
92 set_gdbarch_deprecated_frame_chain(),
93 set_gdbarch_deprecated_frame_saved_pc(),
94 set_gdbarch_deprecated_frame_init_saved_regs(),
95 set_gdbarch_deprecated_get_saved_register(),
96 set_gdbarch_deprecated_call_dummy_words(),
97 set_gdbarch_deprecated_sizeof_call_dummy_words(),
98 set_gdbarch_deprecated_init_extra_frame_info(),
99 set_gdbarch_deprecated_frame_args_address(),
100 set_gdbarch_deprecated_frame_locals_address(),
101 and set_gdbarch_deprecated_dummy_write_sp().
102 Add set_gdbarch_convert_register_p(),
103 set_gdbarch_register_to_value(),
104 set_gdbarch_value_to_register(),
105 set_gdbarch_push_dummy_call(),
106 set_gdbarch_frame_align(),
107 set_gdbarch_unwind_dummy_id(),
108 set_gdbarch_unwind_pc(),
109 frame_unwind_append_sniffer(),
110 frame_unwind_append_sniffer(),
111 and frame_base_set_default().
115 * configure.tgt: Document need for special "mipsisa64" handling.
116 (mipsisa64*-*-linux64): Handle as target linux64.
117 (mipsisa64*-*-*): Handle as target embed64.
121 * PROBLEMS: Document pr gdb/1322, the Java anonymous
126 * i387-tdep.h: Update copyright date.
127 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
129 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
130 CFLAGS games to reflect reality.
134 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
135 GDB_MULTI_ARCH is always non-zero.
136 * osabi.c (_initialize_gdb_osabi): Ditto.
137 (gdbarch_init_osabi): Ditto.
138 * sparc-tdep.c: Ditto for #if code.
142 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
144 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
146 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
147 x86_64_supply_fxsave.
148 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
149 x86_64_supply_fxsave.
150 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
151 x86_64_supply_fxsave.
155 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
160 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
161 i387_supply_register.
162 (go32_fetch_registers): Adjust call to i387_supply_fsave.
163 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
165 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
167 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
169 * i386bsd-nat.c (supply_fpregset): Adjust call to
171 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
172 call to i387_supply_fxsave. Call i387_supply_fsave instead of
174 (store_inferior_registers): Remove extraneous whitespace. Call
175 i387_fill_fsave instead of fill_fpregset.
176 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
177 (supply_fpregset): Likewise.
178 * i386v4-nat.c (supply_fpregset): Adjust call to
180 * i386-interix-nat.c (supply_fpregset): Adjust call to
182 * i386-linux-nat.c (supply_fpregset): Adjust call to
184 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
185 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
186 i387supply_fsave and i387_supply_fxsave.
187 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
188 Incorporate code from `i387_supply_register.
189 (i387_supply_register): Remove.
190 (i387_supply_fxsave): Add `regnum' argument.
192 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
194 (i387_supply_register): remove prototype.
199 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
200 Add lines for files in gdb/testsuite/gdb.cp/* that are
201 still not 8.3 unique.
205 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
206 TYPE_VPTR_FIELDNO is valid.
210 * utils.c (set_width_command): Remove prototypes.
211 (set_screen_size): New prototype.
212 (init_page_info): Simplify by fetching the screen size from
213 Readline. Call set_screen_size.
214 (set_screen_size): New function.
215 (set_width): Add missing whitespace in comment.
216 (set_width_command): Call set_screen_size.
217 (set_height_command): New function.
218 (initialize_utils): Fix formatting. Make "set height" command
219 call set_height_command. Remove redundant code that turns off
220 pagination if output isn't a terminal. Remove redundant call to
225 * sparc64-tdep.h (sparc64_regnum): Fix comment.
226 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
227 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
228 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
230 (sparc64_register_info): Give the reister with number
231 SPARC64_STATE_REGNUM a name.
232 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
234 (sparc64_push_dummy_call): Take BIAS into account when checking
236 (sparc_software_single_step): Remove assertions that check whether
237 NPC and NNPC were zero.
238 (sparc_supply_rwindow): Make public. Merge functionality with
239 sparc64_supply_rwindow.
240 (sparc_fill_rwindow): Make public. Merge functionality with
241 sparc64_fill_rwindow.
242 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
243 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
244 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
245 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
246 sparc_supply_rwindow instead of sparc64_supply_rwindow.
248 * reggroups.c: Add whitespace after declarations of local
249 variables in functions.
253 * gdbtypes.h: Change array bound type from an int to enum.
257 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
258 * config/sparc/tm-sparc.h: Ditto.
259 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
261 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
265 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
266 (register_objfile_data, set_objfile_data, objfile_data): New
268 * objfiles.c (objfile_alloc_data, objfile_free_data): New
270 (allocate_objfile): Call objfile_alloc_data.
271 (free_objfile): Call objfile_free_data.
272 (struct objfile_data): New.
273 (struct objfile_data_registration): New.
274 (struct objfile_data_registry): New.
275 (objfile_data_registry): New variable.
276 (register_objfile_data): New function.
277 (objfile_alloc_data, objfile_free_data): New functions.
278 (set_objfile_data, objfile_data): New functions.
279 * dwarf2-frame.c (dwarf2_frame_data): New variable.
280 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
281 (_initialize_dwarf2_frame): New function and prototype.
285 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
286 a specific architecture.
287 * arch-utils.h (set_architecture_from_arch_mach): Delete
289 (target_architecture_hook): Delete declaration.
290 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
291 (default_float_format): Assume GDB_MULTI_ARCH.
292 (default_double_format): Assume GDB_MULTI_ARCH.
293 (set_endian_from_file): Delete function.
294 (arch_ok): Delete function.
295 (set_arch): Delete function.
296 (set_architecture_from_arch_mach): Delete function.
297 (set_architecture_from_file): Delete function.
298 (set_architecture): Assume GDB_MULTI_ARCH.
299 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
303 Rewrite FreeBSD/sparc64 native configuration.
304 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
305 * sparc64fbsd-nat.c: New file.
306 * sparc64fbsd-tdep.c: New file.
307 * sparc64-tdep.c sparc64-tdep.h: New files.
308 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
309 sparc64fbsd-tdep.o): New dependencies.
310 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
311 and sparc64fbsd-tdep.c.
312 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
313 * config/sparc/fbsd.mh: Remove copyright notice.
314 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
316 * config/sparc/fbsd.mt: Remove copyright notice.
317 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
318 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
319 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
320 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
321 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
322 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
323 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
324 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
326 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
327 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
331 * symtab.h: Add doco on the space critical structures and
332 some measurements of space usage.
336 * tracepoint.c (trace_dump_command): Trace break address
337 is subject to DECR_PC_AFTER_BREAK.
338 (set_traceframe_context): Make "trace_line" an int.
343 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
344 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
345 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
347 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
348 functions, replace sh_push_dummy_call.
349 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
353 * gdbtypes.h (struct main_type): Rearrange to save space.
357 * trad-frame.c: Comment typo fix.
362 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
363 (frv_frame_init_saved_regs): Add declaration.
364 (frame_extra_info): Add new field ``saved_regs''.
365 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
366 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
367 Update frame related code.
368 (frv_extract_struct_value_address): Adjust formatting.
369 * Makefile.in (frv-tdep.o): Update dependencies.
370 * config/frv/tm-frv.h (target_insert_watchpoint)
371 (target_remove_watchpoint, target_insert_hw_breakpoint)
372 (target_remove_hw_breakpoint): Delete these macros.
373 (remote_insert_watchpoint, remote_remove_watchpoint)
374 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
379 * defs.h (ENUM_BITFIELD): New macro.
380 * symtab.h (ENUM_BITFIELD): Use it.
381 (BYTE_BITFIELD): Remove old macro, which was already disabled.
385 * MAINTAINERS (write after approval): Add myself.
389 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
390 * gdbarch.h, gdbarch.c: Re-generate.
391 * infcall.c (call_function_by_hand): Adjust the SP by
392 frame_red_zone_size before allocating any stack space.
393 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
394 * x86-64-tdep.c (x86_64_frame_align): New function.
395 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
397 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
398 Remove code adjusting SP so that it skips over the Red Zone.
402 * NEWS (New native configurations): Mention FreeBSD/amd64.
406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
407 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
409 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
413 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
417 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
419 * i386-linux-nat.c: Include "linux-nat.h".
420 (child_post_startup_inferior): New function.
424 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
425 at the start of a frameless function. This probably fixes PR
430 * symfile.c (find_sym_fns): Remove special case for apollo target.
434 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
435 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
436 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
437 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
438 (linux_supports_tracevforkdone): New function.
439 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
441 (child_follow_fork): Handle vfork.
442 (linux_handle_extended_wait): Likewise. Also handle exec.
443 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
444 * NEWS: Mention fork tracing.
448 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
452 * Makefile.in (i386-linux-nat.o): Update dependencies.
453 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
454 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
455 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
456 * i386-linux-nat.c: Include "linux-nat.h".
457 (child_post_startup_inferior): New function.
458 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
459 * infptrace.c (kill_inferior): Wrap in #ifdef.
460 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
461 attaching to each LWP.
462 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
463 (init_lin_lwp_ops): Fill in some more operations.
464 * linux-nat.h (linux_enable_event_reporting)
465 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
467 * linux-nat.c (linux_enable_event_reporting): New function.
468 (child_post_attach, linux_child_post_startup_inferior)
469 (child_post_startup_inferior, child_follow_fork)
470 (linux_handle_extended_wait, kill_inferior): New functions.
474 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
475 * gdbarch.h, gdbarch.c: Re-generate.
479 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
483 * NEWS: Mention that "set prompt-escape-char" was deleted.
484 * top.c (get_prompt_1): Delete function.
486 (init_main): Do not clear "gdb_prompt_escape". Delete "set
487 prompt-escape-char" command.
488 (MAX_PROMPT_SIZE): Delete macro.
489 (get_prompt): Simplify, do not call get_prompt_1.
493 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
494 -Werror. -Wformat-nonliteral problems.
498 Further multiarching work mostly for hppa64-*-hpux11:
499 * hppa-tdep.h: New file.
500 * hppa-tdep.c: #include hppa-tdep.c.
501 (hppa32_num_regs): Renamed from hppa_num_regs.
502 (hppa64_num_regs): New constant.
503 (hppa64_call_dummy_breakpoint_offset): New constant.
504 (hppa32_call_dummy_length): New constant.
505 (hppa64_call_dummy_length): New constant.
506 (hppa32_stack_align): Make name 32bit explicit.
507 (hppa32_register_virtual_type): Likewise.
508 (hppa32_extract_return_value): Likewise.
509 (hppa32_use_struct_convention): Likewise.
510 (hppa32_store_return_value): Likewise.
511 (hppa64_register_virtual_type): New function.
512 (hppa64_extract_return_value): New function.
513 (hppa64_use_struct_convention): New function.
514 (hppa64_store_return_value): New function.
515 (hppa_frame_locals_address): Remove declaration, function does
517 (hppa_register_byte): Add support for PA64 ABI.
518 (hppa_gdbarch_init): Add support for PA64 ABI.
519 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
520 Make name 32bit explicit.
521 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
522 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
523 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
524 (hppa64_hpux_frame_base_before_sigtramp): New function.
525 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
526 * config/pa/tm-hppa64.h: Remove macros that are no longer
527 necessary now that the gdbarch vector is properly setup.
528 Transform some macros into function calls. Some minor cleanup.
529 * config/pa/tm-hppah.h: Update function calls in macros
530 following the function renaming in hppa-hpux-tdep.c.
531 * Makefile.in (hppa_tdep_h): New variable.
532 (hppa-tdep.o): Add dependency over hppa_tdep_h.
536 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
540 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
541 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
546 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
547 (frv_saved_pc_after_call): Use deprecated ftype.
548 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
549 (frv_remote_translate_xfer_address): Remove.
550 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
554 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
555 initialization after the common gdbarch initialization, not before.
559 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
560 (ADDR_BITS_REMOVE): Remove, redundant.
564 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
565 gdbarch method to clear the 2 low bits of text addresses.
569 * Makefile.in (dsrec.o): Update dependencies.
570 * dsrec.c: Include "gdb_assert.h".
571 (make_srec): Use snprintf instead of sprintf, use a literal format
576 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
577 FRAME_OBSTACK_ZALLOC.
581 * i386-tdep.c (i386_gdbarch_init): Enable default support for
586 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
587 amd64fbsd_sc_reg_offset): Add extern declarations.
588 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
593 * MAINTAINERS (write after approval): Update my mail address.
597 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
601 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
602 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
603 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
604 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
605 i386bsd_sc_reg_offset): Add extern declarations.
606 * i386obsd-nat.c: Include "i386-tdep.h"
607 (_initialize_i386obsd_nat): Remove extern declarations.
608 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
610 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
613 * i386-tdep.c (i386_register_to_value): Use get_frame_register
614 instead of frame_read_register.
615 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
616 instead of frame_read_register. Use I386_ESP_REGNUM instead of
618 (i386_frame_prev_register): Use frame_unwind_register_unsigned
619 instead of frame_unwind_unsigned_register. Use
620 I386_EFLAGS_REGISTER instead of PS_REGNUM.
621 (i386_get_longjmp_target): Use regcache_read_unsigned_register
622 instead of read_register. Use builtin_type_void_data_ptr instead
623 of builtin_type_void_func_ptr when extracting the address of the
625 (i386_extract_return_value, i386_store_return_value,
626 i386_pseudo_register_read, i386_pseudo_register_write): Use
627 register_size instead REGISTER_RAW_SIZE.
631 * infcall.c (call_function_by_hand): Use xstrprintf instead of
632 sprintf. Make "name" constant.
636 * i387-tdep.c (i387_register_to_value): Use get_frame_register
637 instead of frame_read_register.
638 (i387_print_float_info): Use get_frame_register and
639 get_frame_register_unsigned instead of frame_register_read.
641 * i386fbsd-nat.c: Include "i386-tdep.h".
642 (child_resume): Make `eflags' an ULONGEST. Use
643 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
644 instead of register_read and register_write.
646 * i386bsd-nat.c (fetch_inferior_registers,
647 store_inferior_registers): Don't use && at the end of a line.
648 (_initialize_i386bsd_nat): Fix typo.
650 * frame.c (_initialize_frame): Add missing backslash.
653 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
654 and supply_register instead of manipulating the register buffer
658 * config/i386/nm-i386sol2.h
659 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
662 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
663 instructions that GCC likes to mingle into the prologue. Fixes
664 gdb/1253 and gdb/1255.
669 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
670 * command.h (add_setshow_uinteger_cmd): Declare.
671 * frame.c (set_backtrace_cmd): New function.
672 (show_backtrace_cmd): New function.
673 * frame.c (_initialize_frame): Replace "set/show
674 backtrace-below-main" with "set/show backtrace past-main". Add
675 command "set/show backtrace limit".
676 (backtrace_past_main): Rename "backtrace_below_main".
677 (backtrace_limit): New variable.
678 (get_prev_frame): Update. Check the backtrace_limit.
682 * defs.h (xstrprintf): Declare.
683 * utils.c (xstrprintf): New function.
684 * breakpoint.c (insert_breakpoints): Replace sprintf and
685 non-literal format strings, with xstrprintf and cleanups.
686 (delete_breakpoint,breakpoint_re_set): Ditto.
687 (commands_command, insert_breakpoints): Ditto.
688 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
689 (break_at_finish_command_1): Ditto.
693 * MAINTAINERS (language support): List Adam Fedor as Objective C
698 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
703 * config/pa/tm-hppa64.h: Remove lots of macros that are no
704 longer necessary now that hppa64 is partially multiarch'ed.
708 * interps.c (interp_set): Check for a NULL "old_interp".
712 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
713 (install-only): Support DESTDIR.
714 (uninstall): Likewise.
715 (install-gdbtk): Likewise.
719 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
720 contains something meaningful at all times.
724 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
728 * MAINTAINERS (write after approval): Added self.
732 * inferior.h (AT_SYMBOL): Define.
733 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
734 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
735 * mips-tdep.c (mips_call_dummy_address): Delete function.
736 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
737 set call_dummy_address.
741 * language.c (op_error): Delete function.
742 (binop_type_check): Delete function.
743 * language.h (type_op_error, range_op_error): Delete macros.
744 (op_error): Delete declaration.
748 * interps.h (INTERP_MI2, INTERP_MI3): Define.
752 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
753 (x86_64_push_arguments): Skip the red zone.
757 * reggroups.c (reggroup_next): Check for the final entry.
761 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
762 * cli/cli-script.c (define_command): Call query directly, instead
763 of passing it a buffer.
764 * ocd.c (ocd_error): Pass error a constant format string.
765 * remote-mips.c (mips_error): Use fputs_filtered.
767 * solib-svr4.c (_initialize_svr4_solib): Update
768 register_gdbarch_data call.
769 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
771 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
772 (register_gdbarch_data): Delete "free" parameter. Update
774 * gdbarch.h, gdbarch.c: Re-generate.
775 * reggroups.c (_initialize_reggroup): Update.
776 * gnu-v3-abi.c (init_gnuv3_ops): Update.
777 * frame-base.c (_initialize_frame_base): Update.
778 * frame-unwind.c (_initialize_frame_unwind): Update.
779 * user-regs.c (_initialize_user_regs): Update.
780 * remote.c (_initialize_remote): Update.
781 * regcache.c (_initialize_regcache): Update.
783 * regcache.c (xfree_regcache_descr): Delete function.
784 (_initialize_regcache): Update call to register_gdbarch_data.
785 (init_regcache_descr, init_legacy_regcache_descr): Use
786 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
788 * remote.c (free_remote_state): Delete function.
789 (_initialize_remote): Update register_gdbarch_data.
790 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
791 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
795 * reggroups.c (struct reggroup_el): Define.
796 (struct reggroups): Delete field "nr_group". Replace array
797 "group" with a "first" to "last" linked list.
798 (reggroups_init): Update. Allocate using gdbarch's obstack.
799 (reggroups_free): Delete function.
800 (add_group): Update. Add "el" parameter.
801 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
802 (default_groups): Update.
803 (reggroup_next): Replace reggroups.
804 (reggroups_dump): Update.
805 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
806 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
807 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
811 * Makefile.in (tui-interp.o): Update dependencies.
815 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
816 to internal_error call.
817 * source.c (forward_search_command): Add "%s" format argument.
818 (reverse_search_command): Ditto.
819 * top.c (quit_confirm): Ditto.
820 * cli/cli-setshow.c (do_setshow_command): Ditto.
821 * cp-valprint.c (cp_print_class_method): Replace
822 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
823 (cp_print_class_member): Ditto.
824 * event-top.c (command_line_handler): Ditto.
825 * linux-proc.c (linux_info_proc_cmd): Ditto.
826 * p-typeprint.c (pascal_type_print_base): Ditto.
827 * p-valprint.c (pascal_object_print_class_method): Ditto.
828 (pascal_object_print_class_member): Ditto.
829 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
830 * remote.c (remote_cisco_section_offsets): Ditto.
831 * top.c (command_line_input): Ditto.
832 * utils.c (vwarning,error_stream,quit): Ditto.
833 * valprint.c (print_floating,print_binary_chars)
834 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
838 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
842 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
843 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
848 * Makefile.in: Update all dependencies and definitions.
852 * linespec.c (is_objc_method_format): New function
853 (decode_line_1, locate_first_half): Use it.
858 * NEWS: Mention that m32r is multi-arch.
860 * configure.tgt: Recognize m32r-*-*.
861 * config/m32r/tm-m32r.h: Delete file.
862 * config/m32r/m32r.mt: New file.
863 * m32r-rom.c (m32r_upload_command): Use hostent only when
864 gethostname succeeds, in order to avoid a compilation
866 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
871 * sh-tdep.c (sh_frame_align): New gdbarch method.
872 (sh_gdbarch_init): Set up frame_align method.
876 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
877 which is already covered by the new frames infrastructure.
881 * user-regs.c (struct user_reg): Add "next" link.
882 (struct user_regs): Replace "user" with "first" and "last" links.
883 (append_user_reg): Add pre-allocated "reg" parameter.
884 (builtin_user_regs): Provide initial value for "last".
885 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
886 (user_regs_init): Allocate memory from the gdbarch obstack.
887 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
888 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
890 (usernum_to_user_reg): New function.
891 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
892 (value_of_user_reg): Use usernum_to_user_reg.
893 (user_regs_free): Delete function.
894 (_initialize_user_regs): Update register_gdbarch_data call.
898 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
902 * value.h (value_being_returned): Add a struct_addr argument.
903 * infcall.c (call_function_by_hand): Pass struct_addr to
904 value_being_returned.
905 * infcmd.c (print_return_value): Pass zero as struct_addr.
906 * values.c (value_being_returned): If struct_addr is passed,
907 use it instead of trying to recover it from the inferior.
911 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
912 the prologue analyzer won't need to attempt to extract the pc
913 value from the woefully incomplete dummy frame.
914 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
915 possible. Disable code which modifies the frame.
919 * annotate.c (annotate_breakpoints_headers): Restrict annotation
921 (annotate_breakpoints_table, annotate_record): Ditto.
922 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
923 (annotate_field_name_end, annotate_field_value): Ditto.
924 (annotate_field_end, annotate_frame_source_begin): Ditto.
925 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
926 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
927 (annotate_frame_begin, annotate_frame_function_name): Ditto.
928 (annotate_frame_address_end, annotate_frame_address): Ditto.
929 (annotate_frame_args, annotate_frame_end): Ditto.
930 (annotate_frame_where, annotate_arg_begin): Ditto.
931 (annotate_arg_name_end, annotate_arg_value): Ditto.
932 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
933 (annotate_function_call, annotate_signal_name): Ditto.
934 (annotate_signal_string, annotate_signal_name_end): Ditto.
935 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
936 (annotate_value_begin, annotate_value_history_value): Ditto.
937 (annotate_value_history_end, annotate_value_end): Ditto.
938 (annotate_display_begin, annotate_display_number_end): Ditto.
939 (annotate_display_format, annotate_display_expression): Ditto.
940 (annotate_display_expression_end, annotate_display_value): Ditto.
941 (annotate_display_end, annotate_array_section_begin): Ditto.
942 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
943 (annotate_elt, annotate_array_section_end): Ditto.
947 * regcache.c (struct regcache_descr): Update comments on
949 (init_legacy_regcache_descr): Don't set nr_raw_registers or
950 sizeof_raw_register_valid_p.
951 (init_regcache_descr): Set nr_raw_registers and
952 sizeof_raw_register_valid_p before calling
953 init_legacy_regcache_descr.
957 * mips-tdep.c (print_gp_register_row): Print the GPR's register
962 * thread.c (info_threads_command): Use get_selected_frame ().
963 Check that there is at least one non-sentinel frame.
967 * m68hc11-tdep.c (struct frame_extra_info): Remove.
968 (m68hc11_pop_frame): Remove.
969 (m68hc11_frame_saved_pc): Remove.
970 (m68hc11_frame_chain): Remove.
971 (m68hc11_frame_init_saved_regs): Remove.
972 (m68hc11_init_extra_frame_info): Remove.
973 (m68hc11_store_struct_return): Remove.
974 (m68hc11_saved_pc_after_call): Remove.
978 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
979 frame unwind information.
980 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
981 and adapted for frame unwinding.
982 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
983 (m68hc11_unwind_pc): New function.
984 (m68hc11_frame_unwind_cache): New function to analyze frames.
985 (m68hc11_frame_this_id): New function to create new frame struct.
986 (m68hc11_frame_prev_register): New function to unwind a register from
988 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
989 (m68hc11_frame_p): New function for the above.
990 (m68hc11_frame_base_address): New function to return fp of frame.
991 (m68hc11_frame_args_address): Update for frame.
992 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
993 (m68hc11_unwind_sp): New function.
994 (m68hc11_unwind_dummy_id): New function.
995 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1000 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1001 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1002 when we are beyond the current pc.
1006 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1007 from m68hc11_push_arguments.
1008 (m68hc11_push_arguments): Remove.
1009 (m68hc11_push_return_address): Remove.
1010 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1011 handlers; remove deprecated_extra_stack_alignment_needed.
1015 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1016 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1017 REAL_PC and not the pointer.
1018 * hppa-hpux-tdep.c: Include frame.h
1022 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1023 GDB_MULTI_ACH_PARTIAL.
1028 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1029 operator at start and not end of line.
1030 (decode_prologue): Ditto.
1031 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1032 frame_unwind_register_unsigned instead of
1033 frame_unwind_unsigned_register.
1034 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1036 (m32r_push_dummy_call): Use register_size instead of
1038 (m32r_frame_sniffer): Replace m32r_frame_p.
1039 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1040 * m32r-rom.c (report_transfer_performance): Delete extern
1042 (m32r_load, m32r_upload_command): Use print_transfer_performance
1043 instead of report_transfer_performance.
1044 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1045 / add_show_from_set.
1049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1050 store_return_value and extract_struct_value_address.
1055 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1056 NULL, default to the section containing PC.
1060 * NEWS: Mention "regs" deprecated for m68hc11 too.
1062 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1063 (m68hc11_print_register): New function to print out one register.
1064 (m68hc11_print_registers_info): New function to print registers.
1065 (show_regs): Deprecate and use the above.
1066 (m68hc11_gdbarch_init): Install the print_registers_info.
1070 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1071 that we have a SIGTRAP before returning non-zero.
1076 * linespec.c (decode_line_2): Avoid crash if
1077 find_function_start_sal() returns empty record.
1081 * ia64-tdep.c (ia64_print_insn): New function.
1082 (ia64_gdbarch_init): Set print_insn to it.
1083 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1084 deprecated_tm_print_insn_info.
1088 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1089 handle 8-bit returns (long long).
1090 (h8300h_extract_return_value): Ditto.
1091 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1095 * gdbarch.c Include "gdb_obstack.h".
1096 (struct gdbarch): Add an "obstack".
1097 (alloc_gdbarch_data): Allocate the gdbarch data using
1098 GDBARCH_OBSTACK_CALLOC.
1099 (free_gdbarch_data): Delete function.
1100 (gdbarch_obstack_zalloc): New function.
1101 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1102 Assert that the architecture is not initialized.
1103 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1104 vector from the obstack.
1105 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1106 architecture obstack.
1107 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1108 (set_gdbarch_data): Assert that the data is not initialized.
1109 (struct gdbarch_data): Delete member "free".
1110 (register_gdbarch_data): Do not initialize "free".
1111 * gdbarch.h, gdbarch.c: Re-generate.
1115 * configure.in (build_warnings): Add -Wformat-nonliteral.
1116 * configure: Re-generate.
1120 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1124 * findvar.c (read_var_value): Remove case for thread local storage
1125 variables. It is now entirely handled by the dwarf2 location
1127 * printcmd.c (address_info): Ditto.
1128 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1130 (struct symbol): Remove objfile field, which was used by
1131 LOC_THREAD_LOCAL_STATIC only.
1132 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1133 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1134 usage of objfile pointer.
1135 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1136 thread local variables.
1137 Add include of objfiles.h.
1138 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1140 * Makefile.in (dwarf2loc.o): Update dependencies.
1144 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1146 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1147 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1148 (struct value): Add opaque declaration.
1149 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1154 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1158 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1159 regcache_cooked_read_unsigned instead of read_register.
1160 (m68hc11_saved_pc_after_call): Likewise.
1161 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1162 instead of write_register.
1163 (m68hc11_register_type): New function.
1164 (m68hc11_register_virtual_type): Remove.
1165 (m68hc11_store_return_value): Convert to use the regcache.
1166 (m68hc11_extract_struct_value_address): Likewise.
1167 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1168 m68hc11_register_type; undeprecate store_return_value and
1169 extract_struct_value_address.
1173 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1174 and translate to use regcache.
1175 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1179 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1180 * gdbarch.h, gdbarch.c: Re-generate.
1181 * i386-tdep.c (i386_gdbarch_init): Do not set
1182 DWARF2_BUILD_FRAME_INFO.
1183 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1185 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1186 DWARF2_BUILD_FRAME_INFO.
1191 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1195 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1196 frame_unwind_address_in_block, instead of frame_pc_unwind.
1197 (dwarf2_frame_cache): Ditto.
1201 * user-regs.h (struct gdbarch): Declare opaque.
1202 * ui-out.h (struct ui_file): Declare opaque.
1203 * dwarf2-frame.h (struct frame_info): Declare opaque.
1207 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1209 (procfs_meminfo): Change strerror to safe_strerror.
1210 (procfs_can_run): Remove K&R badness.
1214 * remote-sim.c: Comment typo fix.
1218 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1220 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1221 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1222 GDB_MULTI_ARCH_PARTIAL.
1226 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1227 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1228 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1232 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1234 (avr_frame_unwind_cache): Don't unwind FP for main.
1236 Save the computed prev_sp.
1237 (avr_saved_regs_unwinder): Remove function.
1238 (avr_frame_prev_register): Use PC unwind logic from
1239 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1243 * frame-base.h (frame_base_p_ftype): Delete definition.
1244 (frame_base_append_predicate): Delete declaration.
1245 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1246 (frame_unwind_append_predicate): Delete declaration.
1247 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1248 (append_predicate): Delete parameter "p".
1249 (frame_unwind_append_predicate): Delete function.
1250 (frame_unwind_append_sniffer): Update call to append_predicate.
1251 (frame_unwind_free): Delete function.
1252 (_initialize_frame_unwind): Pass NULL as "free" to
1253 register_gdbarch_data.
1254 (frame_unwind_init): Append the dummy_frame_sniffer.
1255 (frame_unwind_find_by_frame): Simplify.
1256 * frame-base.c (struct frame_base_table): Delete field "p".
1257 (append_predicate): Delete parameter "p".
1258 (frame_base_append_predicate): Delete function.
1259 (frame_base_append_sniffer): Update call to append_predicate.
1260 (frame_base_free): Delete function.
1261 (frame_base_find_by_frame): Simplify.
1262 (_initialize_frame_base): Pass NULL as "free" to
1263 register_gdbarch_data.
1264 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1265 (x86_64_sigtramp_frame_sniffer): Replace
1266 "x86_64_sigtramp_frame_p".
1267 (x86_64_init_abi): Set the frame unwind sniffers.
1268 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1269 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1270 (m68k_gdbarch_init): Set the frame unwind sniffers.
1271 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1272 "i386_sigtramp_frame_p".
1273 (i386_frame_sniffer): Replace "i386_frame_p".
1274 (i386_gdbarch_init): Set the frame unwind sniffers.
1275 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1276 (avr_gdbarch_init): Set the frame unwind sniffers.
1277 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1278 "alpha_sigtramp_frame_p"
1279 (alpha_heuristic_frame_sniffer): Replace
1280 "alpha_heuristic_frame_p".
1281 (alpha_gdbarch_init): Set the frame unwind sniffers.
1282 (alpha_dwarf2_init_abi): Ditto.
1283 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1284 "alpha_debug_frame_p".
1285 (alpha_mdebug_frame_base_sniffer): Replace
1286 "alpha_mdebug_frame_base_p".
1287 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1288 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1289 (d10v_gdbarch_init): Set the frame unwind sniffer.
1290 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1291 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1292 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1293 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1294 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1295 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1299 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1300 should go thru sh_dsp_register_sim_regno, else the dsp regs
1301 will not get the right values.
1305 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1306 deprecated_store_floating by call to store_typed_floating.
1307 (sh_sh4_register_convert_to_raw): Substitute call to
1308 deprecated_extract_floating by call to extract_typed_floating.
1312 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1316 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1317 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1318 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1320 (do_pseudo_register): Remove.
1321 (sh_push_dummy_code): New function.
1322 (sh64_store_struct_return): Rename from sh_store_struct_return.
1323 Only called for sh64 now.
1324 (sh_extract_struct_value_address): Regcache'ify.
1325 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1326 and accomodate new tasks.
1327 (sh64_push_return_address): Rename from sh_push_return_address.
1328 Only called for sh64 now.
1329 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1331 (sh3e_sh4_extract_return_value): Regcache'ify.
1332 (sh_default_store_return_value): Ditto.
1333 (sh3e_sh4_store_return_value): Ditto.
1334 (sh_default_register_byte): Remove.
1335 (sh_sh4_register_byte): Remove.
1336 (sh_default_register_raw_size): Remove.
1337 (sh_sh4_register_raw_size): Remove.
1338 (sh_register_virtual_size): Remove.
1339 (sh_sh3e_register_virtual_type): Remove.
1340 (sh_sh3e_register_type): New function.
1341 (sh_sh4_register_virtual_type): Remove.
1342 (sh_sh4_register_type): New function.
1343 (sh_default_register_virtual_type): Remove.
1344 (sh_default_register_type): New function.
1345 (do_fv_register_info): Add parameters to accomodate call from
1346 sh_print_registers_info.
1347 (do_dr_register_info): Ditto.
1348 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1349 Add parameters to accomodate call from sh_print_registers_info.
1350 (sh_do_fp_register): Ditto.
1351 (sh64_do_pseudo_register): Call do_dr_register_info,
1352 do_fv_register_info and sh_do_fp_register with default parameters.
1353 (sh_do_register): Add parameters to accomodate call from
1354 sh_print_registers_info.
1355 (sh_print_register): Ditto.
1356 (sh_print_registers_info): Rename from sh_do_registers_info.
1357 Add parameters to be used as gdbarch_print_registers_info
1358 implementation. Accomodate removed do_pseudo_register function
1360 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1361 function pointer. Call sh_print_register with default parameters.
1362 (sh64_do_registers_info): Call sh_print_registers_info instead of
1363 sh_do_registers_info.
1364 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1365 detection of deprecated vs. non-deprecated functionality.
1366 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1367 function pointer assignments by direct function calls.
1371 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1372 (frame_register_unwind, create_new_frame): Ditto.
1373 (legacy_get_prev_frame, get_frame_type): Ditto.
1374 (get_frame_base_address): Use frame_base_find_by_frame.
1375 (get_frame_locals_address): Use frame_base_find_by_frame.
1376 (get_frame_args_address): Use frame_base_find_by_frame.
1377 * frame-base.h (frame_base_sniffer_ftype): Declare.
1378 (frame_base_append_sniffer): Declare.
1379 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1380 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1381 (frame_base_append_sniffer): New function.
1382 (frame_base_append_predicate): Add a NULL sniffer.
1383 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1384 (struct frame_base_table): Add "sniffer".
1385 (frame_base_free): Free the "sniffer" table.
1386 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1387 (frame_unwind_append_sniffer): Declare.
1388 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1389 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1390 (struct frame_unwind_table): Add "sniffer", delete "middle".
1391 (append_predicate): Add "sniffer" parameter, append the sniffer.
1392 (frame_unwind_init): Update append_predicate call.
1393 (frame_unwind_append_sniffer): New function.
1394 (frame_unwind_append_predicate): Update append_predicate call.
1395 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1399 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1400 before code inhibiting repeated unwind attempts. Add to
1401 commentary on that test's problems.
1402 * blockframe.c (inside_main_func): Look for "main" in the minimal
1404 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1409 * complaints.c (struct explanation): Define.
1410 (struct complaints): Change type of "explanation" to "struct
1412 (symfile_explanations): Convert to a "struct explanation" table.
1413 (vcomplaint): Update.
1417 * x86-64-linux-nat.c (regmap): Removed.
1418 (supply_gregset, fill_gregset): Call
1419 x86_64_linux_(fill,supply)_gregset functions.
1420 * x86-64-linux-tdep.c (USER_*): New defines.
1421 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1422 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1424 (fetch_core_registers): Ditto.
1425 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1426 * x86-64-linux-tdep.h: New file.
1427 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1429 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1433 * x86-64-tdep.c (x86_64_store_return_value): Use
1434 regcache_cooked_write_part instead of regcache_cooked_write.
1436 * configure.host: Add x86_64-*-freebsd*.
1437 * configure.tgt: Add x86_64-*-freebsd*.
1438 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1439 * amd64fbsd-nat.c: New file.
1440 * amd64fbsd-tdep.c: New file.
1441 * config/i386/nm-fbsd64.h: New file.
1442 * config/i386/fbsd64.mh: New file.
1443 * config/i386/fbsd64.mt: New file.
1447 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1448 `sc_regs_offset' and `sc_fpregs_offset'.
1449 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1450 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1451 (alpha_sigtramp_register_address): Rewrite to use new members of
1452 `struct gdbarch_tdep'.
1453 (alpha_gdbarch_init): Initialize new members of struct
1455 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1456 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1457 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1458 (alphafbsd_pc_in_sigtramp): Implement.
1459 (alphafbsd_sigtramp_offset): New function.
1460 (alphafbsd_sigcontext_addr): New function.
1461 (alphafbsd_init_abi): Initialize signal trampoline related members
1462 of `struct gdbarch_tdep'.
1463 (_initialize_alphafbsd_tdep): Add prototype.
1467 * Makefile.in (install-only): Quote sed expression when generating
1472 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1473 * dwarf2-frame.c: Include complaints.h.
1474 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1475 variable initialization; return NULL on error.
1476 (decode_frame_entry): New.
1480 * frame.h (frame_address_in_block): Delete declaration.
1481 * blockframe.c (frame_address_in_block): Delete function.
1482 (get_frame_block): Use get_frame_address_in_block.
1483 (block_innermost_frame): Ditto.
1484 * stack.c (print_frame, backtrace_command_1): Ditto.
1486 * frame.h (get_frame_address_in_block): Declare.
1487 (frame_unwind_address_in_block): Declare.
1488 * frame.c (frame_unwind_address_in_block): New function.
1489 (get_frame_address_in_block): New function.
1493 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1494 pre-default. Note: re-generate has no effect.
1498 * gdbarch.sh: When a variable, but not a function, compare against
1499 0. Fix problem in previous patch.
1500 * gdbarch.c: Re-generate.
1504 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1505 functions against NULL, not 0.
1506 * gdbarch.c: Re-generate.
1510 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1511 null string instead of a null pointer.
1512 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1516 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1520 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1521 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1522 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1523 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1524 * x86-64-tdep.c: ... from here.
1528 * m68k-tdep.h (enum struct_return): Define.
1529 (struct gdbarch_tdep): Add struct_return.
1530 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1531 bytes are padded to the right, not to the left. Pass struct value
1532 address in register %a1, not on stack.
1533 (m68k_use_struct_convention): New function.
1534 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1535 struct_return in tdep to pcc_struct_return.
1536 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1541 * somread.c (som_symfile_offsets): Fix compilation error.
1545 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1546 Add comments about the checks.
1550 * Makefile.in: Make dependency section headers consistent.
1551 (config_h): Move to $BUILD headers section.
1552 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1553 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1554 (ada-exp.tab.c): Move to YACC/LEX section.
1555 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1556 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1560 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1561 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1562 of strerror with safe_strerror, use ISO C function definitions,
1563 and replace instances of sprintf with snprintf.
1567 * frame.c (get_prev_frame): Enable check for identical frames.
1568 Update comments. Update error messages.
1572 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1576 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1577 sort_symtab_syms, no longer necessary.
1581 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1585 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1586 (mips_register_byte): Likewise.
1590 * Makefile.in (sparc_tdep_h): New.
1591 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1592 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1593 * sparc-linux-nat.c: Include "sparc-tdep.h".
1594 * sparc-nat.c: Likewise.
1595 * sparc-tdep.c: Likewise.
1596 * sparc64nbsd-nat.c: Likewise.
1597 * sparcnbsd-nat.c: Likewise.
1598 * sparcnbsd-tdep.c: Likewise.
1599 * sparc-tdep.h: New file.
1600 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1601 and sparc_npc_regnum.
1605 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1606 (mips_linux_cannot_store_register): List supported instead of
1607 unsupported registers.
1611 * disasm.c (dump_insns): Separate instructions from addresses.
1615 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1617 * m68k-tdep.c (NUM_FREGS): Delete.
1618 (SIG_PC_FP_OFFSET): Delete.
1619 (TARGET_M68K): Delete.
1620 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1621 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1622 P_MOVEL_SP, P_MOVEML_SP): Define.
1623 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1625 (m68k_register_raw_size): Delete.
1626 (m68k_register_virtual_size): Delete.
1627 (m68k_register_type): Renamed from m68k_register_virtual_type and
1628 add gdbarch argument.
1629 (m68k_store_struct_return): Delete.
1630 (m68k_deprecated_extract_return_value): Delete.
1631 (m68k_deprecated_extract_struct_value_address): Delete.
1632 (m68k_frame_chain): Delete.
1633 (m68k_frame_saved_pc): Delete.
1634 (m68k_fix_call_dummy): Delete.
1635 (m68k_push_dummy_frame): Delete.
1636 (m68k_pop_frame): Delete.
1637 (m68k_extract_return_value): New function.
1638 (m68k_store_return_value): Rewrite using regcache.
1639 (m68k_extract_struct_value_address): Rewrite using regcache.
1640 (m68k_push_dummy_call): New function.
1641 (struct m68k_frame_cache): Define.
1642 (m68k_alloc_frame_cache): New function.
1643 (m68k_analyze_frame_setup): New function.
1644 (m68k_analyze_register_saves): New function.
1645 (m68k_analyze_prologue): New function.
1646 (m68k_skip_prologue): Rewrite using above functions.
1647 (m68k_unwind_pc): New function.
1648 (m68k_frame_cache): New function.
1649 (m68k_frame_this_id): New function.
1650 (m68k_frame_prev_register): New function.
1651 (m68k_frame_unwind): New variable.
1652 (m68k_frame_p): New function.
1653 (m68k_sigtramp_frame_cache): New function.
1654 (m68k_sigtramp_frame_this_id): New function.
1655 (m68k_sigtramp_frame_prev_register): New function.
1656 (m68k_sigtramp_frame_unwind): New variable.
1657 (m68k_sigtramp_frame_p): New function.
1658 (m68k_frame_base_address): New function.
1659 (m68k_frame_base): New function.
1660 (m68k_unwind_dummy_id): New function.
1661 (fill_gregset): Use regcache_collect.
1662 (fill_fpregset): Likewise.
1663 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1665 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1666 deprecated_init_frame_pc, deprecated_store_struct_return,
1667 deprecated_extract_return_value, deprecated_store_return_value,
1668 deprecated_frame_chain, deprecated_frame_saved_pc,
1669 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1670 deprecated_register_virtual_size,
1671 deprecated_max_register_raw_size,
1672 deprecated_max_register_virtual_size,
1673 deprecated_register_virtual_type, deprecated_register_size,
1674 deprecated_register_byte, deprecated_register_bytes,
1675 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1676 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1677 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1678 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1679 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1680 deprecated_push_dummy_frame, deprecated_pop_frame,
1681 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1682 only if SYSCALL_TRAP is defined. Set extract_return_value,
1683 store_return_value, extract_struct_value_address, register_type,
1684 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1686 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1687 M68K_MAX_REGISTER_SIZE): Define.
1688 (struct m68k_sigtramp_info): Define.
1689 (struct gdbarch_tdep): Add get_sigtramp_info.
1690 * m68klinux-nat.c (fetch_register): Use register_size instead of
1691 REGISTER_RAW_SIZE. Don't put assignment in if.
1692 (store_register): Likewise.
1693 (fetch_inferior_registers): Likewise.
1694 (store_inferior_registers): Likewise.
1695 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1696 (m68k_linux_frame_saved_pc): Delete.
1697 (m68k_linux_sigcontext_reg_offset,
1698 m68k_linux_ucontext_reg_offset): Define.
1699 (m68k_linux_get_sigtramp_info): New function.
1700 (m68k_linux_extract_return_value): Rewrite using regcache.
1701 (m68k_linux_store_return_value): Likewise.
1702 (m68k_linux_extract_struct_value_address): Likewise.
1703 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1704 Don't set deprecated_frame_saved_pc,
1705 deprecated_extract_return_value, deprecated_store_return_value,
1706 deprecated_extract_struct_value_address. Set
1707 extract_return_value, store_return_value,
1708 extract_struct_value_address.
1712 * expprint.c: Include "user-regs.h" instead of "frame.h".
1713 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1714 frame_map_regnum_to_name.
1715 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1716 (frame_map_name_to_regnum): Simplify, call
1717 user_reg_map_name_to_regnum.
1718 (frame_map_regnum_to_name): Simplify, call
1719 user_reg_map_regnum_to_name.
1720 (frame_register_unwind): Update.
1721 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1722 (_initialize_frame_reg): Call user_reg_add_builtin.
1723 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1724 (value_of_register): Use value_of_user_reg.
1725 * eval.c (evaluate_subexp_standard): Update.
1726 * parse.c (write_dollar_variable): Update.
1727 * d10v-tdep.c (d10v_print_registers_info): Update.
1728 * infcmd.c (registers_info): Update.
1729 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1730 (builtin_regs_h): Delete macro.
1731 (user_regs_h): Define.
1732 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1733 (builtin-regs.o): Delete target.
1734 (user-regs.o): Specify dependencies.
1735 (expprint.o): Update dependencies.
1736 (findvar.o): Update dependencies.
1737 (frame.o): Update dependencies.
1738 (std-regs.o): Update dependencies.
1742 * win32-nat.c (solib_symbols_add): Use one variable for all section
1743 address stuff. Pass variable rather than address of variable to
1744 safe_symbol_file_add.
1748 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1752 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1756 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1760 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1761 * config/i386/nto.mh: New file.
1762 * config/i386/nm-nto.h: New file.
1763 * configure.host: Add i[3456]86-*-nto*.
1767 * remote-vx.c (vx_add_symbols): Fix compilation error.
1771 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1772 * gdbarch.h, gdbarch.c: Re-generate.
1773 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1774 (legacy_register_name): Declare.
1775 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1776 (REGISTER_NAME): Define.
1777 * sparc-tdep.c (legacy_register_name): New function.
1778 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1779 (REGISTER_NAME): Define.
1780 (hppa64_register_name): Declare.
1781 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1782 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1783 (hppa64_register_name): New function.
1784 (hppa_register_name): New function.
1785 * arch-utils.c (legacy_register_name): Delete.
1786 * arch-utils.h (legacy_register_name): Delete.
1790 * cli/cli-interp.c (cli_interpreter_resume): Update the
1791 cli_uiout's stream to gdb_stdout.
1795 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1797 * gdbarch.h, gdbarch.c: Re-generate.
1798 * regcache.c (init_regcache_descr): Use legacy code when either
1799 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1803 * NEWS: Move "set logging" entry into GDB 6.0 section.
1807 * s390-tdep.c (struct frame_extra_info): new member:
1808 'stack_bought_valid'.
1809 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1810 initialize fextra_info->stack_bought.
1811 (s390_frameless_function_invocation): Don't trust the value of
1812 fextra_info_ptr->stack_bought unless
1813 fextra_info->stack_bought_valid is set.
1815 New S390 prologue analyzer.
1816 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1817 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1818 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1819 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1820 compute_x_addr, s390_on_stack, s390_store,
1821 s390_get_signal_frame_info): New functions.
1822 (S390_NUM_SPILL_SLOTS): New macro.
1823 (s390_get_frame_info): Rewritten.
1824 (is_arg_reg): Deleted.
1826 Break out the decoding of S/390 instructions into separate
1827 functions, to make it more legible, and easier to check
1829 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1830 is_rx, is_rxe): New functions.
1831 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1832 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1833 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1834 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1835 enums for opcode values. (Is this an improvement?)
1839 * i386-tdep.c: Revert change committed as part of trad-frame code
1844 * breakpoint.c (insert_catchpoint): Make static.
1848 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1849 former ia64_push_arguments and ia64_push_return_address, and use
1850 regcache functions instead of read/write_register.
1851 (ia64_gdbarch_init): Set push_dummy_call instead of
1852 deprecated_push_arguments and deprecated_push_return_address.
1856 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1858 Set %rax only to number of SSE registers used.
1862 * trad-frame.h: Update comments, a -1 .addr is reserved.
1863 (trad_frame_value_p, trad_frame_addr_p): Declare.
1864 (trad_frame_reg_p): Declare.
1865 (trad_frame_set_value): Rename trad_frame_register_value.
1866 (trad_frame_set_unknown): Declare.
1867 * trad-frame.c (trad_frame_realreg_p): New function.
1868 (trad_frame_addr_p, trad_frame_value_p): New function.
1869 (trad_frame_set_unknown): New function.
1870 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1871 (trad_frame_prev_register): Use trad_frame_realreg_p,
1872 trad_frame_addr_p and trad_frame_value_p.
1873 (trad_frame_set_value): Rename trad_frame_register_value.
1874 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1875 and trad_frame_set_value.
1879 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1880 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1881 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1882 for 16 registers, and then 32 more bytes.
1883 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1885 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1886 Move up in the file, since it's now used by is_simple_arg.
1887 (is_simple_arg): Don't assume registers are four bytes long.
1888 Exclude all double arguments. Extended floats are not simple
1890 (is_power_of_two): New function.
1891 (pass_by_copy_ref): Call is_power_of_two, and check that the
1892 length fits in a register, rather than listing all the acceptable
1893 sizes. Extended floats are not passed by reference.
1894 (s390_push_arguments): Don't assume registers are four bytes long.
1895 Reserve an argument register to point to the buffer for structures
1896 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1897 S390_STACK_FRAME_OVERHEAD.
1901 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1902 format error message.
1906 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1910 Band-aid for PR c++/1245.
1911 * Makefile.in (cp-support.o): Depend on complaints_h.
1912 * cp-support.c: Include complaints.h. Add declaration for
1913 find_last_component.
1914 (cp_find_first_component): Separate code into
1915 cp_find_first_component_aux.
1916 (cp_find_first_component_aux): Call demangled_name_complaint.
1917 (demangled_name_complaint): New.
1921 * remote.c (remote_write_bytes): Explicitly compute and then use
1922 the payload size. Update comments to reflect. Fixes problem of
1923 GDB not sending small packets as found by Fred Fish.
1927 * remote.c (remote_async_wait): Fix -Wformat problem.
1931 * remote.c (remote_wait): Call error, and not warning, when the
1933 (remote_async_wait): Ditto.
1937 * sparc-tdep.c (sparc_y_regnum): Make external again.
1941 * cli/cli-logging.c (pop_output_files): Add void to function
1946 * frame.c (frame_register_unwind): Use unsigned char when dumping
1947 the buffer contents.
1951 * cli/cli-logging.c: New file.
1952 * cli-out.c (struct ui_out_data): Add original_stream.
1953 (cli_redirect): New function.
1954 (cli_ui_out_impl): Add cli_redirect.
1955 (cli_out_new): Initialize original_stream.
1956 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1957 (uo_redirect, ui_out_redirect): New.
1958 * ui-out.h (struct ui_out_impl): Add redirect member.
1959 (redirect_ftype): New.
1960 (ui_out_redirect): Add prototype.
1961 * Makefile.in: Add rules for cli-logging.c.
1962 * NEWS: Mention "set logging".
1966 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1970 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1971 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1972 * avr-tdep.c (avr_call_dummy_address): Delete function.
1973 (avr_gdbarch_init): Do not set call_dummy_address.
1977 * symfile.c (syms_from_objfile): Move variables to inner block.
1978 Move the checks for the non-mainline case a bit earlier to avoid
1979 doing some useless computations.
1983 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1987 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1992 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1993 gdb/testsuite/gdb.c++/pr-1210.exp.
1997 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1998 altivec_expression.h and altivec_registers.h.
2002 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2003 info->mach when MIPS16. Patch suggested by Fred Fish.
2007 * utils.c (internal_vproblem): Print the problem to a reason
2008 buffer and then pass to query. Make the msg variable more local.
2012 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2013 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2014 * gdbarch.h, gdbarch.c: Re-generate.
2015 * frame-base.c (default_frame_args_address): Update. Use
2016 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2018 (default_frame_locals_address): Ditto for
2019 DEPRECATED_FRAME_LOCALS_ADDRESS.
2020 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2021 (vax_frame_num_args): Update.
2022 (vax_gdbarch_init): Update.
2023 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2024 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2025 * mcore-tdep.c (mcore_gdbarch_init): Update.
2026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2027 * ia64-tdep.c (ia64_gdbarch_init): Update.
2028 * symtab.h (address_class): Update comments.
2029 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2030 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2031 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2032 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2033 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2034 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2035 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2036 * alpha-mdebug-tdep.c: Update.
2037 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2041 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2042 of SSE registers so that varargs functions work. Rework handling
2043 of passing arguments on the stack.
2044 (x86_64_store_return_value): Return double and float values in SSE
2049 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2050 the "constructor breakpoints ignored" bug.
2054 * MAINTAINERS: Update e-mail address.
2058 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2060 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2062 (ppc_linux_init_abi): Register it as the
2063 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2065 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2066 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2069 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2070 (ppc64_standard_linkage_target): Use it.
2074 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2075 for 0 "int0" and 4 "int32" sized registers.
2076 * gdbtypes.c (builtin_type_int0): Define.
2077 (build_gdbtypes): Initialize builtin_type_int0.
2078 * gdbtypes.h (builtin_type_int0): Declare.
2082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2083 as characters are unsigned.
2088 * dwarfread.c (struct_type): Skip static fields without crashing.
2092 GDB 6.0 branch created.
2094 * PROBLEMS: Update. Empty.
2099 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2104 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2105 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2110 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2115 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2116 argument of val_print.
2117 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2118 to the address argument of baseclass_offset or target_read_memory.
2119 Do add it to the argument of cp_print_value_fields.
2123 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2124 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2125 instead of 0..NUM_REGS.
2126 (mips_register_reggroup_p): New function.
2127 (mips_pseudo_register_write): New function.
2128 (mips_pseudo_register_read): New function.
2129 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2130 based on the register's type.
2131 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2133 (mips_get_saved_register): Simplify. Assert that REGNO is a
2135 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2136 (mips_register_type): Replace mips_register_virtual_type. Map
2137 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2139 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2140 that the register is cooked / virtual.
2141 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2142 Only get the extra info when needed.
2143 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2144 (mips32_heuristic_proc_desc): Fetch the cooked register.
2145 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2146 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2147 (mips_print_register): Use gdbarch_register_type, instead of
2148 REGISTER_VIRTUAL_TYPE.
2149 (print_gp_register_row): Use gdbarch_register_type, instead of
2150 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2151 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2152 Print the pseudo / cooked registers.
2153 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2154 Print the pseudo / cooked registers.
2155 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2156 REG_NUM is pseudo / cooked.
2157 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2158 (mips_n32n64_xfer_return_value): Ditto.
2159 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2160 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2161 (mips_register_sim_regno): New function.
2162 (mips_gdbarch_init): Set deprecated_register_byte,
2163 register_group_p, pseudo_register_write, pseudo_register_read,
2164 register_sim_regno, and num_pseudo_regs. Set register_type,
2165 instead of register_virtual_type.
2166 * Makefile.in (mips-tdep.o): Update dependencies.
2167 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2168 REGISTER_VIRTUAL_TYPE.
2169 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2170 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2171 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2172 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2173 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2177 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2178 * cli/cli-cmds.c: Include "gdb_vfork.h".
2179 (shell_escape): Use vfork.
2183 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2184 32 bit floating-point register saves.
2186 * frame.h (deprecated_unwind_get_saved_register): Delete.
2187 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2188 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2189 and deprecated_get_next_frame_hack instead of
2190 deprecated_unwind_get_saved_register.
2192 * mips-tdep.c (mips_dump_tdep): Do not print
2193 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2195 * frame.c (get_frame_register): New function.
2196 (frame_unwind_register_signed): New function.
2197 (get_frame_register_signed): New function.
2198 (frame_unwind_register_unsigned): New function.
2199 (get_frame_register_unsigned): New function.
2200 * frame.h: Add comments on naming schema.
2201 (get_frame_register, frame_unwind_register_signed): Declare.
2202 (get_frame_register_signed, get_frame_register_signed): Declare.
2203 (frame_unwind_register_unsigned): Declare.
2204 (get_frame_register_unsigned): Declare.
2208 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2212 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2213 (avr_read_sp): Ditto.
2217 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2218 * config/arm/nm-linux.h: Likewise.
2219 * config/arm/tm-linux.h: Likewise.
2220 * config/ia64/nm-linux.h: Likewise.
2221 * config/ia64/tm-ia64.h: Likewise.
2222 * config/s390/tm-linux.h: Likewise.
2223 * config/s390/tm-s390.h: Likewise.
2224 * s390-nat.c: Likewise.
2225 * s390-tdep.c: Likewise.
2227 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2228 * config/ia64/linux.mt: Likewise.
2229 * config/m68k/linux.mh: Likewise.
2230 * config/mips/linux.mt: Likewise.
2231 * config/powerpc/linux.mh: Likewise.
2232 * config/sh/linux.mt: Likewise.
2236 * solib.c (solib_open): Change tests for whether to search
2237 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2242 * avr-tdep.c (avr_frame_address): Delete function.
2243 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2244 set_gdbarch_frame_args_address.
2248 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2249 (REGISTER_CONVERT_FROM_TYPE): Delete.
2250 (mips_register_convert_to_type): Delete declaration.
2251 (mips_register_convert_from_type): Delete declaration.
2252 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2257 * linux-nat.h: New file.
2258 * linux-nat.c: Include linux-nat.h.
2259 * lin-lwp.c: Include linux-nat.h.
2260 Move struct lwp_info def to linux-nat.h.
2261 * linux-proc.c: Include linux-nat.h.
2262 (linux_make_note_section): Iterate over lwps instead of threads.
2263 (linux_do_thread_registers): Use lwp instead of merged pid.
2264 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2265 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2266 Add dependency on linux_nat_h.
2270 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2274 * varobj.c (get_type, get_target_type): Use check_typedef.
2278 * breakpoint.c (insert_catchpoint): Call internal_error.
2282 * avr-tdep.c (avr_push_dummy_code): Delete function.
2283 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2287 * arch-utils.c (default_prepare_to_proceed): Remove.
2288 (generic_prepare_to_proceed): Remove.
2289 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2290 (generic_prepare_to_proceed): Remove prototype.
2291 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2292 * gdbarch.c: Regenerate.
2293 * gdbarch.h: Regenerate.
2294 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2295 * hppah-nat.c (hppa_switched_threads): Remove.
2296 * infrun.c (prepare_to_proceed): New static function, copied from
2297 generic_prepare_to_proceed. Remove select_it argument.
2298 (proceed): Call prepare_to_proceed.
2299 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2301 (ptrace_wait): Don't set the removed variables.
2302 (hppa_switched_threads): Remove.
2303 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2304 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2305 (lin_lwp_prepare_to_proceed): Remove prototype.
2306 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2307 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2311 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2313 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2314 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2315 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2316 (AVR_PROLOGUE_*): Enumerate prologue types.
2317 (struct frame_extra_info): Remove.
2318 (struct avr_unwind_cache): Define.
2319 (avr_write_sp): Delete function.
2320 (avr_read_fp): Ditto.
2321 (avr_init_extra_frame_info): Ditto.
2322 (avr_pop_frame): Ditto.
2323 (avr_frame_saved_pc): Ditto.
2324 (avr_saved_pc_after_call): Ditto.
2325 (avr_push_return_address): Ditto.
2326 (avr_frame_chain): Ditto.
2327 (avr_store_struct_return): Ditto.
2328 (avr_push_arguments): Ditto.
2329 (avr_scan_prologue): Update comments. Changed to set up the info for
2330 cache unwinding. Now returns end of prologue PC.
2331 (avr_skip_prologue): Better handling of functions lacking a prologue
2332 by using avr_scan_prologue.
2333 (avr_scan_arg_moves): New function.
2334 (avr_saved_regs_unwinder): Ditto.
2335 (avr_frame_unwind_cache): Ditto.
2336 (avr_unwind_pc): Ditto.
2337 (avr_frame_this_id): Ditto.
2338 (avr_frame_prev_register): Ditto.
2339 (avr_frame_p): Ditto.
2340 (avr_frame_base_address ): Ditto.
2341 (avr_unwind_dummy_id): Ditto.
2342 (avr_push_dummy_code): Ditto.
2343 (push_stack_item): Ditto.
2344 (pop_stack_item): Ditto.
2345 (avr_push_dummy_call): Ditto.
2346 (struct stack_item): Define.
2347 (avr_frame_unwind): Declare structure.
2348 (avr_frame_base): Ditto.
2349 (avr_gdbarch_init): Remove calls to
2350 set_gdbarch_deprecated_init_frame_pc,
2351 set_gdbarch_deprecated_target_read_fp,
2352 set_gdbarch_deprecated_dummy_write_sp,
2353 set_gdbarch_deprecated_fp_regnum,
2354 set_gdbarch_deprecated_push_arguments,
2355 set_gdbarch_deprecated_push_return_address,
2356 set_gdbarch_deprecated_pop_frame,
2357 set_gdbarch_deprecated_store_struct_return,
2358 set_gdbarch_deprecated_frame_init_saved_regs,
2359 set_gdbarch_deprecated_init_extra_frame_info,
2360 set_gdbarch_deprecated_frame_chain,
2361 set_gdbarch_deprecated_frame_saved_pc,
2362 set_gdbarch_deprecated_saved_pc_after_call.
2363 Add calls to set_gdbarch_push_dummy_call,
2364 set_gdbarch_push_dummy_code,
2365 frame_unwind_append_predicate,
2366 frame_base_set_default,
2367 set_gdbarch_unwind_dummy_id,
2368 set_gdbarch_unwind_pc.
2373 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2374 registers for H8/300S.
2375 (h8300_print_registers_info): Ditto.
2376 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2380 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2381 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2382 (lin_lwp_wait): Likewise. Update comments.
2383 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2384 (pull_pid_from_list, linux_record_stopped_pid): New.
2388 * ada-lang.c (scan_discrim_bound): Name first argument.
2389 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2390 declared by ALL_BLOCK_SYMBOLS.
2394 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2395 ("regcache.h"): Include it.
2396 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2400 * NEWS: Mention gdbserver detach change and "disconnect" command.
2401 * infcmd.c (disconnect_command): New function.
2402 (_initialize_infcmd): Add ``disconnect'' command.
2403 * remote.c (remote_async_detach): Delete.
2404 (remote_detach): Merge remote_async_detach.
2405 (remote_disconnect): New.
2406 (init_remote_ops): Set to_disconnect.
2407 (init_remote_cisco_ops): Likewise.
2408 (init_remote_async_ops): Likewise. Use remote_detach.
2409 * target.c (cleanup_target): Default to_disconnect.
2410 (update_current_target): Inherit to_disconnect.
2411 (target_disconnect, debug_to_disconnect): New functions.
2412 (setup_target_debug): Set to_disconnect.
2413 * target.h (struct target_ops): Add to_disconnect.
2414 (target_disconnect): Add prototype.
2418 * breakpoint.c (insert_catchpoint): New function.
2419 (insert_breakpoints): Use catch_exceptions to call
2420 insert_catchpoint. Disable catchpoints if they fail to insert.
2424 * symfile.c (reread_symbols): Clear sym_private.
2428 * trad-frame.h (struct frame_info): Add opaque declaration.
2429 * remote-fileio.h (struct cmd_list_element): Add opaque
2431 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2436 * remote.c (remote_prepare_to_store): Replace call to
2437 deprecated_read_register_bytes with multiple regcache_raw_read
2442 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2443 (nto_find_and_open_solib): Likewise.
2444 (nto_init_solib_absolute_prefix): Likewise.
2445 (_initialize_nto_tdep): Fix indentation.
2449 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2453 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2457 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2461 * avr-tdep.c (avr_extract_return_value): New function.
2462 (avr_gdbarch_init): Set extract_return_value method.
2466 * frame.h (deprecated_get_next_frame_hack): Declare.
2467 * frame.c (legacy_saved_regs_prev_register): Only require
2468 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2469 there are always saved regs.
2470 (deprecated_generic_get_saved_register): Do not require
2471 DEPRECATED_FRAME_INIT_SAVED_REGS.
2472 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2473 use frame ID unwind instead.
2474 (deprecated_get_next_frame_hack): New function.
2478 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2479 (h8300_push_dummy_call): ...this function. Some minor optimization.
2480 (h8300_push_return_address): Remove.
2481 (h8300_gdbarch_init): Remove calls to
2482 set_gdbarch_deprecated_dummy_write_sp,
2483 set_gdbarch_deprecated_push_arguments and
2484 set_gdbarch_deprecated_push_return_address.
2485 Add call to set_gdbarch_push_dummy_call.
2489 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2490 (E_PSEUDO_EXR_REGNUM): Ditto.
2491 (h8300_is_argument_spill): Check for instructions moving argument
2492 registers into safe registers.
2493 (h8300_skip_prologue): Check for stm instruction to push registers
2494 used for register variables onto stack.
2495 (gdb_print_insn_h8300): Remove.
2496 (h8300_examine_prologue): Add a comment.
2497 (h8300_register_name): Take pseudo registers into account.
2498 (h8300s_register_name): Ditto.
2499 (h8300sx_register_name): Ditto.
2500 (h8300_print_register): Ditto.
2501 (h8300_print_registers_info): Define "nice" printing order.
2502 (h8300_saved_pc_after_call): Take pseudo registers into account.
2503 (h8300_register_type): Ditto. Return type used for remote connection
2504 when requesting real CCR or EXR register, return actual type when
2505 requesting pseudo CCR or EXR.
2506 (h8300_pseudo_register_read): New function.
2507 (h8300_pseudo_register_write): Ditto.
2508 (h8300_dbg_reg_to_regnum): Ditto.
2509 (h8300s_dbg_reg_to_regnum): Ditto.
2510 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2511 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2512 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2513 set_gdbarch_print_insn architecture dependent.
2514 Call set_gdbarch_pseudo_register_read and
2515 set_gdbarch_pseudo_register_write.
2516 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2520 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2521 * gdbarch.h, gdbarch.c: Re-generate.
2522 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2523 * s390-tdep.c (s390_gdbarch_init): Update.
2524 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2525 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2526 * mips-tdep.c (mips_gdbarch_init): Update.
2527 * mcore-tdep.c (mcore_gdbarch_init): Update.
2528 * cris-tdep.c (cris_gdbarch_init): Update.
2529 * infcall.c (call_function_by_hand): Update.
2530 * ia64-tdep.c (ia64_push_arguments): Update comment.
2531 * frame.c (legacy_get_prev_frame): Do not assume
2532 SAVE_DUMMY_FRAME_TOS_P.
2533 * dummy-frame.c (find_dummy_frame): Update comment.
2537 * regcache.c (do_cooked_read): Do not use register_valid_p.
2541 * avr-tdep.c (avr_register_type): Remove a blank line.
2542 (avr_scan_prologue): Correct some comments.
2546 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2548 Properly scan prologues generated by gcc with the -mcall-prologues
2550 Add code to scan -mcall-prologues for mega devices.
2554 * avr-tdep.c (avr_register_byte): Delete function.
2555 (avr_register_raw_size): Delete function.
2556 (avr_register_virtual_size): Delete function.
2557 (avr_register_virtual_type): Delete function.
2558 (avr_register_type): New function.
2559 (avr_address_to_pointer): Remove unused code.
2560 (avr_read_fp): Need to read FP as two separate bytes due to change to
2561 avr_register_type() usage.
2562 (avr_gdbarch_init): Don't set deprecated_register_size.
2563 Don't set deprecated_register_bytes.
2564 Don't set deprecated_register_byte.
2565 Don't set deprecated_register_raw_size.
2566 Don't set deprecated_max_register_raw_size.
2567 Don't set deprecated_register_virtual_size.
2568 Don't set deprecated_max_register_virtual_size.
2569 Don't set deprecated_register_virtual_type.
2570 Set register_type method.
2574 * Makefile.in (linux-nat.o): Add rule.
2575 * linux-nat.c: New file.
2576 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2577 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2578 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2579 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2580 * config/arm/linux.mh (NATDEPFILES): Likewise.
2581 * config/i386/linux.mh (NATDEPFILES): Likewise.
2582 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2583 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2584 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2585 * config/mips/linux.mh (NATDEPFILES): Likewise.
2586 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2587 * config/s390/s390.mh (NATDEPFILES): Likewise.
2588 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2592 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2593 replace out-of-date comment.
2597 * rdi-share/host.h (Fail): Change to a varargs function.
2598 * remote-rdi.c (Fail): Update.
2602 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2603 (i386_convert_register_p, i386_register_to_value,
2604 i386_register_from_value): Handle types longer than 8 bytes.
2608 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2609 Move floating-point code to new function in i387-tdep.c.
2610 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2611 New functions containing code moved here from i386-tdep.c.
2612 * i387-tdep.h: Add opaque declaration for `struct type'.
2613 (i387_register_to_value, i387_value_to_register): New prototypes.
2614 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2615 (x86_64_init_abi): Set convert_register_p, register_to_value and
2616 value_to_register here.
2620 * mips-tdep.c (mips_register_to_value): Make static.
2621 (mips_value_to_register): Make static.
2622 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2623 * ia64-tdep.c (ia64_register_raw_size): Make static.
2624 (ia64_register_virtual_size): Make static.
2625 (ia64_register_byte): Make static.
2626 * i387-tdep.c: Include "i387-tdep.h".
2627 (print_387_control_word): Delete function.
2628 (print_387_status_word): Delete function.
2629 (print_387_status_bits): Delete function.
2630 (print_387_control_bits): Delete function.
2631 * Makefile.in (i387-tdep.o): Update dependencies.
2632 * rdi-share/host.h (Fail): Declare.
2633 * remote-rdi.c (Fail): Update to match declaration.
2637 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2638 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2639 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2640 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2641 * README: Delete reference to remote-array.
2642 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2643 (remote-array.o): Delete target.
2644 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2645 * remote-array.c: Delete file.
2650 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2651 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2652 parameter with "frame".
2653 * gdbarch.h, gdbarch.c: Re-generate.
2654 * frame.h (put_frame_register): Declare.
2655 * frame.c (put_frame_register): New function.
2656 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2657 (legacy_register_to_value): Rewrite, use "frame" to get the
2659 (legacy_value_to_register): Rewrite, use "frame" to find the
2660 register's location before storing.
2661 * arch-utils.h (legacy_convert_register_p): Update.
2662 (legacy_register_to_value, legacy_value_to_register): Update.
2663 * findvar.c (value_from_register): Rewrite, eliminate use of
2664 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2665 "frame" to REGISTER_TO_VALUE.
2666 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2667 lval_reg_frame_relative + lval_register branch of the switch. Do
2668 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2669 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2670 I386_EDI_REGNUM): New defines.
2671 (i386_next_regnum, i386_convert_register_p,
2672 i386_register_to_value, i386_value_to_register): New functions.
2673 (i386_register_convertible, i386_register_convert_to_virtual,
2674 i386_convert_to_raw): Remove functions.
2675 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2676 value_to_register instead of register_convertible,
2677 register_convert_to_virtual and register_convert_to_raw.
2678 * mips-tdep.c (mips_convert_register_p): New function.
2679 (mips_value_to_register): Replace mips_register_convert_from_type.
2680 (mips_register_to_value): Replace mips_register_convert_to_type.
2681 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2683 * alpha-tdep.c (alpha_convert_register_p): Update.
2684 (alpha_value_to_register): Update, store the register.
2685 (alpha_register_to_value): Update, fetch the register.
2689 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2690 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2691 Don't set deprecated_call_dummy_words.
2692 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2693 Don't set remote_translate_xfer_address.
2694 (avr_io_reg_read_command): Remove commented out debug printf.
2699 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2700 causes gdb to seg fault.
2704 * sparc-nat.c (fetch_inferior_registers): Correct
2705 a reference to "registers".
2709 * Makefile.in (exc_request_U_h): Define
2710 (exc_request_S_h): Likewise.
2711 (msg_reply_S_h): Likewise.
2712 (msg_U_h): Likewise.
2713 (notify_S_h): Likewise.
2714 (process_reply_S_h): Likewise.
2715 (gnu-nat.o): Depend on gdb_obstack_h
2716 * gnu-nat.c: Include "gdb_obstack.h".
2720 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2721 * gdbarch.h, gdbarch.c: Re-generate.
2725 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2726 when deprecated REGISTER macros can be deleted.
2727 * gdbarch.h, gdbarch.c: Re-generate.
2731 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2732 Linux entry point symbols for _dl_debug_state, too.
2736 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2737 available, do not use the FP register, and always save the TOS.
2738 * dummy-frame.c (dummy_frame_this_id): Do not assert
2739 SAVE_DUMMY_FRAME_TOS.
2740 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2741 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2742 (i386_push_dummy_call): Add 8 to the returned SP.
2743 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2744 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2745 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2746 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2747 (x86_64_push_dummy_call): Return "sp + 16".
2748 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2749 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2750 save_dummy_frame_tos.
2754 * frv-tdep.c (frv_use_struct_convention): Delete static
2755 declaration for function deleted in my change of 2003-06-12.
2759 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2760 (avr_pointer_to_address): Shift code addrs left 1 bit.
2761 (avr_convert_from_func_ptr_addr): Delete function since operation is
2762 better handled by avr_address_to_pointer and avr_pointer_to_address.
2763 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2768 * configure.host: Accept i[34567]86 variants.
2769 * configure.tgt: Likewise.
2770 * nlm/configure.in: Likewise.
2771 * nlm/configure: Regenerated.
2775 * arm-tdep.c (solib-svr4.h): Dont' include it.
2776 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2777 * arm-linux-tdep.c: ... here. Make static.
2778 (arm_linux_init_abi): Register it.
2779 (solib-svr4.h): Include it.
2780 * Makefile.in: Update dependencies.
2781 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2782 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2786 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2787 indicate registers used for return values.
2788 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2789 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2791 (h8300_init_extra_frame_info): Ditto.
2792 (h8300_frame_locals_address): Removed.
2793 (h8300_frame_args_address): Removed.
2794 (h8300_extract_return_value): Use new regcache structure. Only care
2796 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2797 (h8300_store_return_value): Use new regcache structure. Only care
2799 (h8300h_store_return_value): Same function for 32 bit CPUs.
2800 (h8300_store_struct_return): Removed.
2801 (h8300_extract_struct_value_address): Use new regcache structure.
2802 (h8300h_extract_struct_value_address): Removed.
2803 (h8300_push_dummy_code): New function.
2804 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2805 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2806 set_gdbarch_store_return_value architecture dependent.
2807 Call set_gdbarch_push_dummy_code and
2808 set_gdbarch_extract_struct_value_address.
2809 Remove calls to set_gdbarch_frame_args_address,
2810 set_gdbarch_frame_locals_address,
2811 set_gdbarch_deprecated_store_struct_return,
2812 set_gdbarch_deprecated_extract_return_value,
2813 set_gdbarch_deprecated_extract_struct_value_address,
2814 set_gdbarch_deprecated_call_dummy_words and
2815 set_gdbarch_deprecated_sizeof_call_dummy_words.
2819 * h8300-tdep.c (h8300_register_byte): Remove.
2820 (h8300h_register_byte): Remove.
2821 (h8300_register_virtual_type): Remove. Substitute by...
2822 (h8300_register_type): New function.
2823 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2824 (h8300h_extract_struct_value_address): Ditto.
2825 (h8300_gdbarch_init): Drop calls to
2826 set_gdbarch_deprecated_register_byte and
2827 set_gdbarch_deprecated_register_virtual_type.
2828 Add call to set_gdbarch_register_type.
2832 * gdbarch.sh: Update comments on registers.
2833 (deprecated_register_byte): Rename register_byte.
2834 (deprecated_register_raw_size): Rename register_raw_size.
2835 (deprecated_register_virtual_size): Rename register_virtual_size.
2836 (deprecated_register_virtual_type): Rename register_virtual_type.
2837 * gdbarch.h, gdbarch.c: Re-generate.
2838 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2839 * vax-tdep.c (vax_gdbarch_init): Update.
2840 * v850-tdep.c (v850_gdbarch_init): Update.
2841 * sparc-tdep.c (sparc_gdbarch_init): Update.
2842 * sh-tdep.c (sh_gdbarch_init): Update.
2843 * s390-tdep.c (s390_gdbarch_init): Update.
2844 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2845 * ns32k-tdep.c: Update.
2846 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2847 * mips-tdep.c (mips_gdbarch_init): Update.
2848 * mcore-tdep.c (mcore_gdbarch_init): Update.
2849 * m68k-tdep.c (m68k_gdbarch_init): Update.
2850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2851 * ia64-tdep.c (ia64_gdbarch_init): Update.
2852 * hppa-tdep.c (hppa_gdbarch_init): Update.
2853 * h8300-tdep.c (h8300_gdbarch_init): Update.
2854 * frv-tdep.c (frv_gdbarch_init): Update.
2855 * cris-tdep.c (cris_gdbarch_init): Update.
2856 * avr-tdep.c (avr_gdbarch_init): Update.
2857 * alpha-tdep.c (alpha_gdbarch_init): Update.
2858 * arm-tdep.c (arm_gdbarch_init): Update.
2862 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2863 mips_o32_use_struct_convention with always_use_struct_convention.
2867 * cp-namespace.c (cp_set_block_scope): Comment out
2868 processing_has_namespace_info branch.
2872 Recognize and skip 64-bit PowerPC Linux linkage functions.
2873 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2874 insn_pattern, insns_match_pattern, d_field, ds_field): New
2875 functions, macros, and types for working with PPC instructions.
2876 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2877 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2878 ppc64_skip_trampoline_code): New functions, variables, and macros
2879 for recognizing and skipping linkage functions.
2880 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2881 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2883 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2884 register offsets for both the 32- and 64-bit interfaces.
2886 Actually finish the job started by my change of 2003-05-29.
2887 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2888 other #definition of this.
2889 (ppc_linux_skip_trampoline_code): Remove declaration.
2890 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2892 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2895 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2896 'long' on ppc64-*-linux*.
2898 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2899 isn't #defined, assume the register doesn't exist: act as if
2900 tdep->ppc_mq_regnum were -1.
2902 * configure.host, configure.tgt: Add entries for
2903 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2905 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2908 * arch-utils.c (always_use_struct_convention): New function.
2909 * arch-utils.h (always_use_struct_convention): New prototype.
2910 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2911 (alpha_gdbarch_init): Register always_use_struct_convention,
2912 instead of alpha_use_struct_convention.
2913 * cris-tdep.c (cris_use_struct_convention): Delete.
2914 (cris_gdbarch_init): Register always_use_struct_convention,
2915 instead of cris_use_struct_convention.
2916 * frv-tdep.c (frv_use_struct_convention): Delete.
2917 (frv_gdbarch_init): Register always_use_struct_convention,
2918 instead of frv_use_struct_convention.
2919 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2920 (h8300_gdbarch_init): Register always_use_struct_convention,
2921 instead of h8300_use_struct_convention.
2922 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2923 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2924 instead of mips_o32_use_struct_convention.
2928 * wince.c: Include "mips-tdep.h".
2929 * mips-tdep.h (mips_next_pc): Declare.
2930 * mcore-tdep.c: Make more local functions static.
2931 * Makefile.in (wince.o): Update dependencies.
2935 * symtab.c (lookup_symbol_aux_minsyms): Replace
2936 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2937 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2938 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2939 SYMBOL_NATURAL_NAME.
2943 * Makefile.in (tuiDisassem.o): Update dependencies.
2947 * symtab.h: Delete declaration of make_symbol_overload_list.
2948 Add declaration of lookup_partial_symbol.
2949 * symtab.c (remove_params): Move to cp-support.c.
2950 (overload_list_add_symbol, make_symbol_overload_list)
2951 (sym_return_val_size, sym_return_val_index): Ditto.
2952 (lookup_partial_symbol): Make extern.
2953 * cp-support.h: Add declaration of make_symbol_overload_list.
2954 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2955 symtab.h, and block.h.
2956 (remove_params): Move here from symtab.c.
2957 (overload_list_add_symbol, make_symbol_overload_list)
2958 (sym_return_val_size, sym_return_val_index): Ditto.
2959 * valops.c: Include cp-support.h.
2960 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2961 frame_h, and block_h.
2962 (valops.o): Depend on cp_support_h.
2966 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2967 substitute by NUM_REGS throughout.
2968 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2969 (h8300s_register_name): New function for H8S registers.
2970 (h8300sx_register_name): Ditto for H8SX registers.
2971 (h8300_print_register): Revise register printing, avoid depending
2973 (h8300_register_byte): Only care for H8/300 registers.
2974 (h8300h_register_byte): New function for any other architecture.
2975 (h8300_register_raw_size): Remove.
2976 (h8300_register_virtual_type): Revise to return actually useful
2978 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2979 (h8300h_extract_struct_value_address): New function for any other
2981 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2982 set_gdbarch_register_name, set_gdbarch_register_byte,
2983 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2984 Remove calls to set_gdbarch_deprecated_register_size,
2985 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2986 set_gdbarch_deprecated_max_register_raw_size,
2987 set_gdbarch_register_virtual_size and
2988 set_gdbarch_deprecated_max_register_virtual_size entirely.
2989 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2990 set_gdbarch_long_double_bit.
2994 * doublest.c (convert_doublest_to_floatformat): When dealing
2995 with the implied integer bit, only alter mant_bits if we are
2996 processing a full 32 bits of mantissa.
3000 * dictionary.h: New.
3001 * dictionary.c: New.
3002 * block.h: Add opaque declaration for struct dictionary.
3003 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3005 (BLOCK_DICT): New macro.
3006 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3007 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3009 (ALL_BLOCK_SYMBOLS): Update definition.
3010 * Makefile.in (SFILES): Add dictionary.c.
3011 (dictionary_h): New.
3012 (COMMON_OBS): Add dictionary.o.
3013 (dictionary.o): New.
3014 (ada-lang.o): Depend on dictionary_h.
3015 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3016 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3017 (mi-cmd-stack.o): Ditto.
3018 (gdbtk-cmds.o): Update dependencies.
3019 (gdbtk-stack.o): Ditto.
3020 * ada-lang.c: Include dictionary.h.
3021 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3022 (fill_in_ada_prototype, debug_print_block): Ditto.
3023 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3024 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3026 * mdebugread.c: Include dictionary.h.
3027 (struct parse_stack): Delete 'maxsyms' member.
3028 (parse_symbol): Update calls to new_block. Delete calls to
3029 shrink_block. Use dictionary methods.
3030 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3031 Update calls to new_symtab. Don't maintain maxsyms data.
3032 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3033 (add_symbol): Just call dict_add_symbol.
3034 (new_symtab): Delete 'maxsyms' argument.
3035 (new_symtab): Update calls to new_block.
3036 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3037 (shrink_block): Delete function.
3038 (fixup_sigtramp): Update call to new_block. Add symbol via
3040 * jv-lang.c: Include dictionary.h.
3041 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3042 appropriately. Set class_symtab->free_func. Make sure the
3043 blockvector is big enough to hold two blocks.
3044 (add_class_symtab_symbol): Use dictionary methods.
3045 (free_class_block): New function.
3046 (type_from_class): Replace explicit iteration by
3048 * symtab.h (struct symtab): Replace 'free_ptr' method by
3050 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3052 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3054 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3055 Include dictionary.h.
3056 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3057 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3059 * objfiles.c: Include dictionary.h.
3060 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3061 * buildsym.c: Include dictionary.h.
3062 (finish_block): Use dictionary methods.
3063 (end_symtab): Set free_func to NULL, not free_ptr.
3064 * tracepoint.c: Include dictionary.h.
3065 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3066 (scope_info): Ditto.
3067 * stack.c: Include dictionary.h.
3068 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3069 (print_block_frame_labels, print_frame_arg_vars)
3070 (print_frame_args): Ditto.
3071 * symmisc.c (free_symtab_block): Use dictionary methods.
3072 (dump_symtab): Ditto.
3073 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3074 Include dictionary.h.
3075 * symfile.h: Delete declarations of sort_block_syms,
3077 * symfile.c (sort_block_syms): Delete.
3078 (sort_symtab_syms): Delete.
3079 * symtab.c: Include dictionary.h.
3080 (lookup_block_symbol): Use dictionary iterators.
3081 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3082 (search_symbols, make_symbol_completion_list): Ditto.
3083 (make_symbol_overload_list): Ditto.
3084 * valops.c (value_of_local): Use dict_empty.
3085 Include dictionary.h.
3089 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3093 * block.h (BLOCK_SHOULD_SORT): Delete.
3094 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3096 * ada-lang.c (ada_add_block_symbols): Ditto.
3097 * symfile.c (sort_block_syms): Delete.
3098 (sort_symtab_syms): Ditto.
3099 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3101 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3102 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3103 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3104 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3105 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3106 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3107 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3111 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3116 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3117 REGISTER_CONVERTIBLE.
3118 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3119 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3120 * gdbarch.h, gdbarch.c: Re-generate.
3121 * arch-utils.h (deprecated_register_convertible_not): Rename
3122 generic_register_convertible_not.
3123 * arch-utils.c (deprecated_register_convertible_not): Rename
3124 generic_register_convertible.
3125 (legacy_convert_register_p, legacy_register_to_value): Update.
3126 * sh-tdep.c (sh64_push_arguments): Update.
3127 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3128 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3129 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3130 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3131 * arch-utils.c (legacy_value_to_register): Update.
3132 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3133 (rs6000_register_convert_to_raw): Make parameter "from" const.
3134 * mips-tdep.c (mips_gdbarch_init): Update.
3135 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3136 * infcmd.c (default_print_registers_info): Update.
3137 * ia64-tdep.c (ia64_gdbarch_init): Update.
3138 (ia64_register_convert_to_raw): Make parameter "from" const.
3139 * i386-tdep.c (i386_gdbarch_init): Update.
3140 (i386_register_convert_to_raw): Update.
3144 * remote-fileio.c: Include "remote-fileio.h".
3145 * Makefile.in (remote-fileio.o): Update dependencies.
3146 (remote_fileio_h): Fix typo.
3150 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3151 (xstormy16_save_dummy_frame_tos): Make static.
3152 (_initialize_xstormy16_tdep): Add declaration.
3153 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3154 * v850-tdep.c: Make local functions static.
3155 (_initialize_v850_tdep): Add declaration.
3156 * sparc-tdep.c: Make local functions static.
3157 (_initialize_sparc_tdep): Add declaration.
3158 * sh-tdep.c: Make local functions static.
3159 (_initialize_sh_tdep): Add declaration.
3160 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3161 * s390-tdep.c: Make local functions static.
3162 (_initialize_s390_tdep): Add declaration.
3163 * dbxread.c (find_stab_function_addr): Make static.
3164 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3165 * ocd.c (_initialize_remote_ocd): Add declaration.
3166 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3167 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3168 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3169 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3170 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3171 * remote-array.c (_initialize_array): Add declaration.
3172 (_initialize_remote_monitors): Add declaration.
3173 * remote-mips.c: Make local functions static.
3174 (_initialize_remote_mips): Add declaration.
3175 * mcore-tdep.c: Make all local functions static.
3176 (_initialize_mcore_tdep): Add declaration.
3177 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3178 * abug-rom.c (_initialize_abug_rom): Add declaration.
3179 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3180 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3181 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3182 * remote-est.c (_initialize_est): Add declaration.
3183 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3184 (m68hc11_call_dummy_address): Make static.
3185 * ia64-tdep.c: Make local functions static.
3186 (_initialize_ia64_tdep): Add declaration.
3187 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3188 * monitor.c (monitor_wait_filter): Make static.
3189 (_initialize_remote_monitors): Add declaration.
3190 * remote-hms.c (_initialize_remote_hms): Add declaration.
3191 * remote-e7000.c (fetch_regs_from_dump): Make static.
3192 (expect_n): Make static.
3193 (_initialize_remote_e7000): Add declaration.
3194 * ser-e7kpc.c: Always include "defs.h".
3195 (_initialize_ser_e7000pc): Add declaration.
3196 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3197 * cris-tdep.c: Make all but one function static.
3198 (_initialize_cris_tdep): Add declaration.
3199 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3200 * solib.c (update_solib_list): Make static.
3201 (_initialize_solib): Add declaration.
3202 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3203 (_initialize_avr_tdep): Add declaration.
3204 * remote-rdi.c (voiddummy): Make static.
3205 (_initialize_remote_rdi): Add declaration.
3206 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3207 * remote-rdp.c (send_rdp): Make static.
3208 (_initialize_remote_rdp): Add declaration.
3209 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3213 * remote-fileio.c: Make ari happy.
3217 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3218 fetching the trailing bytes of the buffer we are about to write.
3222 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3223 * Makefile.in (remote-fileio.o): Update dependencies.
3224 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3225 include <setjmp.h>, or <sys/types.h> conditional on USG.
3226 (remote_fio_jmp_buf): Delete global variable.
3231 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3232 (SFILES): Add remote-fileio.c.
3233 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3234 dependencies for building remote.o.
3235 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3236 * remote-fileio.h: New header file defining remote File-I/O interface.
3237 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3238 static storage class.
3239 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3241 (_initialize_remote): Call initialize_remote_fileio().
3242 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3243 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3244 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3245 (captured_main): Initialize new ui_files.
3246 * ui-file.c: Add read and fgets input functions.
3247 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3248 (null_file_read): New function.
3249 (ui_file_read): New function.
3250 (set_ui_file_read): New function.
3251 (stdio_file_read): New function.
3252 * ui-file.h: New type ui_file_read_ftype.
3253 (set_ui_file_read): Declare.
3254 (ui_file_read): Declare.
3258 * frame.h (deprecated_unwind_get_saved_register): Rename
3259 generic_unwind_get_saved_register, update comments.
3260 * mips-tdep.c (mips_get_saved_register): Update.
3261 * frame.c (deprecated_unwind_get_saved_register): Update.
3265 * vax-tdep.c (vax_frame_locals_address): Delete function.
3266 (vax_gdbarch_init): Do not set frame_locals_address.
3267 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3268 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3269 * s390-tdep.c (s390_frame_args_address): Delete function.
3270 (s390_gdbarch_init): Do not set frame_args_address or
3271 frame_locals_address.
3272 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3273 (ns32k_gdbarch_init): Do not set frame_locals_address.
3274 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3275 (hppa_frame_locals_address): Delete function.
3276 (hppa_gdbarch_init): Do not set frame_args_address, or
3277 frame_locals_address.
3278 * arm-tdep.c (arm_frame_args_address): Delete.
3279 (arm_frame_locals_address): Delete.
3280 (arm_gdbarch_init): Do not set frame_args_address, or
3281 frame_locals_address.
3285 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3286 * gdbarch.h, gdbarch.c: Re-generate.
3287 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3288 * arch-utils.c (frame_num_args_unknown): Delete function.
3289 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3290 (frame_info): Use FRAME_NUM_ARGS_P.
3291 * arm-tdep.c (arm_frame_num_args): Delete function.
3292 (arm_gdbarch_init): Do not set frame_num_args.
3293 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3294 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3295 (hppa_gdbarch_init): Do not set frame_num_args.
3296 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3298 frame_num_args to default frame_num_args_unknown.
3299 * v850-tdep.c (v850_gdbarch_init): Ditto.
3300 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3301 * sh-tdep.c (sh_gdbarch_init): Ditto.
3302 * s390-tdep.c (s390_gdbarch_init): Ditto.
3303 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3304 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3305 * mips-tdep.c (mips_gdbarch_init): Ditto.
3306 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3307 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3308 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3309 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3310 * i386-tdep.c (i386_gdbarch_init): Ditto.
3311 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3312 * frv-tdep.c (frv_gdbarch_init): Ditto.
3313 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3314 * cris-tdep.c (cris_gdbarch_init): Ditto.
3315 * avr-tdep.c (avr_gdbarch_init): Ditto.
3316 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3320 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3321 (print_frame_args): Moved to "stack.c".
3322 * stack.c: Include "gdb_assert.h".
3323 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3324 (print_frame_args): Moved from "printcmd.c".
3325 * frame.h (print_frame_args): Delete declaration.
3326 * Makefile.in (stack.o): Update dependencies.
3330 * frame.c (get_prev_frame): Remove reference to
3331 frame_args_address_correct in comments.
3332 * frame-base.c (default_frame_args_address): Delete code
3333 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3334 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3335 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3336 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3337 (vax_frame_args_address_correct): Delete declaration.
3341 * gdbarch.sh (UNWIND_SP): Add.
3342 * gdbarch.h, gdbarch.c: Re-generate.
3343 * frame.c (frame_sp_unwind): New function.
3344 (get_frame_sp): New function.
3345 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3346 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3347 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3349 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3350 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3354 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3357 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3358 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3359 * config/m68k/tm-sun3.h: Update.
3360 * config/m68k/tm-m68klynx.h: Update.
3361 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3363 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3364 trad_frame". Update comments.
3365 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3366 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3367 (trad_frame_register_value, trad_frame_prev_register): Update.
3371 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3372 from GCC's acinclude.m4.
3373 * configure.in: Check for getopt's delcaration.
3374 * aclocal.m4, config.in, configure: Re-generate.
3375 * main.c (error_init): Delete declaration.
3376 * defs.h (error_init): Declare.
3377 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3378 (rs6000_convert_from_func_ptr_addr): Make static.
3379 (_initialize_rs6000_tdep): Add declaration.
3380 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3381 (show_commands, set_verbose, show_history): Delete declaration.
3382 * top.h (set_verbose): Add declaration.
3383 (show_history, set_history, show_commands): Add declaration.
3384 (do_restore_instream_cleanup): Add declaration.
3385 * objc-lang.c (specialcmp): Make static.
3386 (print_object_command): Make static.
3387 (find_objc_msgsend): Make static.
3388 (find_objc_msgcall_submethod_helper): Make static.
3389 (find_objc_msgcall_submethod): Make static.
3390 (_initialize_objc_language): Add declaration.
3391 (find_implementation_from_class): Make static.
3392 (find_implementation): Make static.
3393 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3394 * objc-lang.h (lookup_struct_typedef): Add declaration.
3395 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3396 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3397 (do_restore_user_call_depth): Make static.
3398 (do_restore_instream_cleanup): Delete declaration.
3399 (dont_repeat): Delete declaration.
3400 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3401 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3402 * reggroups.c (_initialize_reggroup): Add declaration.
3403 * cp-support.c (_initialize_cp_support): Add declaration.
3404 * cp-abi.c (_initialize_cp_abi): Add declaration.
3405 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3406 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3407 (_initialize_gnu_v3_abi): Add declaration.
3408 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3409 (_initialize_gnu_v2_abi): Add declaration.
3410 * frame-base.c (_initialize_frame_base): Add declaration.
3411 * doublest.c (floatformat_from_length): Make static.
3412 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3413 * frame.c (create_sentinel_frame): Make static.
3414 (_initialize_frame): Add declaration.
3415 * top.c (do_catch_errors): Make static.
3416 (gdb_rl_operate_and_get_next_completion): Make static.
3417 * typeprint.c: Include "typeprint.h".
3418 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3419 (sentinel_frame_this_id): Make static.
3420 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3421 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3422 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3423 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3424 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3425 * maint.c (maintenance_print_architecture): Make static.
3426 * signals/signals.c (_initialize_signals): Add declaration.
3427 * std-regs.c (_initialize_frame_reg): Add declaration.
3428 * jv-exp.y (push_variable): ISO C definition.
3429 (push_qualified_expression_name): Ditto.
3430 * memattr.c (_initialize_mem): Add declaration.
3431 * remote.c (remote_check_watch_resources): Make static.
3432 (remote_stopped_by_watchpoint): Make static.
3433 (remote_stopped_data_address): Make static.
3434 * d10v-tdep.c (nr_dmap_regs): Make static.
3435 (a0_regnum): Make static.
3436 (d10v_frame_unwind_cache): Make static.
3437 (d10v_frame_p): Make static.
3438 * osabi.c (show_osabi): Make static.
3439 (_initialize_gdb_osabi): Add extern declaration.
3440 * gdbtypes.c (make_qualified_type): Make static.
3441 (safe_parse_type): Make static.
3442 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3443 * macrotab.c (macro_bcache_free): Make static.
3444 * interps.c (interp_set_quiet): Make static.
3445 (interpreter_exec_cmd): Make static.
3446 * stack.h (select_frame_command): New file.
3447 * stack.c: Include "stack.h".
3448 (select_frame_command_wrapper): Delete function.
3449 (select_frame_command): Make global.
3450 * infcall.c: Include "infcall.h".
3451 * linespec.c: Include "linespec.h".
3452 * symfile.c (sections_overlap): Make static.
3453 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3454 * charset.c (_initialize_charset): Add missing prototype.
3455 * regcache.c (init_legacy_regcache_descr): Make static.
3456 (do_regcache_xfree): Make static.
3457 (regcache_xfer_part): Make static.
3458 (_initialize_regcache): Add missing prototype.
3459 * breakpoint.c (parse_breakpoint_sals): Make static.
3460 (breakpoint_sals_to_pc): Make static.
3461 * interps.h (clear_interpreter_hooks): ISO C declaration.
3462 * Makefile.in (stack_h): Define.
3463 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3464 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3468 * Makefile.in (d10v-tdep.o): Update dependencies.
3469 (SFILES): Add trad-frame.c.
3470 (trad_frame_h): Define.
3471 (COMMON_OBS): Add trad-frame.o.
3472 (trad-frame.o): Specify dependencies.
3473 * d10v-tdep.c: Include "trad-frame.h".
3474 (saved_regs_unwinder): Delete function.
3475 (d10v_frame_prev_register): Use trad_frame_prev_register.
3476 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3477 trad_frame", delete "regs" and "prev_sp".
3478 (prologue_find_regs): Use trad-frame.
3479 * trad-frame.h, trad-frame.c: New files.
3483 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3487 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3488 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3489 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3490 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3491 resolve_msgsend_super, resolve_msgsend_super_stret):
3496 * symfile.h: Re-indent, clean up comments.
3500 * inferior.h (deprecated_write_sp): Replace
3501 generic_target_write_sp.
3502 * regcache.c (deprecated_write_sp): Replace
3503 generic_target_write_sp.
3504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3505 * vax-tdep.c (vax_gdbarch_init): Update.
3506 * v850-tdep.c (v850_gdbarch_init): Update.
3507 * sparc-tdep.c (sparc_gdbarch_init): Update.
3508 * sh-tdep.c (sh_gdbarch_init): Update.
3509 * s390-tdep.c (s390_gdbarch_init): Update.
3510 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3511 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3512 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3513 * mcore-tdep.c (mcore_gdbarch_init): Update.
3514 * m68k-tdep.c (m68k_gdbarch_init): Update.
3515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3516 * ia64-tdep.c (ia64_gdbarch_init): Update.
3517 * h8300-tdep.c (h8300_gdbarch_init): Update.
3518 * frv-tdep.c (frv_gdbarch_init): Update.
3519 * cris-tdep.c (cris_gdbarch_init): Update.
3520 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3524 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3525 Assert that PC_REGNUM is valid.
3526 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3530 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3531 * gdbarch.h, gdbarch.c: Regenerate.
3532 * mn10300-tdep.c: Include "gdb_assert.h".
3533 (mn10300_read_fp): New function.
3534 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3535 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3536 * ia64-tdep.c: Include "gdb_assert.h".
3537 (ia64_read_fp): New function.
3538 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3539 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3540 * regcache.c (generic_target_read_sp): Delete function.
3541 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3542 * inferior.h (generic_target_read_sp): Delete declaration.
3543 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3544 generic_target_read_sp.
3545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3546 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3547 * sh-tdep.c (sh_gdbarch_init): Ditto.
3548 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3549 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3553 * gdbarch.sh: Comment each field of startup_gdbarch.
3554 * gdbarch.h, gdbarch.c: Re-generate.
3558 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3559 * gdbarch.h, gdbarch.c: Re-generate.
3560 * regcache.c: Update comments on read_pc et.al.
3561 (generic_target_read_pc): Delete function.
3562 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3563 * inferior.h (generic_target_read_pc): Delete declaration.
3564 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3565 generic_target_read_pc.
3566 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3567 * sh-tdep.c (sh_gdbarch_init): Ditto.
3568 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3573 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3574 "index" with "special_local_sect". Use strcmp instead of STREQ.
3575 Append period to coments.
3579 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3580 (elfstab_offset_sections): Likewise.
3581 * gdb-stabs.h (stab_section_info): Likewise.
3582 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3583 * objfiles.c (objfile_relocate): Likewise.
3584 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3585 * remote.c (get_offsets): Likewise.
3586 (remote_cisco_objfile_relocate): Likewise.
3587 * somread.c (som_symfile_offsets): Likewise.
3588 * symfile.c (alloc_section_addr_info): New function.
3589 (build_section_addr_info_from_section_tab): Use it.
3590 (free_section_addr_info): Adjust.
3591 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3592 (syms_from_objfile): Allocate local_addr dynamically.
3593 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3595 (add_symbol_file_command): Allocate sect_opts dynamically.
3596 (reread_symbols): Avoid use of SECT_OFF_MAX.
3597 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3598 (alloc_section_addr_info): Declare it.
3599 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3600 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3602 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3606 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3607 (d10v_frame_unwind_cache): Do not set "return_pc".
3611 * h8300-tdep.c: Make tidy (long lines).
3615 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3616 to regcache_collect().
3620 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3621 pc_in_sigtramp multiarch method.
3622 (hppa_hpux_som_init_abi): Use it.
3623 (hppa_hpux_elf_init_abi): Likewise.
3624 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3625 macro has been multiarched.
3626 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3627 macro here, as hppa64 isn't multiarched yet.
3631 * Makefile.in (value_h): Add $(frame_h).
3632 * value.h: Include "frame.h".
3633 (struct value): Replace "frame_addr" with "frame_id".
3634 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3635 * values.c (allocate_value): Use VALUE_FRAME_ID.
3636 (value_copy): Use VALUE_FRAME_ID.
3637 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3638 * valops.c (value_assign): Update. Use frame_find_by_id.
3642 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3647 * thread-db.c (check_event): For create/death event breakpoints,
3648 loop through all messages to ensure that we read the message
3649 corresponding to the breakpoint we are at.
3653 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3657 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3658 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3659 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3660 when handling .eh_frame sections.
3664 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3665 prepare_to_proceed procedure instead of the hppa-specific one.
3666 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3670 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3671 * config.in: Regenerated.
3672 * configure.in: Add test for syscall function and check for
3673 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3674 * configure: Regenerated.
3675 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3677 (kill_lwp): New function that uses tkill syscall or
3678 uses kill, depending on whether threading model is nptl or not.
3679 All callers of kill() changed to use kill_lwp().
3680 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3681 see if all threads have already exited in the nptl model.
3682 (stop_and_resume_callback): New callback function used by the
3683 lin_lwp_wait thread exit handling code.
3684 (stop_wait_callback): Check for threads already having exited and
3685 delete such threads fromt the lwp list when discovered.
3686 (stop_callback): Don't assert retcode of kill call.
3689 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3694 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3695 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3696 (alpha_sigtramp_frame_prev_register): Likewise.
3697 (alpha_heuristic_frame_prev_register): Likewise.
3698 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3700 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3701 alpha-specific register id names.
3702 (alpha_mdebug_frame_unwind_cache): Likewise.
3703 (alpha_mdebug_frame_prev_register): Likewise.
3707 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3708 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3709 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3710 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3712 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3713 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3714 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3716 * alpha-linux-tdep.c: Remove unnecessary includes.
3717 * Makefile.in (alpha-linux-tdep.o): Update.
3721 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3722 (alphabsd_fill_fpreg): Likewise.
3726 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3727 references to struct frame_info fields by calls to the equivalent
3728 accessors. Necessary now that frame_info is opaque.
3732 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3733 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3734 structure, field no longer exists.
3738 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3739 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3743 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3744 references to struct frame_info fields by calls to the equivalent
3745 accessors. Necessary now that frame_info is opaque.
3749 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3750 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3751 structure, field no longer exists.
3755 * remote.c (init_remote_state): Compute sizeof_g_packet by
3756 accumulation of the size of all registers instead of blindly using
3757 DEPRECATED_REGISTER_BYTES.
3761 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3762 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3767 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3768 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3772 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3773 (sparc_convert_to_raw): Delete function.
3774 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3775 register_convert_to_virtual.
3779 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3780 layer if not dealing with a statically-linked threaded program.
3784 * solib.c (solib_open): Update comment to reflect actual search order.
3788 * frame.c (get_frame_memory_signed): New function.
3789 (get_frame_memory, get_frame_memory_unsigned): New function.
3790 (get_frame_arch): New function.
3791 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3792 (get_frame_memory, get_frame_unsigned_memory): Declare.
3793 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3794 get_frame_memory_unsigned and get_frame_arch.
3795 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3799 * MAINTAINERS (write after approval): Add myself.
3803 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3804 elements of gregset_t are 64 bits each, but access registers
3805 are still 32 bits, so they're packed two per gregset_t
3806 element. Unpack/pack them properly.
3810 * linespec.c (find_methods): Break out code into
3811 add_matching_methods and add_constructors.
3812 (add_matching_methods): New.
3813 (add_constructors): Ditto.
3817 * sparc-tdep.c (sparc_print_registers): Delete call to
3818 REGISTER_CONVERTIBLE.
3819 (sparc_gdbarch_init): Do not set register_convertible.
3820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3821 * frv-tdep.c (frv_gdbarch_init): Ditto.
3822 * cris-tdep.c (cris_gdbarch_init): Ditto.
3826 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3827 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3828 (syms_from_objfile): Ditto.
3832 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3833 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3837 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3838 a member of all_reggroup.
3842 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3843 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3844 (alpha_lds, alpha_sts): New.
3845 (alpha_convert_register_p): Change from _register_convertible.
3846 (alpha_register_to_value): Change from _convert_to_virtual;
3847 restructure and fail for type sizes other than 4 or 8.
3848 (alpha_value_to_register): Similarly.
3849 (alpha_extract_return_value): Use alpha_sts.
3850 (alpha_store_return_value): Use alpha_lds.
3851 (alpha_gdbarch_init): Update hooks.
3855 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3857 (alpha_sigtramp_register_address): Likewise.
3861 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3862 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3863 * alpha-tdep.h: Declare them.
3865 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3866 Remove zerobuf. Don't error on UNIQUE.
3867 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3868 (ALPHA_REGSET_UNIQUE): Provide default.
3869 (supply_gregset): Use alpha_supply_int_regs.
3870 (fill_gregset): Use alpha_fill_int_regs.
3871 (supply_fpregset): Use alpha_supply_fp_regs.
3872 (fill_fpregset): Use alpha_fill_fp_regs.
3873 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3874 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3875 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3876 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3877 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3878 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3882 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3884 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3885 (alpha_store_return_value): Likewise.
3889 * block.c (contained_in): Add 'const' to arguments.
3890 (block_function): Ditto.
3891 * block.h: Update declarations for block_function and
3896 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3897 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3898 * p-valprint.c (pascal_val_print): Ditto.
3899 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3903 * alpha-tdep.c (alpha_push_dummy_call): Use
3904 builtin_type_ieee_double_little instead of builtin_type_double.
3906 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3907 sign-extension of 32-bit values.
3908 (alpha_store_return_value): Similarly.
3910 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3911 (alpha_extract_return_value): Likewise.
3912 (alpha_store_return_value): Likewise.
3914 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3915 (alpha_store_return_value): Error on IEEE Quad floats.
3917 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3918 (alpha_extract_struct_value_address): Likewise.
3919 (alpha_store_return_value): Likewise.
3920 (alpha_store_struct_return): Remove.
3921 (alpha_gdbarch_init): Update hook registration to match.
3923 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3924 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3925 macros where appropriate.
3926 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3927 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3929 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3930 for SP, GP; void_func_ptr for PC; non-language-specific types
3932 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3936 * top.h (lim_at_start): Declare.
3937 * main.c (captured_main): Set it.
3938 * top.c (lim_at_start): Define.
3939 (command_loop): Use it instead of &environ.
3940 * event-top.c (command_handler): Likewise.
3944 * mipsnbsd-tdep.c: Update copyright years.
3945 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3949 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3950 (alpha-linux-tdep.o): Update dependencies.
3951 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3952 * alpha-mdebug-tdep.c: Remove unneeded includes.
3956 * alpha-tdep.c (alpha_register_reggroup_p): New.
3957 (alpha_gdbarch_init): Register it.
3961 * dwarfread.c: Eliminate "register"
3962 (decode_die_type): Eliminate assignment within "if".
3963 (struct_type, decode_array_element_type): Ditto.
3964 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3965 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3966 (decode_modified_type, completedieinfo): Ditto.
3967 * block.c: Eliminate "register".
3968 (blockvector_for_pc_sect): Eliminate assignment within "if".
3969 * cp-support.h (struct symbol): Opaque declaration.
3970 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3974 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3975 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3979 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3980 * gdbarch.[ch]: Regenerate.
3981 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3982 (hppa_gdbarch_init): Set it in the gdbarch vector.
3983 * i386-tdep.c (i386_fetch_pointer_argument): New
3984 (i386_gdbarch_init): Set it into gdbarch.
3985 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3986 (rs6000_gdbarch_init): Set it in gdbarch.
3987 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3988 (sparc_gdbarch_init): Set it in gdbarch.
3992 * defs.h (extract_address): Delete declaration.
3993 * findvar.c (extract_address): Delete function.
3994 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3995 extract_address with the inline equivalent,
3996 extract_unsigned_integer.
3997 (xstormy16_extract_struct_value_address): Ditto.
3998 (xstormy16_pointer_to_address): Ditto.
3999 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4000 * v850-tdep.c (v850_push_arguments): Ditto.
4001 (v850_extract_return_value): Ditto.
4002 (v850_extract_struct_value_address): Ditto.
4003 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4004 (sparcnbsd_get_longjmp_target_64): Ditto.
4005 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4006 (get_longjmp_target): Ditto.
4007 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4008 (sh64_extract_struct_value_address): Ditto.
4009 (sh_push_arguments): Ditto.
4010 (sh64_push_arguments): Ditto.
4011 * remote-vxsparc.c (vx_read_register): Ditto.
4012 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4013 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4014 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4015 * mipsv4-nat.c (get_longjmp_target): Ditto.
4016 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4017 * mips-nat.c (get_longjmp_target): Ditto.
4018 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4019 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4020 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4021 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4022 * irix5-nat.c (get_longjmp_target): Ditto.
4023 * irix4-nat.c (get_longjmp_target): Ditto.
4024 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4025 (ia64_push_arguments): Ditto.
4026 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4027 * h8300-tdep.c (h8300_push_arguments): Ditto.
4028 (h8300_store_return_value): Ditto.
4029 (h8300_extract_struct_value_address): Ditto.
4030 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4031 (frv_push_arguments): Ditto.
4032 * avr-tdep.c (avr_pointer_to_address): Ditto.
4033 (avr_push_arguments): Ditto.
4034 * arm-tdep.c (arm_push_dummy_call): Ditto.
4035 (arm_get_longjmp_target): Ditto.
4036 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4037 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4038 (alpha_get_longjmp_target): Ditto.
4040 * solib-irix.c (extract_mips_address): Inline extract_address,
4041 replacing it with extract_signed_integer.
4042 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4043 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4044 (first_link_map_member, open_symbol_file_object): Ditto.
4045 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4046 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4047 (LM_NEXT, LM_NAME): Ditto.
4051 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4052 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4053 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4054 (alpha_cannot_store_register): Likewise.
4055 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4056 * alpha-nat.c (supply_gregset): Likewise.
4057 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4061 * infcall.c (call_function_by_hand): Update comment on
4062 DEPRECATED_DUMMY_WRITE_SP.
4064 * mips-tdep.c (mips_gdbarch_init): Do not set
4065 deprecated_dummy_write_sp.
4066 (mips_eabi_push_dummy_call): Set the SP register.
4067 (mips_o64_push_dummy_call): Set the SP register.
4068 (mips_o32_push_dummy_call): Set the SP register.
4069 (mips_n32n64_push_dummy_call): Set the SP register.
4073 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4074 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4075 (supply_gregset): Likewise.
4076 * alpha-tdep.c (alpha_store_return_value): Likewise.
4077 (alpha_get_longjmp_target): Likewise.
4078 (alpha_register_name): Constify array.
4079 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4080 deprecated_register_size, deprecated_register_bytes,
4081 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4082 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4083 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4087 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4088 from arg_reg_buffer to regcache to avoid double conversion.
4092 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4094 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4095 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4099 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4100 (decode_frame_entry): Set it. Skip FDE augmentation.
4104 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4105 not overlapping PC_REGNUM.
4109 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4110 alpha_push_arguments. Don't dump argument register data to
4111 the target stack. Fix float and 128-bit long double semantics.
4112 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4113 (alpha_fix_call_dummy): Remove.
4114 (alpha_call_dummy_words): Remove.
4115 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4119 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4123 * mips-tdep.c (is_mips16_addr): New function.
4124 (make_mips16_addr, unmake_mips16_addr): New functions.
4125 (pc_is_mips16, mips_fetch_instruction): Use.
4126 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4127 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4128 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4129 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4131 * config/mips/tm-mips.h: Update copyright.
4132 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4133 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4134 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4135 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4136 (TM_PRINT_INSN_MACH): Delete.
4137 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4139 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4140 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4141 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4142 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4143 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4144 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4145 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4146 mips*-*-riscos* and mips*-*-sysv* onto mips.
4147 * config/mips/mips64.mt: New file.
4148 * config/mips/mips.mt: New file.
4149 * config/mips/littlemips.mt: Delete file.
4150 * config/mips/decstation.mt: Delete file.
4151 * config/mips/vr4300el.mt: Delete file.
4152 * config/mips/vr5000el.mt: Delete file.
4153 * config/mips/vr5000.mt: Delete file.
4154 * config/mips/vr4100.mt: Delete file.
4155 * config/mips/vr4xxxel.mt: Delete file.
4156 * config/mips/vr4300.mt: Delete file.
4157 * config/mips/vr4xxx.mt: Delete file.
4158 * config/mips/bigmips.mt: Delete file.
4159 * config/mips/bigmips64.mt: Delete file.
4160 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4161 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4162 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4163 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4164 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4166 * config/mips/tm-irix3.h: Ditto.
4167 * config/mips/tm-mipsv4.h: Ditto.
4168 * config/mips/tm-embed.h: Ditto.
4169 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4171 * config/mips/tm-vr5000el.h: Delete file.
4172 * config/mips/tm-tx39l.h: Delete file.
4173 * config/mips/tm-vr4300el.h: Delete file.
4174 * config/mips/tm-vr4xxxel.h: Delete file.
4175 * config/mips/tm-vr4300.h: Delete file.
4176 * config/mips/tm-vr4100.h: Delete file.
4177 * config/mips/tm-vr4xxx.h: Delete file.
4178 * config/mips/tm-vr5000.h: Delete file.
4179 * config/mips/tm-embedl64.h: Delete file.
4180 * config/mips/tm-embedl.h: Delete file.
4181 * config/mips/tm-embed64.h: Delete file.
4182 * config/mips/tm-bigmips64.h: Delete file.
4183 * config/mips/tm-bigmips.h: Delete file.
4188 * shnbsd-nat.c: Include "sh-tdep.h".
4191 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4195 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4196 forward declaration.
4197 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4198 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4199 (mips_find_saved_regs): Use set_reg_offset.
4200 (mips_frame_init_saved_regs): Delete function.
4201 (mips_pop_frame): Call mips_find_saved_regs instead of
4202 DEPRECATED_FRAME_INIT_SAVED_REGS.
4206 * mips-tdep.c (mips_gdbarch_init): Do not set
4207 deprecated_max_register_raw_size, register_virtual_size, and
4208 deprecated_max_register_virtual_size.
4212 * i386-tdep.c: Include "dwarf2-frame.h".
4213 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4214 * Makefile.in (i386-tdep.o): Update dependencies.
4216 * dwarf2-frame.c, dwarf2-frame.h: New files.
4217 * Makefile.in (SFILES): Add dwarf2-frame.c.
4218 (dwarf2_frame_h): Define.
4219 (COMMON_OBS): Add dwarf2-frame.o.
4220 (dwarf2-frame.o): Add dependencies.
4224 * x86-64-linux-nat.c: Fix comment.
4228 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4231 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4232 have a sigcontext_addr handler.
4233 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4234 sigcontext_addr handler.
4238 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4239 (print_fp_register_row): Replace do_fp_register_row.
4240 (mips_print_fp_register): Add "file" and "frame" parameters.
4241 (mips_print_register): Add "file" and "frame" parameters.
4242 (mips_print_registers_info): Replace mips_do_registers_info.
4243 (mips_gdbarch_init): Set print_registers_info instead of
4244 deprecated_do_registers_info.
4245 (mips_read_fp_register_single): Add "frame" parameter.
4246 (mips_read_fp_register_double): Add "frame" parameter.
4250 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4251 Fixes a bug where GDB would print the wrong register names for
4252 targets without SSE.
4254 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4255 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4258 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4259 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4260 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4264 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4266 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4267 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4268 I386_ST0_REGNUM): Move here from...
4269 * i386-tdep.c: ... here.
4270 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4271 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4272 registers if possible.
4273 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4274 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4276 (i386bsd_sc_reg_offset): New variable.
4277 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4278 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4280 (i386fbsd_sc_reg_offset): New variable.
4281 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4283 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4285 (i386fbsd4_sc_reg_offset): New variable.
4286 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4287 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4289 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4290 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4291 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4293 (i386nbsd_sc_reg_offset): New variable.
4294 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4295 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4297 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4299 (i386obsd_sc_reg_offset): New variable.
4300 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4301 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4303 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4304 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4305 for frame pointer offset in `struct sigcontext'.
4309 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4310 architecture methods call_dummy_words, sizeof_call_dummy_words,
4311 push_return_address, store_struct_return, and fix_call_dummy. Set
4312 push_dummy_call instead of deprecated_push_arguments.
4313 (mips_store_struct_return): Delete function.
4314 (mips_fix_call_dummy): Delete function.
4315 (mips_push_return_address): Delete function.
4316 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4317 RA_REGNUM and T9_REGNUM.
4318 (mips_n32n64_push_dummy_call): Ditto for
4319 mips_n32n64_push_arguments.
4320 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4321 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4325 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4326 "dummy_addr" to "bp_addr".
4327 * infcall.c (call_function_by_hand): Pass "funaddr" to
4328 gdbarch_push_dummy_call.
4329 * gdbarch.h, gdbarch.c: Re-generate.
4330 * i386-tdep.c (i386_push_dummy_call): Update.
4331 * arm-tdep.c (arm_push_dummy_call): Update.
4332 * d10v-tdep.c (d10v_push_dummy_call): Update.
4336 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4337 variable declarations.
4338 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4339 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4340 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4341 x86_64_init_frame_pc, x86_64_init_frame_pc,
4342 x86_64_function_has_prologue): Remove prototypes.
4343 (X86_64_NUM_GREGS): New define.
4344 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4345 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4346 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4347 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4348 XMM1_REGNUM): Remove defines.
4349 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4350 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4351 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4352 X86_64_XMM1_REGNUM): New defines.
4353 (struct x86_64_register_info): Renamed from `struct
4354 register_info'. Remove `size' member.
4355 (x86_64_register_info_table): Remove variable.
4356 (x86_64_register_info): New variable.
4357 (X86_64_NUM_REGS): New define.
4358 (X86_64_NUM_GREGS): Remove define.
4359 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4360 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4362 (x86_54_dwarf2_reg_to_regnum): Remove function.
4363 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4364 (x86_64_dwarf_reg_to_regnum): New function.
4365 (x86_64_register_name): Rewrite.
4366 (x86_64_register_raw_size): Remove function.
4367 (x86_64_register_byte_table): Remove variable.
4368 (x86_64_register_byte): Remove function.
4369 (x86_64_register_virtual_type): Remove function.
4370 (x86_64_register_type): New function.
4371 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4372 x86_64_register_convert_to_raw): Remove functions.
4373 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4374 (x86_64_use_struct_convention): Make static. Adjust for renamed
4376 (x86_64_frame_init_saved_regs): Remove function.
4377 (x86_64_push_arguments): Make static. Change to accept a regcache
4379 (x86_64_store_return_value, x86_64_extract_return_value): Make
4380 static. Rewrite based on i386 counterparts.
4381 (x86_64_push_dummy_call): New function.
4382 (X86_64_NUM_SAVED_REGS): New define.
4383 (x86_64_register_number): Remove function.
4384 (x86_64_store_struct_return): Remove function.
4385 (x86_64_frameless_function_invocation,
4386 x86_64_function_has_prologue): Remove functions.
4387 (PROLOG_BUFSIZE): Remove define.
4388 (struct x86_64_frame_cache): New structure.
4389 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4390 x86_64_frame_cache, x86_64_frame_this_id,
4391 x86_64_frame_prev_register, x86_64_frame_p,
4392 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4393 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4395 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4397 (x86_64_skip_prologue): Rewrite in terms of
4398 x86_64_analyze_prologue.
4399 (x86_64_frame_base_address): New function.
4400 (x86_64_frame_base): New variable.
4401 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4402 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4403 set deprecated_fp_regnum, deprecated_register_size,
4404 deprecated_register_bytes, register_raw_size, register_byte,
4405 register_virtual_type, register_convertiable,
4406 register_convert_to_virtual, convert_to_raw,
4407 deprecated_get_saved_register, deprecated_target_read_fp,
4408 deprecated_push_arguments, deprecated_push_return_address,
4409 deprecated_pop_frame, deprecated_store_struct_return,
4410 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4411 frameless_function_invocation, deprecated_frame_saved_pc,
4412 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4413 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4414 deprecated_init_frame_pc and virtual_frame_pointer. Call
4415 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4416 and x86_64_frame_p. Call frame_base_set_default to register
4418 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4419 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4420 (_initialize_x86_64_tdep): Remove function.
4421 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4422 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4423 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4425 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4426 (x86_64_linux_sigcontext_addr): Rewrite.
4427 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4428 x86_64_linux_frame_saved_pc): Remove functions.
4429 (x86_64_linux_pc_in_sigtramp): Renamed from
4430 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4432 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4434 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4435 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4436 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4437 (x86_64_regmap): Rename to regmap.
4438 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4440 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4442 (x86_64_fxsave_offset): Remove function.
4443 (supply_fpregset): Simply call x86_64_supply_fxsave.
4444 (fill_fpregset): Simply call x86_64_fill_fxsave.
4445 (fetch_inferior_registers, store_inferior_registers): Avoid
4446 asignment in if-statement.
4447 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4448 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4449 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4450 (fetch_core_registers): Remove function.
4451 (linux_elf_core_fns): Remove.
4452 (offsetoff): Don't define.
4453 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4454 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4455 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4457 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4458 protection against multiple includes instead of NM_X86_64_h. Add
4459 various comments. Include "config/nm-linux.h". Don't include
4461 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4462 GET_THREAD_SIGNALS): Remove defines.
4463 (x86_64_register_u_addr, kernel_u_size,
4464 lin_thread_get_thread_signals): Remove prototypes.
4465 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4466 [HAVE_LINK_H]: Don't include "solib.h".
4467 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4468 * config/i386/tm-x86-64linux.h: Fix comments.
4469 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4470 x86-64-tdep.o): Update dependencies.
4474 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4475 Change parameter type to a "struct regcache *".
4477 * gdbarch.sh: Regardless of the multi-arch level, always define
4478 the macro when not already defined.
4479 * gdbarch.h, gdbarch.c: Re-generate.
4483 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4484 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4485 (alpha_mdebug_frame_this_id): Likewise.
4486 (alpha_mdebug_frame_prev_register): Likewise.
4487 (alpha_mdebug_frame_base_address): Likewise.
4488 (alpha_mdebug_frame_locals_address): Likewise.
4489 (alpha_mdebug_frame_args_address): Likewise.
4490 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4491 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4492 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4494 (alpha_heuristic_frame_this_id): Make static.
4495 (alpha_heuristic_frame_prev_register): Likewise.
4496 (alpha_heuristic_frame_base_address): Likewise.
4497 * alpha-tdep.h: Update.
4501 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4502 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4504 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4505 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4506 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4507 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4508 I386_ST0_REGNUM): New defines.
4509 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4510 codestream_get): Remove define.
4511 (codestream_next_addr, condestream_addr, condestream_buf,
4512 codestream_off, codestream_cnt): Remove variables.
4513 (codestream_fill, codestream_seek, codestream_read): Remove
4515 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4517 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4518 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4519 i386_frame_saved_pc, i386_saved_pc_after_call,
4520 i386_frame_num_args, i386_frame_init_saved_regs,
4521 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4522 i386_push_arguments): Remove functions.
4523 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4524 functionality. Use i386_analyze_prologue instead of
4525 i386_get_frame_setup.
4526 (I386_NUM_SAVED_REGS): New define.
4527 (struct i386_frame_cache): New structure.
4528 (i386_alloc_frame_cache, i386_analyze_struct_return,
4529 i386_skip_probe, i386_analyze_frame_setup,
4530 i386_analyze_register_saves, i386_analyze_prologue,
4531 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4532 i386_frame_prev_register, i386_sigtramp_frame_cache,
4533 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4534 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4535 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4537 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4539 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4540 I386_EAX_REGNUM and I386_EDX_REGNUM.
4541 (i386_extract_return_value, i386_store_return_value): Use
4542 I386_ST0_REGNUM where appropriate.
4543 (i386_extract_struct_value_address): Rewrite to use extract_address.
4544 (i386_svr4_pc_in_sigtramp): Add comment.
4545 (i386_svr4_sigcontext_addr): Rewrite.
4546 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4548 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4549 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4550 of new defines. Set push_dummy_call, don't set
4551 deprecated_push_arguments, deprecated_push_return_address,
4552 deprecated_pop_frame. Don't set parm_boundary. Don't set
4553 deprecated_frame_chain, deprecated_frame_saved_pc,
4554 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4555 save_dummy_frame_tos, unwind_pc. Call
4556 frame_unwind_append_predicate and frame_base_set_default. Don't
4557 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4558 Don't set frameless_function_invocation. Don't set
4559 deprecated_register_bytes, deprecated_register_size,
4560 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4561 * i386-linux-tdep.c: Fix formatting in some comments.
4562 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4563 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4564 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4565 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4566 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4567 redundant parentheses.
4568 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4569 (i386_linux_sigcontext_addr): Use it. Rewrite.
4570 (find_minsym_and_objfile): Change name of second argument.
4571 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4572 changed. Use frame_pc_unwind instead of
4573 DEPRECATED_SAVED_PC_AFTER_CALL.
4574 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4575 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4576 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4578 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4580 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4581 (_initialize_i386_cygwin_tdep): New prototype.
4582 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4583 deprecated_frame_chain_valid.
4584 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4585 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4586 Rely on the SVR4 defaults.
4587 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4588 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4592 * infcall.c (call_function_by_hand): Always call
4593 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4597 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4602 Use gdbarch methods for solib stuff on PowerPC Linux.
4603 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4604 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4606 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4607 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4608 giving the same effect as the #definitions above.
4612 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4613 (find_implementation_from_class): Replace it with the standard
4614 case i.e. do nothing.
4618 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4619 (alpha_linux_sigtramp_offset): Use it. Make static.
4620 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4621 update for new frame model.
4622 * alpha-mdebug-tdep.c: New file.
4623 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4624 (alpha_osf1_init_abi): Install it.
4625 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4626 (linked_proc_desc_table): Remove.
4627 (alpha_frame_past_sigtramp_frame): Remove.
4628 (alpha_dynamic_sigtramp_offset): Remove.
4629 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4630 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4631 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4632 (push_sigtramp_desc): Remove.
4633 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4634 (alpha_cannot_store_register): Likewise.
4635 (alpha_sigcontext_addr): Remove.
4636 (alpha_find_saved_regs): Remove.
4637 (alpha_frame_init_saved_regs): Remove.
4638 (alpha_init_frame_pc_first): Remove.
4639 (read_next_frame_reg): Remove.
4640 (alpha_frame_saved_pc): Remove.
4641 (alpha_saved_pc_after_call): Remove.
4642 (temp_proc_desc, temp_saved_regs): Remove.
4643 (alpha_about_to_return): Remove.
4644 (cached_proc_desc): Remove.
4645 (alpha_frame_chain): Remove.
4646 (alpha_print_extra_frame_info): Remove.
4647 (alpha_init_extra_frame_info): Remove.
4648 (alpha_frame_locals_address): Remove.
4649 (alpha_frame_args_address): Remove.
4650 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4651 (alpha_push_dummy_frame): Remove.
4652 (alpha_pop_frame): Remove.
4653 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4654 (alpha_read_insn): New.
4655 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4656 for different insn encodings.
4657 (alpha_in_lenient_prologue): Remove.
4658 (struct alpha_sigtramp_unwind_cache): New.
4659 (alpha_sigtramp_frame_unwind_cache): New.
4660 (alpha_sigtramp_register_address): New.
4661 (alpha_sigtramp_frame_this_id): New.
4662 (alpha_sigtramp_frame_prev_register): New.
4663 (alpha_sigtramp_frame_unwind): New.
4664 (alpha_sigtramp_frame_p): New.
4665 (struct alpha_heuristic_unwind_cache): New.
4666 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4667 don't count nop insns that occur between functions.
4668 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4669 heuristic_proc_desc, but without the mdebug wrapping.
4670 (alpha_heuristic_frame_this_id): New.
4671 (alpha_heuristic_frame_prev_register): New.
4672 (alpha_heuristic_frame_unwind): New.
4673 (alpha_heuristic_frame_p): New.
4674 (alpha_heuristic_frame_base_address): New.
4675 (alpha_heuristic_frame_base): New.
4676 (alpha_unwind_dummy_id): New.
4677 (alpha_unwind_pc): New.
4678 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4679 frame related deprecated initializations; install replacements.
4680 (alpha_dump_tdep): Remove.
4681 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4682 (alpha_read_insn, alpha_after_prologue,
4683 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4684 alpha_heuristic_frame_prev_register,
4685 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4686 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4687 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4688 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4692 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4693 dependant on the availability of ASSERT_FUNCTION.
4694 (ASSERT_FUNCTION): Do not define when there is no function name.
4699 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4703 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4704 argument to ptrace to int; the system headers should give it the
4705 right type, and pointers don't fit in ints on powerpc64-*-*.
4709 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4714 * stabsread.c (dbx_lookup_type): Make static.
4716 (add_undefined_type): Ditto.
4717 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4722 * hpread.c (hpread_has_name): Make static.
4723 (hpread_psymtab_to_symtab): Ditto.
4724 (file_exists): Ditto.
4725 (hpread_call_pxdb): Ditto.
4726 (hpread_pxdb_needed): Ditto.
4727 (hpread_quick_traverse): Ditto.
4728 (hpread_get_header): Ditto.
4729 (hpread_get_lntt): Ditto.
4730 (hpread_get_slt): Ditto.
4735 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4736 stack_align and deprecated_extra_stack_alignment_needed.
4737 (m68k_stack_align): Delete.
4739 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4740 (m68k_register_virtual_size): Likewise.
4741 (altos_skip_prologue): Remove obsolete function.
4742 (isi_frame_num_args): Likewise.
4743 (news_frame_num_args): Likewise.
4744 (m68k_fix_call_dummy): Make static.
4745 (m68k_push_dummy_frame): Likewise.
4746 (m68k_pop_frame): Likewise.
4747 (m68k_skip_prologue): Likewise.
4748 (m68k_frame_init_saved_regs): Likewise.
4749 (m68k_saved_pc_after_call): Likewise.
4750 (m68k_get_longjmp_target): Make multi-arch.
4751 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4752 structure. Register m68k_get_longjmp_target if enabled.
4753 * m68k-tdep.h (struct gdbarch_tdep): Define.
4754 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4756 * Makefile.in (config.status): Also depend on configure.tgt
4758 (m68klinux-tdep.o): Update dependencies.
4759 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4760 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4761 (M68K_LINUX_JB_PC): Define.
4762 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4763 and take additional parameter.
4764 (m68k_linux_sigtramp_saved_pc): Update.
4765 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4766 m68k_linux_pc_in_sigtramp, in_plt_section,
4767 find_solib_trampoline_target.
4768 * config/m68k/tm-linux.h: Don't include any tm headers.
4769 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4770 (JB_ELEMENT_SIZE): Likewise.
4772 (GET_LONGJMP_TARGET): Likewise.
4773 (IN_SIGTRAMP): Likewise.
4774 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4778 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4779 (sparc32_push_arguments): Re-implement by calling
4780 sparc32_do_push_arguments.
4784 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4785 SPARC_O1_REGNUM): New defines.
4786 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4787 (sparc32_store_return_value): New function.
4788 (sparc_extract_struct_value_address): Rewrite to operate on a
4790 (sparc_gdbarch_init): Don't set
4791 deprecated_extract_struct_value_address. Set
4792 extract_struct_value_address instead. Don't set
4793 deprecated_extract_return_value and deprecated_store_return_value
4794 for 32-bit targets. Set extract_return_value and
4795 store_return_value instead.
4796 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4797 DEPRECTAED_EXTRACT_RETURN_VALUE,
4798 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4799 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4800 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4801 (sparc_store_return_value): Remove prototype.
4802 (sparc32_store_return_value): New prototype.
4803 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4808 * sparcnbsd-tdep.c: Include "gdb_string.h".
4812 * p-valprint.c (pascal_val_print): Replace extract_address with
4813 the inline equivalent extract_unsigned_integer.
4814 * jv-valprint.c (java_value_print): Ditto.
4815 * ada-valprint.c (ada_val_print_1): Ditto.
4816 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4820 * blockframe.c (frameless_look_for_prologue): Remove unused
4821 after_prologue variable.
4825 * blockframe.c (get_pc_function_start): Rewrite to avoid
4826 asignments in if-statements.
4831 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4832 files, don't relocate absolute symbols (and do use mst_abs).
4836 * objc-lang.c: Include "gdb_assert.h".
4837 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4838 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4839 (gdb_check, gdb_check_fatal): Delete functions.
4840 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4842 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4843 * Makefile.in (objc-lang.o): Update dependencies.
4847 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4848 with fprintf_filtered, not fprintf_unfiltered.
4852 * stack.c (frame_info): Inline extract_address, replacing it with
4853 extract_unsigned_integer.
4854 * findvar.c (unsigned_pointer_to_address): Ditto.
4855 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4856 * dwarf2expr.c (dwarf2_read_address): Ditto.
4857 * frame.c (frame_pc_unwind): Update comment.
4858 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4862 * infptrace.c (detach): Call print_sys_errmsg rather than
4863 perror_with_name to issue warning message when errno is non-zero
4864 after calling ptrace detach.
4868 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4869 macro definitions from here...
4870 * hppa-tdep.c: ...to there.
4874 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4875 register_ptrace_addr(). Fix all callers.
4879 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4881 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4883 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4884 (_initialize_m68k_linux_tdep): New function.
4885 (m68k_linux_frame_saved_pc): Make static.
4886 (m68k_linux_extract_return_value): Likewise.
4887 (m68k_linux_store_return_value): Likewise.
4888 (m68k_linux_extract_struct_value_address): Likewise.
4889 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4891 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4892 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4893 (DEPRECATED_FRAME_SAVED_PC): Remove.
4897 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4898 regset numbering rather than our own.
4902 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4906 Partial fix for PR c++/827.
4907 * cp-support.h: Include symtab.h.
4908 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4909 * cp-namespace.c: Update contributors.
4910 (cp_lookup_symbol_nonlocal): New.
4911 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4912 (lookup_symbol_file): Ditto.
4913 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4914 * block.h: Declare block_scope, block_using, block_global_block.
4915 * block.c (block_scope): New.
4916 (block_using, block_global_block): Ditto.
4917 * Makefile.in (cp_support_h): Depend on symtab_h.
4918 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4922 * language.h (struct language_defn): Add 'la_value_of_this'
4923 and 'la_lookup_symbol_nonlocal' members.
4924 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4925 lookup_symbol_static, lookup_symbol_global,
4926 lookup_symbol_aux_block.
4927 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4928 if we should search fields of this and how to do static/global
4930 (lookup_symbol_aux_block): Make extern.
4931 (basic_lookup_symbol_nonlocal): New.
4932 (lookup_symbol_static, lookup_symbol_global): Ditto.
4933 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4934 'la_lookup_symbol_nonlocal' members.
4935 * c-lang.c (c_language_defn, cplus_language_defn)
4936 (asm_language_defn, minimal_language_defn): Ditto.
4937 * jv-lang.c (java_language_defn): Ditto.
4938 * language.c (unknown_language_defn, auto_language_defn)
4939 (local_language_defn): Ditto.
4940 * m2-lang.c (m2_language_defn): Ditto.
4941 * objc-lang.c (objc_language_defn): Ditto.
4942 * scm-lang.c (scm_language_defn): Ditto.
4943 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4944 * p-lang.c (pascal_language_defn): Ditto for both.
4945 * Makefile.in (f-lang.o): Depend on value_h.
4950 * block.h: Declare block_static_block.
4951 * block.c (block_static_block): New.
4952 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4953 lookup_symbol_aux_local, calling block_static_block instead.
4954 (lookup_symbol_aux_local): Delete 'static_block' argument.
4958 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4962 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4963 register numbers mapping.
4967 * symtab.c (completion_list_objc_symbol): New function.
4968 (make_symbol_completion_list): Use it to add ObjC symbols
4969 when looking though the list.
4970 (language_search_unquoted_string): New function.
4971 (make_file_symbol_completion_list): Use it.
4975 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4977 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4978 as m68k_linux_extract_return_value.
4979 (DEPRECATED_STORE_RETURN_VALUE): Define as
4980 m68k_linux_store_return_value.
4981 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4982 m68k_linux_extract_struct_value_address.
4983 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4984 get_next_frame, get_frame_base, get_frame_pc.
4985 (m68k_linux_frame_saved_pc): Use get_frame_base.
4986 (m68k_linux_extract_return_value): New function.
4987 (m68k_linux_store_return_value): New function.
4988 (m68k_linux_extract_struct_value_address): New function.
4989 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4991 * c-exp.y (typebase): Remove duplicate occurence of
4992 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4993 of lookup_signed_typename.
4997 * dwarf2loc.c (find_location_expression): Change type of second
4998 argument to `size_t *'.
4999 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5004 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5005 'linkage_name'. Add comment.
5006 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5008 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5009 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5010 (lookup_block_symbol): Ditto.
5014 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5015 * gdbarch.h, gdbarch.c: Re-generate.
5016 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5017 * TODO (REGISTER_BYTES): Delete reference.
5018 * alpha-tdep.c (alpha_gdbarch_init): Update.
5019 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5020 * x86-64-tdep.c (x86_64_init_abi): Update.
5021 * vax-tdep.c (vax_gdbarch_init): Update.
5022 * v850-tdep.c (v850_gdbarch_init): Update.
5023 * sparc-tdep.c (sparc_gdbarch_init): Update.
5024 * sh-tdep.c (sh_gdbarch_init): Update.
5025 * s390-tdep.c (s390_gdbarch_init): Update.
5026 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5027 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5028 (ns32k_gdbarch_init_32382): Update.
5029 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5030 * mcore-tdep.c (mcore_gdbarch_init): Update.
5031 * m68k-tdep.c (m68k_gdbarch_init): Update.
5032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5033 * ia64-tdep.c (ia64_gdbarch_init): Update.
5034 * i386-tdep.c (i386_gdbarch_init): Update.
5035 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5036 * hppa-tdep.c (hppa_gdbarch_init): Update.
5037 * h8300-tdep.c (h8300_gdbarch_init): Update.
5038 * frv-tdep.c (frv_gdbarch_init): Update.
5039 * cris-tdep.c (cris_gdbarch_init): Update.
5040 * avr-tdep.c (avr_gdbarch_init): Update.
5041 * arm-tdep.c (arm_gdbarch_init): Update.
5042 * sparc-tdep.c (sparc_pop_frame): Update.
5043 * rs6000-tdep.c (rs6000_pop_frame): Update.
5044 * remote.c (init_remote_state): Update.
5045 (remote_prepare_to_store): Update.
5046 * remote-vx.c (vx_prepare_to_store): Update.
5047 * remote-sds.c (sds_fetch_registers): Update.
5048 (sds_prepare_to_store): Update.
5049 * remote-array.c: Update.
5050 * regcache.c (init_legacy_regcache_descr): Update.
5051 (init_regcache_descr): Update.
5052 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5053 (mips_o64_extract_return_value): Update.
5054 * irix5-nat.c (fetch_core_registers): Update.
5055 * irix4-nat.c (fetch_core_registers): Update.
5056 * i386-tdep.h: Update.
5057 * hppa-tdep.c (pa_do_registers_info): Update.
5058 (pa_do_strcat_registers_info): Update.
5059 * cris-tdep.c (cris_register_bytes_ok): Update.
5060 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5061 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5062 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5063 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5064 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5065 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5066 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5067 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5068 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5069 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5070 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5071 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5072 (REGISTER_BYTES_OK): Update.
5073 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5074 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5078 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5079 (vax_print_insn, print_insn_arg): Remove static functions.
5080 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5081 print_insn_vax from opcodes library.
5082 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5086 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5087 * target.h (memory_breakpoint_from_pc): Delete declaration.
5088 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5089 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5090 * monitor.c (monitor_insert_breakpoint): Use
5091 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5092 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5093 * gdbarch.h, gdbarch.c: Re-generate.
5094 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5095 (sparc_gdbarch_init): Set breakpoint_from_pc to
5096 sparc_breakpoint_from_pc.
5097 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5098 (BREAKPOINT_FROM_PC): Define.
5099 (sparc_breakpoint_from_pc): Declare.
5100 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5101 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5102 (BREAKPOINT_FROM_PC): Define.
5103 (BREAKPOINT): Delete macro.
5104 * target.h: Update comment.
5105 * s390-tdep.c (s390_gdbarch_init): Update comments.
5106 * remote.c: Update comments.
5107 * remote-mips.c: Update comments.
5108 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5109 * mem-break.c: Update comment.
5110 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5111 (ia64_memory_insert_breakpoint): Update.
5112 * config/sparc/tm-sparc.h: Update comment.
5113 * config/pa/tm-hppa64.h: Update comment.
5114 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5115 (rs6000_breakpoint_from_pc): Update.
5116 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5117 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5118 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5119 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5120 (mips_breakpoint_from_pc): Update.
5121 (mips_dump_tdep): Update.
5123 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5124 * minsyms.c (lookup_minimal_symbol): Inline
5125 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5127 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5128 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5129 * p-lang.c (pascal_printstr): Ditto.
5130 * objc-lang.c (objc_printstr): Ditto.
5131 * m2-lang.c (m2_printstr): Ditto.
5132 * jv-valprint.c (java_print_value_fields): Ditto.
5133 * f-lang.c (f_printstr): Ditto.
5134 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5135 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5136 for repeat_count_threshold.
5137 * Makefile.in (cp-valprint.o): Update dependencies.
5141 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5142 (examine_prologue): Support looking through leaf functions, knowing
5143 they start with mov r2,r12. Support skipping over indirect stores
5144 of the input registers. Upon hitting a non-nop branch instruction
5145 or predicated instruction, bail out by setting lim_pc to the current
5146 pc value in the loop. At the end, if the lim_pc value is still
5147 beyond our calculated value and we have trust_limit set,
5148 use the lim_pc value.
5152 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5153 generic_find_dummy_frame.
5154 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5155 (deprecated_generic_find_dummy_frame): Update.
5156 (deprecated_read_register_dummy): Update.
5157 * frame.c (deprecated_generic_get_saved_register): Update.
5161 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5162 (avr_gdbarch_init): Set breakpoint_from_pc method.
5166 * regcache.c (build_regcache): Set deprecated_register_valid
5168 (deprecated_grub_regcache_for_register_valid): Delete function.
5169 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5175 * symtab.c (lookup_symbol_aux): Delete calls to
5176 lookup_symbol_aux_minsyms.
5177 (lookup_symbol_aux_minsyms): Comment out function and
5178 prototype. Delete lookup by mangled name.
5182 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5183 correctly indicate an empty stack and ``stack_allocated'' to the
5184 indicate the number of elements initially allocated.
5185 (dwarf_expr_grow_stack): Simplify method for computing new
5186 stack size. Don't loop infinitely if ``stack_len'' is zero.
5187 (execute_stack_op): Move ``ctx->in_reg'' initialization
5188 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5189 be used in conjuction with DW_OP_piece. Revise error message
5194 * MAINTAINERS: Update my email address.
5195 * avr-tdep.c: Ditto.
5199 * symtab.h (enum domain_enum): Rename from namespace_enum.
5200 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5201 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5202 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5203 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5204 TYPES_NAMESPACE, METHODS_NAMESPACE.
5205 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5206 (struct symbol, struct partial_symbol): Rename field
5207 'namespace_enum namespace' to 'domain_enum domain'.
5208 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5209 Delete old define kludge for namespace.
5211 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5212 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5213 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5214 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5215 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5216 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5217 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5218 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5219 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5220 occurrences of the above.
5224 * Makefile.in (install-only): Use $(SHELL) when running
5229 * MAINTAINERS (write after approval): Add myself.
5231 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5232 second and third arguments.
5233 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5234 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5238 * defs.h (store_address): Delete declaration.
5239 findvar.c (store_address): Delete function.
5240 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5241 store_unsigned_integer.
5242 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5243 * v850-tdep.c (v850_push_arguments): Ditto.
5244 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5245 * sh-tdep.c (sh64_get_saved_register): Ditto.
5246 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5247 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5248 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5249 (mips_get_saved_register): Ditto.
5250 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5251 (find_func_descr, ia64_push_arguments): Ditto.
5252 * i386-tdep.c (i386_push_arguments): Ditto.
5253 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5254 * frv-tdep.c (frv_push_arguments): Ditto.
5255 * frame.c (legacy_saved_regs_prev_register): Ditto.
5256 (deprecated_generic_get_saved_register): Ditto.
5257 * findvar.c (unsigned_address_to_pointer): Ditto.
5258 * dwarf2read.c (dwarf2_const_value): Ditto.
5259 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5260 * alpha-tdep.c (alpha_push_arguments): Ditto.
5264 * NEWS: Mention that the hppa-hpux port has been partially
5265 multiarched (32bit ABIT only, so far).
5269 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5270 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5271 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5272 sim/testsuite/sim/arm/misaligned2.ms, and
5273 sim/testsuite/sim/arm/misaligned3.ms.
5274 * disasm.h (struct ui_file): Add opaque struct declaration.
5275 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5276 * frame.h (struct ui_file): Ditto.
5280 * value.h: Pretty print.
5284 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5288 * regcache.h (max_register_size): Delete declaration.
5289 * regcache.c (max_register_size): Delete function.
5290 (struct regcache_descr): Delete field "max_register_size".
5291 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5292 registers fit in MAX_REGISTER_SIZE.
5293 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5294 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5295 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5296 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5297 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5298 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5299 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5300 * dve3900-rom.c, hppa-tdep.c: Ditto.
5304 * valops.c (push_word): Fix typo.
5308 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5309 * gdbarch.h: Re-generate.
5310 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5311 (legacy_max_register_raw_size): Delete declaration.
5312 * regcache.c (legacy_max_register_raw_size): Delete function.
5313 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5314 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5315 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5316 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5317 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5318 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5319 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5320 * findvar.c, dwarf2cfi.c: Ditto.
5324 * mips-tdep.c (read_signed_register): New function, moved to here
5326 (read_signed_register_pid): Ditto.
5327 * regcache.c (read_signed_register_pid): Delete function, moved to
5329 (read_signed_register): Ditto.
5330 * regcache.h (read_signed_register): Delete declaration.
5331 (read_signed_register_pid): Delete declaration.
5335 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5336 * gdbarch.h: Re-generate.
5337 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5338 (legacy_max_register_virtual_size): Delete declaration.
5339 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5340 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5341 * tracepoint.c (memrange_sortmerge): Ditto.
5342 * sparc-tdep.c (sparc_print_registers): Ditto.
5343 * regcache.c (legacy_max_register_virtual_size): Delete function.
5347 * fork-child.c (escape_bang_in_quoted_argument): New function.
5348 (fork_inferior): Escape '!' characters in quoted arguments
5353 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5354 the language of the CU is not currently supported by GDB.
5358 * defs.h (language): Add language_minimal enum value.
5359 * c-lang.c (minimal_language_defn): New language definition.
5360 (_initialize_c_language): Add the new minimal language to the list
5361 of languages known to GDB.
5365 * frame.c (get_frame_type): Don't attempt to lazily initialize
5366 frame's unwinder for legacy frames.
5370 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5371 and "regcache" parameters.
5372 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5376 * dwarf2read.c (dwarf_decode_lines): Only use output of
5377 check_cu_functions() when calling record_line(). Do not update
5378 the current address.
5382 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5387 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5388 'maint info symtabs' and 'maint info psymtabs'.
5389 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5390 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5391 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5392 Declarations updated.
5393 * maint.c (maintenance_list_command): Delete.
5394 (_initialize_maint_cmds): Update calls to add_cmd.
5395 * gdbcmd.h (maintenancelistlist): Delete declaration.
5396 * cli/cli-cmds.c (maintenancelistlist): Delete.
5397 (init_cmd_lists): Don't initialize it.
5398 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5402 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5404 (d10v_print_registers_info): Update.
5405 (d10v_dmap_register, d10v_imap_register): Delete functions.
5406 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5407 and "imap_register".
5408 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5409 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5410 * arch-utils.c (generic_remote_translate_xfer_address): Add
5411 "regcache" and "gdbarch" parameters.
5412 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5413 parameter. Change class to multi-arch.
5414 * gdbarch.h, gdbarch.c: Re-generate.
5415 * remote.c (remote_xfer_memory): Use
5416 gdbarch_remote_translate_xfer_address.
5420 * infrun.c (prev_pc): Move declaration ahead of proceed().
5421 (proceed): Refresh prev_pc value before resuming.
5422 (stop_stepping): Remove code to refresh prev_pc.
5426 * nto-tdep.c: Removed stray comment.
5430 * i386-nto-tdep.c: Fix old K&R function definitions.
5431 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5432 Also change add_show_from_set() call to add_setshow_cmd().
5433 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5437 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5438 (fprint_dummy_frames): New function.
5439 (maintenance_print_dummy_frames): New function.
5440 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5441 * frame.c (fprint_frame_id): Make global.
5442 * frame.h (fprint_frame_id): Declare.
5443 * Makefile.in (dummy-frame.o): Update dependencies.
5447 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5448 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5449 SIZEOF_CALL_DUMMY_WORDS.
5450 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5451 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5452 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5453 CALL_DUMMY_BREAKPOINT_OFFSET.
5454 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5455 CALL_DUMMY_START_OFFSET.
5456 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5457 * gdbarch.h, gdbarch.c: Re-generate.
5458 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5459 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5460 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5461 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5462 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5463 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5464 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5465 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5466 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5467 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5468 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5469 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5470 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5471 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5472 * config/sparc/tm-sparc.h: Update.
5476 * configure.tgt: Add i[3456]86-*-nto*.
5477 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5478 * nto-tdep.c: New file. Neutrino target support routines.
5479 * nto-tdep.h: New file. Neutrino target header.
5480 * config/tm-qnxnto.h: New file.
5481 * config/i386/i386nto.mt: New file.
5482 * config/i386/tm-i386nto.h: New file.
5486 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5487 (load_infrun_state): Ditto.
5488 (struct thread_info): Drop "prev_func_name" field.
5489 * thread.c (load_infrun_state): Update.
5490 (save_infrun_state): Update.
5491 * infrun.c (prev_func_name): Delete variable.
5492 (init_wait_for_inferior): Do not clear prev_func_name.
5493 (stop_stepping, keep_going, context_switch): Do not swap
5495 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5496 instead of PC_IN_SIGTRAMP.
5500 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5501 REGISTER_BYTE with register_offset_hack.
5502 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5503 that REGISTER_BYTE is consistent with the regcache.
5504 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5505 * gdbarch.h, gdbarch.c: Regenerate.
5509 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5510 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5512 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5517 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5518 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5519 (mi-cmd-symbol.o): Add rule.
5523 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5524 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5525 * gdbarch.h, gdbarch.c: Re-generate.
5526 * d10v-tdep.c (d10v_push_dummy_code): New function.
5527 (d10v_gdbarch_init): Set push_dummy_code.
5528 * infcall.c (legacy_push_dummy_code): New function.
5529 (generic_push_dummy_code): New function.
5530 (push_dummy_code): New function.
5531 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5532 instead of dummy_addr, to push_dummy_call. Move call to
5533 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5535 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5539 * disasm.h (print_insn): Declare.
5540 * disasm.c (init_gdb_disassemble_info): New function.
5541 (gdb_disassembly): Call init_gdb_disassemble_info.
5542 (gdb_print_insn): New function.
5543 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5544 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5545 * mcore-tdep.c: Include "disasm.h"
5546 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5547 * d10v-tdep.c: Include "disasm.h".
5548 (display_trace): Call gdb_print_insn, instead of print_insn.
5549 (print_insn): Delete function.
5550 * printcmd.c: Include "disasm.h".
5551 (print_insn): Delete function.
5552 (print_formatted): Call gdb_print_insn, instead of print_insn.
5553 * Makefile.in (printcmd.o): Update dependencies.
5554 (mcore-tdep.o, d10v-tdep.o): Ditto.
5558 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5559 PC_REGNUM, re-indent.
5560 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5561 PC_REGNUM isn't set.
5563 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5564 * gdbarch.h, gdbarch.c: Re-generate.
5565 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5566 register_virtual_size, pc_regnum, or register_bytes.
5567 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5568 (d10v_register_type): Use D10V_PC_REGNUM.
5569 (d10v_print_registers_info, d10v_read_pc): Ditto.
5570 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5571 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5575 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5576 the name with mstrsave.
5580 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5581 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5582 (host_charset_name, target_charset_name): New vars for use by
5584 (host_charset_enum, target_charset_enum): New enums for set/show
5586 (set_charset_sfunc, set_host_charset_sfunc,
5587 set_target_charset_sfunc): New functions.
5588 (set_host_charset, set_target_charset): Make static.
5589 (list_charsets, set_host_charset_command,
5590 set_target_charset_command): Delete functions.
5591 (show_charset_command): Rewrite as....
5592 (show_charset): Hook this up with the set/show command mechanism.
5593 (_initialize_charset): Change names of charsets to match the
5594 set/show enums. Use host_charset_name and target_charset_name.
5595 Use set/show mechanism for charset, host-charset, target-charset
5596 commands. Do not make 'show host-charset' and 'show
5597 target-charset' be aliases of 'show charset'.
5599 * charset.h (set_host_charset, set_target_charset): Don't export,
5600 they are not used outside the file.
5604 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5605 (gdb_disassembly): Make "di" non static, always initialize and
5606 cleanup. Always use dis_asm_read_memory.
5607 (gdb_dis_asm_read_memory): Delete function.
5611 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5612 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5616 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5617 "tm_print_insn_info".
5618 (TARGET_PRINT_INSN_INFO): Delete macro.
5619 (dis_asm_read_memory): Delete function declaration.
5620 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5621 (tm_print_insn_info): Delete variable definition.
5622 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5623 * gdbarch.h, gdbarch.c: Re-generate.
5624 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5625 "deprecated_tm_print_insn_info".
5626 * mcore-tdep.c (mcore_dump_insn): Ditto.
5627 * mips-tdep.c (mips_gdbarch_init): Ditto.
5628 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5629 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5630 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5631 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5632 instead of TARGET_PRINT_INSN_INFO, add comment.
5633 * s390-tdep.c (s390_get_frame_info): Instead of
5634 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5635 (s390_check_function_end, s390_is_sigreturn): Ditto.
5636 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5637 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5638 * disasm.c: Include "gdbcore.h".
5639 (_initialize_disasm): New function, initialize
5640 "deprecated_tm_print_insn_info".
5641 (deprecated_tm_print_insn_info): New variable.
5642 (dis_asm_read_memory): Moved from "corefile.c", made static.
5643 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5644 * Makefile.in (disasm.o): Update dependencies.
5648 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5652 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5653 * infcall.c (find_function_addr): Make non-static.
5654 * infcall.h (find_function_addr): Declare.
5655 * Makefile.in (eval.o): Update dependencies.
5659 * symtab.c (symbol_find_demangled_name): Check for and demangle
5661 (symbol_init_demangled_name): Init for language_objc as well.
5665 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5666 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5667 * gdbarch.h, gdbarch.c: Re-generate.
5668 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5669 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5670 * inferior.h (deprecated_read_fp): Rename read_fp.
5671 (generic_target_read_fp): Delete declaration.
5672 * regcache.c (generic_target_read_fp): Delete function.
5673 (deprecated_read_fp): Replace read_fp, use
5674 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5675 * d10v-tdep.c (d10v_read_fp): Delete function.
5676 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5678 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5679 deprecated_target_read_fp to generic_target_read_fp.
5680 * sh-tdep.c (sh_gdbarch_init): Ditto.
5681 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5683 * frv-tdep.c (frv_gdbarch_init): Ditto.
5685 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5686 deprecated_fp_regnum.
5687 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5688 * vax-tdep.c (vax_gdbarch_init): Ditto.
5689 * v850-tdep.c (v850_gdbarch_init): Ditto.
5690 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5691 * sh-tdep.c (sh_gdbarch_init): Ditto.
5692 * s390-tdep.c (s390_gdbarch_init): Ditto.
5693 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5694 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5695 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5696 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5698 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5699 * i386-tdep.c (i386_gdbarch_init): Ditto.
5700 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5701 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5702 * frv-tdep.c (frv_gdbarch_init): Ditto.
5703 * cris-tdep.c (cris_gdbarch_init): Ditto.
5704 * avr-tdep.c (avr_gdbarch_init): Ditto.
5705 * arm-tdep.c (arm_gdbarch_init): Ditto.
5706 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5708 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5709 * v850-tdep.c (v850_gdbarch_init): Ditto.
5710 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5711 * sh-tdep.c (sh_gdbarch_init): Ditto.
5712 * s390-tdep.c (s390_gdbarch_init): Ditto.
5713 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5714 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5715 * mips-tdep.c (mips_gdbarch_init): Ditto.
5716 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5717 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5718 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5719 * frv-tdep.c (frv_gdbarch_init): Ditto.
5720 * avr-tdep.c (avr_gdbarch_init): Ditto.
5721 * arm-tdep.c (arm_gdbarch_init): Ditto.
5723 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5724 DEPRECATED_FP_REGNUM.
5725 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5726 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5727 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5728 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5729 (sparc32_register_virtual_type): Ditto.
5730 * sh-tdep.c (sh64_frame_chain): Ditto.
5731 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5732 (sh_nofp_frame_init_saved_regs): Ditto.
5733 (sh64_nofp_frame_init_saved_regs): Ditto.
5734 (sh_fp_frame_init_saved_regs): Ditto.
5735 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5736 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5737 * procfs.c (procfs_fetch_registers): Ditto.
5738 (procfs_store_registers): Ditto.
5739 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5740 (store_inferior_registers, fetch_core_registers): Ditto.
5741 (fetch_kcore_registers, clear_regs): Ditto.
5742 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5743 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5744 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5745 * nlm/i386.c (do_status): Ditto.
5746 * mipsv4-nat.c (supply_gregset): Ditto.
5747 * mips-tdep.c: Ditto for comments.
5748 * mips-nat.c (fetch_inferior_registers): Ditto.
5749 (store_inferior_registers, fetch_core_registers): Ditto.
5750 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5751 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5752 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5753 (i386_do_pop_frame, i386_register_type): Ditto.
5754 * hppa-tdep.c (hppa_frame_chain): Ditto.
5755 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5756 (hppa_pop_frame, hppa_read_fp): Ditto.
5757 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5758 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5759 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5760 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5761 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5762 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5763 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5764 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5765 * blockframe.c: Ditto for comments.
5766 * arch-utils.h: Ditto for comments.
5767 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5768 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5769 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5770 * alpha-tdep.h: Ditto for comments.
5771 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5772 (alpha_cannot_store_register): Ditto.
5773 (alpha_push_dummy_frame): Ditto.
5774 * alpha-nat.c (supply_gregset): Ditto.
5776 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5777 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5778 * config/sparc/tm-sparc.h: Update comment.
5780 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5781 deprecated_read_fp instead of TARGET_READ_FP.
5782 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5783 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5784 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5785 deprecated_read_fp instead of read_fp.
5786 * s390-tdep.c (s390_push_arguments): Ditto.
5787 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5788 * frame.h: Ditto in comments.
5789 * frame.c (legacy_get_prev_frame): Ditto.
5790 * dummy-frame.c (dummy_frame_this_id): Ditto.
5791 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5795 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5796 * gdbarch.h, gdbarch.c: Re-generate.
5797 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5798 * vax-tdep.c (_initialize_vax_tdep): Update.
5799 * v850-tdep.c (_initialize_v850_tdep): Update.
5800 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5801 * s390-tdep.c (_initialize_s390_tdep): Update.
5802 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5803 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5804 * mips-tdep.c (_initialize_mips_tdep): Update.
5805 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5806 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5807 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5808 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5809 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5810 * frv-tdep.c (_initialize_frv_tdep): Update.
5811 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5812 (_initialize_cris_tdep): Update.
5813 * arch-utils.c (legacy_print_insn): Update.
5814 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5818 * linespec.c (decode_objc): New function to decode ObjC calls
5819 (decode_line_1): Check for ObjC calls (using decode_objc)
5820 * Makefile (linespec.o): Update dependencies.
5824 * breakpoint.h (struct breakpoint_ops): New.
5825 (struct breakpoint): Add ops member.
5827 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5828 (mention): Use new breakpoint ops member.
5829 (set_raw_breakpoint): Initialize ops field to NULL.
5830 (print_exception_catchpoint, print_one_exception_catchpoint)
5831 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5832 (gnu_v3_exception_catchpoint_ops): New.
5833 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5837 * Makefile.in (COMMON_OBS): Add objc-lang.o
5841 * d10v-tdep.c (print_insn): Delete function.
5842 (display_trace): Use TARGET_PRINT_INSN.
5843 (_initialize_d10v_tdep): Do not set tm_print_insn.
5844 (d10v_gdbarch_init): Set print_insn.
5848 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5849 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5850 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5851 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5852 (nr_dmap_regs, a0_regnum): ... new functions.
5853 (d10v_print_registers_info): Use a0_regnum, use register_size.
5854 (d10v_register_byte): Delete function.
5855 (d10v_register_raw_size): Delete function.
5856 (d10v_register_type): Use a0_regnum.
5857 (d10v_print_registers_info): Use a0_regnum.
5858 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5859 (d10v_gdbarch_init): Do not set register_byte or
5860 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5861 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5863 (trace_command): Use XCALLOC.
5864 (print_insn): Delete reference to tm_print_insn.
5865 (saved_regs_unwinder): Use store_unsigned_integer instead of
5867 * frame.h (FRAME_OBSTACK_CALLOC): Define
5871 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5875 * objc-lang.c: Include "valprint.h"
5876 * Makefile.in (objc-lang.o): Update dependencies.
5880 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5881 architecture dependant compilation and mark as unimplemented
5882 (until they get put in the gdbarch vector).
5886 * cp-support.c (cp_find_first_component): Accept 'operator' in
5891 * infcall.c (call_function_by_hand): Eliminate redundant
5892 indentation. Move "saved_async" and "old_cleanups" to where they
5897 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5898 and "buffer". Move the "name" code to where it is needed.
5902 * infcall.c (call_function_by_hand): Move variables "start_sp",
5903 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5904 code to ON_STACK switch branch.
5908 * infcall.c (call_function_by_hand): Make declaration of "i",
5909 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5914 * infcall.c (call_function_by_hand): Delete variable
5915 "n_method_args". Localize "param_type"'s declaration to the loop
5916 that it is used. Reinstate code assigning to said variable -
5917 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5918 Rationalize code using "param_type".
5922 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5923 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5924 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5925 to DEPRECATED_PUSH_RETURN_ADDRESS.
5929 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5930 on the DWARF2 register number prior to fetching a register.
5934 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5935 Update all the tests using SOFT_FLOAT considering the fact that
5936 this macro was always set to 0.
5937 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5938 considering the fact that this macro was always set to 0.
5939 * hppa-tdep.h (hppa_store_return_value): Likewise.
5940 (hppa_extract_return_value): Likewise.
5944 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5945 the hppa-pro target only.
5949 Ongoing multi-arch conversion effort for HP/UX:
5950 * config/pa/tm-hppa.h: Move all macro that are no longer
5951 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5952 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5956 * config/pa/tm-hppa.h: Obsolete a section that was only used
5961 Ongoing multi-arch conversion for HP/UX.
5962 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5963 if already defined (allows hppa64 to stay non-multiarched for now).
5964 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5968 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5972 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5973 "i386_num_mmx_regs".
5977 * infcall.c: New file.
5978 * infcall.h: New file.
5979 * valarith.c: Include "infcall.h".
5980 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5981 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5982 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5983 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5984 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5985 (SFILES): Add "infcall.c"
5986 (COMMON_OBS): Add "infcall.o".
5987 (infcall.o): Specify dependencies.
5988 * value.h (call_function_by_hand): Delete declaration.
5989 * inferior.h (run_stack_dummy): Delete declaration.
5990 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5991 (run_stack_dummy): Move to "infcall.c", merged into
5992 call_function_by_hand.
5993 * valops.c (call_function_by_hand): Moved to "infcall.c".
5994 (find_function_addr, value_arg_coerce): Ditto.
5995 (unwindonsignal_p, coerce_float_to_double): Ditto.
5996 (_initialize_valops): Move "set/show coerce-float-to-double", and
5997 "set/show unwindonsignal" commands to "infcall.c".
5998 * v850-tdep.c, target.h: Update comments.
5999 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6000 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6001 (sh64_init_extra_frame_info): Update comments.
6002 * mn10300-tdep.c: Update comments.
6003 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6004 * config/sparc/tm-sparc.h: Update comments.
6005 * breakpoint.h: Update comments.
6006 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6007 * arm-tdep.c: Update comment.
6011 * i386-tdep.c (i386_num_register_names): New variable.
6012 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6013 (MM0_REGNUM): Remove redundant parentheses in define.
6014 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6015 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6016 i386_mxcsr_regnum_p): Remove redundant parentheses.
6017 (i386_register_name): Use i386_num_register_names.
6019 * i386-tdep.c (i386_extract_return_value,
6020 i386_store_return_value): Correct check for availability of
6021 floating-point registers.
6023 * i386-tdep.c (i386_frame_num_args): Remove function.
6024 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6026 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6027 mmx_regnum_to_fp_regnum. Adjust all callers.
6029 * i386-tdep.c (i386_get_longjmp_target): Use
6030 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6031 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6036 * core-regset.c: Update comments to reflect reality. Re-order
6038 (fetch_core_registers): Use switch instead of if. Remove
6039 redundant prototype.
6043 * s390-tdep.c (s390_frame_align): New function.
6044 (s390_gdbarch_init): Register it with the gdbarch object.
6048 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6054 * gdb_gcore.sh: New script to create a core dump of a process.
6058 * values.c (value_being_returned): Don't fetch the return
6059 value if the return type is void.
6063 * thread-db.c: Reindented.
6067 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6068 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6097 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6098 the size of ``long double'' to 16, instead of 8.
6102 * i386-linux-nat.c: Add some whitespace to make things more
6104 (fetch_register, store_register, fetch_inferior_registers,
6105 store_inferior_registers): Get rid of assignment in if-statement.
6106 (store_register): Fix typo in error message.
6110 * utils.c (xmmalloc): Always allocate something, matches
6111 libiberty/xmalloc's semantics.
6112 (xmrealloc, xmcalloc): Ditto.
6116 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6118 (get_frame_type): Initialize unwind and type when needed.
6119 (get_frame_id, frame_register_unwind): Ditto.
6123 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6125 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6126 * sparcl-stub.c: Obsolete file.
6127 * config/sparc/tm-sparclet.h: Obsolete file.
6128 * sparclet-stub.c: Obsolete file.
6129 * sparclet-rom.c: Obsolete file.
6130 * sparcl-tdep.c: Obsolete file.
6131 * config/sparc/tm-sparclite.h: Obsolete file.
6132 * config/sparc/sparclite.mt: Obsolete file.
6133 * config/sparc/sparclet.mt: Obsolete file.
6134 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6135 sparc86x-*-* obsolete.
6139 * Makefile.in (SFILES): Add cp-namespace.c.
6140 (COMMON_OBS): Add cp-namespace.o.
6141 (block.o): Depend on gdb_obstack_h and cp_support_h.
6142 (buildsym.o): Depend on cp_support_h.
6143 (cp-namespace.o): New.
6144 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6145 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6146 (dwarf2read.o): Depend on cp_support_h.
6147 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6148 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6149 processing_current_namespace.
6150 (read_namespace): Update processing_current_namespace; check for
6151 anonymous namespaces.
6152 (dwarf2_name): New function.
6153 (dwarf2_extension): Ditto.
6154 * cp-support.h: Update copyright, contributors.
6155 Add inclusion guards.
6156 Add opaque declaration for structs obstack, block, symbol.
6157 (struct using_direct): New struct.
6158 Add declarations for cp_find_first_component,
6159 cp_entire_prefix_len, processing_has_namespace_info,
6160 processing_current_namespace, cp_is_anonymous,
6161 cp_add_using_directive, cp_initialize_namespace,
6162 cp_finalize_namespace, cp_set_block_scope,
6163 cp_scan_for_anonymous_namespaces.
6164 * cp-namespace.c: New file.
6165 * cp-support.c: Update copyright.
6166 Include ctype.h, gdb_assert.h, gdbcmd.h.
6167 New variable maint_cplus_cmd_list.
6168 (cp_find_first_component): New function.
6169 (cp_entire_prefix_len, maint_cplus_command)
6170 (first_component_command, _initialize_cp_support): Ditto.
6171 * buildsym.c: Include cp-support.h.
6172 New variable using_list.
6173 (add_symbol_to_list): Check for anonymous namespaces.
6174 (finish_block): Set block's scope.
6175 (start_symtab): Initialize C++ namespace support.
6176 (end_symtab): Finalize C++ namespace support.
6177 * block.h: Add opaque declarations for structs
6178 block_namespace_info, using_direct, and obstack.
6179 Add declarations for block_set_scope and block_set_using.
6180 (struct block): Add 'language_specific' member.
6181 (BLOCK_NAMESPACE): New macro.
6182 * block.c: Include gdb_obstack.h and cp-support.h.
6183 (struct block_namespace_info): New struct.
6184 (block_set_scope): New function.
6185 (block_set_using, block_initialize_namespace): Ditto.
6189 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6190 (locate_base): Return early if there aren't any link map offsets.
6191 (svr4_solib_create_inferior_hook): Warn if shared library support
6196 * symtab.c (symbol_set_names): Add prefix when storing Java names
6197 in hash table. Fix for PR java/1039.
6201 * symtab.c (symbol_set_names): Rename 'name' arg to
6202 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6203 * symtab.h: Change 'name' argument in declaration of
6204 symbol_set_names to 'linkage_name'.
6205 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6209 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6210 return the fully sign-extended register value.
6211 (get_frame_pointer): Ditto.
6212 (mips_pop_frame): Initialize "proc_desc" after checking for a
6217 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6218 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6219 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6220 (mips_push_register): Delete function.
6221 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6226 * symmisc.c: #include "gdb_regex.h".
6227 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6229 * maint.c (maintenance_list_command): New function.
6230 (_initialize_maint_cmds): Register the above as commands.
6231 * symtab.h (maintenance_list_symtabs,
6232 maintenance_list_psymtabs): New declarations.
6233 * cli/cli-cmds.c (maintenancelistlist): New variable.
6234 (init_cmd_lists): Initialize it.
6235 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6236 * gdbcmd.h (maintenancelistlist): New declaration.
6237 * Makefile.in (symmisc.o): Update dependencies.
6241 * s390-nat.c: Include asm/types.h for addr_t.
6245 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6246 actually incoming type.
6250 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6251 get_next_frame and get_frame_saved_regs.
6255 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6256 of gdbarch_num_regs.
6260 * frame.h: Mention what replaced what in "struct frame_info".
6261 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6262 deprecated_update_frame_base_hack and
6263 deprecated_update_frame_pc_hack.
6264 * hppa-tdep.c: Ditto.
6268 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6269 to read_reg and update its comment. Remove regnum member.
6270 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6271 Don't call read_reg when setting in_reg. Call read_reg to get
6272 the frame base if it's in a register. Return the register number
6273 on the stack instead of in the context. Remove extra arguments
6275 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6276 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6277 the register number on the expression stack.
6278 (needs_frame_read_reg): Remove extra arguments.
6282 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6284 (execute_stack_op): All callers updated.
6285 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6286 * dwarf2loc.c (find_location_expression): New function.
6287 (dwarf_expr_frame_base): Call it.
6288 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6289 (dwarf2_tracepoint_var_ref): New function, broken out from
6290 locexpr_tracepoint_var_ref.
6291 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6293 (loclist_read_variable, loclist_read_needs_frame): New functions.
6294 (loclist_describe_location, loclist_tracepoint_var_ref): New
6296 (dwarf2_loclist_funcs): New struct location_funcs.
6297 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6298 (struct dwarf2_locexpr_baton): Add comments.
6299 (dwarf2_loclist_funcs): New extern.
6300 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6301 base_address and base_known.
6302 (dwarf_loc_buffer): New variable.
6303 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6304 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6305 (dwarf2_has_info): Initialize dwarf_loc_offset.
6306 (dwarf2_build_psymtabs): Read in .debug_loc.
6307 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6309 (psymtab_to_symtab_1): Likewise. Move base address calculation
6311 (dwarf2_get_pc_bounds): ... here. Use the base address from
6313 (dwarf2_symbol_mark_computed): Handle location lists.
6317 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6318 if the linkage name demangled successfully.
6322 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6323 disassmbly_flavour): Removed.
6325 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6329 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6333 * frame.h (struct frame_info): Move definition from here ...
6334 * frame.c (struct frame_info): ... to here.
6338 * gdbthread.h (save_infrun_state): Delete parameter
6340 (struct thread_info): Delete field "prev_func_start".
6341 (load_infrun_state): Ditto.
6342 * thread.c (load_infrun_state, save_infrun_state): Update.
6343 * infrun.c (prev_func_start): Delete variable.
6344 (context_switch, init_wait_for_inferior): Update.
6345 (stop_stepping, keep_going): Update.
6349 * gdbarch.sh: Add missing opaque declarations.
6350 * gdbarch.h: Regnerate.
6351 * symtab.h: Add missing opaque declarations.
6352 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6353 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6354 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6355 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6356 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6357 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6358 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6359 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6360 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6361 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6362 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6363 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6364 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6368 * frame.c (get_frame_id): Return this frame's "id".
6369 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6371 (legacy_saved_regs_this_id): Replace function body with
6373 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6374 FRAME_OBSTACK_ZALLOC.
6375 (create_new_frame): Mark the frame ID as valid.
6379 * Makefile.in (libbfd_h): Added missing setting.
6380 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6381 according to the selected ABI.
6385 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6389 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6390 SAVED_PC_AFTER_CALL.
6391 * gdbarch.h, gdbarch.c: Regenerate.
6392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6393 * x86-64-tdep.c (x86_64_init_abi): Update.
6394 * vax-tdep.c (vax_gdbarch_init): Update.
6395 * v850-tdep.c (v850_gdbarch_init): Update.
6396 * sparc-tdep.c (sparc_gdbarch_init): Update.
6397 * sh-tdep.c (sh_gdbarch_init): Update.
6398 * s390-tdep.c (s390_gdbarch_init): Update.
6399 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6400 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6401 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6402 * mips-tdep.c (mips_gdbarch_init): Update.
6403 * mcore-tdep.c (mcore_gdbarch_init): Update.
6404 * m68k-tdep.c (m68k_gdbarch_init): Update.
6405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6406 * ia64-tdep.c (ia64_gdbarch_init): Update.
6407 (ia64_saved_pc_after_call): Update declaration.
6408 * i386ly-tdep.c (i386lynx_init_abi): Update.
6409 * i386-tdep.c (i386_gdbarch_init): Update.
6410 * hppa-tdep.c (hppa_gdbarch_init): Update.
6411 * h8300-tdep.c (h8300_gdbarch_init): Update.
6412 * frv-tdep.c (frv_gdbarch_init): Update.
6413 * cris-tdep.c (cris_gdbarch_init): Update.
6414 * avr-tdep.c (avr_gdbarch_init): Update.
6415 * arm-tdep.c (arm_gdbarch_init): Update.
6416 * alpha-tdep.c (alpha_gdbarch_init): Update.
6417 * ns32knbsd-nat.c (frame_num_args): Update.
6418 * ns32k-tdep.c (umax_frame_num_args): Update.
6419 * mips-tdep.c (mips_init_frame_pc_first): Update.
6420 * infrun.c (step_over_function): Update.
6421 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6422 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6423 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6424 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6425 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6426 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6427 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6428 * arch-utils.c (init_frame_pc_default): Update.
6429 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6430 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6435 * i387-tdep.c: Update copyright.
6436 (i387_to_double): Delete function.
6437 (double_to_i387): Delete function.
6441 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6442 frame's function's address. Simplify.
6443 (d10v_frame_unwind_cache): Check that the frame's function is
6448 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6449 call to set_gdbarch_deprecated_push_arguments.
6453 * frame.c (fprint_frame_id): New function.
6454 (fprint_frame_type, fprint_frame): New function.
6455 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6456 (create_sentinel_frame, get_frame_id): Ditto.
6457 (frame_id_p, frame_id_eq): Ditto.
6458 (frame_id_inner, create_new_frame): Ditto.
6459 (legacy_get_prev_frame, get_prev_frame): Ditto.
6460 (deprecated_update_frame_pc_hack): Ditto.
6461 (frame_register_unwind): Ditto.
6462 (deprecated_update_frame_base_hack): Ditto.
6466 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6467 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6468 frame_chain function.
6469 * Makefile.in: Add dependencies due to above change.
6473 * blockframe.c (legacy_frame_chain_valid): Move call to
6474 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6479 * frame.h (struct frame_id): Replace "pc" and "base" with
6480 "stack_addr" and "code_addr". Update comments.
6481 (frame_id_build): Update parameter names and comment.
6482 (struct frame_info): Replace "id_p" and "id" with "this_id".
6483 * dummy-frame.c (dummy_frame_this_id): Update.
6484 * breakpoint.c (print_one_breakpoint): Update.
6485 * frame.c (get_frame_id): Update.
6486 (get_frame_base, frame_id_build): Update.
6487 (create_sentinel_frame, legacy_get_prev_frame): Update.
6488 (deprecated_update_frame_base_hack): Update.
6489 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6490 (frame_id_inner): Ditto.
6494 * defs.h (gdb_print_host_address): Make "addr" parameter a
6496 * utils.c (gdb_print_host_address): Update.
6500 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6501 register number for R0 is 0.
6505 * frame.h (struct gdbarch): Add opaque structure definition
6506 to avoid a compilation warning on LynxOS 4.0.
6510 * frame.h (struct frame_info): Delete field "pc". Replace
6511 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6513 * frame.c (frame_pc_unwind): Update.
6514 (create_sentinel_frame): Do not set "pc".
6515 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6516 (get_frame_pc): Call frame_pc_unwind.
6517 (deprecated_update_frame_pc_hack): Update.
6518 (create_new_frame): Use "pc" not "->pc".
6522 * frame.c (get_frame_id): Eliminate code updating "frame".
6523 (legacy_get_prev_frame): Ditto.
6524 (get_frame_base): Return id.base directly.
6525 (deprecated_update_frame_base_hack): Update "id.base".
6526 * frame.h (struct frame_info): Delete field "frame".
6530 * NEWS: Mention that the "Sequent family" is obsolete.
6531 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6532 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6533 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6534 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6535 * config/i386/tm-ptx4.h: Obsolete file.
6536 * config/i386/tm-ptx.h: Obsolete file.
6537 * symm-tdep.c: Obsolete file.
6538 * config/i386/symmetry.mt: Obsolete file.
6539 * config/i386/tm-symmetry.h: Obsolete file.
6540 * symm-nat.c: Obsolete file.
6541 * config/i386/nm-symmetry.h: Obsolete file.
6542 * config/i386/xm-symmetry.h: Obsolete file.
6543 * config/i386/symmetry.mh: Obsolete file.
6544 * config/i386/nm-ptx4.h: Obsolete file.
6545 * config/i386/ptx4.mh: Obsolete file.
6546 * config/i386/ptx.mt: Obsolete file.
6547 * config/i386/ptx.mh: Obsolete file.
6548 * config/i386/xm-ptx4.h: Obsolete file.
6549 * config/i386/xm-ptx.h: Obsolete file.
6553 Obsolete mips*-*-mach3*.
6554 * NEWS: Mention that mips*-*-mach3* is obsolete.
6555 * m3-nat.c: Obsolete file.
6556 * config/nm-m3.h: Obsolete file.
6557 * config/mips/tm-mipsm3.h: Obsolete file.
6558 * config/mips/mipsm3.mt: Obsolete file.
6559 * config/mips/mipsm3.mh: Obsolete file.
6560 * config/mips/xm-mipsm3.h: Obsolete file.
6561 * mipsm3-nat.c: Obsolete file.
6562 * configure.host: Obsolete mips-dec-mach3*.
6563 * configure.tgt: Obsolete mips*-*-mach3*.
6567 * doublest.h: Update copyright.
6568 (deprecated_store_floating, deprecated_extract_floating): Rename
6569 store_floating and extract_floating. Update comments.
6570 * doublest.c: Update copyright.
6571 (extract_floating_by_length): Replace extract_floating.
6572 (store_floating_by_length): Replace store_floating.
6573 (deprecated_extract_floating): New function.
6574 (deprecated_store_floating): New function.
6575 (extract_typed_floating): Call extract_floating_by_length.
6576 (store_typed_floating): Call store_floating_by_length.
6577 * x86-64-tdep.c (x86_64_store_return_value): Update.
6578 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6579 (sh64_extract_return_value): Update.
6580 (sh_sh4_register_convert_to_virtual): Update.
6581 (sh_sh64_register_convert_to_virtual): Update.
6582 (sh_sh4_register_convert_to_raw): Update.
6583 (sh_sh64_register_convert_to_raw): Update.
6584 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6585 (rs6000_register_convert_to_raw): Update.
6586 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6587 (ia64_register_convert_to_raw): Update.
6588 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6589 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6590 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6591 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6592 (alpha_register_convert_to_raw): Update.
6596 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6597 * gdbarch.h, gdbarch.c: Re-generate.
6598 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6599 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6600 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6601 conditionally, use frame_pc_unwind as an alternative. Add
6603 * arch-utils.c (init_frame_pc_default): Only call
6604 SAVED_PC_AFTER_CALL when available.
6608 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6609 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6610 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6611 (start_remote): Ditto.
6612 (handle_inferior_event): Ditto.
6613 (save_inferior_status): Ditto.
6614 (restore_inferior_status): Ditto.
6615 * infcmd.c (attach_command): Ditto.
6616 * fork-child.c (startup_inferior): Ditto.
6617 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6618 * alpha-tdep.c (heuristic_proc_start): Ditto.
6619 * mips-tdep.c (heuristic_proc_start): Ditto.
6620 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6621 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6622 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6623 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6624 * remote-vx.c (vx_create_inferior): Ditto.
6628 * infrun.c (stop_soon_quietly): Make it an enum, to better
6629 override the default behavior of handle_inferior_event.
6630 (clear_proceed_status): Update uses of stop_soon_quietly to
6631 reflect that it is now an enum.
6632 (start_remote): Ditto.
6633 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6634 is set to handle the new GNU/Linux kernel behavior for
6635 attach/sigstop. Update uses of stop_soon_quietly.
6636 * inferior.h (enum stop_kind): New enum.
6637 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6638 Reset normal handle_inferior_event behavior, afterwards.
6639 * fork-child.c (startup_inferior): Update.
6640 * alpha-tdep.c (heuristic_proc_start): Update.
6641 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6642 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6643 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6644 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6645 * remote-vx.c (vx_create_inferior): Update.
6646 * mips-tdep.c (heuristic_proc_start): Update.
6650 * disasm.c (dump_insns): Move variables inside loop, or they will
6651 be freed more than once, causing wild memory corruptions.
6652 (gdb_disassembly): Look for the substring "-thread",
6653 instead of "-threads" in the target name, to make sure to find
6654 the 'multi-thread' target. Also, make sure we do the right thing
6655 with the "core" target.
6659 * mips-tdep.c (mips_print_fp_register): New function, created from
6660 do_fp_register_row(). Registers are now (also) printed as hex.
6661 Only one register is printed per row.
6662 (mips_print_register, do_fp_register_row): Print floating point
6663 registers with mips_print_fp_register().
6667 * valprint.h (inspect_it): Add extern declaration.
6668 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6669 (selectors_info, classes_info): Ditto.
6670 (find_objc_msgcall): Fix indentation.
6671 (objc_printstr): Delete extern declarations.
6673 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6677 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6679 * frame.c (legacy_saved_regs_this_id): Update.
6680 (legacy_get_prev_frame): Update.
6681 * xstormy16-tdep.c: Update comment.
6682 * sparc-tdep.c (sparc_frame_chain): Update comment.
6683 * blockframe.c (legacy_frame_chain_valid): Update.
6687 * valprint.c (val_print_type_code_int): Delete #ifdef
6688 PRINT_TYPELESS_INTEGER code.
6690 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6691 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6692 multi-arch definition.
6693 * gdbarch.h: Re-generate.
6697 Eliminate FRAME_FIND_SAVED_REGS.
6698 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6699 Change FSR parameter to a pointer.
6700 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6701 Assume FSR parameter is a pointer.
6702 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6704 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6705 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6706 saved_regs a pointer.
6707 (hppa_frame_saved_pc): Ditto.
6708 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6709 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6711 (restore_pc_queue): Make fsr a pointer.
6712 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6713 (hppa_frame_chain): Make saved_regs a pointer, call
6714 hppa_frame_init_saved_regs.
6715 * sparc-tdep.c: Include "gdb_assert.h".
6716 (sparc_frame_find_saved_regs): Replace internal_error with
6718 * remote-vxsparc.c (vx_read_register): Delete reference to
6719 FRAME_FIND_SAVED_REGS.
6720 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6721 * gdbarch.h: Regenerate.
6722 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6723 (deprecated_get_frame_saved_regs): Delete declaration.
6724 (struct frame_saved_regs): Delete definition.
6725 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6726 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6727 (hppa_frame_find_saved_regs): Delete declaration.
6728 (FRAME_FIND_SAVED_REGS): Delete macro.
6729 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6730 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6731 FRAME_FIND_SAVED_REGS in comment.
6735 * frame.c (frame_func_unwind, get_frame_func): New functions.
6736 * frame.h (get_frame_func, frame_func_unwind): Declare.
6737 (struct frame_info): Add field "prev_func" for caching the
6738 previous frame's function address.
6739 * arm-tdep.c (arm_frameless_function_invocation): Combine
6740 get_pc_function_start and get_frame_pc into get_frame_func.
6741 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6742 (sh64_nofp_frame_init_saved_regs): Ditto.
6743 * s390-tdep.c (s390_function_start): Ditto.
6744 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6745 (rs6000_frameless_function_invocation): Ditto.
6746 (rs6000_frame_saved_pc): Ditto.
6747 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6748 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6749 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6750 (i386_frame_init_saved_regs): Ditto.
6751 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6752 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6753 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6754 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6755 * blockframe.c (frameless_look_for_prologue): Ditto.
6759 * frame.c (legacy_get_prev_frame): Link prev to next at the
6760 function start. Update comments.
6764 * frame.c (get_frame_id): Update comment.
6765 (legacy_get_prev_frame): Update comment.
6766 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6767 * gdbarch.h: Regenerate.
6768 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6769 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6773 * stack.c (print_frame_info): Use get_frame_pc.
6777 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6778 the frame's type from the unwinder.
6779 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6780 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6781 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6782 (get_frame_base_address): Use get_frame_type.
6783 (get_frame_locals_address, get_frame_args_address): Ditto.
6784 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6785 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6786 (struct frame_info): Add comment explaining why the frame contains
6788 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6789 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6790 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6792 * frame-unwind.h: Include "frame.h".
6793 (struct frame_unwind): Add "type" field.
6794 * Makefile.in (frame_unwind_h): Add $(frame_h).
6798 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6799 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6800 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6802 (d10v_unwind_dummy_id): Use frame_id_build.
6803 * frame.c (find_frame_sal): Use get_frame_pc.
6804 (create_new_frame): Use deprecated_update_frame_pc_hack and
6805 deprecated_update_frame_base_hack.
6806 (create_sentinel_frame): Add comment about ->pc going away.
6807 (get_prev_frame): Add comment about ->pc going away.
6808 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6809 frame_id_build, deprecated_update_frame_pc_hack and
6810 deprecated_update_frame_base_hack.
6811 (select_frame): Use get_frame_pc.
6812 (legacy_saved_regs_this_id): Use frame_id_build.
6816 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6817 signed integer case.
6818 (classify_argument): Handle enumerations and references.
6822 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6827 * gdb/objc-lang.c (selectors_info): Replace calls to
6828 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6829 SYMBOL_NATURAL_NAME.
6830 (classes_info, find_methods): Likewise.
6834 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6835 ``mach'' to the value determined by bfd_default_set_arch_mach().
6839 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6840 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6841 (mi-cmd-file.o): Update dependencies.
6845 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6846 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6850 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6851 * language.h (struct language_defn): Add la_demangle.
6852 (language_demangle): Declare.
6853 * language.c (language_demangle): New function.
6854 (unk_lang_demangle): Likewise.
6855 (unknown_language_defn, auto_language_defn, local_language_defn):
6856 Add ukn_lang_demangle.
6857 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6858 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6859 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6860 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6861 * jv-lang.c (java_demangle): New function
6862 (java_language_defn): Use it for la_demangle element.
6863 * objc-lang.c (objc_demangle): Add options argument
6864 (objc_language_defn): Use objc_demangle for la_demangle element.
6865 * maint.c (maintenance_demangle): Replace switch with
6866 call to language_demangle.
6867 * utils.c (fprintf_symbol_filtered): Likewise.
6871 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6872 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6873 PRINT_TYPELESS_INTEGER.
6874 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6875 PUSH_RETURN_ADDRESS.
6879 * Makefile.in (d10v-tdep.o): Update dependencies.
6880 * d10v-tdep.c: Include "frame-base.h".
6881 (d10v_frame_unwind): Make constant.
6882 (d10v_frame_base_address): New function.
6883 (d10v_frame_base): New variable.
6884 (d10v_gdbarch_init): Set frame_base default.
6885 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6887 (d10v_frame_unwind_cache): Set and use "prev_sp".
6888 (d10v_frame_this_id): Use the previous frame's inner most stack
6889 address and this frame's func address for the frame ID. Use
6890 frame_id_build. Don't analyze beyond the current instruction.
6894 * frame.h (get_frame_locals_address, get_frame_args_address):
6895 Refer to the base address, instead of the address of the first
6900 Add frame debug info addresses:
6901 * frame-base.c: New file.
6902 * frame-base.h: New file.
6903 * frame.h (struct frame_base): Add opaque declaration.
6904 (get_frame_base): Update comment.
6905 (get_frame_base_address): Declare.
6906 (get_frame_locals_address): Declare.
6907 (get_frame_args_address): Declare.
6908 (struct frame_info): Add "base" and "base_cache". Update
6909 comments on the unwinder.
6910 * frame.c: Include "frame-base.h".
6911 (get_frame_locals_address): New function.
6912 (get_frame_base_address): New function.
6913 (get_frame_args_address): New function.
6914 * findvar.c (read_var_value): Use get_frame_locals_address and
6915 get_frame_args_address.
6916 * stack.c (frame_info): Use get_frame_locals_address and
6917 get_frame_args_address.
6918 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6919 moved to "frame-base.c".
6920 * printcmd.c (print_frame_nameless_args): Ditto.
6921 * symtab.h (address_class): Update comments.
6922 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6923 get_frame_base_address.
6924 * dwarf2expr.c (execute_stack_op): Ditto.
6925 * Makefile.in (frame_base_h): Define.
6926 (frame.o): Update dependencies.
6927 (frame-base.o): Add dependencies.
6928 (SFILES): Add frame-base.c.
6929 (COMMON_OBS): Add frame-base.o.
6933 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6934 CALL_DUMMY_LENGTH): Ditto.
6935 * gdbarch.c: Re-generate.
6936 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6937 (CALL_DUMMY_LENGTH): Delete macro.
6938 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6939 * arm-tdep.c (arm_gdbarch_init): Ditto.
6940 * avr-tdep.c (avr_gdbarch_init): Ditto.
6941 * cris-tdep.c (cris_gdbarch_init): Ditto.
6942 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6943 * frv-tdep.c (frv_gdbarch_init): Ditto.
6944 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6945 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6946 * i386-tdep.c (i386_gdbarch_init): Ditto.
6947 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6948 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6949 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6950 * mips-tdep.c (mips_gdbarch_init): Ditto.
6951 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6952 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6953 * s390-tdep.c (s390_gdbarch_init): Ditto.
6954 * sh-tdep.c (sh_gdbarch_init): Ditto.
6955 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6956 * v850-tdep.c (v850_gdbarch_init): Ditto.
6957 * vax-tdep.c (vax_gdbarch_init): Ditto.
6958 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6962 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6966 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6967 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6968 * gdbarch.h, gdbarch.c: Re-generate.
6969 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6970 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6971 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6972 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6973 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6974 * infcmd.c (run_stack_dummy): Simplify assuming
6975 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6976 * infrun.c (handle_inferior_event): Ditto.
6977 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6978 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6979 * arm-tdep.c (arm_gdbarch_init): Ditto.
6980 * avr-tdep.c (avr_gdbarch_init): Ditto.
6981 * cris-tdep.c (cris_gdbarch_init): Ditto.
6982 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6983 * frv-tdep.c (frv_gdbarch_init): Ditto.
6984 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6985 * i386-tdep.c (i386_gdbarch_init): Ditto.
6986 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6987 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6988 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6989 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6990 * mips-tdep.c (mips_gdbarch_init): Ditto.
6991 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6992 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6993 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6994 * s390-tdep.c (s390_gdbarch_init): Ditto.
6995 * sh-tdep.c (sh_gdbarch_init): Ditto.
6996 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6997 * v850-tdep.c (v850_gdbarch_init): Ditto.
6998 * vax-tdep.c (vax_gdbarch_init): Ditto.
6999 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7003 * symfile.c (symfile_relocate_debug_section): Update call to
7004 bfd_simple_get_relocated_section_contents.
7008 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7009 * gdbarch.h, gdbarch.c: Regenerate.
7010 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7011 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7013 * frame.h (generic_fix_call_dummy): Delete declaration.
7014 * dummy-frame.h: Update comment.
7015 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7018 * sh-tdep.c (sh_gdbarch_init): Ditto.
7019 * s390-tdep.c (s390_gdbarch_init): Ditto.
7020 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7021 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7022 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7023 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7024 * i386-tdep.c (i386_gdbarch_init): Ditto.
7025 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7026 * frv-tdep.c (frv_gdbarch_init): Ditto.
7027 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7028 * cris-tdep.c (cris_gdbarch_init): Ditto.
7029 * avr-tdep.c (avr_gdbarch_init): Ditto.
7030 * arm-tdep.c (arm_gdbarch_init): Ditto.
7034 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7035 (INIT_FRAME_AP): Likewise.
7036 (EXTRA_FRAME_INFO): Likewise.
7040 * gdbarch.sh: Include "symfile.h".
7041 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7042 * gdbarch.h, gdbarch.c: Re-generate.
7043 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7045 call_dummy_address, the default is at entry_point_address.
7046 * v850-tdep.c (v850_gdbarch_init): Ditto.
7047 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7048 * sh-tdep.c (sh_gdbarch_init): Ditto.
7049 * s390-tdep.c (s390_gdbarch_init): Ditto.
7050 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7051 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7052 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7053 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7054 * i386-tdep.c (i386_gdbarch_init): Ditto.
7055 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7056 * frv-tdep.c (frv_gdbarch_init): Ditto.
7057 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7058 * cris-tdep.c (cris_gdbarch_init): Ditto.
7059 * arm-tdep.c (arm_gdbarch_init): Ditto.
7063 * gdbarch.sh (CALL_DUMMY_P): Delete.
7064 * gdbarch.h, gdbarch.c: Re-generate.
7065 * inferior.h (CALL_DUMMY_P): Delete macro.
7066 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7067 * vax-tdep.c (vax_gdbarch_init): Update.
7068 * v850-tdep.c (v850_gdbarch_init): Update.
7069 * sparc-tdep.c (sparc_gdbarch_init): Update.
7070 * sh-tdep.c (sh_gdbarch_init): Update.
7071 * s390-tdep.c (s390_gdbarch_init): Update.
7072 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7073 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7074 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7075 * mips-tdep.c (mips_gdbarch_init): Update.
7076 * mcore-tdep.c (mcore_gdbarch_init): Update.
7077 * m68k-tdep.c (m68k_gdbarch_init): Update.
7078 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7079 * ia64-tdep.c (ia64_gdbarch_init): Update.
7080 * i386-tdep.c (i386_gdbarch_init): Update.
7081 * h8300-tdep.c (h8300_gdbarch_init): Update.
7082 * frv-tdep.c (frv_gdbarch_init): Update.
7083 * d10v-tdep.c (d10v_gdbarch_init): Update.
7084 * cris-tdep.c (cris_gdbarch_init): Update.
7085 * breakpoint.c (deprecated_frame_in_dummy): Update.
7086 * avr-tdep.c (avr_gdbarch_init): Update.
7087 * alpha-tdep.c (alpha_gdbarch_init): Update.
7088 * arm-tdep.c (arm_gdbarch_init): Update.
7089 * dummy-frame.c (dummy_frame_this_id): Update comments.
7090 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7091 * frame.c (legacy_get_prev_frame): Ditto.
7092 * valops.c (call_function_by_hand): Delete function.
7093 (hand_function_call): Rename to call_function_by_hand
7098 * value.h (struct value): Update comment.
7102 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7104 (d10v_gdbarch_init): Do not set fp_regnum.
7106 * frame.c (get_frame_base): Force ID initialization.
7107 (get_prev_frame): Move computation of the frame ID from here ...
7108 (get_frame_id): ... to here.
7109 (legacy_get_prev_frame): Mark the frame ID as valid.
7110 * frame.h (struct frame_info): Add field "id_p".
7114 * i386-tdep.c (i386_store_struct_return): Removed.
7115 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7119 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7120 * gdbarch.h, gdbarch.c: Regenerate.
7121 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7122 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7123 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7124 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7125 * i386-tdep.c (i386_gdbarch_init): Ditto.
7126 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7127 * cris-tdep.c (cris_gdbarch_init): Ditto.
7128 * vax-tdep.c (vax_gdbarch_init): Ditto.
7129 * s390-tdep.c (s390_gdbarch_init): Ditto.
7130 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7131 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7132 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7133 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7134 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7135 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7136 * sparc-tdep.c (sparc_gdbarch_init): Update.
7137 * sh-tdep.c (sh_gdbarch_init): Update.
7138 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7139 * mips-tdep.c (mips_gdbarch_init): Update.
7140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7141 * ia64-tdep.c (ia64_gdbarch_init): Update.
7142 * frv-tdep.c (frv_gdbarch_init): Update.
7143 * avr-tdep.c (avr_gdbarch_init): Update.
7144 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7145 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7146 instead of when push_dummy_call is not available.
7150 * infttrace.c: Include "gdbthread.h".
7151 (parent_attach_all): Fix function signature.
7152 (call_ptrace): Update call.
7153 * Makefile.in (infttrace.o): Update dependencies.
7157 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7158 PUSH_RETURN_ADDRESS.
7159 * gdbarch.h, gdbarch.c: Regenerate.
7160 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7161 * x86-64-tdep.c (x86_64_init_abi): Update.
7162 * v850-tdep.c (v850_gdbarch_init): Update.
7163 * sparc-tdep.c (sparc_gdbarch_init): Update.
7164 * sh-tdep.c (sh_gdbarch_init): Update.
7165 * s390-tdep.c (s390_gdbarch_init): Update.
7166 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7167 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7168 * mips-tdep.c (mips_gdbarch_init): Update.
7169 * mcore-tdep.c (mcore_gdbarch_init): Update.
7170 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7171 * ia64-tdep.c (ia64_gdbarch_init): Update.
7172 * i386-tdep.c (i386_gdbarch_init): Update.
7173 * h8300-tdep.c (h8300_gdbarch_init): Update.
7174 * frv-tdep.c (frv_gdbarch_init): Update.
7175 * cris-tdep.c (cris_gdbarch_init): Update.
7176 * avr-tdep.c (avr_gdbarch_init): Update.
7177 * arm-tdep.c (arm_gdbarch_init): Update.
7178 * valops.c (hand_function_call): Update.
7182 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7183 sizeof_call_dummy_words.
7184 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7186 * gdbarch.h: Regenerate.
7190 * infttrace.h: New file.
7191 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7192 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7193 (hpread_read_doc_function_type): Detect an initialized type1.
7194 (hpread_quick_traverse): Initialize mod_name_string.
7195 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7196 (som_solib_get_solib_by_pc): Declare.
7197 (so_lib_thread_start_addr): Declare.
7198 (no_shared_libraries): Declare.
7199 * somread.c (init_import_symbols): Make static. Add forward
7201 * config/pa/nm-hppah.h: Include "infttrace.h" for
7203 (hppa_insert_hw_watchpoint): Declare.
7204 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7205 * hppah-nat.c: Include "gdb_string.h".
7206 (parent_attach_all): Delete extern declaration, moved to
7208 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7210 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7211 * Makefile.in (infttrace_h): Define.
7212 (hpread.o): Update dependencies.
7213 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7214 * hppa-hpux-tdep.c: Include "gdb_string.h".
7215 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7216 * infrun.c (handle_inferior_event): Always initialize
7217 stepped_after_stopped_by_watchpoint. Add default and remove
7218 fallthrough in switch statement.
7219 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7221 (hppa_remove_hw_watchpoint): Ditto.
7225 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7230 * arm-tdep.c (arm_push_arguments): Delete.
7231 (struct stack_item): New type.
7232 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7233 (arm_store_struct_return): Delte.
7234 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7235 arm_push_arguments or arm_store_struct_return.
7239 * Makefile.in (d10v-tdep.o): Update dependencies.
7240 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7241 * d10v-tdep.c: Include "remote.h".
7242 (target_resume_hook): Delete extern declaration.
7243 (target_wait_loop_hook): Ditto.
7244 (tdisassemble_command): Eliminate assignment in "if" conditional.
7245 (d10v_ts2_register_sim_regno): Eliminate call to
7246 legacy_register_sim_regno.
7247 (d10v_ts3_register_sim_regno): Ditto.
7251 * thread.c: Reindented.
7253 * linux-proc.c: Ditto.
7257 * MAINTAINERS (write after approval): Add myself.
7261 * objc-exp.y: Add missing semi-colons.
7265 * regcache.c (write_sp): Delete function and references.
7266 * inferior.h (write_sp): Delete declaration.
7267 * valops.c (hand_function_call): Replace write_sp with
7269 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7270 (sparc_pop_frame): Ditto.
7274 * NEWS: Mention removal of support for hppa*-*-bsd* and
7275 hppa*-*-osf* natives, and hppa*-*-pro* target.
7276 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7277 * config/pa/xm-pa.h: Obsolete file.
7278 * config/pa/xm-hppab.h: Obsolete file.
7279 * config/pa/nm-hppab.h: Obsolete file.
7280 * config/pa/tm-hppab.h: Obsolete file.
7281 * config/pa/tm-hppao.h: Obsolete file.
7282 * config/pa/nm-hppao.h: Obsolete file.
7283 * config/pa/tm-pro.h: Obsolete file.
7284 * config/pa/hppaosf.mt: Obsolete file.
7285 * config/pa/hppaosf.mh: Obsolete file.
7286 * config/pa/hppapro.mt: Obsolete file.
7287 * config/pa/hppabsd.mt: Obsolete file.
7288 * config/pa/hppabsd.mh: Obsolete file.
7289 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7290 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7295 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7296 push_arguments. Don't set push_return_address or write_sp.
7297 (d10v_push_dummy_call): Replace d10v_push_arguments.
7298 (d10v_push_return_address, d10v_write_sp): Delete function,
7299 handled by push_dummy_call.
7303 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7304 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7305 regcache and dummy_addr parameters.
7306 * gdbarch.h, gdbarch.c: Re-generate.
7307 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7308 available; assume it will handle stack alignment and return
7309 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7310 legacy_push_arguments.
7311 (legacy_push_arguments): Rename default_push_arguments.
7312 * value.h (legacy_push_arguments): Rename default_push_arguments.
7313 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7314 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7315 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7316 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7317 * config/i386/tm-symmetry.h: Update.
7318 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7319 * x86-64-tdep.c (x86_64_init_abi): Update.
7320 * v850-tdep.c (v850_gdbarch_init): Update.
7321 * sparc-tdep.c (sparc_gdbarch_init): Update.
7322 * sh-tdep.c (sh_gdbarch_init): Update.
7323 * s390-tdep.c (s390_gdbarch_init): Update.
7324 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7325 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7326 * mips-tdep.c (mips_gdbarch_init): Update.
7327 * mcore-tdep.c (mcore_gdbarch_init): Update.
7328 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7329 * ia64-tdep.c (ia64_gdbarch_init): Update.
7330 * i386-tdep.c (i386_gdbarch_init): Update.
7331 * hppa-tdep.c (hppa_gdbarch_init): Update.
7332 * h8300-tdep.c (h8300_gdbarch_init): Update.
7333 * frv-tdep.c (frv_gdbarch_init): Update.
7334 * d10v-tdep.c (d10v_gdbarch_init): Update.
7335 * cris-tdep.c (cris_gdbarch_init): Update.
7336 * avr-tdep.c (avr_gdbarch_init): Update.
7337 * arm-tdep.c (arm_gdbarch_init): Update.
7338 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7339 * alpha-tdep.c (alpha_gdbarch_init): Update.
7343 * signals/signals.c (do_target_signal_to_host): Correct realtime
7348 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7349 (struct sal_chain, map_catch_names): Remove.
7350 (catch_exception_command_1): Don't call
7351 handle_gnu_4_16_catch_command.
7356 * dwarf2cfi.c (read_2u): Increment pointer by two.
7360 * signals/signals.c: Fix typos in last change.
7364 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7365 not already defined. Use __SIGRTMIN if available.
7366 (target_signal_from_host): Remove SIGRTMIN block.
7367 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7368 the signal is within the realtime range.
7372 * Makefile.in (infrun.o): Add $(language_h)
7373 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7374 for language specific trampolines.
7375 * language.h (struct language_defn): Add skip_trampoline.
7376 (skip_language_trampoline): Declare.
7377 * language.c (unk_lang_trampoline, skip_language_trampoline):
7379 (unknown_language_defn, auto_language_defn, local_language_defn):
7380 Add ukn_lang_trampoline.
7381 * ada-lang.c (ada_language_defn): Add NULL for language
7382 specific skip_trampoline.
7383 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7384 scm-lang.c: Likewise.
7385 * objc-lang.c (objc_skip_trampoline): New function.
7386 (objc_language_defn): Add objc_skip_trampoline.
7390 * frame.c (get_prev_frame): Delay validating a frame's ID -
7391 non-NULL, didn't go backwards - until an attempt to unwind it to
7396 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7397 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7398 * gdbarch.h, gdbarch.c: Re-generate.
7399 * config/sparc/tm-sparc.h
7400 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7401 * sparc-tdep.c (sparc_gdbarch_init): Set
7402 deprecated_extra_stack_alignment_needed.
7403 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7405 extra_stack_alignment_needed.
7406 * v850-tdep.c (v850_gdbarch_init): Ditto.
7407 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7408 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7409 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7410 * cris-tdep.c (cris_gdbarch_init): Ditto.
7411 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7416 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7417 STORE_STRUCT_RETURN.
7418 * gdbarch.h, gdbarch.c: Regenerate.
7419 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7420 (d10v_push_arguments): Set the struct return register.
7421 (d10v_gdbarch_init): Update.
7422 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7423 * x86-64-tdep.c (x86_64_init_abi): Update.
7424 * vax-tdep.c (vax_gdbarch_init): Update.
7425 * v850-tdep.c (v850_gdbarch_init): Update.
7426 * sparc-tdep.c (sparc_gdbarch_init): Update.
7427 * sh-tdep.c (sh_gdbarch_init): Update.
7428 * s390-tdep.c (s390_gdbarch_init): Update.
7429 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7430 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7431 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7432 * mips-tdep.c (mips_gdbarch_init): Update.
7433 * mcore-tdep.c (mcore_gdbarch_init): Update.
7434 * m68k-tdep.c (m68k_gdbarch_init): Update.
7435 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7436 * ia64-tdep.c (ia64_gdbarch_init): Update.
7437 * i386-tdep.c (i386_gdbarch_init): Update.
7438 * hppa-tdep.c (hppa_gdbarch_init): Update.
7439 * h8300-tdep.c (h8300_gdbarch_init): Update.
7440 * frv-tdep.c (frv_gdbarch_init): Update.
7441 * cris-tdep.c (cris_gdbarch_init): Update.
7442 * avr-tdep.c (avr_gdbarch_init): Update.
7443 * arm-tdep.c (arm_gdbarch_init): Update.
7444 * alpha-tdep.c (alpha_gdbarch_init): Update.
7448 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7449 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7450 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7451 * gdbarch.h, gdbarch.c: Regenerate.
7452 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7453 call_dummy_stack_adjust_p.
7454 * vax-tdep.c (vax_gdbarch_init): Ditto.
7455 * v850-tdep.c (v850_gdbarch_init): Ditto.
7456 * sh-tdep.c (sh_gdbarch_init): Ditto.
7457 * s390-tdep.c (s390_gdbarch_init): Ditto.
7458 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7459 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7460 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7461 * mips-tdep.c (mips_gdbarch_init): Ditto.
7462 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7463 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7465 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7466 * i386-tdep.c (i386_gdbarch_init): Ditto.
7467 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7468 * frv-tdep.c (frv_gdbarch_init): Ditto.
7469 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7470 * cris-tdep.c (cris_gdbarch_init): Ditto.
7471 * avr-tdep.c (avr_gdbarch_init): Ditto.
7472 * arm-tdep.c (arm_gdbarch_init): Ditto.
7473 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7474 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7475 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7476 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7477 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7478 call_dummy_stack_adjust_p.
7479 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7480 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7481 * sparc-tdep.c (sparc32_push_arguments): Update.
7482 * valops.c (hand_function_call): Update.
7486 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7487 set_gdbarch_char_signed.
7492 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7496 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7497 (_initialize_arm_tdep): Don't set tm_print_insn.
7501 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7502 * objc-lang.h: Add multiple inclusion protection.
7503 (start_msglist, add_msglist, end_msglist): Additional declarations.
7507 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7508 value was renamed to ARM_FLOAT_SOFT_FPA.
7512 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7513 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7514 * gdbarch.h, gdbarch.c: Regenerate.
7515 * valops.c (hand_function_call): Update.
7516 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7517 * frame.c (legacy_saved_regs_this_id): Update.
7518 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7519 * dummy-frame.h: Update.
7520 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7521 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7522 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7523 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7524 * config/m68k/tm-sun3.h: Update.
7525 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7526 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7527 * x86-64-tdep.c (x86_64_init_abi): Update.
7528 * vax-tdep.c (vax_gdbarch_init): Update.
7529 * v850-tdep.c (v850_gdbarch_init): Update.
7530 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7531 * sh-tdep.c (sh_gdbarch_init): Update.
7532 * s390-tdep.c (s390_gdbarch_init): Update.
7533 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7534 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7535 (frame_get_saved_regs): Update.
7536 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7537 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7538 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7539 * mips-tdep.c (mips_gdbarch_init): Update.
7540 * mcore-tdep.c (mcore_gdbarch_init): Update.
7541 * m68k-tdep.c (m68k_gdbarch_init): Update.
7542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7543 * ia64-tdep.c (ia64_gdbarch_init): Update.
7544 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7545 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7546 (i386_interix_back_one_frame): Update.
7547 * hppa-tdep.c (hppa_gdbarch_init): Update.
7548 (hppa_init_extra_frame_info): Update.
7549 * h8300-tdep.c (h8300_gdbarch_init): Update.
7550 * frv-tdep.c (frv_gdbarch_init): Update.
7551 * cris-tdep.c (cris_gdbarch_init): Update.
7552 * avr-tdep.c (avr_gdbarch_init): Update.
7553 * arm-tdep.c (arm_gdbarch_init): Update.
7554 * alpha-tdep.c (alpha_gdbarch_init): Update.
7558 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7559 (arm_get_fp_model): Declare.
7560 * arm-tdep.c (fp_model_strings): New string array.
7561 (arm_fp_model, current_fp_model): New variables.
7562 (arm_get_fp_model): New function.
7563 (arm_set_fp): New function.
7564 (set_fp_model_sfunc): New function.
7565 (show_fp_model): New function.
7566 (_initialize_arm_tdep): Add new command to set/show the FPU.
7567 (arm_extract_return_value): Use arm_get_fp_model.
7568 (arm_store_return_value): Likewise.
7569 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7570 to initialize the floating-point data types.
7571 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7576 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7577 the current setting of each value.
7578 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7579 new_set and new_show. Use add_setshow_cmd_full and
7580 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7581 commands and add new version as subcommands of "set/show arm".
7585 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7586 (set_arm_command, show_arm_command): New functions.
7587 (_initialize_arm_tdep): Add them.
7588 (num_disassembly_options): Renamed from num_flavor_options.
7589 (valid_disassembly_styles): Renamed from valid_flavors.
7590 (disassembly_style): Renamed from disassembly_flavor.
7591 (set_disassembly_style_sfunc): Renamed from
7592 set_disassembly_flavor_sfunc.
7593 (set_disassembly_style): Renamed from set_disassembly_flavor.
7594 (arm_othernames): Updated.
7595 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7596 command. Add "set/show arm disassembly" commands. Deprecate
7597 "othernames" command.
7601 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7602 (arm-tdep.o): Depend on elf_arm_h.
7606 * Makefile.in (coff_internal_h): Define.
7607 (arm-tdep.o): Update dependencies.
7611 * arm-tdep.c (prologue_cache): Delete.
7612 (check_prologue_cache, save_prologue_cache): Delete.
7613 (arm_scan_prologue): Don't check or update the prologue_cache.
7614 (arm_gdb_arch_init): Don't initialize it.
7615 (_initialize_arm_tdep): Likewise.
7619 * MAINTAINERS (tui): Maintainer of tui code.
7623 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7624 (i386-cygwin-tdep.o): Add dependencies.
7625 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7626 * i386-cygwin-tdep.c: New file.
7627 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7628 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7632 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7633 (handle_inferior_event): Remove code calling
7634 DYNAMIC_TRAMPOLINE_NEXTPC.
7636 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7637 already has a full path.
7639 * main.c (gdb_main): Return 1.
7640 (captured_main): Call error to report an invalid interpreter.
7642 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7643 * alpha-osf1-tdep.c: Include "gdb_string.h".
7647 Continuing work to convert the hppa targets to multiarch partial.
7649 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7650 method, now that hppa_push_dummy_frame has a conformant prototype.
7651 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7652 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7653 for the switch to multiarch partial.
7657 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7658 when iss is issNull.
7662 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7663 NUM_REGS bounds check.
7667 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7668 * mips-tdep.c (gdb_assert.h): Include.
7669 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7670 (mips_register_name): Handle integer registers explicitly. Add
7672 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7673 (mips_lsi33k_reg_names): Don't list integer registers; they're
7674 handled by mips_register_name() now.
7675 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7676 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7677 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7678 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7679 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7683 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7685 * gdbtypes.h (print_scalar_formatted): Update declaration.
7686 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7690 * infrun.c (observer.h): Add #include.
7691 (normal_stop): Add call to observer_notify_normal_stop.
7692 * Makefile.in (infrun.o): Add dependency on observer.h.
7696 Continuing work to convert the hppa targets to multiarch partial.
7697 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7698 parameter. Reformat comment.
7699 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7700 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7701 to match new profile.
7705 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7706 appear to be working in any case.
7710 * observer.c (observer_test_first_observer): New static variable.
7711 (observer_test_second_observer): Likewise.
7712 (observer_test_third_observer): Likewise.
7713 (observer_test_first_notification_function): New static function.
7714 (observer_test_second_notification_function): Likewise.
7715 (observer_test_third_notification_function): Likewise.
7719 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7720 * somsolib.c (gdb_assert.h): Likewise.
7721 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7722 (somsolib.o): Likewise.
7726 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7727 BFD. Simplify setting of di.endian.
7731 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7732 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7735 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7736 vector and floating-point parameters.
7737 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7739 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7743 * MAINTAINERS: Remove my name from several maintainership roles.
7747 Fix frame off-by-one bug.
7748 * frame-unwind.h (frame_this_id_ftype): Replace
7749 frame_unwind_id_ftype.
7750 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7751 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7752 with "prev_register".
7753 * frame-unwind.c (frame_unwind_find_by_pc): Return
7754 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7756 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7757 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7758 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7759 (dummy_frame_unwind): Update.
7760 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7761 sentinel_frame_register_unwind.
7762 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7763 (sentinel_frame_unwinder): Update.
7764 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7765 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7766 * frame.c (create_sentinel_frame): Update. Initialize
7767 "prologue_cache" instead of "unwind_cache".
7768 (frame_register_unwind): Call this frame's prev_register with the
7769 next frame and this frame's prologue cache.
7770 (get_prev_frame): Simplify. Always call prev frame's this_id with
7771 this frame and prev frame's prologue cache. Document that this
7772 call is shifted one to the left when compared to the
7773 frame_register_unwind call.
7774 (legacy_saved_regs_prev_register): Replace
7775 frame_saved_regs_register_unwind.
7776 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7777 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7778 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7779 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7780 (d10v_frame_unwind): Update.
7781 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7782 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7783 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7784 "saved_regs" with "this_saved_regs".
7788 * frame.c (frame_pop): Don't call target_store_registers. Fix
7789 problem reported by Mark Kettenis.
7793 * i386-tdep.c (i386_register_type): Renamed from
7794 i386_register_virtual_type. Adjust function signature.
7795 (i386_gdbarch_init): Set register_type instead of
7796 deprecated_max_register_raw_size,
7797 deprecated_max_register_virtual_size and register_virtual_type.
7801 * frame.c (get_prev_frame): When a legacy frame, always call
7802 legacy_get_prev_frame. Simplify unwind code using assumption that
7803 the unwinder is new.
7804 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7805 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7806 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7810 * frame.c (get_saved_register): Delete function.
7811 * frame.h (get_saved_register): Delete declaration.
7812 * xstormy16-tdep.c: Update comment.
7813 * regcache.h: Update comments.
7814 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7815 get_saved_register and extract_address, use
7816 frame_read_unsigned_register.
7817 (sparc_frame_saved_pc): Ditto.
7818 (sparc_get_saved_register): Instead of get_saved_register, use
7820 (sparc_pop_frame): Ditto.
7821 * findvar.c: Update comments.
7822 (value_of_register): Call frame_register instead of
7824 (value_from_register): Ditto.
7825 * config/sparc/tm-sparc.h: Update comment.
7826 * breakpoint.c: Update comment.
7830 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7832 * gdbarch.h, gdbarch.c: Re-generate.
7833 * frame.h: Update comments.
7834 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7835 * x86-64-tdep.c (x86_64_init_abi): Update.
7836 * sparc-tdep.c (sparc_gdbarch_init): Update.
7837 * sh-tdep.c (sh_gdbarch_init): Update.
7838 * mips-tdep.c (mips_gdbarch_init): Update.
7839 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7840 * cris-tdep.c (cris_gdbarch_init): Update.
7841 * ia64-tdep.c (ia64_gdbarch_init): Update.
7842 * frame.c (frame_register): Update.
7843 (get_saved_register): Update.
7844 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7848 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7849 * gdbarch.h, gdbarch.c: Regenerate.
7850 * valops.c (hand_function_call): Update comment.
7851 * stack.c (return_command): Update comment.
7852 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7853 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7854 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7855 * x86-64-tdep.c (x86_64_init_abi): Update.
7856 * vax-tdep.c (vax_gdbarch_init): Update.
7857 * v850-tdep.c (v850_gdbarch_init): Update.
7858 * sparc-tdep.c (sparc_gdbarch_init): Update.
7859 * sh-tdep.c (sh_gdbarch_init): Update.
7860 * s390-tdep.c (s390_gdbarch_init): Update.
7861 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7862 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7863 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7864 * mips-tdep.c (mips_gdbarch_init): Update.
7865 * mcore-tdep.c (mcore_gdbarch_init): Update.
7866 * m68k-tdep.c (m68k_gdbarch_init): Update.
7867 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7868 * ia64-tdep.c (ia64_gdbarch_init): Update.
7869 * i386-tdep.c (i386_gdbarch_init): Update.
7870 * hppa-tdep.c (hppa_gdbarch_init): Update.
7871 * h8300-tdep.c (h8300_gdbarch_init): Update.
7872 * frv-tdep.c (frv_gdbarch_init): Update.
7873 * cris-tdep.c (cris_gdbarch_init): Update.
7874 * avr-tdep.c (avr_gdbarch_init): Update.
7875 * arm-tdep.c (arm_gdbarch_init): Update.
7876 * alpha-tdep.c (alpha_gdbarch_init): Update.
7880 * frame.c (legacy_frame_p): New function.
7881 (get_prev_frame): Use legacy_frame_p.
7882 * frame.h (legacy_frame_p): Declare.
7886 * MAINTAINERS (write after approval): Alphabetically
7891 * MAINTAINERS (write after approval): Add myself.
7895 * frame.c (get_prev_frame): Rename the frame parameter to
7897 (get_next_frame, legacy_get_prev_frame): Ditto.
7901 * frame.c (get_current_frame): Check target_has_registers before
7902 checking target_has_stack.
7903 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7904 instead of deprecated_selected_frame.
7905 * findvar.c (value_of_register): Pass "frame", not
7906 deprecated_selected_frame, to value_of_builtin_reg.
7910 * regcache.c (regcache_cooked_write_signed): New function.
7911 (regcache_cooked_write_unsigned): New function.
7912 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7913 (regcache_cooked_read_signed): Fix regnum in range assertion.
7914 * regcache.h (regcache_cooked_write_signed): Declare.
7915 (regcache_cooked_write_unsigned): Declare.
7919 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7920 * gdbarch.h, gdbarch.c: Re-generate.
7921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7922 * x86-64-tdep.h: Update.
7923 * x86-64-tdep.c (x86_64_init_abi): Update.
7924 * v850-tdep.c (v850_gdbarch_init): Update.
7925 * sparc-tdep.c (sparc_gdbarch_init): Update.
7926 * sh-tdep.c (sh_gdbarch_init): Update.
7927 * s390-tdep.c (s390_gdbarch_init): Update.
7928 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7929 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7930 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7931 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7932 * mips-tdep.c (mips_gdbarch_init): Update.
7933 * mcore-tdep.c (mcore_gdbarch_init): Update.
7934 * m68k-tdep.c (m68k_gdbarch_init): Update.
7935 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7936 * ia64-tdep.c (ia64_gdbarch_init): Update.
7937 * i386-tdep.c (i386_gdbarch_init): Update.
7938 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7939 * hppa-tdep.c (hppa_gdbarch_init): Update.
7940 * h8300-tdep.c (h8300_gdbarch_init): Update.
7941 * frv-tdep.c (frv_gdbarch_init): Update.
7942 * cris-tdep.c (cris_gdbarch_init): Update.
7943 * avr-tdep.c (avr_gdbarch_init): Update.
7944 * arm-tdep.c (arm_gdbarch_init): Update.
7945 * alpha-tdep.c (alpha_gdbarch_init): Update.
7946 * sh-tdep.c (sh_init_extra_frame_info): Update.
7947 (sh64_init_extra_frame_info): Update.
7948 * ns32knbsd-nat.c (frame_num_args): Update.
7949 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7950 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7951 (xstormy16_frame_chain_valid): Update.
7952 * vax-tdep.c (vax_saved_pc_after_call): Update.
7953 * v850-tdep.c (v850_frame_chain): Update.
7954 (v850_pop_frame): Update.
7955 (v850_init_extra_frame_info): Update.
7956 * sparc-tdep.c (setup_arbitrary_frame): Update.
7957 * ns32k-tdep.c (umax_frame_num_args): Update.
7958 * s390-tdep.c (s390_pop_frame_regular): Update.
7959 * mn10300-tdep.c (mn10300_frame_chain): Update.
7960 (mn10300_pop_frame_regular): Update.
7961 (mn10300_init_extra_frame_info): Update.
7962 * mips-tdep.c (mips_init_frame_pc_first): Update.
7963 (mips_frame_chain): Update.
7964 (mips_pop_frame): Update.
7965 * mcore-tdep.c (mcore_frame_chain): Update.
7966 (mcore_pop_frame): Update.
7967 (mcore_init_extra_frame_info): Update.
7968 * arch-utils.c (init_frame_pc_default): Update.
7969 * m68k-tdep.c (isi_frame_num_args): Update.
7970 (delta68_frame_num_args): Update.
7971 (news_frame_num_args): Update.
7972 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7973 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7974 (alpha_frame_chain): Update.
7975 (alpha_pop_frame): Update.
7976 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7977 (hppa_init_extra_frame_info): Update.
7978 (hppa_frame_chain): Update.
7979 (hppa_frame_chain_valid): Update.
7980 * cris-tdep.c (cris_init_extra_frame_info): Update.
7981 * avr-tdep.c (avr_init_extra_frame_info): Update.
7982 * arm-tdep.c (arm_frame_chain_valid): Update.
7983 (arm_init_extra_frame_info): Update.
7984 (arm_pop_frame): Update.
7985 * frame.c (frame_pc_unwind): Update.
7986 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7987 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7988 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7989 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7990 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7991 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7995 Eliminate the need for POP_FRAME.
7996 * frame.c (do_frame_unwind_register): New function.
7997 (frame_pop): When no POP_FRAME, pop the frame using register
7998 unwind and a scratch regcache.
7999 (frame_saved_regs_pop): Delete function.
8000 (trad_frame_unwinder): Update.
8001 * d10v-tdep.c (d10v_frame_pop): Delete function.
8002 (d10v_frame_unwind): Update.
8003 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8004 (sentinel_frame_unwinder): Update.
8005 * dummy-frame.c (dummy_frame_pop): Delete function.
8006 (dummy_frame_unwind): Update.
8007 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8008 (struct frame_unwind): Update.
8012 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8013 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8014 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8015 Do range checks on register number obtained from debugging info.
8016 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8017 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8018 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8020 (do_fp_register_row): Fix typo which caused double type to be
8021 used when attempting to unpack a float.
8025 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8029 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8030 frame. Problem found by Corinna Vinschen.
8034 * doublest.c (floatformat_from_length): Accept also
8035 the real size of 'long double' type.
8040 * breakpoint.c (bpstat_copy): Copy the command lines as well
8041 as the old value, to match what is freed in bpstat_clear.
8045 * minsyms.c (add_minsym_to_hash_table): Replace
8046 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8047 (compare_minimal_symbols, compact_minimal_symbols)
8048 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8049 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8050 of DEPRECATED_SYMBOL_MATCHES_NAME.
8051 (lookup_minimal_symbol_solib_trampoline): Ditto.
8055 * regcache.h (regcache_cooked_read_ftype): Define.
8056 (regcache_save, regcache_restore): Add a cooked_read parameter.
8057 * regcache.c (regcache_save, regcache_restore): Update.
8058 (do_cooked_read): New function.
8059 (regcache_cpy): Pass do_cooked_read to regcache_save and
8064 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8065 * gdbarch.h, gdbarch.c: Re-generate.
8066 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8067 * x86-64-tdep.h: Update.
8068 * x86-64-tdep.c (x86_64_init_abi): Update.
8069 * v850-tdep.c (v850_gdbarch_init): Update.
8070 * sparc-tdep.c (sparc_gdbarch_init): Update.
8071 * sh-tdep.c (sh_gdbarch_init): Update.
8072 * s390-tdep.c (s390_gdbarch_init): Update.
8073 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8074 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8075 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8076 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8077 * mips-tdep.c (mips_gdbarch_init): Update.
8078 * mcore-tdep.c (mcore_gdbarch_init): Update.
8079 * m68k-tdep.c (m68k_gdbarch_init): Update.
8080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8081 * ia64-tdep.c (ia64_gdbarch_init): Update.
8082 * i386-tdep.c (i386_gdbarch_init): Update.
8083 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8084 * hppa-tdep.c (hppa_gdbarch_init): Update.
8085 * h8300-tdep.c (h8300_gdbarch_init): Update.
8086 * frv-tdep.c (frv_gdbarch_init): Update.
8087 * cris-tdep.c (cris_gdbarch_init): Update.
8088 * avr-tdep.c (avr_gdbarch_init): Update.
8089 * arm-tdep.c (arm_gdbarch_init): Update.
8090 * alpha-tdep.c (alpha_gdbarch_init): Update.
8091 * sh-tdep.c (sh_init_extra_frame_info): Update.
8092 (sh64_init_extra_frame_info): Update.
8093 * ns32knbsd-nat.c (frame_num_args): Update.
8094 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8095 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8096 (xstormy16_frame_chain_valid): Update.
8097 * vax-tdep.c (vax_saved_pc_after_call): Update.
8098 * v850-tdep.c (v850_frame_chain): Update.
8099 (v850_pop_frame): Update.
8100 (v850_init_extra_frame_info): Update.
8101 * sparc-tdep.c (setup_arbitrary_frame): Update.
8102 * ns32k-tdep.c (umax_frame_num_args): Update.
8103 * s390-tdep.c (s390_pop_frame_regular): Update.
8104 * mn10300-tdep.c (mn10300_frame_chain): Update.
8105 (mn10300_pop_frame_regular): Update.
8106 (mn10300_init_extra_frame_info): Update.
8107 * mips-tdep.c (mips_init_frame_pc_first): Update.
8108 (mips_frame_chain): Update.
8109 (mips_pop_frame): Update.
8110 * mcore-tdep.c (mcore_frame_chain): Update.
8111 (mcore_pop_frame): Update.
8112 (mcore_init_extra_frame_info): Update.
8113 * arch-utils.c (init_frame_pc_default): Update.
8114 * m68k-tdep.c (isi_frame_num_args): Update.
8115 (delta68_frame_num_args): Update.
8116 (news_frame_num_args): Update.
8117 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8118 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8119 (alpha_frame_chain): Update.
8120 (alpha_pop_frame): Update.
8121 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8122 (hppa_init_extra_frame_info): Update.
8123 (hppa_frame_chain): Update.
8124 (hppa_frame_chain_valid): Update.
8125 * cris-tdep.c (cris_init_extra_frame_info): Update.
8126 * avr-tdep.c (avr_init_extra_frame_info): Update.
8127 * arm-tdep.c (arm_frame_chain_valid): Update.
8128 (arm_init_extra_frame_info): Update.
8129 (arm_pop_frame): Update.
8130 * frame.c (frame_pc_unwind): Update.
8131 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8132 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8133 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8134 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8135 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8136 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8140 * gdbarch.sh (gdbarch_unwind_pc): New method.
8141 * gdbarch.h, gdbarch.c: Regenerate.
8142 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8143 but use read_pc and FRAME_SAVED_PC as fall backs.
8144 (frame_saved_regs_pc_unwind): Delete function.
8145 (trad_frame_unwinder): Update.
8146 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8147 (struct frame_unwind): Update.
8148 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8149 (dummy_frame_unwind): Update.
8150 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8151 (sentinel_frame_unwinder): Update.
8152 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8153 (d10v_frame_unwind): Update.
8154 (d10v_unwind_pc): New function.
8155 (d10v_gdbarch_init): Set unwind_pc.
8159 * gdbarch.h: Re-generate.
8161 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8163 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8168 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8172 * cli-out.c: Update copyright.
8173 (cli_out_data): Define typedef. Use instead of ui_out_data.
8177 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8182 * gdbarch.sh: Don't generate two macro definitions when an
8183 undefined macro taking no arguments.
8184 * gdbarch.h: Regenerate.
8188 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8189 (x86_64_unwind_dummy_id): New functions.
8190 (x86_64_init_abi): Register these two new functions.
8194 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8195 (x86_64_skip_prologue): Move prologue detection to
8197 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8201 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8202 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8203 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8204 to use unwind_dummy_id when a dummy frame.
8205 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8207 * gdbarch.h, gdbarch.c: Regneerate.
8211 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8212 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8213 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8218 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8219 (struct d10v_unwind_cache): Delete field "frameless". Replace
8220 "next_addr" with "sp_offset". Add "r11_offset".
8221 (d10v_frame_unwind_cache): Update.
8222 (prologue_find_regs): Update. When "mv r11, sp", save the
8223 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8224 RN was saved in r11_offset.
8228 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8229 cached PC value in the next frame.
8233 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8234 "id_unwind_cache" with "id".
8235 (frame_id_unwind): Delete declaration.
8236 * frame.c (frame_id_unwind): Delete function.
8237 (get_prev_frame): Call the frame id unwind method directly. Store
8238 the returned next frame's ID value in NEXT_FRAME. Note that there
8239 is a problem with the wrong unwind ID being called with the wrong
8244 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8249 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8250 (auto_cp_abi): New variable.
8251 (current_cp_abi, num_cp_abis): Make static.
8252 (CP_ABI_MAX): Define.
8253 (cp_abis): Turn into an array.
8254 (value_virtual_fn_field): Fix formatting.
8255 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8257 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8258 (list_cp_abis, _initialize_cp_abi): New functions.
8259 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8260 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8261 switch_to_cp_abi. Update prototype for register_cp_abi.
8262 * Makefile.in (cp-abi.o): Update dependencies.
8263 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8264 instead of switch_to_cp_abi.
8265 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8267 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8269 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8273 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8274 * dwarf2loc.c: Include "regcache.h".
8275 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8277 * Makefile.in (dwarf2loc.o): Update dependencies.
8281 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8282 number of io registers reported by remote target is not a multiple of
8287 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8288 (lookup_symbol_aux_psymtabs): Update call to
8289 lookup_partial_symbol.
8290 (lookup_transparent_type, find_main_psymtab)
8291 (make_symbol_overload_list): Ditto.
8295 * MAINTAINERS (Write after approval): Update my email address.
8299 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8300 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8301 predicate. Replace MAX_REGISTER_RAW_SIZE.
8302 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8303 MAX_REGISTER_VIRTUAL_SIZE.
8304 * regcache.c (legacy_max_register_raw_size): New function.
8305 (legacy_max_register_virtual_size): New function.
8306 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8307 (MAX_REGISTER_RAW_SIZE): Define.
8308 (legacy_max_register_raw_size): Declare.
8309 (legacy_max_register_virtual_size): Declare.
8310 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8311 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8312 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8313 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8314 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8315 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8316 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8317 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8318 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8320 * vax-tdep.c (vax_gdbarch_init): Update.
8321 * v850-tdep.c (v850_gdbarch_init): Update.
8322 * sparc-tdep.c (sparc_gdbarch_init): Update.
8323 * sh-tdep.c (sh_gdbarch_init): Update.
8324 * s390-tdep.c (s390_gdbarch_init): Update.
8325 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8326 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8327 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8328 * mips-tdep.c (mips_gdbarch_init): Update.
8329 * mcore-tdep.c (mcore_gdbarch_init): Update.
8330 * m68k-tdep.c (m68k_gdbarch_init): Update.
8331 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8332 * ia64-tdep.c (ia64_gdbarch_init): Update.
8333 * i386-tdep.c (i386_gdbarch_init): Update.
8334 * hppa-tdep.c (hppa_gdbarch_init): Update.
8335 * h8300-tdep.c (h8300_gdbarch_init): Update.
8336 * frv-tdep.c (frv_gdbarch_init): Update.
8337 * cris-tdep.c (cris_gdbarch_init): Update.
8338 * avr-tdep.c (avr_gdbarch_init): Update.
8339 * arm-tdep.c (arm_gdbarch_init): Update.
8340 * alpha-tdep.c (alpha_gdbarch_init): Update.
8341 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8342 max_register_raw_size or max_register_virtual_size.
8346 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8347 SYMBOL_MATCHES_NAME, add comment.
8348 (SYMBOL_MATCHES_NATURAL_NAME): New.
8349 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8350 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8351 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8352 * symtab.c (lookup_partial_symbol): Use
8353 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8355 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8356 SYMBOL_MATCHES_NAME.
8361 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8362 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8363 by regexp matching against SYMBOL_NATURAL_NAME.
8367 * linespec.c (find_method): Extract code into collect_methods.
8368 (collect_methods): New.
8372 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8375 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8376 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8380 * arch-utils.c (generic_register_byte): Fix to use the loop index
8381 and not regnum when summing the size of all registers up to regnum.
8385 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8386 FRAME_INIT_SAVED_REGS.
8387 * gdbarch.h, gdbarch.c: Regenerate.
8388 * stack.c (frame_info): Update.
8389 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8390 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8391 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8392 * ns32k-tdep.c (ns32k_pop_frame): Update.
8393 * mips-tdep.c (mips_pop_frame): Update.
8394 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8395 * ia64-tdep.c (ia64_frame_chain): Update.
8396 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8397 (ia64_frameless_function_invocation): Update.
8398 (ia64_init_extra_frame_info): Update.
8399 (ia64_pop_frame_regular): Update.
8400 * frame.h (struct frame_info): Update comment.
8401 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8402 * frame.c (frame_saved_regs_register_unwind): Update.
8403 (frame_saved_regs_register_unwind): Update.
8404 (deprecated_generic_get_saved_register): Update.
8405 * cris-tdep.c: Update comment.
8406 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8408 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8409 * x86-64-tdep.c (x86_64_init_abi): Update.
8410 * vax-tdep.c (vax_gdbarch_init): Update.
8411 * v850-tdep.c (v850_gdbarch_init): Update.
8412 * sparc-tdep.c (sparc_gdbarch_init): Update.
8413 * sh-tdep.c (sh_gdbarch_init): Update.
8414 * s390-tdep.c (s390_gdbarch_init): Update.
8415 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8416 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8417 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8418 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8419 * mips-tdep.c (mips_gdbarch_init): Update.
8420 * mcore-tdep.c (mcore_gdbarch_init): Update.
8421 * m68k-tdep.c (m68k_gdbarch_init): Update.
8422 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8423 * ia64-tdep.c (ia64_gdbarch_init): Update.
8424 * i386-tdep.c (i386_gdbarch_init): Update.
8425 * frv-tdep.c (frv_gdbarch_init): Update.
8426 * avr-tdep.c (avr_gdbarch_init): Update.
8427 * arm-tdep.c (arm_gdbarch_init): Update.
8428 * alpha-tdep.c (alpha_gdbarch_init): Update.
8432 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8433 option enum and switch. When no windows, set the interpreter to
8438 * main.c (captured_main): Replace magic option characters with an
8443 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8444 INIT_EXTRA_FRAME_INFO.
8445 * gdbarch.h, gdbarch.c: Regenerate.
8446 * arm-tdep.c: Update comments.
8447 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8448 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8449 * frame.h, avr-tdep.c: Ditto.
8450 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8451 (create_new_frame, legacy_get_prev_frame): Ditto.
8452 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8453 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8455 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8456 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8457 * v850-tdep.c (v850_gdbarch_init): Ditto.
8458 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8459 * sh-tdep.c (sh_gdbarch_init): Ditto.
8460 * s390-tdep.c (s390_gdbarch_init): Ditto.
8461 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8462 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8463 * mips-tdep.c (mips_gdbarch_init): Ditto.
8464 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8466 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8467 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8468 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8469 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8470 * frv-tdep.c (frv_gdbarch_init): Ditto.
8471 * cris-tdep.c (cris_gdbarch_init): Ditto.
8472 * avr-tdep.c (avr_gdbarch_init): Ditto.
8473 * arm-tdep.c (arm_gdbarch_init): Ditto.
8474 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8475 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8479 * gdbarch.sh (register_type): New function with predicate.
8480 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8481 * gdbarch.h, gdbarch.c: Re-generate.
8482 * arch-utils.c (generic_register_byte): Use generic_register_size.
8483 (generic_register_size): When available, use
8484 gdbarch_register_type.
8485 * regcache.c (init_regcache_descr): When available, initialize the
8486 register type array using gdbarch_register_type. If the
8487 architecture supplies gdbarch_register_type, do not use the legacy
8489 * d10v-tdep.c (d10v_register_type): Replace
8490 d10v_register_virtual_type.
8491 (d10v_gdbarch_init): Set register_type instead of
8492 register_virtual_type.
8496 * Makefile.in (ax-gdb.o): Update dependencies.
8497 * ax-gdb.c: Include "regcache.h".
8498 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8499 * findvar.c (value_of_register): Ditto.
8500 * infcmd.c (default_print_registers_info): Ditto.
8504 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8505 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8509 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8514 * Makefile.in (dwarf2loc.o): Update dependencies.
8515 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8516 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8517 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8518 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8519 (locexpr_tracepoint_var_ref): New function.
8520 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8524 * regcache.c (register_size): New function.
8525 * regcache.h (register_size): Declare
8526 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8527 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8531 * linespec.c (decode_compound): Extract code into find_method.
8536 * Makefile.in: Add rules to build and link in observer.o.
8540 * observer.c: Minor comments edits.
8544 * observer.h, observer.c: New file.
8548 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8552 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8553 (M6812_OP_STS_EXT): Likewise.
8554 (m6811_prologue): Use the above to recognize prologue.
8555 (m6812_prologue): Likewise.
8559 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8561 (compare_psymbols): Ditto.
8562 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8566 * f-lang.c (build_fortran_types): New function.
8567 (_initialize_f_language): Gdbarch-register built-in fortran types.
8568 * doublest.c (extract_floating): Fix warning text.
8572 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8573 predicate. Replaces PUSH_DUMMY_FRAME.
8574 * gdbarch.h, gdbarch.c: Regnerate.
8575 * valops.c (hand_function_call): Update. Call
8576 generic_push_dummy_frame directly.
8577 * vax-tdep.c (vax_gdbarch_init): Update.
8578 * sparc-tdep.c (sparc_gdbarch_init): Update.
8579 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8580 * m68k-tdep.c (m68k_gdbarch_init): Update.
8581 * hppa-tdep.c (hppa_gdbarch_init): Update.
8582 * alpha-tdep.c (alpha_gdbarch_init): Update.
8583 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8584 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8585 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8587 push_dummy_frame to generic_push_dummy_frame.
8588 * v850-tdep.c (v850_gdbarch_init): Ditto.
8589 * sh-tdep.c (sh_gdbarch_init): Ditto.
8590 * s390-tdep.c (s390_gdbarch_init): Ditto.
8591 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8592 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8593 * mips-tdep.c (mips_gdbarch_init): Ditto.
8594 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8595 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8596 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8597 * i386-tdep.c (i386_gdbarch_init): Ditto.
8598 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8599 * frv-tdep.c (frv_gdbarch_init): Ditto.
8600 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8601 * cris-tdep.c (cris_gdbarch_init): Ditto.
8602 * avr-tdep.c (avr_gdbarch_init): Ditto.
8603 * arm-tdep.c (arm_gdbarch_init): Ditto.
8607 * mips-tdep.c (show_mips_abi): New function.
8608 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8609 command ``show mips abi''.
8614 * dbxread.c (process_one_symbol): Only record line 0 if one or
8615 more sline entries have been seen for the function.
8619 * configure: Regenerate with autoconf 000227.
8624 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8625 for old libc5/glibc.
8626 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8630 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8631 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8635 * configure.in: New variable HAVE_UINTPTR_T.
8636 * configure, config.in: Regenerated.
8641 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8645 * frame.c (get_prev_frame): Add comment on check for
8646 inside_entry_func. Only check for inside_entry_file when not a
8647 dummy and not a sentinel. Check that the new frame is not inner
8652 * frame.c (frame_debug): New variable.
8653 (_initialize_frame): Add "set/show debug frame" command.
8654 (get_prev_frame): When frame_debug, print reason why unwind
8659 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8660 to avoid uintptr_t definition problems.
8664 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8665 (SYMBOL_LINKAGE_NAME): Ditto.
8666 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8667 SYMBOL_LINKAGE_NAME.
8668 (struct general_symbol_info): Expand comment.
8669 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8670 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8671 (SYMBOL_MATCHES_REGEXP): Ditto.
8672 * symtab.c (symbol_natural_name): New function.
8673 * objfiles.h: Replace all uses of SYMBOL_NAME by
8674 DEPRECATED_SYMBOL_NAME.
8675 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8676 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8677 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8678 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8679 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8680 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8681 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8682 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8683 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8684 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8686 * ada-exp.y: Update copyright.
8687 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8688 * cp-valprint.c: Ditto.
8692 * infptrace.c (detach): Do not flag error if ptrace detach fails
8693 and errno is set to ESRCH.
8697 * infptrace.c (udot_info): Change type of udot_off to long. Use
8698 paddr when printing udot_off's value.
8702 * symtab.c (make_symbol_overload_list): Only read in partial
8703 symtabs containing a matching partial symbol.
8707 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8708 do the comparison, not strcmp.
8709 * symfile.c (compare_psymbols): Ditto.
8710 * defs.h: Declare strcmp_iw_ordered.
8711 * utils.c (strcmp_iw_ordered): New function.
8715 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8716 support, shared libs): Remove my name from here, to better reflect
8721 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8722 (target_ops): Add to_have_continuable_watchpoint.
8723 * target.c (update_current_target): Add INHERIT line for
8724 to_have_continuable_watchpoint.
8725 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8726 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8727 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8728 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8732 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8737 * solib.c (solib_open): Call target defined search function after
8738 failing with solib-search-path.
8739 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8740 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8744 * MAINTAINERS: Add myself to Write After section.
8748 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8752 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8753 (m68hc11_add_reggroups): New function.
8754 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8755 (m68hc11_gdbarch_init): Install the reggroups.
8756 (_initialize_m68hc11_tdep): Initialize them.
8760 * MAINTAINERS: Update my email address.
8764 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8769 * symtab.h: Add opaque declarations of struct axs_value and
8771 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8772 (struct location_funcs): New type.
8773 (struct symbol): Add "loc" to aux_value.
8774 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8775 * dwarf2read.c: Include "dwarf2expr.h".
8776 (dwarf2_symbol_mark_computed): New function.
8777 (read_func_scope): Use it.
8778 (var_decode_location): New function.
8779 (new_symbol): Use it.
8780 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8782 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8783 (dwarf2expr_h, dwarf2loc_h): New variables.
8784 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8785 (dwarf2expr.o, dwarf2loc.o): New rules.
8786 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8787 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8789 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8790 * m2-exp.y (yylex): Likewise.
8791 * printcmd.c (address_info, print_frame_args): Likewise.
8792 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8793 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8794 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8795 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8796 * symtab.c (lookup_block_symbol): Likewise.
8800 * symtab.h: Remove objc_specific struct
8801 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8802 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8803 Have language_objc use cplus_specific struct.
8807 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8808 TYPE_NAME, when printing a String value. PR java/1075.
8812 * objc-lang.h (find_methods): Remove declaration.
8813 * objc-lang.c (find_methods): Make static.
8817 * win32-nat.c (get_image_name): Check return value from
8819 (child_xfer_memory): Ditto.
8823 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8824 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8825 '${exec_prefix}' (in addition to the expansion thereof) as
8827 * configure: Rebuilt.
8831 * symtab.c (search_symbols): Revert the search_symbols part of my
8832 2002-12-23 patch. Add comment.
8836 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8837 * dbxread.c (elfstab_build_psymtabs): Don't call
8838 install_minimal_symbols.
8839 (stabsect_build_psymtabs): Likewise.
8840 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8842 * somread.c (som_symfile_read): Call install_minimal_symbols
8843 and do_cleanups earlier.
8844 * nlmread.c (nlm_symfile_read): Likewise.
8845 * mdebugread.c (elfmdebug_build_psymtabs): Call
8846 install_minimal_symbols and make appropriate cleanups.
8850 * solib.c (reload_shared_libraries): New function.
8851 (_initialize_solib): Add callbacks for ``set solib-search-path''
8852 and ``set solib-absolute-prefix''.
8856 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8858 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8859 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8860 * ada-typeprint.c (ada_typedef_print): Ditto.
8861 * ax-gdb.c (gen_var_ref): Ditto.
8862 * breakpoint.c (print_one_breakpoint): Ditto.
8863 * buildsym.c (finish_block): Ditto.
8864 * c-valprint.c (c_val_print): Ditto.
8865 * expprint.c (print_subexp): Ditto.
8866 * findvar.c (locate_var_value): Ditto.
8867 * infcmd.c (jump_command): Ditto.
8868 * linespec.c (decode_line_2, decode_compound): Ditto.
8869 * maint.c (maintenance_translate_address): Ditto.
8870 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8871 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8873 * p-valprint.c (pascal_val_print): Ditto.
8874 * stabsread.c (define_symbol): Ditto.
8875 * stack.c (print_frame, frame_info, print_block_frame_locals)
8876 (print_frame_arg_vars, return_command): Ditto.
8877 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8878 * symmisc.c (print_symbol): Ditto.
8879 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8880 (compare_search_syms, print_symbol_info, print_msymbol_info)
8881 (rbreak_command): Ditto.
8882 * tracepoint.c (tracepoints_info): Ditto.
8883 * typeprint.c (typedef_print): Ditto.
8884 * valops.c (value_of_variable, hand_function_call): Ditto.
8885 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8886 * ada-typeprint.c: Update Copyright.
8887 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8888 * tracepoint.c, cli/cli-cmds.c: Ditto.
8892 * frame.c (generic_unwind_get_saved_register): Make non-static.
8893 * frame.h (generic_unwind_get_saved_register): Declare.
8894 * mips-tdep.c (read_next_frame_reg): Fetch register from
8895 current regcache when frame is NULL.
8896 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8898 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8899 instead of frame_register_unwind().
8903 * remote-sim.c (gdbsim_insert_breakpoint)
8904 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8909 * remote.c (_initialize_remote): Add commands "set/show remote
8910 hardware-watchpoint-limit" and "set/show remote
8911 hardware-breakpoint-limit".
8912 (remote_hw_watchpoint_limit): Initialize to -1.
8913 (remote_hw_breakpoint_limit): Ditto.
8914 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8918 * coff-pe-read.c: New file - support reading of minimal symbols from a
8919 portable executable using the export table.
8920 * coff-pe-read.h: New file.
8921 * coffread.c: Include coff-pe-read.h.
8922 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8923 debugging symbols found.
8924 * Makefile.in (SFILES): Add coff-pe-read.o.
8925 (coff_pe_read_h): Define.
8926 (COMMON_OBS): Add coff-pe-read.o.
8927 (coffread.o): Add coff_pe_read_h dependency.
8928 (coff-pe-read.o): New target.
8932 * Makefile.in (SFILES): Add block.c.
8934 (COMMON_OBS): Add block.o.
8936 (x86-64-tdep.o): Add $(block_h).
8937 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8938 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8939 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8940 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8941 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8942 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8943 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8944 * value.h: Add opaque declaration for struct block.
8945 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8946 * ada-lang.h: Ditto.
8947 * x86-64-tdep.c: #include "block.h"
8948 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8949 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8950 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8951 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8952 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8953 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8954 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8955 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8956 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8957 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8958 * symtab.c (block_function): Ditto.
8959 (contained_in): Ditto.
8960 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8961 block.h. Add opaque declaration for struct block.
8962 * symtab.h: Move block_function and contained_in declarations to
8963 block.h. Add opaque declarations for struct block, struct
8965 (struct block): Move to block.h.
8966 (struct blockvector): Ditto.
8967 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8968 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8969 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8970 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8971 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8973 * block.c: New file.
8974 * block.h: New file.
8978 * avr-tdep.c (avr_extract_return_value): Remove function.
8979 (avr_store_return_value): Remove function.
8980 (avr_extract_struct_value_address): Remove function.
8981 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8985 * rs6000-tdep.c: Include "gdb_assert.h".
8986 (registers_e500): Add "acc" and "spefscr".
8987 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8988 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8989 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8991 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8995 * Makefile.in: Add gdbtk-interps.c.
8999 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9000 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9004 * symtab.h (struct objfile): Add opaque declaration.
9009 * dbxread.c (process_one_symbol): Use last_function_start rather
9010 than function_start_offset to find the real beginning of the
9011 current function. The latter is just the text section offset on
9012 some systems, the former is always the real function start.
9016 * configure.in: Revert ${target} != ${host}.
9020 * configure.in (Makefile): Use the test ${target} != ${host},
9021 instead of the absence of the "nm.h" file, to determine of the
9022 configuration non-native.
9023 * configure: Regenerate.
9029 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9030 conditionalize tui_active test.
9031 (lookup_cmd_1): Ditto.
9035 * configure.in: Add check for _etext.
9036 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9038 * config.in, configure: regenerated.
9042 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9046 * main.c (tui_version): Delete variable.
9047 (captured_main): When --tui, set interpreter_p to "tui" instead of
9048 enabling tui_version.
9049 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9051 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9052 * cli/cli-cmds.c (disassemble_command): Ditto.
9053 * defs.h (tui_version): Delete declaration.
9054 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9055 (tui-interp.o): Add rules.
9056 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9060 * win32-nat.c (register_loaded_dll): Correctly set address range for
9065 * symmisc.c (print_objfile_statistics): Include information about
9066 the number of psymtabs and symtabs in each object file.
9070 * main.h (struct captured_main_args): Add interpreter_p.
9071 * main.c (captured_main): Initialize interpreter_p from context.
9072 * gdb.c (main): Set interpreter_p argument.
9073 * Makefile.in (gdb.o): Add dependency for interps.h.
9077 * event-top.c (cli_command_loop): Delete declaration.
9078 (_initialize_event_loop): Delete function setting event_loop_hook.
9079 * event-top.h (cli_command_loop): Declare. Update copyright.
9080 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9081 * interps.c (current_interp_command_loop): When event_loop_p, call
9086 * interps.h (interp_command_loop_ftype): Change return type to
9091 * x86-64-tdep.c (x86_64_extract_return_value)
9092 (x86_64_store_return_value): Use regcache instead of regbuf.
9093 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9094 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9098 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9099 * aclocal.m4: Regenerate.
9100 * configure: Regenerate.
9102 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9103 TCL_LD_SEARCH_FLAGS.
9107 * dwarf2cfi.c: Reindented.
9111 * interps.c (clear_interpreter_hooks): Convert function definition
9116 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9120 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9121 (struct type): ...to here.
9122 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9124 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9125 (replace_type): Set length on all type variants for a given type.
9129 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9131 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9135 * Makefile.in (symm-nat.o): Update dependencies.
9136 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9137 (lynx-nat.o, ia64-linux-nat.): Ditto.
9138 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9139 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9140 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9142 * Makefile.in (inflow_h): Define.
9143 (procfs.o, inflow.o, procfs.o): Update dependencies.
9144 * inftarg.c (child_stop): Delete extern declaration of
9145 inferior_process_group. Include "inflow.h".
9146 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9147 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9148 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9149 (our_process_group, inferior_process_group): Extern declarations.
9151 * procfs.c: Include "gdb_assert.h".
9153 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9154 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9155 * jv-typeprint.c (java_type_print_base): Ditto.
9156 * typeprint.c (typedef_print): Eliminate STREQ.
9157 * cli/cli-script.c (define_command, define_command): Ditto.
9158 * main.c (captured_main): Ditto.
9159 * values.c (lookup_internalvar): Ditto.
9160 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9161 within `if' conditional.
9162 * linespec.c (decode_line_2): Ditto.
9163 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9164 (bfd_openw_with_cleanup): Ditto.
9168 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9169 legacy_extract_return_value and store_return_value to
9170 legacy_return_value.
9174 * win32-nat.c (get_relocated_section_addrs): New function. Find
9175 section load addresses for symbol handling in relocated DLLs.
9176 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9180 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9182 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9184 (angel_RDI_info): Ditto.
9185 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9187 (threads_continue_all_with_signals): Ditto.
9194 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9195 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9196 (SUBDIR_MI_OBS): Add "mi-interp.o".
9197 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9198 (SFILES): Add "interps.c".
9199 (COMMON_OBS): Add "interps.o".
9200 (interps_h, mi_main_h): Define.
9201 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9202 (mi-main.o, main.o, event-top.o): Update dependencies.
9203 * cli/cli-interp.c: New file.
9204 * interps.h, interps.c: New files.
9205 * top.c: (gdb_init): Don't install the default interpreter, handed
9207 * main.c: Include "interps.h".
9208 (interpreter_p): Note that it should malloc'ed.
9209 (captured_command_loop): Call current_interp_command_loop.
9210 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9211 xfree and xstrdup when updating interpreter_p. Install the
9212 default interpreter. Add hack to stop mi1's copyright notice
9214 * event-top.h (gdb_setup_readline): Declare.
9215 (gdb_disable_readline): Declare.
9216 * event-top.c: Include "interps.h".
9217 (display_gdb_prompt): Call current_interp_display_prompt_p.
9218 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9219 gdb_stdlog, and gdb_stdtarg.
9220 (_initialize_event_loop): Don't call gdb_setup_readline.
9221 * cli-out.c (cli_out_set_stream): New function.
9222 * cli-out.h (cli_out_set_stream): Declare.
9226 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9227 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9228 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9229 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9230 config/i386/i386v42mp.mt: Removed.
9234 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9239 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9240 2.12.1 and earlier versions.
9244 Remove orphaned hosts, targets and files.
9245 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9246 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9247 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9248 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9249 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9250 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9251 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9252 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9253 * config/sparc/tm-sp64sim.h: Delete.
9254 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9256 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9257 mips*-dec-mach3* targets.
9261 * NEWS: Fix typo: sepcifying -> specifying.
9265 * dwarfread.c: Add documentation on the state of dwarf-1,
9266 looking towards obsoletion.
9270 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9271 gdb/testsuite/gdb.c++/pr-1023.exp.
9275 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9276 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9278 * utils.c (init_page_info): Delete reference to MPW in comments.
9279 * main.c (captured_main): Delete #ifdef MPW.
9283 * NEWS: Note that the m32r-*-elf* is obsolete.
9284 * monitor.c (monitor_expect): Obsolete reference to m32r.
9285 * configure.tgt: Mark m32r-*-elf* as obsolete.
9286 * MAINTAINERS: Mark m32k as obsolete.
9287 * m32r-rom.c: Obsolete file.
9288 * config/m32r/m32r.mt: Obsolete file.
9289 * config/m32r/tm-m32r.h: Obsolete file.
9290 * m32r-stub.c: Obsolete file.
9291 * m32r-tdep.c: Obsolete file.
9295 * NEWS: Mention that the z8k-zilog-none is obsolete.
9296 * MAINTAINERS: Mark z8k as obsolete.
9297 * configure.tgt: Obsolete the z8k-*-coff* target.
9298 * config/z8k/z8k.mt: Obsolete file.
9299 * config/z8k/tm-z8k.h: Obsolete file.
9300 * z8k-tdep.c: Obsolete file.
9304 * NEWS: Mention that the mn10200-elf is obsolete.
9305 * configure.tgt: Obsolete mn10200-*-* target.
9306 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9307 mention that the mn10200 is obsolete.
9308 * breakpoint.h: Ditto.
9309 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9310 * config/mn10200/mn10200.mt: Obsolete file.
9311 * config/mn10200/tm-mn10200.h: Obsolete file.
9312 * mn10200-tdep.c: Obsolete file.
9316 * MAINTAINERS: Mark h8500 as obsolete.
9317 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9318 * findvar.c (value_from_register): Ditto.
9319 * h8500-tdep.c: Mark file as obsolete.
9320 * config/h8500/h8500.mt: Ditto.
9321 * config/h8500/tm-h8500.h: Ditto.
9322 * NEWS: Mention that h8500 is obsolete.
9326 * objfiles.c (allocate_objfile): Always set name. Add comment at
9328 * jv-lang.c (get_dynamics_objfile): Add comment.
9332 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9333 * printcmd.c (build_address_symbolic): Replace uses of
9334 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9335 SYMBOL_NAME, and asm_demangle.
9340 * linespec.c (decode_compound): Extract code into
9342 (lookup_prefix_sym): New function.
9346 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9347 FLOAT_COERCION_BADNESS.
9348 * gdbtypes.c (rank_one_type): Replace all uses of
9349 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9353 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9354 section, let dwarf_macinfo_section point to it, not
9360 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9361 (ppc_linux_at_sigtramp_return_path): Use it.
9365 * defs.h (streq): Add prototype.
9366 * utils.c (streq): New function.
9368 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9369 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9370 * mdebugread.c (new_symbol): Likewise.
9371 * stabsread.c (define_symbol): Likewise.
9372 * coffread.c (process_coff_symbol): Likewise.
9373 * dwarfread.c (new_symbol): Likewise.
9375 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9376 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9378 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9379 SYMBOL_INIT_DEMANGLED_NAME.
9380 * objfiles.c: Include "hashtab.h".
9381 (allocate_objfile): Call htab_set_functions_ex for the
9382 demangled_names_hash.
9383 (free_objfile): Call htab_delete for the demangled_names_hash.
9384 * objfiles.h (struct htab): Add declaration.
9385 (struct objfile): Add demangled_names_hash.
9386 * symfile.c: Include "hashtab.h".
9387 (reread_symbols): Call htab_delete for the demangled_names_hash.
9388 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9389 SYMBOL_NAME in the bcache.
9390 * symtab.c: Include "hashtab.h". Update comments.
9391 (create_demangled_names_hash, symbol_set_names): New functions.
9392 (symbol_find_demangled_name): New function, broken out from
9393 symbol_init_demangled_names.
9394 (symbol_init_demangled_names): Use it.
9395 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9396 (SYMBOL_SET_NAMES): New macro.
9397 (symbol_set_names): Add prototype.
9401 Use a single, consistent representation for an empty minimal
9402 symbol table in an objfile.
9403 * objfiles.c (terminate_minimal_symbol_table): New function.
9404 (allocate_objfile): Call it.
9405 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9406 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9408 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9409 objfile has minimal symbols, compare minimal_symbol_count to zero,
9410 instead of comparing msymbols with NULL.
9411 * objfiles.c (have_minimal_symbols): Same.
9412 * solib-sunos.c (solib_add_common_symbols): Call
9413 terminate_minimal_symbol_table.
9414 * symfile.c (reread_symbols): Same.
9418 * s390-tdep.c (s390_address_class_type_flags)
9419 (s390_address_class_type_flags_to_name)
9420 (s390_address_class_name_to_type_flags): New functions.
9421 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9422 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9426 * arm-tdep.c: Fix spell-o in comment.
9430 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9431 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9432 error messages to contain BFD filename.
9436 Fix PR gdb/742 gdb/743 gdb/877
9437 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9438 (do_mixed_source_and_assembly): Use
9439 make_cleanup_ui_out_tuple_begin_end and
9440 make_cleanup_ui_out_tuple_begin_end.
9441 (do_mixed_source_and_assembly): Ditto.
9442 * thread.c (do_captured_list_thread_ids): Ditto.
9443 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9444 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9445 ui_out_tuple_end): Delete prototypes.
9446 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9447 ui_out_list_end, ui_out_tuple_end): Delete.
9450 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9451 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9452 (do_cleanup_table_end): New functions.
9453 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9454 Use cleanups to invoke_ui_out_tuple_end().
9455 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9456 * cli/cli-setshow.c (cmd_show_list): Use
9457 make_cleanup_ui_out_tuple_begin_end.
9461 * frame.c (frame_unwind_register): New function.
9462 (frame_unwind_unsigned_register): Use.
9463 (frame_unwind_signed_register): Use.
9464 (frame_read_register): New function.
9465 * frame.h (frame_unwind_register): Declare.
9466 (frame_read_register): Declare.
9468 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9469 and frame_unwind_register instead of read_memory, write_register
9470 and deprecated_write_register_bytes.
9474 * frame.h: Note that namelen can be negative.
9475 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9478 * NEWS: Mention that the d10v's `regs' command is deprecated.
9479 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9480 (d10v_print_registers_info): New function.
9481 (show_regs): Call d10v_print_registers_info.
9482 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9486 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9487 lost in the previous patch.
9492 * stack.c (print_frame_info_base): Output complete FRAME tuple
9493 for synthesized frames.
9497 * mips-nat.c (zerobuf): Delete.
9498 (fetch_inferior_registers): Alloc local zerobuf.
9499 (fetch_core_registers): Alloc local zerobuf.
9500 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9501 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9502 * thread-db.c (thread_db_store_registers): Ditto.
9503 * sh-tdep.c (sh_do_register): Ditto.
9504 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9505 * remote-sim.c (gdbsim_store_register): Ditto.
9506 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9507 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9508 * monitor.c (monitor_supply_register): Ditto.
9509 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9510 * mips-nat.c (fetch_inferior_registers): Ditto.
9511 * m68klinux-nat.c (fetch_register): Ditto.
9512 * lynx-nat.c (fetch_inferior_registers): Ditto.
9513 (fetch_inferior_registers): Ditto.
9514 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9515 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9516 (hpux_thread_store_registers): Ditto.
9517 * hppah-nat.c (fetch_register): Ditto.
9518 * hppab-nat.c (fetch_register): Ditto.
9519 * hppa-tdep.c (pa_register_look_aside): Ditto.
9520 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9521 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9525 * gdbarch.sh: Explictly specify all method levels. When a
9526 variable with an empty level, provide a non-multi-arch default.
9527 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9528 * gdbarch.h: Re-generate.
9529 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9530 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9534 * defs.h (host_pointer_to_address): Delete declaration.
9535 (address_to_host_pointer): Delete declaration.
9536 * utils.c (host_pointer_to_address): Delete function.
9537 (address_to_host_pointer): Delete function.
9538 * procfs.c (procfs_address_to_host_pointer): New function.
9539 * procfs.c (proc_set_watchpoint): Use.
9540 (procfs_can_use_hw_breakpoint): Update comments.
9541 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9542 (som_solib_add): Use.
9543 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9544 * hppa-tdep.c (unwind_command): Use.
9548 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9551 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9552 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9553 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9554 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9555 (define_symbol): Update.
9556 * symfile.c (generic_load): Remove references to nindy.
9557 * symtab.c: Remove references to nindy.
9561 * infcmd.c (print_float_info): Delete code conditional on
9563 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9564 * config/m68k/nm-apollo68b.h: Ditto.
9565 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9566 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9567 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9571 * config/i386/tm-i386os9k.h: Removed.
9573 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9574 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9575 they're identical to i[3456]86-*-sysv* now.
9576 * config/i386/i386v32.mh: Removed.
9577 * config/i386/xm-i386v32.h: Removed.
9578 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9580 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9582 * config/i386/i386dgux.mh: Removed.
9583 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9585 * configure.in: Fix typo.
9586 * configure: Regenerated.
9590 * dwarf2read.c (dwarf2_locate_sections): Set
9591 dwarf_ranges_section.
9595 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9596 * utils.c: Update comments documenting legitimate uses of PTR.
9598 * utils.c: Re-indent.
9600 * config/djgpp/fnchange.lst: Delete nindy files.
9601 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9602 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9603 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9604 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9605 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9606 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9607 * Makefile.in (init.c): Remove nindy references.
9608 (saber_gdb): Delete rule.
9609 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9610 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9612 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9613 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9614 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9615 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9617 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9618 * saber.suppress: Delete file.
9622 * dbxread.c (stabs_data): New static variable.
9623 (fill_symbuf): Support an in-memory buffer for stabs data.
9624 (stabs_seek): New function.
9625 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9626 (read_ofile_symtab): Use stabs_seek.
9627 (elfstab_build_psymtabs): Take an asection* instead of
9628 an offset and size. Relocate the stabs data if necessary.
9629 Save the section* for dbx_psymtab_to_symtab.
9630 * dwarf2read.c: Add section variables for each debug section.
9631 (dwarf2_locate_sections): Fill them in.
9632 (dwarf2_read_section): Take an asection* argument.
9633 Relocate the section contents if necessary.
9634 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9635 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9636 it to dwarf2_read_section.
9637 (dwarf2_build_frame_info): Update callers.
9638 * elfread.c (elf_symfile_read): Update call to
9639 elfstab_build_psymtabs.
9640 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9641 (DBX_STAB_SECTION): New macro.
9642 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9643 * symfile.c (symfile_dummy_outputs): New function.
9644 (symfile_relocate_debug_section): New function.
9645 * symfile.h (symfile_relocate_debug_section): Add prototype.
9649 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9650 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9651 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9652 * alpha-tdep.c (alpha_register_name): Add "unique".
9653 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9654 (ALPHA_UNIQUE_REGNUM): New.
9655 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9659 * README: Remove reference to Ericsson 1800 monitor.
9660 * Makefile.in (remote-es.o): Delete rule.
9661 (ALLDEPFILES): Delete remote-es.c.
9662 * remote-es.c: Delete file.
9663 * config/m68k/es1800.mt: Delete file.
9664 * config/djgpp/fnchange.lst: Update.
9665 * configure.tgt: Delete m68*-ericsson-* target.
9669 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9670 Remove duplicate/shadowing variable of same name.
9674 * symfile.c (find_separate_debug_file): Assert that the objfile's
9675 directory name we compute ends with a slash, and then assume that
9676 that's so everywhere we use it.
9680 * valops.c (value_assign): Flush frame cache after stores to memory
9685 * Makefile.in (mon960-rom.o): Delete rule.
9686 * mon960-rom.c: Delete file.
9690 * d10v-tdep.c: Include "frame-unwind.h".
9691 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9693 (next_addr, uses_frame): Delete.
9694 (struct d10v_unwind_cache): Define.
9695 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9696 Use info instead of next_addr and uses_frame globals.
9697 (d10v_frame_init_saved_regs): Delete function.
9698 (d10v_init_extra_frame_info): Delete function.
9699 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9700 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9701 init_frame_pc or frame_saved_pc.
9702 (d10v_pop_frame): Delete function.
9703 (do_d10v_pop_frame): Delete function.
9704 (d10v_frame_chain): Delete function.
9705 (d10v_frame_chain_valid): Delete function.
9706 (d10v_frame_pc_unwind): New function.
9707 (d10v_frame_id_unwind): New function.
9708 (saved_regs_unwinder): New function.
9709 (d10v_frame_register_unwind): New function.
9710 (d10v_frame_pop): New function.
9711 (d10v_frame_unwind): New variable.
9712 (d10v_frame_p): New function.
9713 (d10v_frame_saved_pc): Delete function.
9714 * Makefile.in (d10v-tdep.o): Update dependencies.
9718 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9719 causing some regressions due to a change in the default value
9727 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9729 (RANGES_SECTION): New.
9730 (dwarf_ranges_buffer): New variable.
9731 (struct comp_unit_head): Add member "die".
9732 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9733 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9734 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9735 (dwarf2_locate_sections): Likewise.
9736 (dwarf2_build_psymtabs): Read .debug_ranges.
9737 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9738 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9739 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9740 Look for DW_AT_ranges and return the bounding box.
9744 * win32-nat.c (cygwin_pid): Removed as unused.
9745 (child_attach): Try fall back to Cygwin pid.
9749 * objfiles.h (struct objfile): Doc fix.
9753 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9754 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9755 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9756 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9757 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9758 (FRAME_SAVED_PC): Change to a function with predicate.
9759 * gdbarch.h, gdbarch.c: Re-generate.
9763 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9765 * complaints.c (complain): Delete function.
9766 * complaints.h (struct deprecated_complaint): Delete definition.
9767 (complain): Delete declaration.
9771 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9776 * sentinel-frame.h, sentinel-frame.c: New files.
9777 * Makefile.in (frame.o): Update dependencies.
9778 (SFILES): Add sentinel-frame.c.
9779 (sentinel_frame_h): Define.
9780 (COMMON_OBS): Add sentinel-frame.o.
9781 (sentinel-frame.o): Specify dependencies.
9782 * frame.c: Include "sentinel-frame.h".
9783 (frame_register_unwind): Rewrite assuming that there is always a a
9785 (frame_register, generic_unwind_get_saved_register): Ditto.
9786 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9787 (create_sentinel_frame, unwind_to_current_frame): New functions.
9788 (get_current_frame): Rewrite using create_sentinel_frame and
9789 unwind_to_current_frame. When possible, always create a frame.
9790 (create_new_frame): Set next to the sentinel frame.
9791 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9792 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9793 ID cache when necessary.
9794 (frame_saved_regs_id_unwind): Use frame_relative_level.
9795 (deprecated_generic_get_saved_register): Use frame_relative_level,
9796 get_frame_saved_regs, get_frame_pc, get_frame_base and
9798 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9803 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9807 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9808 (maintenance_set_profile_cmd): Use error () instead of warning ().
9812 * configure.in: Check that -pg works if using --enable-profiling.
9813 Check for monstartup and _mcleanup regardless of --enable-profiling.
9814 * maint.c: Check for monstartup and _mcleanup before using them.
9815 * config.in: Regenerated.
9816 * configure: Regenerated.
9824 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9825 (sh2e_show_regs): New.
9826 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9827 * config/sh/tm-sh.h: Added sh2e to comments.
9831 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9832 symbols found)" message here; we haven't checked for a separate
9833 debug info file yet, so we don't know yet.
9834 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9835 we've looked everywhere. Also, there's no need to print a special
9836 message when we're loading the separate debug info file: the one
9837 symbol_file_add prints is fine.
9842 Add support for executables whose debug info has been separated
9843 out into a separate file, leaving only a link behind.
9844 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9845 and separate_debug_objfile_backlink.
9846 (put_objfile_before): New declaration.
9847 * symfile.c: #include "filenames.h".
9848 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9849 debug info in a separate file, read that, too. Save the addrs
9850 argument, so we can use it again to read the separated debug info;
9851 syms_from_objfile modifies the table we pass it.
9852 (reread_symbols): After re-reading an objfile, call
9853 reread_separate_symbols to refresh its separate debug info
9854 objfile, if it has one.
9855 (reread_separate_symbols, find_separate_debug_file,
9856 get_debug_link_info, separate_debug_file_exists): New functions.
9857 (debug_file_directory): New global var.
9858 (_initialize_symfile): Initialize debug_file_directory, and
9859 provide the new `set debug-file-directory' command to let the user
9861 * objfiles.c (free_objfile): If this objfile has its debug info in
9862 a separate objfile, free that one too. If this is itself a
9863 separate debug info objfile, clear our parent's backlink.
9864 (put_objfile_before): New function.
9865 * utils.c (gnu_debuglink_crc32): New function.
9866 * defs.h (gnu_debuglink_crc32): New declaration.
9867 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9868 * configure.in: Handle --with-separate-debug-dir config option.
9869 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9870 * acconfig.h (DEBUGDIR): New macro.
9871 * configure, aclocal.m4, config.in: Regenerated.
9875 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9876 like the old symbol_file_add, but taking new arguments: you can
9877 now pass in either a `struct section_addr_info' list to say where
9878 each section is loaded, or a `struct section_offsets' table. Pass
9879 these new arguments through to syms_from_objfile as appropriate.
9880 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9881 with the appropriate quiescent values for the new arguments.
9883 * symfile.c: #include "gdb_assert.h".
9884 (syms_from_objfile): Add the ability to pass in a section offset
9885 table directly, as an alternative to the section_addr_info table.
9886 Document arguments better.
9887 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9888 * symfile.h (syms_from_objfile): Update declaration.
9889 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9891 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9897 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9898 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9899 * NEWS: Mention profiling.
9900 * configure.in (--enable-gdbtk): Fix typo.
9901 (--enable-profiling): New. Set PROFILE_CFLAGS.
9902 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9904 (profiling_state): New variable.
9905 (mcleanup_wrapper): New function.
9906 (_initialize_maint): Remove NOTYET, fix call to
9907 add_setshow_boolean_cmd for "maint set profile".
9908 * configure: Regenerated.
9912 * Makefile.in (install-gdbtk): Install PNG images too.
9916 * exec.c (text_start): Delete global variable.
9917 (exec_file_attach): Make text_start local to the function.
9918 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9919 * valops.c (hand_function_call): Delete code that handles
9920 BEFORE_TEXT_END and AFTER_TEXT_END.
9921 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9922 of CALL_DUMMY_LOCATION.
9923 * gdbarch.c: Regenerate.
9924 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9925 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9926 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9927 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9928 (text_end): Delete extern declaration.
9932 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9933 * blockframe.c (backtrace_below_main): Move to "frame.c".
9934 (frame_chain_valid): Delete check for backtrace_below_main.
9935 (_initialize_blockframe): Delete initialization, move ``set
9936 backtrace-below-main'' command to "frame.c".
9937 (do_flush_frames_sfunc): Delete function.
9938 * frame.c: Include "command.h" and "gdbcmd.h".
9939 (frame_type_from_pc): New function.
9940 (create_new_frame): Use frame_type_from_pc.
9941 (legacy_get_prev_frame): New function.
9942 (get_prev_frame): Rewrite. When an old style frame, call
9943 legacy_get_prev_frame. Otherwize, unwind the PC first.
9944 (_initialize_frame): Add ``set backtrace-below-main'' command.
9945 * Makefile.in (frame.o): Update dependencies.
9949 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9950 DEPRECATED_REGISTERS_INFO.
9954 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9955 Maintainers'. Update `Various Maintainers'.
9959 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9960 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9961 Suppress actual parameters when `-'.
9962 * gdbarch.h, gdbarch.c: Regenerate.
9966 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9967 code handling dummy frames.
9971 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9972 (struct frame_unwind): Add field pop.
9973 * frame.h (frame_pop): Declare.
9974 * frame.c (frame_saved_regs_pop): New function.
9975 (trad_frame_unwinder): Add frame_saved_regs_pop.
9976 (frame_pop): New function.
9977 * dummy-frame.c (dummy_frame_pop): New function.
9978 (discard_innermost_dummy): New function.
9979 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9980 (dummy_frame_unwind): Add dummy_frame_pop.
9981 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9982 * valops.c (hand_function_call): Ditto.
9983 * stack.c (return_command): Ditto.
9987 * cris-tdep.c: Fix function declaration indentation.
9988 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9989 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9990 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9991 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9992 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9993 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9997 * README (Unpacking and Installation -- quick overview):
9998 Warn against ".../gdb-5.3/gdb/configure".
10002 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10003 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10004 (struct frame_unwind): Declare opaque.
10005 (dummy_frame_p): Declare function.
10006 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10007 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10008 * dummy-frame.c: Include "frame-unwind.h".
10009 (dummy_frame_p): New function.
10010 (dummy_frame_unwind): New variable.
10011 * frame.c: Include "frame-unwind.h".
10012 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10013 to use the new unwind field.
10014 (set_unwind_by_pc): Delete function.
10015 (create_new_frame, get_prev_frame): Set unwind field using
10016 frame_unwind_find_by_pc.
10017 (trad_frame_unwind, trad_frame_unwinder): New variables.
10018 * frame.h (trad_frame_unwind): Declare variable.
10019 (frame_id_unwind_ftype): Delete declaration.
10020 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10021 (struct frame_unwind): Declare opaque.
10022 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10023 register_unwind with a single unwind pointer.
10024 * frame-unwind.h, frame-unwind.c: New files.
10025 * Makefile.in (SFILES): Add frame-unwind.c.
10026 (frame_unwind_h): Define.
10027 (COMMON_OBS): Add frame-unwind.o.
10028 (frame-unwind.o): Specify dependencies.
10029 (frame.o, dummy-frame.o): Update dependencies.
10033 * ada-valprint.c: Eliminate PTR.
10034 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10035 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10036 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10037 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10038 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10039 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10040 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10044 * main.c (captured_main): Don't use PTR.
10045 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10046 * gdbtypes.c (lookup_primitive_typename): Ditto.
10047 (lookup_struct_elt_type): Ditto.
10048 * f-valprint.c (info_common_command): Ditto.
10049 (list_all_visible_commons): Ditto.
10050 * jv-typeprint.c (java_type_print_base): Ditto.
10052 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10053 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10054 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10055 i386-interix-nat.c and i386-interix-tdep.c. Rename
10056 m68klinux-nat.c and m68klinux-tdep.c. Rename
10057 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10058 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10059 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10060 * main.c (captured_main): Use xfree, not free.
10064 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10065 ID back using a parameter.
10066 * frame.c (frame_id_unwind): Update call.
10067 (frame_saved_regs_id_unwind): Update.
10068 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10069 * dummy-frame.h (struct frame_id): Add opaque declaration.
10070 (dummy_frame_id_unwind): Update declaration.
10074 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10078 * MAINTAINERS (Stephen P. Smith): Updated email address.
10083 * breakpoint.c (until_break_command): Add new argument. Use it to
10084 decide whether to stop only at the current frame or not.
10085 * breakpoint.h (until_break_command): Update prototype.
10086 * infcmd.c (until_command): Add new argument to until_break_command
10088 (advance_command): New function.
10089 (_initialize_infcmd): Update help string for 'until' command.
10090 Add new 'advance' command.
10094 * linespec.c (decode_line_1): Normalize comments.
10095 (set_flags): Ditto.
10096 (locate_first_half): Ditto.
10097 (decode_compound): Ditto.
10098 (symtab_from_filename): Ditto.
10099 (decode_all_digits): Ditto.
10100 (decode_dollar): Ditto.
10101 (find_methods): Ditto.
10102 (find_toplevel_char): Ditto.
10106 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10107 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10108 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10109 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10110 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10111 * language.c, language.h, m32r-tdep.c: Update copyright.
10112 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10113 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10114 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10115 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10116 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10117 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10121 * stabsread.h (process_later, resolve_cfront_continuation):
10123 Update copyright years.
10124 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10125 Update copyright year.
10126 * dbxread.c(struct cont_elem): Obsolete.
10127 (process_later, process_now): Obsolete functions.
10128 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10129 Update copyright year.
10130 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10131 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10132 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10133 (parse_partial_symbols): Obsolete cfront support.
10135 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10137 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10138 read_cfront_baseclasses, read_cfront_member_functions,
10139 resolve_cfront_continuation,read_cfront_static_fields,
10140 copy_cfront_struct_fields): Obsolete functions.
10141 (define_symbol, read_one_struct_field): Obsolete cfront support.
10142 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10143 Update Copyright year.
10147 * stack.c (print_frame_info, print_stack_frame_base_stub,
10148 print_stack_frame_base, show_and_print_stack_frame_stub,
10149 show_and_print_stack_frame, print_only_stack_frame_stub,
10150 print_only_stack_frame): Delete functions.
10151 (print_stack_frame_stub): Call print_frame_info instead of
10152 print_frame_info_base.
10153 (print_frame_info_base): Rename to print_frame_info.
10154 (backtrace_command_1): Call print_frame_info, instead of
10155 print_frame_info_base.
10156 (current_frame_command): Call print_stack_frame, instead of
10157 print_only_stack_frame.
10158 (frame_command): Call print_stack_frame, instead of
10159 show_and_print_stack_frame.
10160 (up_command): Ditto.
10161 (down_command): Ditto.
10162 * frame.h (print_only_stack_frame): Delete prototype.
10163 * infrun.c (normal_stop): Call print_stack_frame, instead of
10164 show_and_print_stack_frame.
10165 * thread.c (info_threads_command): Call print_stack_frame, instead
10166 of print_only_stack_frame.
10170 * README (Graphical interface to GDB): Update URL. Point at
10173 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10178 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10183 * thread-db.c (attach_thread): Prototype.
10184 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10185 thread information (ti), and valid flags (th_valid, ti_valid).
10186 (attach_thread): Move target_pid_to_str call to after the thread
10187 is added to GDB's list. Initialize the cache.
10188 (thread_get_info_callback, thread_db_map_id2thr)
10189 (thread_db_get_info): New functions.
10190 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10191 (thread_db_store_registers, thread_db_thread_alive)
10192 (thread_db_get_thread_local_address): Use them.
10193 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10194 of calling error() for threads in unknown state.
10196 (clear_lwpid_callback): New function.
10197 (thread_db_resume): Use it to clear the cache.
10201 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10202 (resume_callback): Remove dead code.
10206 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10208 * gdbarch.h, gdbarch.c: Regenerate.
10209 * stack.c (frame_info): Only initialize the saved registers when
10210 FRAME_INIT_SAVED_REGS_P.
10211 * frame.c (frame_saved_regs_register_unwind): Assert
10212 FRAME_INIT_SAVED_REGS_P.
10213 (deprecated_generic_get_saved_register): Ditto.
10217 * source.c (openp): Squelch warning about "filename".
10221 * source.c (openp): If the file does not exist don't necessarily
10227 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10228 (integer_types_same_name_p): New function.
10229 (rank_one_type): Use it.
10230 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10234 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10236 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10237 * configure.in: Add --with-sysroot.
10238 * configure: Regenerated.
10239 * main.c (gdb_sysroot): New variable.
10240 (captured_main): Initialize gdb_sysroot.
10241 * defs.h (gdb_sysroot): New extern declaration.
10242 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10246 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10250 * top.c (print_gdb_version): Bump copyright year to 2003.
10254 * linespec.c (symtab_from_filename): Rename variable 's' to
10259 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10261 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10265 * d10v-tdep.c: Include "gdb_assert.h".
10266 (d10v_store_return_value): Rewrite to match current interface.
10267 (d10v_extract_struct_value_address): Ditto.
10268 (d10v_extract_return_value): Ditto.
10269 (d10v_gdbarch_init): Set store_restore_value,
10270 extract_struct_value_address and extract_return_value.
10274 * hpread.c (set_namestring): New procedure replacing the
10275 SET_NAMESTRING macro.
10276 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10277 by calls to set_namestring.
10281 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10282 a compilation warning.
10283 (hpread_process_one_debug_symbol): Likewise.
10287 * linespec.c (decode_line_1): Rename variable 's' to
10289 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10290 (decode_dollar): Ditto.
10291 (decode_variable): Ditto.
10292 (symbol_found): Ditto.
10296 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10300 * win32-nat.c (set_process_privilege): New function.
10301 (child_attach): Call set_process_privilege() to enable the
10302 SE_DEBUG_NAME user privilege if available in process token.
10306 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10307 compilation error in the previous revision.
10311 * linespec.c: Update copyright.
10315 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10316 than inferior_ptid.
10317 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10321 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10323 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10324 (frame_saved_regs_zalloc): Update.
10325 (frame_saved_regs_register_unwind): Update.
10326 (create_new_frame): Update.
10327 (get_prev_frame): Update.
10328 (frame_extra_info_zalloc): Update.
10329 (deprecated_get_frame_saved_regs): Update.
10330 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10331 * cris-tdep.c: Update comment.
10333 * somsolib.h: Fix function indentation.
10334 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10335 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10336 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10337 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10338 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10340 * infrun.c (follow_fork): Use ISO C definition.
10341 * expprint.c (print_subexp): Use xfree instead of free.
10342 * charset.c: Include "gdb_string.h" instead of <string.h>.
10343 (register_iconv_charsets): Use ISO C definition.
10344 (host_charset, target_charset): Ditto.
10345 * Makefile.in (charset.o): Update dependencies.
10346 (mi-cmd-env.o): Update dependencies.
10350 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10355 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10356 build directories. Save edited gdb output in Mbuild.log. If a
10357 build fails, remove any final GDB executable.
10361 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10362 replacing hex constants with function names and stripping leading
10363 file name directory prefixes.
10367 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10372 * linespec.c (decode_line_1): Move code into decode_variable.
10373 (decode_variable): New function.
10377 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10381 * cris-tdep.c (cris_frame_init_saved_regs): Use
10382 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10384 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10385 (sh64_nofp_frame_init_saved_regs): Ditto.
10386 (sh_fp_frame_init_saved_regs): Ditto.
10387 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10388 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10389 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10390 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10394 * minsyms.c (lookup_minimal_symbol): Update comment.
10395 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10396 (lookup_minimal_symbol_solib_trampoline): Likewise.
10400 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10401 frame_relative_level.
10403 * alpha-tdep.c: Use get_frame_extra_info.
10404 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10405 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10406 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10407 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10409 * alpha-tdep.c: Use get_next_frame.
10410 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10411 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10412 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10413 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10414 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10415 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10416 * xstormy16-tdep.c: Ditto.
10420 * alpha-tdep.c: Use get_frame_base.
10421 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10422 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10423 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10424 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10425 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10426 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10427 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10428 * config/sparc/tm-sparc.h: Ditto.
10432 * frame.c (deprecated_get_frame_context): New function.
10433 (deprecated_set_frame_context): New function.
10434 * frame.h (deprecated_get_frame_context): Declare.
10435 (deprecated_set_frame_context): Declare.
10436 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10437 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10441 * frame.c (deprecated_set_frame_next_hack): New function.
10442 (deprecated_set_frame_prev_hack): New function.
10443 * frame.h (deprecated_set_frame_next_hack): Declare.
10444 (deprecated_set_frame_prev_hack): Declare.
10445 * mcore-tdep.c (analyze_dummy_frame): Use
10446 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10447 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10451 * linespec.c (decode_line_1): Move code into decode_dollar.
10452 (decode_dollar): New function.
10456 * arm-tdep.c (arm_init_extra_frame_info): Use
10457 deprecated_update_frame_base_hack.
10458 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10459 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10460 (fix_frame_pointer): Ditto.
10461 (mn10300_analyze_prologue): Ditto.
10465 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10466 extra_info using frame_extra_info_zalloc.
10467 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10468 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10469 (sh64_init_extra_frame_info): Ditto.
10470 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10471 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10472 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10473 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10474 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10475 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10476 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10477 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10478 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10479 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10480 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10481 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10483 * mn10300-tdep.c (analyze_dummy_frame): Use
10484 deprecated_set_frame_extra_info_hack.
10485 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10489 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10490 class is not scText. These do not define "real" procedures.
10491 (parse_partial_symbols): Likewise.
10495 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10499 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10500 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10501 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10502 deprecated_frame_xmalloc_with_cleanup.
10503 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10504 deprecated_frame_xmalloc.
10505 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10506 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10510 * x86-64-linux-tdep.c: Include "osabi.h".
10511 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10513 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10517 * MAINTAINERS (Target Instruction Set Architectures): Update
10518 arm-elf. Can be built with -Werror, has been multiarched.
10520 * value.h (unpack_long): Make buffer parameter constant.
10521 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10522 * scm-lang.h (scm_parse): Ditto.
10523 * defs.h (extract_typed_address, extract_address): Ditto.
10524 (extract_long_unsigned_integer): Ditto.
10525 * inferior.h (unsigned_pointer_to_address): Ditto.
10526 (signed_pointer_to_address): Ditto.
10527 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10528 * gdbarch.h, gdbarch.c: Regenerate.
10529 * findvar.c (extract_long_unsigned_integer): Update.
10530 (extract_address): Update.
10531 (extract_typed_address): Update.
10532 (unsigned_pointer_to_address): Update.
10533 * values.c (unpack_long): Update.
10534 (unpack_double): Update.
10535 (unpack_pointer): Update.
10536 (unpack_field_as_long): Update.
10537 * d10v-tdep.c (d10v_pointer_to_address): Update.
10538 * avr-tdep.c (avr_pointer_to_address): Update.
10539 * scm-lang.c (scm_unpack): Update.
10540 * findvar.c (signed_pointer_to_address): Update.
10544 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10545 since it is in i386-tdep.c.
10549 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10550 failure introduced in the previous change.
10554 * README: Remove references to deleted remote-*.c files:
10555 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10556 remote-nrom.c, remote-os9k.c, remote-udi.c.
10560 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10561 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10562 i386_get_longjmp_target.
10566 * arm-tdep.c (prologue_cache): Change to a pointer.
10567 (_initialize_arm_tdep): Allocate prologue_cache.
10568 (check_prologue_cache): Update.
10569 (save_prologue_cache): Update.
10570 (arm_gdbarch_init): Update.
10574 * stabsread.c (update_method_name_from_physname): Call complaint()
10579 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10580 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10581 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10583 * blockframe.c: Include "gdbcmd.h" and "command.h".
10584 (backtrace_below_main): New variable.
10585 (file_frame_chain_valid, func_frame_chain_valid)
10586 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10587 (generic_func_frame_chain_valid): Remove functions.
10588 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10589 (_initialize_blockframe): New function.
10590 * Makefile.in (blockframe.o): Update dependencies.
10591 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10592 comment. Call frame_chain_valid ().
10593 * frame.h: Remove old prototypes. Add prototype for
10594 frame_chain_valid and update comments to match.
10595 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10596 Remove old comment.
10597 * gdbarch.h: Regenerated.
10598 * gdbarch.c: Regenerated.
10600 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10601 set_gdbarch_frame_chain_valid.
10602 * avr-tdep.c (avr_gdbarch_init): Likewise.
10603 * cris-tdep.c (cris_gdbarch_init): Likewise.
10604 * frv-tdep.c (frv_gdbarch_init): Likewise.
10605 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10606 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10607 (i386_nw_init_abi): Likewise.
10608 (i386_gdbarch_init): Likewise.
10609 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10610 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10611 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10612 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10613 * mips-tdep.c (mips_gdbarch_init): Likewise.
10614 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10615 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10616 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10617 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10618 * s390-tdep.c (s390_gdbarch_init): Likewise.
10619 * sh-tdep.c (sh_gdbarch_init): Likewise.
10620 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10621 * v850-tdep.c (v850_gdbarch_init): Likewise.
10622 * vax-tdep.c (vax_gdbarch_init): Likewise.
10623 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10625 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10626 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10627 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10628 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10629 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10630 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10631 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10632 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10636 * Makefile.in (acconfig_h): Remove incorrect macro.
10637 (config_h): Define.
10638 (osabi.o): Update dependencies.
10639 * configure.tgt: Set gdb_osabi based on target triplet.
10640 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10641 * configure: Regenerated.
10642 * config.in: Regenerated.
10643 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10644 (GDB_OSABI_DEFAULT): Define if not already defined.
10645 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10646 (set_osabi_string): New variables.
10647 (gdbarch_register_osabi): Add new OS ABI to
10648 gdb_osabi_available_names.
10649 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10650 (set_osabi, show_osabi): New functions.
10651 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10655 * arch-utils.c (gdbarch_info_init): Set osabi to
10656 GDB_OSABI_UNINITIALIZED.
10657 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10658 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10659 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10660 * gdbarch.c: Regenerated.
10661 * gdbarch.h: Regenerated.
10662 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10664 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10665 * osabi.h (enum gdb_osabi): Move to defs.h.
10666 (gdbarch_init_osabi): Update prototype.
10667 * defs.h (enum gdb_osabi): Moved here.
10668 * Makefile.in: Update dependencies.
10670 * alpha-tdep.h: Don't include "osabi.h".
10671 (struct gdbarch_tdep): Remove osabi member.
10672 * alpha-tdep.c: Include "osabi.h".
10673 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10674 iterate over arches. Update call to gdbarch_init_osabi.
10675 (alpha_dump_tdep): Don't dump osabi.
10676 * alpha-linux-tdep.c: Include "osabi.h".
10677 * alpha-osf1-tdep.c: Include "osabi.h".
10678 * alphafbsd-tdep.c: Include "osabi.h".
10679 * alphanbsd-tdep.c: Include "osabi.h".
10681 * arm-tdep.h: Don't include "osabi.h".
10682 (struct gdbarch_tdep): Remove osabi member.
10683 * arm-tdep.c: Include "osabi.h".
10684 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10685 iterate over arches. Update call to gdbarch_init_osabi.
10686 (arm_dump_tdep): Don't dump osabi.
10687 * arm-linux-tdep.c: Include "osabi.h".
10688 * armnbsd-tdep.c: Include "osabi.h".
10690 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10691 Update call to gdbarch_init_osabi.
10693 * i386-tdep.h: Don't include "osabi.h".
10694 (struct gdbarch_tdep): Remove osabi member.
10695 * i386-tdep.c: Include "osabi.h".
10696 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10697 iterate over arches. Update call to gdbarch_init_osabi.
10698 (i386_dump_tdep): Don't dump osabi.
10699 * i386-linux-tdep.c: Include "osabi.h".
10700 * i386-sol2-tdep.c: Include "osabi.h".
10701 * i386bsd-tdep.c: Include "osabi.h".
10702 * i386gnu-tdep.c: Include "osabi.h".
10703 * i386ly-tdep.c: Include "osabi.h".
10704 * i386nbsd-tdep.c: Include "osabi.h".
10705 * i386obsd-tdep.c: Include "osabi.h".
10707 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10708 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10709 check osabi when iterating over arches. Update call to
10710 gdbarch_init_osabi.
10711 (mips_dump_tdep): Don't dump osabi.
10713 * ns32k-tdep.h: Don't include "osabi.h".
10714 (struct gdbarch_tdep): Remove.
10715 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10716 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10717 allocate tdep. Update call to gdbarch_init_osabi.
10718 (ns32k_dump_tdep): Remove.
10719 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10720 * ns32knbsd-tdep.c: Include "osabi.h".
10722 * ppc-tdep.h: Don't include "osabi.h".
10723 (struct gdbarch_tdep): Remove osabi member.
10724 * rs6000-tdep.c: Include "osabi.h".
10725 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10726 osabi when iterating over arches. Update call to
10727 gdbarch_init_osabi.
10728 (rs6000_dump_tdep): Don't dump osabi.
10729 * ppc-linux-tdep.c: Include "osabi.h".
10730 * ppcnbsd-tdep.c: Include "osabi.h".
10732 * sh-tdep.h: Don't include "osabi.h".
10733 (struct gdbarch_tdep): Remove osabi member.
10734 * sh-tdep.c: Include "osabi.h".
10735 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10736 iterate over arches. Update call to gdbarch_init_osabi.
10737 (sh_dump_tdep): Don't dump osabi.
10738 * shnbsd-tdep.c: Include "osabi.h".
10740 * sparc-tdep.c: Include "osabi.h".
10741 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10742 iterate over arches. Update call to gdbarch_init_osabi.
10743 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10746 * vax-tdep.h: Don't include "osabi.h".
10747 (struct gdbarch_tdep): Remove.
10748 * vax-tdep.c: Include "osabi.h".
10749 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10750 iterate over arches. Don't allocate tdep. Update call
10751 to gdbarch_init_osabi.
10752 (vax_dump_tdep): Remove.
10753 (_initialize_vax_tdep): Update call to gdbarch_register.
10757 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10759 (breakpoint_re_set_one): Don't fetch the value for a disabled
10764 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10765 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10766 (COERCE_FLOAT_TO_DOUBLE): Remove.
10767 * gdbarch.c: Regenerate.
10768 * gdbarch.h: Regenerate.
10769 * Makefile.in: Remove value_h from gdbarch_h.
10770 * valops.c (coerce_float_to_double): New variable.
10771 (default_coerce_float_to_double): Remove.
10772 (standard_coerce_float_to_double): Remove.
10773 (value_arg_coerce): Use coerce_float_to_double.
10774 (_initialize_valops): Add "set coerce-float-to-double".
10775 * value.h (default_coerce_float_to_double): Remove prototype.
10776 (standard_coerce_float_to_double): Remove prototype.
10778 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10780 * mdebugread.c (parse_symbol): Likewise.
10781 * stabsread.c (define_symbol): Mark all functions as prototyped.
10783 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10784 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10785 set_gdbarch_coerce_float_to_double.
10786 * arm-tdep.c (arm_gdbarch_init): Likewise.
10787 * frv-tdep.c (frv_gdbarch_init): Likewise.
10788 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10789 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10790 * mips-tdep.c (mips_gdbarch_init): Likewise.
10791 (mips_coerce_float_to_double): Remove.
10792 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10793 (rs6000_coerce_float_to_double): Remove.
10794 * s390-tdep.c (s390_gdbarch_init): Likewise.
10795 * sh-tdep.c (sh_gdbarch_init): Likewise.
10796 (sh_coerce_float_to_double): Remove.
10797 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10798 (sparc_coerce_float_to_double): Remove.
10799 * v850-tdep.c (v850_gdbarch_init): Likewise.
10800 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10801 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10802 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10803 (hppa_coerce_float_to_double): Remove prototype.
10804 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10808 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10813 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10814 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10815 (c_type_print_varspec_suffix): Likewise.
10819 * configure.in: Don't set and AC_SUBST SUBDIRS.
10820 * configure: Regenerated.
10822 * configure.in: Remove code dealing with shared libraries.
10823 * Makefile.in: Remove HLDFLAGS and HLDENV.
10824 * configure: Regenerated.
10828 * frame.c (deprecated_frame_xmalloc): New function.
10829 (deprecated_set_frame_saved_regs_hack): New function.
10830 (deprecated_set_frame_extra_info_hack): New function.
10831 * frame.h (deprecated_frame_xmalloc): Declare.
10832 (deprecated_set_frame_saved_regs_hack): Declare.
10833 (deprecated_set_frame_extra_info_hack): Declare.
10837 * configure.in: Move code that provides the --enable-gdbtk option
10838 right after the code that handles the --enable-tui option, and
10839 polish it somewhat.
10840 * configure: Regenerated.
10842 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10843 AC_CHECK_FUNCS and remove the old check for pread64.
10844 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10845 * acconfig.h (_GNU_SOURCE): Add.
10846 (HAVE_PREAD64): Remove.
10847 * configure, aclocal.m4, config.in: Regenerated.
10851 * alpha-tdep.c: Use get_frame_saved_regs.
10852 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10853 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10854 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10855 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10856 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10860 * configure.in: Remove all use of the SUBDIRS variable; add
10861 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10862 code providing the --enable-multi-ice option, and move it right in
10863 front of the code that checks whether gdbserver is supported.
10865 * configure: Regenerated.
10866 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10871 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10872 * avr-tdep.c, cris-tdep.c: Ditto.
10873 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10874 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10878 * configure.in: Remove --enable-netrom option.
10879 * configure: Regenerated.
10883 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10884 declaration for `struct re_pattern_buffer' instead.
10885 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10889 * mdebugread.c (parse_symbol): Count until the stEnd matching
10890 the structure name.
10894 * configure.in: Remove --with-cpu option.
10895 subscripts. Remove evil changequotes here.
10896 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10897 * config.in, configure: Regenerated.
10899 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10900 * configure.in: Cleanup section that sources GDB and BFD configure
10901 subscripts. Remove evil changequotes here.
10902 * config.in, configure: Regenerated.
10906 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10907 frame accessor methods.
10908 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10909 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10910 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10911 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10912 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10913 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10914 * z8k-tdep.c: Ditto.
10918 * configure.in: Remove UI_OUT configuration code.
10919 * ada-lang.c: Update assuming UI_OUT is always true.
10920 * Makefile.in (UIOUT_CFLAGS): Remove.
10921 * configure: Regenerated.
10922 * TODO: Remove blurb about elimination of -DUI_OUT.
10924 * configure.in: Move code that provides the --enable-gdbcli,
10925 --enable-gdbmi options right before the code that handles the
10926 --enable-tui option. Polish a bit.
10927 * configure: Regenerated.
10929 * configure.in: Rewrite check for GNU regex and the
10930 --without-included regex option, and move it into the "Checks for
10931 library functions" section. This makes us use the system regex
10932 again by default on systems with version 2 of the GNU C library.
10933 This was apparently broken.
10934 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10935 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10936 * config.in, configure: Regenerated.
10938 * configure.in: Move code that provides the --enable-tui option
10939 before the "Checks for libraries" section. Polish the code
10940 somewhat and set need_curses to yes if we build the TUI. Rewrite
10941 code that looks for a library providing termcap functionality to
10942 match more closely what's done in the Readline library, and move
10943 it into to the "Checks for libraries" section.
10944 * configure: Regenerated.
10945 * Makefile.in (TERMCAP): Remove variable.
10946 * config/i386/go32.mh (TERMCAP): Remove variable.
10950 * MAINTAINERS: Mention gdb_mbuild.sh.
10951 * gdb_mbuild.sh: Rewrite.
10955 * configure.in: Fix typo in last change.
10956 * config.in, configure: Regenerated.
10960 * valarith.c (value_binop): Delete obsolete code and comments.
10961 * configure.host: Ditto.
10962 * buildsym.h (make_blockvector): Ditto.
10963 * buildsym.c (make_blockvector): Ditto.
10964 * defs.h (enum language): Ditto.
10965 (chill_demangle): Ditto.
10966 * elfread.c (elf_symtab_read): Ditto.
10967 * dwarfread.c (CHILL_PRODUCER): Ditto.
10968 (set_cu_language): Ditto.
10969 (handle_producer): Ditto.
10970 * expprint.c (print_subexp): Ditto.
10971 * gdbtypes.c (chill_varying_type): Ditto.
10972 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10973 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10974 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10975 (chill_varying_type): Ditto.
10976 * language.h (_LANG_chill): Ditto.
10977 * language.c (binop_result_type, integral_type): Ditto.
10978 (character_type, string_type, structured_type): Ditto.
10979 (lang_bool_type, binop_type_check): Ditto.
10980 * stabsread.h (os9k_stabs): Ditto.
10981 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10982 (define_symbol, read_type, read_struct_fields): Ditto.
10983 (read_array_type, read_enum_type, read_huge_number): Ditto.
10984 (read_range_type, start_stabs): Ditto.
10985 * symfile.c (init_filename_language_table): Ditto.
10986 (add_psymbol_with_dem_name_to_list): Ditto.
10987 * symtab.c (symbol_init_language_specific): Ditto.
10988 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10989 * symtab.h (struct general_symbol_info): Ditto.
10990 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10991 * typeprint.c (typedef_print): Ditto.
10992 * utils.c (fprintf_symbol_filtered): Ditto.
10993 * valops.c (value_cast, search_struct_field, value_slice): Delete
10995 (varying_to_slice): Delete function.
10996 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10997 (varying_to_slice): Delete declaration.
10998 * MAINTAINERS: Update.
11002 * configure.in: Reorganize "Checks for library functions section"
11003 a bit. Remove check for `btowc' and `isascii' functions.
11004 * configure: Regenerated.
11006 * acconfig.h (_MSE_INT_H): Remove.
11007 * configure.in: Create "Checks for header files" section, and move
11008 appropriate tests there. Don't check for objlist.h, wchar.h,
11009 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11010 misdetection fix. Also add "Checks for types", "Checks for
11011 compiler characteristics" and "Checks for library functions"
11013 * config.in, configure: Regenerated.
11015 * configure.in: Create "Checks for programs" section, and move
11016 appropriate tests there.
11020 * configure.in: Create "Checks for libraries" section, and move
11021 appropriate tests there. Cleanup check for wctype in libw. Use
11022 AC_SEARCH_LIBS to see whether we need libsocket.
11023 * configure: Regenerated.
11025 For older changes see ChangeLog-2002
11031 version-control: never