3 * p-lang.c: Eliminate "register".
16 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
20 * avr-tdep.c: Include "dis-asm.h".
21 * cris-tdep.c: Include "dis-asm.h".
22 (cris_delayed_get_disassembler): Use "struct disassemble_info"
23 instead of corresponding typedef.
24 * h8300-tdep.c: Include "dis-asm.h".
25 * ia64-tdep.c: Include "dis-asm.h".
26 * i386-tdep.c: Include "dis-asm.h".
27 (i386_print_insn): Use "struct disassemble_info" instead of
28 corresponding typedef.
29 * m68k-tdep.c: Include "dis-asm.h".
30 * mcore-tdep.c: Include "dis-asm.h".
31 * mips-tdep.c: Include "dis-asm.h".
32 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
33 instead of corresponding typedef.
34 * ns32k-tdep.c: Include "dis-asm.h".
35 * s390-tdep.c: Include "dis-asm.h".
36 * sparc-tdep.c: Include "dis-asm.h".
37 * vax-tdep.c: Include "dis-asm.h".
38 * v850-tdep.c: Include "dis-asm.h".
39 * mn10300-tdep.c: Include "dis-asm.h".
40 * rs6000-tdep.c: Include "dis-asm.h".
41 * xstormy16-tdep.c: Include "dis-asm.h".
42 (_initialize_xstormy16_tdep): Delete "extern" declaration of
44 * Makefile.in (v850-tdep.o): Update dependencies.
45 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
46 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
47 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
48 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
49 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
50 (gdbarch_h): Remove $(dis_asm_h).
51 * disasm.c: Include "dis-asm.h".
52 (dis_asm_read_memory): Use "struct disassemble_info" instead of
53 corresponding typedef.
54 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
55 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
56 * gdbarch.sh: Do not include "dis-asm.h".
57 (struct disassemble_info): Declare opaque.
58 (TARGET_PRINT_INSN): Update declaration.
59 * gdbarch.h, gdbarch.c: Re-generate.
63 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
64 CALL_DUMMY_ADDRESS, change to a predicate.
65 * gdbarch.h, gdbarch.c: Re-generate.
66 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
67 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
68 * infcall.c (call_function_by_hand): Ditto.
69 * sparc-tdep.c (sparc_push_return_address): Ditto.
70 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
71 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
72 CALL_DUMMY_ADDRESS with entry_point_address.
73 * v850-tdep.c (v850_push_return_address): Ditto.
74 * s390-tdep.c (s390_push_return_address): Ditto.
75 * rs6000-tdep.c (ppc_push_return_address): Ditto.
76 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
77 * mcore-tdep.c (mcore_push_return_address): Ditto.
78 * cris-tdep.c (cris_push_return_address): Ditto.
79 * arm-tdep.c (arm_push_return_address): Ditto.
83 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
84 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
85 and REG_UNMODIFIED to REG_SAME_VALUE.
86 (execute_cfa_program): Update.
87 (dwarf2_frame_cache): Update. Initialize table to
88 REG_UNSPECIFIED, complain if CFI fails to specify a register's
90 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
94 * gnu-nat.c: Remove "inline" function attribute.
95 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
99 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
104 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
105 (frame_extra_info): Rename this struct to frv_unwind_cache.
106 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
107 Add fields ``prev_sp'' and ``base''.
108 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
109 (frv_saved_pc_after_call, frv_init_extra_frame_info)
110 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
112 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
113 Revise all callers. Fill in the unwind cache argument and make
114 other adjustments to account for new frame mechanisms.
115 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
116 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
117 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
118 (frv_frame_unwind, frv_frame_base): New structs.
119 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
120 additional arguments expected by this method and adjust function
122 (frv_gdbarch_init): Remove calls to the following functions:
123 set_gdbarch_deprecated_init_frame_pc(),
124 set_gdbarch_deprecated_saved_pc_after_call(),
125 set_gdbarch_deprecated_frame_chain(),
126 set_gdbarch_deprecated_frame_saved_pc(),
127 set_gdbarch_deprecated_frame_init_saved_regs(),
128 set_gdbarch_deprecated_push_arguments(),
129 set_gdbarch_deprecated_push_return_address(),
130 set_gdbarch_deprecated_pop_frame(),
131 set_gdbarch_deprecated_call_dummy_words(),
132 set_gdbarch_deprecated_sizeof_call_dummy_words(),
133 set_gdbarch_deprecated_init_extra_frame_info(),
134 set_gdbarch_deprecated_dummy_write_sp(), and
135 set_gdbarch_deprecated_pc_in_call_dummy().
136 Add calls to the following functions:
137 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
138 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
139 frame_base_set_default().
140 * Makefile.in (frv-tdep.o): Update dependencies.
144 * dwarf2-frame.c (read_encoded_value): Add support for
145 DW_EH_PE_aligned encoding.
149 * infrun.c (normal_stop): Don't print a message if the inferior
154 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
155 * dbxread.c: #include "gdb_assert.h".
156 (read_dbx_symtab): If the objfile has no .data section, use the
157 section index for the .bss section instead.
161 * frame.c (deprecated_safe_get_selected_frame): New function.
162 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
163 * findvar.c (read_var_value): Call it.
167 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
168 (sh64-tdep.o): Add dependencies.
169 * configure.tgt: Add FIXME to sh-*-linux*.
170 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
171 (sh_gdbarch_init): Always set correct sh_show_regs function
172 pointer. Call sh64_gdbarch_init() if machine type is sh5.
173 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
174 * sh64-tdep.c: New file, containing all sh64 related code from
176 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
177 * config/sh/linux.mt (TDEPFILES): Ditto.
178 * config/sh/nbsd.mt (TDEPFILES): Ditto.
179 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
180 * config/sh/wince.mt (TDEPFILES): Ditto.
184 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
185 (stop_wait_callback): Handle !lp->signalled also.
186 (lin_lwp_has_pending, flush_callback): New functions.
187 (lin_lwp_wait): Call flush_callback.
188 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
189 (linux_proc_pending_signals): New function.
190 * linux-nat.h (linux_proc_pending_signals): Add prototype.
195 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
196 when the stop PC is at the beginning of a function also.
200 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
201 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
205 * sol-thread.c: Include "gdb_string.h".
209 * gcore.c: Reorder include files in alphabetical order. Include
210 "gdb_assert.h". Various coding style fixes.
211 (derive_stack_segment, derive_heap_segment): Replace check for
212 non-null BOTTOM and TOP with gdb_assert.
213 (derive_heap_segment): Replace check for successful creation of
214 ZERO with gdb_assert.
215 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
219 * thread-db.c (verbose_dlsym): New function.
220 (thread_db_load): Use verbose_dlsym
221 (thread_db_new_objfile): Print that libthread_db was loaded, and
222 that thread debugging was enabled.
226 * configure.tgt: Add "mips64*-*-*" target. Delete
227 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
228 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
229 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
230 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
231 mips*-sony-*, and mips64*-*-elf* targets.
232 * config/mips/embedl.mt: Delete file.
233 * config/mips/embedl64.mt: Delete file.
234 * config/mips/mips.mt: Delete file.
235 * config/mips/mips64.mt: Delete file.
236 * config/mips/tm-embed.h: Delete file.
237 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
238 * config/mips/embed64.mt: Delete out-of-date comment.
242 * hppa-tdep.c (hppa_gdbarch_init): Set
243 "have_nonsteppable_watchpoint".
244 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
245 * mips-tdep.c (mips_dump_tdep): Do not print
246 HAVE_NONSTEPPABLE_WATCHPOINT.
247 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
248 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
249 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
250 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
254 * breakpoint.c (watchpoint_check): Remove accidentally checked in
255 unused code. Add comment.
259 * breakpoint.c (watchpoint_check): Check for pc being in an
260 epilogue if watchpoint frame couldn't be found.
264 * Makefile.in: Re-generate all dependencies.
268 * arch-utils.h (legacy_print_insn): Delete declaration.
269 * arch-utils.c (legacy_print_insn): Delete function.
270 * disasm.c (deprecated_tm_print_insn_info): Delete.
271 (_initialize_disasm): Delete function, contained code initializing
272 deprecated_tm_print_insn_info.
273 * gdbarch.sh (deprecated_tm_print_insn): Delete.
274 (deprecated_tm_print_insn_info): Delete.
275 (TARGET_PRINT_INSN): Do not provide a default.
276 * gdbarch.h, gdbarch.c: Re-generate.
280 * disasm.c (fprintf_disasm): New function.
281 (gdb_disassemble_info): Call "init_disassemble_info", instead of
282 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
283 reverts 2003-08-14 change.
284 (_initialize_disasm): Call "init_disassemble_info", instead of
285 INIT_DISASSEMBLE_INFO_NO_ARCH.
289 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
293 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
294 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
295 * symfile.c (syms_from_objfile): Update.
296 (reread_symbols): `Update
297 * exec.c (exec_file_attach): Update.
298 (exec_file_attach): Update.
299 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
301 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
305 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
307 (arm_get_cache): Delete macro.
308 (struct arm_prologue_cache): Update comments. Make saved_regs into
309 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
311 (thumb_scan_prologue): Update for cache changes. Don't call
312 DEPRECATED_PC_IN_CALL_DUMMY.
313 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
314 argument and use it in desperation search for our prologue. Do not
315 search past the specified PC.
316 (arm_make_prologue_cache): Simplify.
318 (arm_prologue_this_id, arm_prologue_prev_register)
319 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
320 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
321 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
322 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
323 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
325 (arm_frame_chain_valid, arm_find_callers_reg)
326 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
327 (arm_pop_frame): Delete obsolete methods.
328 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
330 (arm_gdbarch_init): Update for new frame methods. Register prologue
331 and sigtramp unwinders. Set the default frame base method.
333 * Makefile.in (arm-tdep.o): Update dependencies.
334 * varobj.c (find_frame_addr_in_frame_chain): Call
335 get_frame_base_address.
336 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
340 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
341 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
342 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
343 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
344 Take NEXT_FRAME and CACHE arguments. Call
345 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
346 Set unwound_pc in CACHE instead of modifying the frame argument.
347 Don't bother checking the frame type when looking for sigtramp
349 (arm_make_prologue_cache, arm_frame_chain)
350 (arm_init_extra_frame_info): New functions.
354 * arm-tdep.c (arm_get_cache): Define.
355 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
356 unwound_sp, unwound_pc, and saved_regs.
357 (thumb_scan_prologue): Take a cache instead of the frame.
358 (arm_scan_prologue): Likewise.
359 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
360 instead of a temporary frame.
361 (arm_init_extra_frame_info): Allocate and use a cache.
362 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
366 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
367 * config/mips/wince.mt (TM_CLIBS): Ditto.
368 * config/sh/wince.mt (TM_CLIBS): Ditto.
369 * config/pa/hppa64.mt (TM_CLIBS): Delete.
370 * config/sparc/sp64.mt (CC): Delete.
374 * defs.h: Do not include "arch-utils.h".
375 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
377 * configure.in (GDB_MULTI_ARCH): Do not define.
378 * configure, config.in: Regenerate.
379 * configure.tgt: Do not set variable "gdb_multi_arch".
380 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
381 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
382 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
383 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
384 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
385 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
386 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
387 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
388 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
389 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
390 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
391 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
392 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
393 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
394 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
395 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
396 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
397 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
401 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
402 * config/m68k/nm-hp300hpux.h: Delete.
403 * config/m68k/tm-hp300hpux.h: Delete.
404 * config/m68k/xm-hp300hpux.h: Delete.
405 * config/m68k/xm-hp300bsd.h: Delete.
406 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
407 tm-hp300hpux.h, xm-hp300hpux.h.
408 * somsolib.c: Remove comment about hp300 shared libraries.
412 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
413 Only define PTRACE_GET_THREAD_AREA is not already defined.
414 Various style fixes in code and comments and some additional
415 spelling fixes in comments. Move after functions dealing with
417 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
420 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
421 frame_unwind_register_unsigned instead of
422 frame_unwind_unsigned_register.
426 * configure.in: Search for gethostbyname in libnsl.
427 * configure: Regenerated.
431 * configure.in: Remove redundant AC_MSG_RESULT in check for
432 uintptr_t in stdint.h.
433 * configure: Regenerated.
435 * amd64-nat.h (struct regcache): Add opaque declaration.
437 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
438 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
439 Change "register array" to "register cache" in comments.
440 (x86_64_linux_gregset64_reg_offset): New variable.
441 (GETREGS_SUPPLIES): Remove macro.
442 (supply_gregset): Call amd64_supply_native_gregset instead of
443 x86_64_linux_supply_gregset.
444 (fill_gregset): Rename `regno' to `regnum'. Call
445 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
446 (store_regs): Rename `regno' to `regnum'.
447 (store_fpregs): Rename `regno' to `regnum'.
448 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
449 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
450 Reorganize function a bit.
451 (store_inferior_registers): Rename `regno' to `regnum'. Use
452 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
453 Reorganize function a bit.
454 (_initialize_x86_64_linux_nat): New function.
455 * config/i386/x86-64linux.mh.
459 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
460 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
461 (target_remove_watchpoint): Delete macro.
462 (target_insert_watchpoint): Delete macro.
463 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
464 (remote_mips_stopped_by_watchpoint): Delete declaration.
465 (remote_mips_remove_watchpoint): Delete declaration.
466 (remote_mips_set_watchpoint): Delete declaration.
467 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
468 * remote-mips.c (_initialize_remote_mips): Set
469 "to_insert_watchpoint", "to_stopped_by_watchpoint",
470 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
471 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
472 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
473 (mips_stopped_by_watchpoint): Rename
474 remote_mips_stopped_by_watchpoint.
475 (mips_can_hardware_watchpoint): Rename
476 remote_mips_can_use_hardware_watchpoint, update function
481 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
482 USER_DS. We haven't given them a register number yet.
484 * amd64-nat.h: New file.
485 * amd64-nat.c: New file.
486 * amd64fbsd-nat.c: Include "amd64-nat.h".
487 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
488 (amd64fbsd32_r_reg_offset): New variable.
489 (supply_gregset): Simply call amd64_supply_native_gregset.
490 (fill_gregset): Rename `regno' to `regnum'. Simply call
491 amd64_collect_native_gregset.
492 (fill_fpregset): Rename `regno' to `regnum'.
493 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
494 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
495 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
496 `fpregset_t'. Call amd64_supply_native_gregset instead of
497 supply_gregset. Call x86_64_supply_fxsave instead of
499 (store_inferior_registers): Rename `regno' to `regnum'. Replace
500 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
501 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
502 `fpregset_t'. Call amd64_collect_native_gregset instead of
503 fill_gregset. Call x86_64_collect_fxsave instead of
505 (_initialize_am64fbsd_nat): Initialize
506 amd64_native_gregset32_reg_offset and
507 amd64_native_gregset64_reg_offset.
508 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
510 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
511 null pointer. Fix typo in comment.
513 * regcache.c (supply_register): Reimplement to call
515 (regcache_collect): Reimplement by calling regcache_raw_collect.
519 * regcache.c (register_buffer): Consitify first argument.
520 (regcache_raw_supply, regcache_raw_collect): New
525 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
526 by Nathan J. Williams.
530 * lin-lwp.c (wait_lwp): New function, copied from
531 stop_wait_callback. Clean up.
532 (stop_wait_callback): Use wait_lwp.
536 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
537 flavour and disassembler options.
538 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
539 (mips_gdbarch_init): Set "print_insn". Delete initialization of
540 deprecated_tm_print_insn_info.
544 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
545 Use target_read_memory.
546 (s390_get_frame_info): Update. Do not reference
547 deprecated_tm_print_insn_info.
548 (s390_check_function_end, s390_is_sigreturn): Ditto.
552 * Makefile.in (cris-tdep.o): Update dependencies.
553 * cris-tdep.c: Include "gdb_assert.h".
554 (cris_gdbarch_init): Set print_insn.
555 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
556 (cris_delayed_get_disassembler): Simplify, directly call the
557 disassembler returned by cris_get_disassembler.
558 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
559 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
560 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
561 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
562 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
563 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
564 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
565 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
566 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
567 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
568 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
569 (gdb_print_insn_sparc): Delete function.
570 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
571 deprecated_tm_print_insn_info.
572 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
573 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
574 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
576 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
577 * s390-tdep.c (gdb_print_insn_s390): Delete function.
578 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
579 (s390_gdbarch_init): Set print_insn.
583 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
584 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
585 * infcall.c (call_function_by_hand): Convert the entry point
586 address into a code address.
590 * dsrec.c: Include "gdb_string.h".
591 * Makefile.in (dsrec.o): Update dependencies.
595 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
599 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
600 (alpha_osf1_init_abi): Do not set call_dummy_address.
605 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
606 compiles with -Wformat-nonliteral -Werror.
610 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
611 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
612 bfd_lookup_symbol, since we only want symbols in code sections.
613 (look_for_base): Pass zero as the SECT_FLAGS argument to
614 bfd_lookup_symbol, since we're not concerned about which section
619 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
620 we are frameless or the return address register is already known.
624 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
625 in size. Add comments.
629 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
630 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
634 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
635 case out of #ifdef MIPS block.
640 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
641 available before calling SECT_OFF_TEXT.
642 * PROBLEMS: Remove description of java/1322.
646 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
647 bof, and nat0-nat127 as pseudo-registers.
648 (ia64_frame_cache): New struct used to cache frame info.
649 (ia64_register_reggroup_p): New routine used to override default
650 register grouping so registers without names are still saved and
652 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
654 (ia64_pseudo_register_read): New routine to read pseudo-registers.
655 (ia64_pseudo_register_write): New routine to write pseudo-registers.
656 (ia64_alloc_frame_cache): New routine to create a new
658 (examine_prologue): Change prototype to add next_frame pointer.
659 Assume frameless until otherwise proven. Verify that the cfm for
660 current frame matches the cfm that should occur for the prologues
661 alloc insn and if equal, mark as not frameless. At end of routine,
662 if not frameless, calculate registers for the previous frame and store
663 in the cache, if a cache is provided.
664 (ia64_skip_prologue): Use new prototype when calling examine_prologue
665 and pass 0 for next_frame.
666 (ia64_store_return_value): Change to use convert_typed_floating()
667 instead of calling ia64_convert_to_raw().
668 (ia64_extract_return_value): Change to use convert_typed_floating()
669 instead of calling ia64_convert_to_virtual().
670 (ia64_frame_cache): New routine to support new frame model.
671 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
672 (ia64_frame_sniffer): Ditto.
673 (ia64_sigtramp_frame_init_saved_regs): Ditto.
674 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
675 (ia64_sigtramp_frame_prev_register): Ditto.
676 (ia64_sigtramp_frame_sniffer): Ditto.
677 (ia64_frame_base_address): Ditto.
678 (ia64_extract_struct_value_address): Change to issue error message.
679 (ia64_frame_align): New routine to align sp.
680 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
681 (ia64_push_arguments): Removed. Logic moved to
682 ia64_push_dummy_call().
683 (ia64_push_return_address): Ditto.
684 (ia64_unwind_dummy_id): New function.
685 (ia64_unwind_pc): Ditto.
686 (ia64_convert_register_p): Ditto.
687 (ia64_register_to_value): Ditto.
688 (ia64_value_to_register): Ditto.
689 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
690 (ia64_register_byte, ia64_register_raw_size): Ditto.
691 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
692 (ia64_saved_pc_after_call): Ditto.
693 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
694 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
695 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
696 (ia64_register_convert_to_raw): Ditto.
697 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
698 (ia64_init_extra_frame_info): Ditto.
699 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
700 (ia64_gdbarch_init): Remove registering of deprecated functions that
701 are no longer used. Add registration of new gdbarch functions.
702 Remove registering deprecated_write_sp. Replace
703 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
704 Delete set_gdbarch_deprecated_register_convertible(),
705 set_gdbarch_deprecated_register_convert_to_virtual(), and
706 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
707 set_gdbarch_deprecated_register_size(),
708 set_gdbarch_deprecated_register_bytes(),
709 set_gdbarch_pcregnum(),
710 set_gdbarch_deprecated_register_byte(),
711 set_gdbarch_deprecated_register_raw_size(),
712 set_gdbarch_deprecated_max_register_raw_size(),
713 set_gdbarch_deprecated_register_virtual_size(),
714 and set_gdbarch_deprecated_max_register_virtual_size() calls.
715 Replace set_gdbarch_deprecated_extract_return_value() with
716 set_gdbarch_extract_return_value(). Remove calls to:
717 set_gdbarch_deprecated_saved_pc_after_call();
718 set_gdbarch_deprecated_frame_chain(),
719 set_gdbarch_deprecated_frame_saved_pc(),
720 set_gdbarch_deprecated_frame_init_saved_regs(),
721 set_gdbarch_deprecated_get_saved_register(),
722 set_gdbarch_deprecated_call_dummy_words(),
723 set_gdbarch_deprecated_sizeof_call_dummy_words(),
724 set_gdbarch_deprecated_init_extra_frame_info(),
725 set_gdbarch_deprecated_frame_args_address(),
726 set_gdbarch_deprecated_frame_locals_address(),
727 and set_gdbarch_deprecated_dummy_write_sp().
728 Add set_gdbarch_convert_register_p(),
729 set_gdbarch_register_to_value(),
730 set_gdbarch_value_to_register(),
731 set_gdbarch_push_dummy_call(),
732 set_gdbarch_frame_align(),
733 set_gdbarch_unwind_dummy_id(),
734 set_gdbarch_unwind_pc(),
735 frame_unwind_append_sniffer(),
736 frame_unwind_append_sniffer(),
737 and frame_base_set_default().
741 * configure.tgt: Document need for special "mipsisa64" handling.
742 (mipsisa64*-*-linux64): Handle as target linux64.
743 (mipsisa64*-*-*): Handle as target embed64.
747 * PROBLEMS: Document pr gdb/1322, the Java anonymous
752 * i387-tdep.h: Update copyright date.
753 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
755 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
756 CFLAGS games to reflect reality.
760 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
761 GDB_MULTI_ARCH is always non-zero.
762 * osabi.c (_initialize_gdb_osabi): Ditto.
763 (gdbarch_init_osabi): Ditto.
764 * sparc-tdep.c: Ditto for #if code.
768 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
770 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
772 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
773 x86_64_supply_fxsave.
774 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
775 x86_64_supply_fxsave.
776 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
777 x86_64_supply_fxsave.
781 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
786 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
787 i387_supply_register.
788 (go32_fetch_registers): Adjust call to i387_supply_fsave.
789 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
791 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
793 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
795 * i386bsd-nat.c (supply_fpregset): Adjust call to
797 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
798 call to i387_supply_fxsave. Call i387_supply_fsave instead of
800 (store_inferior_registers): Remove extraneous whitespace. Call
801 i387_fill_fsave instead of fill_fpregset.
802 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
803 (supply_fpregset): Likewise.
804 * i386v4-nat.c (supply_fpregset): Adjust call to
806 * i386-interix-nat.c (supply_fpregset): Adjust call to
808 * i386-linux-nat.c (supply_fpregset): Adjust call to
810 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
811 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
812 i387supply_fsave and i387_supply_fxsave.
813 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
814 Incorporate code from `i387_supply_register.
815 (i387_supply_register): Remove.
816 (i387_supply_fxsave): Add `regnum' argument.
818 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
820 (i387_supply_register): remove prototype.
825 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
826 Add lines for files in gdb/testsuite/gdb.cp/* that are
827 still not 8.3 unique.
831 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
832 TYPE_VPTR_FIELDNO is valid.
836 * utils.c (set_width_command): Remove prototypes.
837 (set_screen_size): New prototype.
838 (init_page_info): Simplify by fetching the screen size from
839 Readline. Call set_screen_size.
840 (set_screen_size): New function.
841 (set_width): Add missing whitespace in comment.
842 (set_width_command): Call set_screen_size.
843 (set_height_command): New function.
844 (initialize_utils): Fix formatting. Make "set height" command
845 call set_height_command. Remove redundant code that turns off
846 pagination if output isn't a terminal. Remove redundant call to
851 * sparc64-tdep.h (sparc64_regnum): Fix comment.
852 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
853 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
854 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
856 (sparc64_register_info): Give the reister with number
857 SPARC64_STATE_REGNUM a name.
858 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
860 (sparc64_push_dummy_call): Take BIAS into account when checking
862 (sparc_software_single_step): Remove assertions that check whether
863 NPC and NNPC were zero.
864 (sparc_supply_rwindow): Make public. Merge functionality with
865 sparc64_supply_rwindow.
866 (sparc_fill_rwindow): Make public. Merge functionality with
867 sparc64_fill_rwindow.
868 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
869 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
870 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
871 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
872 sparc_supply_rwindow instead of sparc64_supply_rwindow.
874 * reggroups.c: Add whitespace after declarations of local
875 variables in functions.
879 * gdbtypes.h: Change array bound type from an int to enum.
883 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
884 * config/sparc/tm-sparc.h: Ditto.
885 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
887 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
891 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
892 (register_objfile_data, set_objfile_data, objfile_data): New
894 * objfiles.c (objfile_alloc_data, objfile_free_data): New
896 (allocate_objfile): Call objfile_alloc_data.
897 (free_objfile): Call objfile_free_data.
898 (struct objfile_data): New.
899 (struct objfile_data_registration): New.
900 (struct objfile_data_registry): New.
901 (objfile_data_registry): New variable.
902 (register_objfile_data): New function.
903 (objfile_alloc_data, objfile_free_data): New functions.
904 (set_objfile_data, objfile_data): New functions.
905 * dwarf2-frame.c (dwarf2_frame_data): New variable.
906 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
907 (_initialize_dwarf2_frame): New function and prototype.
911 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
912 a specific architecture.
913 * arch-utils.h (set_architecture_from_arch_mach): Delete
915 (target_architecture_hook): Delete declaration.
916 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
917 (default_float_format): Assume GDB_MULTI_ARCH.
918 (default_double_format): Assume GDB_MULTI_ARCH.
919 (set_endian_from_file): Delete function.
920 (arch_ok): Delete function.
921 (set_arch): Delete function.
922 (set_architecture_from_arch_mach): Delete function.
923 (set_architecture_from_file): Delete function.
924 (set_architecture): Assume GDB_MULTI_ARCH.
925 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
929 Rewrite FreeBSD/sparc64 native configuration.
930 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
931 * sparc64fbsd-nat.c: New file.
932 * sparc64fbsd-tdep.c: New file.
933 * sparc64-tdep.c sparc64-tdep.h: New files.
934 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
935 sparc64fbsd-tdep.o): New dependencies.
936 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
937 and sparc64fbsd-tdep.c.
938 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
939 * config/sparc/fbsd.mh: Remove copyright notice.
940 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
942 * config/sparc/fbsd.mt: Remove copyright notice.
943 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
944 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
945 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
946 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
947 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
948 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
949 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
950 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
952 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
953 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
957 * symtab.h: Add doco on the space critical structures and
958 some measurements of space usage.
962 * tracepoint.c (trace_dump_command): Trace break address
963 is subject to DECR_PC_AFTER_BREAK.
964 (set_traceframe_context): Make "trace_line" an int.
969 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
970 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
971 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
973 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
974 functions, replace sh_push_dummy_call.
975 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
979 * gdbtypes.h (struct main_type): Rearrange to save space.
983 * trad-frame.c: Comment typo fix.
988 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
989 (frv_frame_init_saved_regs): Add declaration.
990 (frame_extra_info): Add new field ``saved_regs''.
991 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
992 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
993 Update frame related code.
994 (frv_extract_struct_value_address): Adjust formatting.
995 * Makefile.in (frv-tdep.o): Update dependencies.
996 * config/frv/tm-frv.h (target_insert_watchpoint)
997 (target_remove_watchpoint, target_insert_hw_breakpoint)
998 (target_remove_hw_breakpoint): Delete these macros.
999 (remote_insert_watchpoint, remote_remove_watchpoint)
1000 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1005 * defs.h (ENUM_BITFIELD): New macro.
1006 * symtab.h (ENUM_BITFIELD): Use it.
1007 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1011 * MAINTAINERS (write after approval): Add myself.
1015 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1016 * gdbarch.h, gdbarch.c: Re-generate.
1017 * infcall.c (call_function_by_hand): Adjust the SP by
1018 frame_red_zone_size before allocating any stack space.
1019 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1020 * x86-64-tdep.c (x86_64_frame_align): New function.
1021 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1023 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1024 Remove code adjusting SP so that it skips over the Red Zone.
1028 * NEWS (New native configurations): Mention FreeBSD/amd64.
1032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1033 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1035 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1039 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1043 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1045 * i386-linux-nat.c: Include "linux-nat.h".
1046 (child_post_startup_inferior): New function.
1050 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1051 at the start of a frameless function. This probably fixes PR
1056 * symfile.c (find_sym_fns): Remove special case for apollo target.
1060 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1061 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1062 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1063 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1064 (linux_supports_tracevforkdone): New function.
1065 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1067 (child_follow_fork): Handle vfork.
1068 (linux_handle_extended_wait): Likewise. Also handle exec.
1069 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1070 * NEWS: Mention fork tracing.
1074 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1078 * Makefile.in (i386-linux-nat.o): Update dependencies.
1079 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1080 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1081 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1082 * i386-linux-nat.c: Include "linux-nat.h".
1083 (child_post_startup_inferior): New function.
1084 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1085 * infptrace.c (kill_inferior): Wrap in #ifdef.
1086 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1087 attaching to each LWP.
1088 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1089 (init_lin_lwp_ops): Fill in some more operations.
1090 * linux-nat.h (linux_enable_event_reporting)
1091 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1093 * linux-nat.c (linux_enable_event_reporting): New function.
1094 (child_post_attach, linux_child_post_startup_inferior)
1095 (child_post_startup_inferior, child_follow_fork)
1096 (linux_handle_extended_wait, kill_inferior): New functions.
1100 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1101 * gdbarch.h, gdbarch.c: Re-generate.
1105 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1109 * NEWS: Mention that "set prompt-escape-char" was deleted.
1110 * top.c (get_prompt_1): Delete function.
1111 (gdb_prompt_escape):
1112 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1113 prompt-escape-char" command.
1114 (MAX_PROMPT_SIZE): Delete macro.
1115 (get_prompt): Simplify, do not call get_prompt_1.
1119 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1120 -Werror. -Wformat-nonliteral problems.
1124 Further multiarching work mostly for hppa64-*-hpux11:
1125 * hppa-tdep.h: New file.
1126 * hppa-tdep.c: #include hppa-tdep.c.
1127 (hppa32_num_regs): Renamed from hppa_num_regs.
1128 (hppa64_num_regs): New constant.
1129 (hppa64_call_dummy_breakpoint_offset): New constant.
1130 (hppa32_call_dummy_length): New constant.
1131 (hppa64_call_dummy_length): New constant.
1132 (hppa32_stack_align): Make name 32bit explicit.
1133 (hppa32_register_virtual_type): Likewise.
1134 (hppa32_extract_return_value): Likewise.
1135 (hppa32_use_struct_convention): Likewise.
1136 (hppa32_store_return_value): Likewise.
1137 (hppa64_register_virtual_type): New function.
1138 (hppa64_extract_return_value): New function.
1139 (hppa64_use_struct_convention): New function.
1140 (hppa64_store_return_value): New function.
1141 (hppa_frame_locals_address): Remove declaration, function does
1143 (hppa_register_byte): Add support for PA64 ABI.
1144 (hppa_gdbarch_init): Add support for PA64 ABI.
1145 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1146 Make name 32bit explicit.
1147 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1148 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1149 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1150 (hppa64_hpux_frame_base_before_sigtramp): New function.
1151 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1152 * config/pa/tm-hppa64.h: Remove macros that are no longer
1153 necessary now that the gdbarch vector is properly setup.
1154 Transform some macros into function calls. Some minor cleanup.
1155 * config/pa/tm-hppah.h: Update function calls in macros
1156 following the function renaming in hppa-hpux-tdep.c.
1157 * Makefile.in (hppa_tdep_h): New variable.
1158 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1162 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1166 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1167 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1172 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1173 (frv_saved_pc_after_call): Use deprecated ftype.
1174 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1175 (frv_remote_translate_xfer_address): Remove.
1176 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1180 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1181 initialization after the common gdbarch initialization, not before.
1185 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1186 (ADDR_BITS_REMOVE): Remove, redundant.
1190 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1191 gdbarch method to clear the 2 low bits of text addresses.
1195 * Makefile.in (dsrec.o): Update dependencies.
1196 * dsrec.c: Include "gdb_assert.h".
1197 (make_srec): Use snprintf instead of sprintf, use a literal format
1202 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1203 FRAME_OBSTACK_ZALLOC.
1207 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1212 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1213 amd64fbsd_sc_reg_offset): Add extern declarations.
1214 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1219 * MAINTAINERS (write after approval): Update my mail address.
1223 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1227 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1228 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1229 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1230 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1231 i386bsd_sc_reg_offset): Add extern declarations.
1232 * i386obsd-nat.c: Include "i386-tdep.h"
1233 (_initialize_i386obsd_nat): Remove extern declarations.
1234 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1236 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1239 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1240 instead of frame_read_register.
1241 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1242 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1244 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1245 instead of frame_unwind_unsigned_register. Use
1246 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1247 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1248 instead of read_register. Use builtin_type_void_data_ptr instead
1249 of builtin_type_void_func_ptr when extracting the address of the
1251 (i386_extract_return_value, i386_store_return_value,
1252 i386_pseudo_register_read, i386_pseudo_register_write): Use
1253 register_size instead REGISTER_RAW_SIZE.
1257 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1258 sprintf. Make "name" constant.
1262 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1263 instead of frame_read_register.
1264 (i387_print_float_info): Use get_frame_register and
1265 get_frame_register_unsigned instead of frame_register_read.
1267 * i386fbsd-nat.c: Include "i386-tdep.h".
1268 (child_resume): Make `eflags' an ULONGEST. Use
1269 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1270 instead of register_read and register_write.
1272 * i386bsd-nat.c (fetch_inferior_registers,
1273 store_inferior_registers): Don't use && at the end of a line.
1274 (_initialize_i386bsd_nat): Fix typo.
1276 * frame.c (_initialize_frame): Add missing backslash.
1279 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1280 and supply_register instead of manipulating the register buffer
1284 * config/i386/nm-i386sol2.h
1285 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1288 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1289 instructions that GCC likes to mingle into the prologue. Fixes
1290 gdb/1253 and gdb/1255.
1295 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1296 * command.h (add_setshow_uinteger_cmd): Declare.
1297 * frame.c (set_backtrace_cmd): New function.
1298 (show_backtrace_cmd): New function.
1299 * frame.c (_initialize_frame): Replace "set/show
1300 backtrace-below-main" with "set/show backtrace past-main". Add
1301 command "set/show backtrace limit".
1302 (backtrace_past_main): Rename "backtrace_below_main".
1303 (backtrace_limit): New variable.
1304 (get_prev_frame): Update. Check the backtrace_limit.
1308 * defs.h (xstrprintf): Declare.
1309 * utils.c (xstrprintf): New function.
1310 * breakpoint.c (insert_breakpoints): Replace sprintf and
1311 non-literal format strings, with xstrprintf and cleanups.
1312 (delete_breakpoint,breakpoint_re_set): Ditto.
1313 (commands_command, insert_breakpoints): Ditto.
1314 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1315 (break_at_finish_command_1): Ditto.
1319 * MAINTAINERS (language support): List Adam Fedor as Objective C
1324 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1325 are now multiarched.
1329 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1330 longer necessary now that hppa64 is partially multiarch'ed.
1334 * interps.c (interp_set): Check for a NULL "old_interp".
1338 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1339 (install-only): Support DESTDIR.
1340 (uninstall): Likewise.
1341 (install-gdbtk): Likewise.
1345 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1346 contains something meaningful at all times.
1350 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1354 * MAINTAINERS (write after approval): Added self.
1358 * inferior.h (AT_SYMBOL): Define.
1359 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1360 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1361 * mips-tdep.c (mips_call_dummy_address): Delete function.
1362 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1363 set call_dummy_address.
1367 * language.c (op_error): Delete function.
1368 (binop_type_check): Delete function.
1369 * language.h (type_op_error, range_op_error): Delete macros.
1370 (op_error): Delete declaration.
1374 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1378 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1379 (x86_64_push_arguments): Skip the red zone.
1383 * reggroups.c (reggroup_next): Check for the final entry.
1387 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1388 * cli/cli-script.c (define_command): Call query directly, instead
1389 of passing it a buffer.
1390 * ocd.c (ocd_error): Pass error a constant format string.
1391 * remote-mips.c (mips_error): Use fputs_filtered.
1393 * solib-svr4.c (_initialize_svr4_solib): Update
1394 register_gdbarch_data call.
1395 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1397 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1398 (register_gdbarch_data): Delete "free" parameter. Update
1400 * gdbarch.h, gdbarch.c: Re-generate.
1401 * reggroups.c (_initialize_reggroup): Update.
1402 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1403 * frame-base.c (_initialize_frame_base): Update.
1404 * frame-unwind.c (_initialize_frame_unwind): Update.
1405 * user-regs.c (_initialize_user_regs): Update.
1406 * remote.c (_initialize_remote): Update.
1407 * regcache.c (_initialize_regcache): Update.
1409 * regcache.c (xfree_regcache_descr): Delete function.
1410 (_initialize_regcache): Update call to register_gdbarch_data.
1411 (init_regcache_descr, init_legacy_regcache_descr): Use
1412 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1414 * remote.c (free_remote_state): Delete function.
1415 (_initialize_remote): Update register_gdbarch_data.
1416 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1417 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1421 * reggroups.c (struct reggroup_el): Define.
1422 (struct reggroups): Delete field "nr_group". Replace array
1423 "group" with a "first" to "last" linked list.
1424 (reggroups_init): Update. Allocate using gdbarch's obstack.
1425 (reggroups_free): Delete function.
1426 (add_group): Update. Add "el" parameter.
1427 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1428 (default_groups): Update.
1429 (reggroup_next): Replace reggroups.
1430 (reggroups_dump): Update.
1431 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1432 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1433 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1437 * Makefile.in (tui-interp.o): Update dependencies.
1441 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1442 to internal_error call.
1443 * source.c (forward_search_command): Add "%s" format argument.
1444 (reverse_search_command): Ditto.
1445 * top.c (quit_confirm): Ditto.
1446 * cli/cli-setshow.c (do_setshow_command): Ditto.
1447 * cp-valprint.c (cp_print_class_method): Replace
1448 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1449 (cp_print_class_member): Ditto.
1450 * event-top.c (command_line_handler): Ditto.
1451 * linux-proc.c (linux_info_proc_cmd): Ditto.
1452 * p-typeprint.c (pascal_type_print_base): Ditto.
1453 * p-valprint.c (pascal_object_print_class_method): Ditto.
1454 (pascal_object_print_class_member): Ditto.
1455 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1456 * remote.c (remote_cisco_section_offsets): Ditto.
1457 * top.c (command_line_input): Ditto.
1458 * utils.c (vwarning,error_stream,quit): Ditto.
1459 * valprint.c (print_floating,print_binary_chars)
1460 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1464 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1468 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1469 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1474 * Makefile.in: Update all dependencies and definitions.
1478 * linespec.c (is_objc_method_format): New function
1479 (decode_line_1, locate_first_half): Use it.
1484 * NEWS: Mention that m32r is multi-arch.
1486 * configure.tgt: Recognize m32r-*-*.
1487 * config/m32r/tm-m32r.h: Delete file.
1488 * config/m32r/m32r.mt: New file.
1489 * m32r-rom.c (m32r_upload_command): Use hostent only when
1490 gethostname succeeds, in order to avoid a compilation
1492 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1497 * sh-tdep.c (sh_frame_align): New gdbarch method.
1498 (sh_gdbarch_init): Set up frame_align method.
1502 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1503 which is already covered by the new frames infrastructure.
1507 * user-regs.c (struct user_reg): Add "next" link.
1508 (struct user_regs): Replace "user" with "first" and "last" links.
1509 (append_user_reg): Add pre-allocated "reg" parameter.
1510 (builtin_user_regs): Provide initial value for "last".
1511 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1512 (user_regs_init): Allocate memory from the gdbarch obstack.
1513 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1514 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1516 (usernum_to_user_reg): New function.
1517 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1518 (value_of_user_reg): Use usernum_to_user_reg.
1519 (user_regs_free): Delete function.
1520 (_initialize_user_regs): Update register_gdbarch_data call.
1524 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1528 * value.h (value_being_returned): Add a struct_addr argument.
1529 * infcall.c (call_function_by_hand): Pass struct_addr to
1530 value_being_returned.
1531 * infcmd.c (print_return_value): Pass zero as struct_addr.
1532 * values.c (value_being_returned): If struct_addr is passed,
1533 use it instead of trying to recover it from the inferior.
1537 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1538 the prologue analyzer won't need to attempt to extract the pc
1539 value from the woefully incomplete dummy frame.
1540 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1541 possible. Disable code which modifies the frame.
1545 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1547 (annotate_breakpoints_table, annotate_record): Ditto.
1548 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1549 (annotate_field_name_end, annotate_field_value): Ditto.
1550 (annotate_field_end, annotate_frame_source_begin): Ditto.
1551 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1552 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1553 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1554 (annotate_frame_address_end, annotate_frame_address): Ditto.
1555 (annotate_frame_args, annotate_frame_end): Ditto.
1556 (annotate_frame_where, annotate_arg_begin): Ditto.
1557 (annotate_arg_name_end, annotate_arg_value): Ditto.
1558 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1559 (annotate_function_call, annotate_signal_name): Ditto.
1560 (annotate_signal_string, annotate_signal_name_end): Ditto.
1561 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1562 (annotate_value_begin, annotate_value_history_value): Ditto.
1563 (annotate_value_history_end, annotate_value_end): Ditto.
1564 (annotate_display_begin, annotate_display_number_end): Ditto.
1565 (annotate_display_format, annotate_display_expression): Ditto.
1566 (annotate_display_expression_end, annotate_display_value): Ditto.
1567 (annotate_display_end, annotate_array_section_begin): Ditto.
1568 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1569 (annotate_elt, annotate_array_section_end): Ditto.
1573 * regcache.c (struct regcache_descr): Update comments on
1575 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1576 sizeof_raw_register_valid_p.
1577 (init_regcache_descr): Set nr_raw_registers and
1578 sizeof_raw_register_valid_p before calling
1579 init_legacy_regcache_descr.
1583 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1588 * thread.c (info_threads_command): Use get_selected_frame ().
1589 Check that there is at least one non-sentinel frame.
1593 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1594 (m68hc11_pop_frame): Remove.
1595 (m68hc11_frame_saved_pc): Remove.
1596 (m68hc11_frame_chain): Remove.
1597 (m68hc11_frame_init_saved_regs): Remove.
1598 (m68hc11_init_extra_frame_info): Remove.
1599 (m68hc11_store_struct_return): Remove.
1600 (m68hc11_saved_pc_after_call): Remove.
1604 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1605 frame unwind information.
1606 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1607 and adapted for frame unwinding.
1608 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1609 (m68hc11_unwind_pc): New function.
1610 (m68hc11_frame_unwind_cache): New function to analyze frames.
1611 (m68hc11_frame_this_id): New function to create new frame struct.
1612 (m68hc11_frame_prev_register): New function to unwind a register from
1614 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1615 (m68hc11_frame_p): New function for the above.
1616 (m68hc11_frame_base_address): New function to return fp of frame.
1617 (m68hc11_frame_args_address): Update for frame.
1618 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1619 (m68hc11_unwind_sp): New function.
1620 (m68hc11_unwind_dummy_id): New function.
1621 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1626 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1627 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1628 when we are beyond the current pc.
1632 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1633 from m68hc11_push_arguments.
1634 (m68hc11_push_arguments): Remove.
1635 (m68hc11_push_return_address): Remove.
1636 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1637 handlers; remove deprecated_extra_stack_alignment_needed.
1641 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1642 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1643 REAL_PC and not the pointer.
1644 * hppa-hpux-tdep.c: Include frame.h
1648 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1649 GDB_MULTI_ACH_PARTIAL.
1654 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1655 operator at start and not end of line.
1656 (decode_prologue): Ditto.
1657 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1658 frame_unwind_register_unsigned instead of
1659 frame_unwind_unsigned_register.
1660 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1662 (m32r_push_dummy_call): Use register_size instead of
1664 (m32r_frame_sniffer): Replace m32r_frame_p.
1665 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1666 * m32r-rom.c (report_transfer_performance): Delete extern
1668 (m32r_load, m32r_upload_command): Use print_transfer_performance
1669 instead of report_transfer_performance.
1670 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1671 / add_show_from_set.
1675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1676 store_return_value and extract_struct_value_address.
1681 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1682 NULL, default to the section containing PC.
1686 * NEWS: Mention "regs" deprecated for m68hc11 too.
1688 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1689 (m68hc11_print_register): New function to print out one register.
1690 (m68hc11_print_registers_info): New function to print registers.
1691 (show_regs): Deprecate and use the above.
1692 (m68hc11_gdbarch_init): Install the print_registers_info.
1696 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1697 that we have a SIGTRAP before returning non-zero.
1702 * linespec.c (decode_line_2): Avoid crash if
1703 find_function_start_sal() returns empty record.
1707 * ia64-tdep.c (ia64_print_insn): New function.
1708 (ia64_gdbarch_init): Set print_insn to it.
1709 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1710 deprecated_tm_print_insn_info.
1714 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1715 handle 8-bit returns (long long).
1716 (h8300h_extract_return_value): Ditto.
1717 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1721 * gdbarch.c Include "gdb_obstack.h".
1722 (struct gdbarch): Add an "obstack".
1723 (alloc_gdbarch_data): Allocate the gdbarch data using
1724 GDBARCH_OBSTACK_CALLOC.
1725 (free_gdbarch_data): Delete function.
1726 (gdbarch_obstack_zalloc): New function.
1727 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1728 Assert that the architecture is not initialized.
1729 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1730 vector from the obstack.
1731 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1732 architecture obstack.
1733 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1734 (set_gdbarch_data): Assert that the data is not initialized.
1735 (struct gdbarch_data): Delete member "free".
1736 (register_gdbarch_data): Do not initialize "free".
1737 * gdbarch.h, gdbarch.c: Re-generate.
1741 * configure.in (build_warnings): Add -Wformat-nonliteral.
1742 * configure: Re-generate.
1746 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1750 * findvar.c (read_var_value): Remove case for thread local storage
1751 variables. It is now entirely handled by the dwarf2 location
1753 * printcmd.c (address_info): Ditto.
1754 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1756 (struct symbol): Remove objfile field, which was used by
1757 LOC_THREAD_LOCAL_STATIC only.
1758 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1759 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1760 usage of objfile pointer.
1761 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1762 thread local variables.
1763 Add include of objfiles.h.
1764 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1766 * Makefile.in (dwarf2loc.o): Update dependencies.
1770 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1772 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1773 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1774 (struct value): Add opaque declaration.
1775 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1780 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1784 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1785 regcache_cooked_read_unsigned instead of read_register.
1786 (m68hc11_saved_pc_after_call): Likewise.
1787 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1788 instead of write_register.
1789 (m68hc11_register_type): New function.
1790 (m68hc11_register_virtual_type): Remove.
1791 (m68hc11_store_return_value): Convert to use the regcache.
1792 (m68hc11_extract_struct_value_address): Likewise.
1793 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1794 m68hc11_register_type; undeprecate store_return_value and
1795 extract_struct_value_address.
1799 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1800 and translate to use regcache.
1801 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1805 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1806 * gdbarch.h, gdbarch.c: Re-generate.
1807 * i386-tdep.c (i386_gdbarch_init): Do not set
1808 DWARF2_BUILD_FRAME_INFO.
1809 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1811 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1812 DWARF2_BUILD_FRAME_INFO.
1817 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1821 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1822 frame_unwind_address_in_block, instead of frame_pc_unwind.
1823 (dwarf2_frame_cache): Ditto.
1827 * user-regs.h (struct gdbarch): Declare opaque.
1828 * ui-out.h (struct ui_file): Declare opaque.
1829 * dwarf2-frame.h (struct frame_info): Declare opaque.
1833 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1835 (procfs_meminfo): Change strerror to safe_strerror.
1836 (procfs_can_run): Remove K&R badness.
1840 * remote-sim.c: Comment typo fix.
1844 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1846 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1847 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1848 GDB_MULTI_ARCH_PARTIAL.
1852 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1853 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1854 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1858 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1860 (avr_frame_unwind_cache): Don't unwind FP for main.
1862 Save the computed prev_sp.
1863 (avr_saved_regs_unwinder): Remove function.
1864 (avr_frame_prev_register): Use PC unwind logic from
1865 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1869 * frame-base.h (frame_base_p_ftype): Delete definition.
1870 (frame_base_append_predicate): Delete declaration.
1871 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1872 (frame_unwind_append_predicate): Delete declaration.
1873 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1874 (append_predicate): Delete parameter "p".
1875 (frame_unwind_append_predicate): Delete function.
1876 (frame_unwind_append_sniffer): Update call to append_predicate.
1877 (frame_unwind_free): Delete function.
1878 (_initialize_frame_unwind): Pass NULL as "free" to
1879 register_gdbarch_data.
1880 (frame_unwind_init): Append the dummy_frame_sniffer.
1881 (frame_unwind_find_by_frame): Simplify.
1882 * frame-base.c (struct frame_base_table): Delete field "p".
1883 (append_predicate): Delete parameter "p".
1884 (frame_base_append_predicate): Delete function.
1885 (frame_base_append_sniffer): Update call to append_predicate.
1886 (frame_base_free): Delete function.
1887 (frame_base_find_by_frame): Simplify.
1888 (_initialize_frame_base): Pass NULL as "free" to
1889 register_gdbarch_data.
1890 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1891 (x86_64_sigtramp_frame_sniffer): Replace
1892 "x86_64_sigtramp_frame_p".
1893 (x86_64_init_abi): Set the frame unwind sniffers.
1894 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1895 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1896 (m68k_gdbarch_init): Set the frame unwind sniffers.
1897 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1898 "i386_sigtramp_frame_p".
1899 (i386_frame_sniffer): Replace "i386_frame_p".
1900 (i386_gdbarch_init): Set the frame unwind sniffers.
1901 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1902 (avr_gdbarch_init): Set the frame unwind sniffers.
1903 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1904 "alpha_sigtramp_frame_p"
1905 (alpha_heuristic_frame_sniffer): Replace
1906 "alpha_heuristic_frame_p".
1907 (alpha_gdbarch_init): Set the frame unwind sniffers.
1908 (alpha_dwarf2_init_abi): Ditto.
1909 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1910 "alpha_debug_frame_p".
1911 (alpha_mdebug_frame_base_sniffer): Replace
1912 "alpha_mdebug_frame_base_p".
1913 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1914 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1915 (d10v_gdbarch_init): Set the frame unwind sniffer.
1916 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1917 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1918 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1919 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1920 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1921 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1925 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1926 should go thru sh_dsp_register_sim_regno, else the dsp regs
1927 will not get the right values.
1931 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1932 deprecated_store_floating by call to store_typed_floating.
1933 (sh_sh4_register_convert_to_raw): Substitute call to
1934 deprecated_extract_floating by call to extract_typed_floating.
1938 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1942 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1943 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1944 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1946 (do_pseudo_register): Remove.
1947 (sh_push_dummy_code): New function.
1948 (sh64_store_struct_return): Rename from sh_store_struct_return.
1949 Only called for sh64 now.
1950 (sh_extract_struct_value_address): Regcache'ify.
1951 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1952 and accomodate new tasks.
1953 (sh64_push_return_address): Rename from sh_push_return_address.
1954 Only called for sh64 now.
1955 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1957 (sh3e_sh4_extract_return_value): Regcache'ify.
1958 (sh_default_store_return_value): Ditto.
1959 (sh3e_sh4_store_return_value): Ditto.
1960 (sh_default_register_byte): Remove.
1961 (sh_sh4_register_byte): Remove.
1962 (sh_default_register_raw_size): Remove.
1963 (sh_sh4_register_raw_size): Remove.
1964 (sh_register_virtual_size): Remove.
1965 (sh_sh3e_register_virtual_type): Remove.
1966 (sh_sh3e_register_type): New function.
1967 (sh_sh4_register_virtual_type): Remove.
1968 (sh_sh4_register_type): New function.
1969 (sh_default_register_virtual_type): Remove.
1970 (sh_default_register_type): New function.
1971 (do_fv_register_info): Add parameters to accomodate call from
1972 sh_print_registers_info.
1973 (do_dr_register_info): Ditto.
1974 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1975 Add parameters to accomodate call from sh_print_registers_info.
1976 (sh_do_fp_register): Ditto.
1977 (sh64_do_pseudo_register): Call do_dr_register_info,
1978 do_fv_register_info and sh_do_fp_register with default parameters.
1979 (sh_do_register): Add parameters to accomodate call from
1980 sh_print_registers_info.
1981 (sh_print_register): Ditto.
1982 (sh_print_registers_info): Rename from sh_do_registers_info.
1983 Add parameters to be used as gdbarch_print_registers_info
1984 implementation. Accomodate removed do_pseudo_register function
1986 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1987 function pointer. Call sh_print_register with default parameters.
1988 (sh64_do_registers_info): Call sh_print_registers_info instead of
1989 sh_do_registers_info.
1990 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1991 detection of deprecated vs. non-deprecated functionality.
1992 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1993 function pointer assignments by direct function calls.
1997 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1998 (frame_register_unwind, create_new_frame): Ditto.
1999 (legacy_get_prev_frame, get_frame_type): Ditto.
2000 (get_frame_base_address): Use frame_base_find_by_frame.
2001 (get_frame_locals_address): Use frame_base_find_by_frame.
2002 (get_frame_args_address): Use frame_base_find_by_frame.
2003 * frame-base.h (frame_base_sniffer_ftype): Declare.
2004 (frame_base_append_sniffer): Declare.
2005 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2006 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2007 (frame_base_append_sniffer): New function.
2008 (frame_base_append_predicate): Add a NULL sniffer.
2009 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2010 (struct frame_base_table): Add "sniffer".
2011 (frame_base_free): Free the "sniffer" table.
2012 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2013 (frame_unwind_append_sniffer): Declare.
2014 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2015 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2016 (struct frame_unwind_table): Add "sniffer", delete "middle".
2017 (append_predicate): Add "sniffer" parameter, append the sniffer.
2018 (frame_unwind_init): Update append_predicate call.
2019 (frame_unwind_append_sniffer): New function.
2020 (frame_unwind_append_predicate): Update append_predicate call.
2021 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2025 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2026 before code inhibiting repeated unwind attempts. Add to
2027 commentary on that test's problems.
2028 * blockframe.c (inside_main_func): Look for "main" in the minimal
2030 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2035 * complaints.c (struct explanation): Define.
2036 (struct complaints): Change type of "explanation" to "struct
2038 (symfile_explanations): Convert to a "struct explanation" table.
2039 (vcomplaint): Update.
2043 * x86-64-linux-nat.c (regmap): Removed.
2044 (supply_gregset, fill_gregset): Call
2045 x86_64_linux_(fill,supply)_gregset functions.
2046 * x86-64-linux-tdep.c (USER_*): New defines.
2047 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2048 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2050 (fetch_core_registers): Ditto.
2051 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2052 * x86-64-linux-tdep.h: New file.
2053 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2055 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2059 * x86-64-tdep.c (x86_64_store_return_value): Use
2060 regcache_cooked_write_part instead of regcache_cooked_write.
2062 * configure.host: Add x86_64-*-freebsd*.
2063 * configure.tgt: Add x86_64-*-freebsd*.
2064 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2065 * amd64fbsd-nat.c: New file.
2066 * amd64fbsd-tdep.c: New file.
2067 * config/i386/nm-fbsd64.h: New file.
2068 * config/i386/fbsd64.mh: New file.
2069 * config/i386/fbsd64.mt: New file.
2073 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2074 `sc_regs_offset' and `sc_fpregs_offset'.
2075 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2076 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2077 (alpha_sigtramp_register_address): Rewrite to use new members of
2078 `struct gdbarch_tdep'.
2079 (alpha_gdbarch_init): Initialize new members of struct
2081 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2082 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2083 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2084 (alphafbsd_pc_in_sigtramp): Implement.
2085 (alphafbsd_sigtramp_offset): New function.
2086 (alphafbsd_sigcontext_addr): New function.
2087 (alphafbsd_init_abi): Initialize signal trampoline related members
2088 of `struct gdbarch_tdep'.
2089 (_initialize_alphafbsd_tdep): Add prototype.
2093 * Makefile.in (install-only): Quote sed expression when generating
2098 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2099 * dwarf2-frame.c: Include complaints.h.
2100 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2101 variable initialization; return NULL on error.
2102 (decode_frame_entry): New.
2106 * frame.h (frame_address_in_block): Delete declaration.
2107 * blockframe.c (frame_address_in_block): Delete function.
2108 (get_frame_block): Use get_frame_address_in_block.
2109 (block_innermost_frame): Ditto.
2110 * stack.c (print_frame, backtrace_command_1): Ditto.
2112 * frame.h (get_frame_address_in_block): Declare.
2113 (frame_unwind_address_in_block): Declare.
2114 * frame.c (frame_unwind_address_in_block): New function.
2115 (get_frame_address_in_block): New function.
2119 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2120 pre-default. Note: re-generate has no effect.
2124 * gdbarch.sh: When a variable, but not a function, compare against
2125 0. Fix problem in previous patch.
2126 * gdbarch.c: Re-generate.
2130 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2131 functions against NULL, not 0.
2132 * gdbarch.c: Re-generate.
2136 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2137 null string instead of a null pointer.
2138 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2142 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2146 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2147 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2148 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2149 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2150 * x86-64-tdep.c: ... from here.
2154 * m68k-tdep.h (enum struct_return): Define.
2155 (struct gdbarch_tdep): Add struct_return.
2156 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2157 bytes are padded to the right, not to the left. Pass struct value
2158 address in register %a1, not on stack.
2159 (m68k_use_struct_convention): New function.
2160 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2161 struct_return in tdep to pcc_struct_return.
2162 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2167 * somread.c (som_symfile_offsets): Fix compilation error.
2171 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2172 Add comments about the checks.
2176 * Makefile.in: Make dependency section headers consistent.
2177 (config_h): Move to $BUILD headers section.
2178 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2179 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2180 (ada-exp.tab.c): Move to YACC/LEX section.
2181 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2182 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2186 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2187 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2188 of strerror with safe_strerror, use ISO C function definitions,
2189 and replace instances of sprintf with snprintf.
2193 * frame.c (get_prev_frame): Enable check for identical frames.
2194 Update comments. Update error messages.
2198 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2202 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2203 sort_symtab_syms, no longer necessary.
2207 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2211 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2212 (mips_register_byte): Likewise.
2216 * Makefile.in (sparc_tdep_h): New.
2217 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2218 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2219 * sparc-linux-nat.c: Include "sparc-tdep.h".
2220 * sparc-nat.c: Likewise.
2221 * sparc-tdep.c: Likewise.
2222 * sparc64nbsd-nat.c: Likewise.
2223 * sparcnbsd-nat.c: Likewise.
2224 * sparcnbsd-tdep.c: Likewise.
2225 * sparc-tdep.h: New file.
2226 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2227 and sparc_npc_regnum.
2231 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2232 (mips_linux_cannot_store_register): List supported instead of
2233 unsupported registers.
2237 * disasm.c (dump_insns): Separate instructions from addresses.
2241 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2243 * m68k-tdep.c (NUM_FREGS): Delete.
2244 (SIG_PC_FP_OFFSET): Delete.
2245 (TARGET_M68K): Delete.
2246 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2247 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2248 P_MOVEL_SP, P_MOVEML_SP): Define.
2249 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2251 (m68k_register_raw_size): Delete.
2252 (m68k_register_virtual_size): Delete.
2253 (m68k_register_type): Renamed from m68k_register_virtual_type and
2254 add gdbarch argument.
2255 (m68k_store_struct_return): Delete.
2256 (m68k_deprecated_extract_return_value): Delete.
2257 (m68k_deprecated_extract_struct_value_address): Delete.
2258 (m68k_frame_chain): Delete.
2259 (m68k_frame_saved_pc): Delete.
2260 (m68k_fix_call_dummy): Delete.
2261 (m68k_push_dummy_frame): Delete.
2262 (m68k_pop_frame): Delete.
2263 (m68k_extract_return_value): New function.
2264 (m68k_store_return_value): Rewrite using regcache.
2265 (m68k_extract_struct_value_address): Rewrite using regcache.
2266 (m68k_push_dummy_call): New function.
2267 (struct m68k_frame_cache): Define.
2268 (m68k_alloc_frame_cache): New function.
2269 (m68k_analyze_frame_setup): New function.
2270 (m68k_analyze_register_saves): New function.
2271 (m68k_analyze_prologue): New function.
2272 (m68k_skip_prologue): Rewrite using above functions.
2273 (m68k_unwind_pc): New function.
2274 (m68k_frame_cache): New function.
2275 (m68k_frame_this_id): New function.
2276 (m68k_frame_prev_register): New function.
2277 (m68k_frame_unwind): New variable.
2278 (m68k_frame_p): New function.
2279 (m68k_sigtramp_frame_cache): New function.
2280 (m68k_sigtramp_frame_this_id): New function.
2281 (m68k_sigtramp_frame_prev_register): New function.
2282 (m68k_sigtramp_frame_unwind): New variable.
2283 (m68k_sigtramp_frame_p): New function.
2284 (m68k_frame_base_address): New function.
2285 (m68k_frame_base): New function.
2286 (m68k_unwind_dummy_id): New function.
2287 (fill_gregset): Use regcache_collect.
2288 (fill_fpregset): Likewise.
2289 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2291 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2292 deprecated_init_frame_pc, deprecated_store_struct_return,
2293 deprecated_extract_return_value, deprecated_store_return_value,
2294 deprecated_frame_chain, deprecated_frame_saved_pc,
2295 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2296 deprecated_register_virtual_size,
2297 deprecated_max_register_raw_size,
2298 deprecated_max_register_virtual_size,
2299 deprecated_register_virtual_type, deprecated_register_size,
2300 deprecated_register_byte, deprecated_register_bytes,
2301 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2302 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2303 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2304 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2305 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2306 deprecated_push_dummy_frame, deprecated_pop_frame,
2307 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2308 only if SYSCALL_TRAP is defined. Set extract_return_value,
2309 store_return_value, extract_struct_value_address, register_type,
2310 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2312 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2313 M68K_MAX_REGISTER_SIZE): Define.
2314 (struct m68k_sigtramp_info): Define.
2315 (struct gdbarch_tdep): Add get_sigtramp_info.
2316 * m68klinux-nat.c (fetch_register): Use register_size instead of
2317 REGISTER_RAW_SIZE. Don't put assignment in if.
2318 (store_register): Likewise.
2319 (fetch_inferior_registers): Likewise.
2320 (store_inferior_registers): Likewise.
2321 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2322 (m68k_linux_frame_saved_pc): Delete.
2323 (m68k_linux_sigcontext_reg_offset,
2324 m68k_linux_ucontext_reg_offset): Define.
2325 (m68k_linux_get_sigtramp_info): New function.
2326 (m68k_linux_extract_return_value): Rewrite using regcache.
2327 (m68k_linux_store_return_value): Likewise.
2328 (m68k_linux_extract_struct_value_address): Likewise.
2329 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2330 Don't set deprecated_frame_saved_pc,
2331 deprecated_extract_return_value, deprecated_store_return_value,
2332 deprecated_extract_struct_value_address. Set
2333 extract_return_value, store_return_value,
2334 extract_struct_value_address.
2338 * expprint.c: Include "user-regs.h" instead of "frame.h".
2339 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2340 frame_map_regnum_to_name.
2341 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2342 (frame_map_name_to_regnum): Simplify, call
2343 user_reg_map_name_to_regnum.
2344 (frame_map_regnum_to_name): Simplify, call
2345 user_reg_map_regnum_to_name.
2346 (frame_register_unwind): Update.
2347 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2348 (_initialize_frame_reg): Call user_reg_add_builtin.
2349 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2350 (value_of_register): Use value_of_user_reg.
2351 * eval.c (evaluate_subexp_standard): Update.
2352 * parse.c (write_dollar_variable): Update.
2353 * d10v-tdep.c (d10v_print_registers_info): Update.
2354 * infcmd.c (registers_info): Update.
2355 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2356 (builtin_regs_h): Delete macro.
2357 (user_regs_h): Define.
2358 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2359 (builtin-regs.o): Delete target.
2360 (user-regs.o): Specify dependencies.
2361 (expprint.o): Update dependencies.
2362 (findvar.o): Update dependencies.
2363 (frame.o): Update dependencies.
2364 (std-regs.o): Update dependencies.
2368 * win32-nat.c (solib_symbols_add): Use one variable for all section
2369 address stuff. Pass variable rather than address of variable to
2370 safe_symbol_file_add.
2374 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2378 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2382 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2386 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2387 * config/i386/nto.mh: New file.
2388 * config/i386/nm-nto.h: New file.
2389 * configure.host: Add i[3456]86-*-nto*.
2393 * remote-vx.c (vx_add_symbols): Fix compilation error.
2397 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2398 * gdbarch.h, gdbarch.c: Re-generate.
2399 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2400 (legacy_register_name): Declare.
2401 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2402 (REGISTER_NAME): Define.
2403 * sparc-tdep.c (legacy_register_name): New function.
2404 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2405 (REGISTER_NAME): Define.
2406 (hppa64_register_name): Declare.
2407 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2408 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2409 (hppa64_register_name): New function.
2410 (hppa_register_name): New function.
2411 * arch-utils.c (legacy_register_name): Delete.
2412 * arch-utils.h (legacy_register_name): Delete.
2416 * cli/cli-interp.c (cli_interpreter_resume): Update the
2417 cli_uiout's stream to gdb_stdout.
2421 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2423 * gdbarch.h, gdbarch.c: Re-generate.
2424 * regcache.c (init_regcache_descr): Use legacy code when either
2425 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2429 * NEWS: Move "set logging" entry into GDB 6.0 section.
2433 * s390-tdep.c (struct frame_extra_info): new member:
2434 'stack_bought_valid'.
2435 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2436 initialize fextra_info->stack_bought.
2437 (s390_frameless_function_invocation): Don't trust the value of
2438 fextra_info_ptr->stack_bought unless
2439 fextra_info->stack_bought_valid is set.
2441 New S390 prologue analyzer.
2442 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2443 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2444 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2445 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2446 compute_x_addr, s390_on_stack, s390_store,
2447 s390_get_signal_frame_info): New functions.
2448 (S390_NUM_SPILL_SLOTS): New macro.
2449 (s390_get_frame_info): Rewritten.
2450 (is_arg_reg): Deleted.
2452 Break out the decoding of S/390 instructions into separate
2453 functions, to make it more legible, and easier to check
2455 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2456 is_rx, is_rxe): New functions.
2457 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2458 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2459 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2460 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2461 enums for opcode values. (Is this an improvement?)
2465 * i386-tdep.c: Revert change committed as part of trad-frame code
2470 * breakpoint.c (insert_catchpoint): Make static.
2474 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2475 former ia64_push_arguments and ia64_push_return_address, and use
2476 regcache functions instead of read/write_register.
2477 (ia64_gdbarch_init): Set push_dummy_call instead of
2478 deprecated_push_arguments and deprecated_push_return_address.
2482 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2484 Set %rax only to number of SSE registers used.
2488 * trad-frame.h: Update comments, a -1 .addr is reserved.
2489 (trad_frame_value_p, trad_frame_addr_p): Declare.
2490 (trad_frame_reg_p): Declare.
2491 (trad_frame_set_value): Rename trad_frame_register_value.
2492 (trad_frame_set_unknown): Declare.
2493 * trad-frame.c (trad_frame_realreg_p): New function.
2494 (trad_frame_addr_p, trad_frame_value_p): New function.
2495 (trad_frame_set_unknown): New function.
2496 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2497 (trad_frame_prev_register): Use trad_frame_realreg_p,
2498 trad_frame_addr_p and trad_frame_value_p.
2499 (trad_frame_set_value): Rename trad_frame_register_value.
2500 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2501 and trad_frame_set_value.
2505 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2506 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2507 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2508 for 16 registers, and then 32 more bytes.
2509 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2511 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2512 Move up in the file, since it's now used by is_simple_arg.
2513 (is_simple_arg): Don't assume registers are four bytes long.
2514 Exclude all double arguments. Extended floats are not simple
2516 (is_power_of_two): New function.
2517 (pass_by_copy_ref): Call is_power_of_two, and check that the
2518 length fits in a register, rather than listing all the acceptable
2519 sizes. Extended floats are not passed by reference.
2520 (s390_push_arguments): Don't assume registers are four bytes long.
2521 Reserve an argument register to point to the buffer for structures
2522 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2523 S390_STACK_FRAME_OVERHEAD.
2527 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2528 format error message.
2532 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2536 Band-aid for PR c++/1245.
2537 * Makefile.in (cp-support.o): Depend on complaints_h.
2538 * cp-support.c: Include complaints.h. Add declaration for
2539 find_last_component.
2540 (cp_find_first_component): Separate code into
2541 cp_find_first_component_aux.
2542 (cp_find_first_component_aux): Call demangled_name_complaint.
2543 (demangled_name_complaint): New.
2547 * remote.c (remote_write_bytes): Explicitly compute and then use
2548 the payload size. Update comments to reflect. Fixes problem of
2549 GDB not sending small packets as found by Fred Fish.
2553 * remote.c (remote_async_wait): Fix -Wformat problem.
2557 * remote.c (remote_wait): Call error, and not warning, when the
2559 (remote_async_wait): Ditto.
2563 * sparc-tdep.c (sparc_y_regnum): Make external again.
2567 * cli/cli-logging.c (pop_output_files): Add void to function
2572 * frame.c (frame_register_unwind): Use unsigned char when dumping
2573 the buffer contents.
2577 * cli/cli-logging.c: New file.
2578 * cli-out.c (struct ui_out_data): Add original_stream.
2579 (cli_redirect): New function.
2580 (cli_ui_out_impl): Add cli_redirect.
2581 (cli_out_new): Initialize original_stream.
2582 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2583 (uo_redirect, ui_out_redirect): New.
2584 * ui-out.h (struct ui_out_impl): Add redirect member.
2585 (redirect_ftype): New.
2586 (ui_out_redirect): Add prototype.
2587 * Makefile.in: Add rules for cli-logging.c.
2588 * NEWS: Mention "set logging".
2592 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2596 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2597 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2598 * avr-tdep.c (avr_call_dummy_address): Delete function.
2599 (avr_gdbarch_init): Do not set call_dummy_address.
2603 * symfile.c (syms_from_objfile): Move variables to inner block.
2604 Move the checks for the non-mainline case a bit earlier to avoid
2605 doing some useless computations.
2609 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2613 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2618 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2619 gdb/testsuite/gdb.c++/pr-1210.exp.
2623 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2624 altivec_expression.h and altivec_registers.h.
2628 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2629 info->mach when MIPS16. Patch suggested by Fred Fish.
2633 * utils.c (internal_vproblem): Print the problem to a reason
2634 buffer and then pass to query. Make the msg variable more local.
2638 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2639 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2640 * gdbarch.h, gdbarch.c: Re-generate.
2641 * frame-base.c (default_frame_args_address): Update. Use
2642 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2644 (default_frame_locals_address): Ditto for
2645 DEPRECATED_FRAME_LOCALS_ADDRESS.
2646 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2647 (vax_frame_num_args): Update.
2648 (vax_gdbarch_init): Update.
2649 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2650 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2651 * mcore-tdep.c (mcore_gdbarch_init): Update.
2652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2653 * ia64-tdep.c (ia64_gdbarch_init): Update.
2654 * symtab.h (address_class): Update comments.
2655 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2656 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2657 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2658 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2659 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2660 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2661 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2662 * alpha-mdebug-tdep.c: Update.
2663 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2667 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2668 of SSE registers so that varargs functions work. Rework handling
2669 of passing arguments on the stack.
2670 (x86_64_store_return_value): Return double and float values in SSE
2675 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2676 the "constructor breakpoints ignored" bug.
2680 * MAINTAINERS: Update e-mail address.
2684 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2686 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2688 (ppc_linux_init_abi): Register it as the
2689 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2691 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2692 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2695 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2696 (ppc64_standard_linkage_target): Use it.
2700 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2701 for 0 "int0" and 4 "int32" sized registers.
2702 * gdbtypes.c (builtin_type_int0): Define.
2703 (build_gdbtypes): Initialize builtin_type_int0.
2704 * gdbtypes.h (builtin_type_int0): Declare.
2708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2709 as characters are unsigned.
2714 * dwarfread.c (struct_type): Skip static fields without crashing.
2718 GDB 6.0 branch created.
2720 * PROBLEMS: Update. Empty.
2725 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2730 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2731 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2736 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2741 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2742 argument of val_print.
2743 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2744 to the address argument of baseclass_offset or target_read_memory.
2745 Do add it to the argument of cp_print_value_fields.
2749 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2750 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2751 instead of 0..NUM_REGS.
2752 (mips_register_reggroup_p): New function.
2753 (mips_pseudo_register_write): New function.
2754 (mips_pseudo_register_read): New function.
2755 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2756 based on the register's type.
2757 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2759 (mips_get_saved_register): Simplify. Assert that REGNO is a
2761 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2762 (mips_register_type): Replace mips_register_virtual_type. Map
2763 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2765 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2766 that the register is cooked / virtual.
2767 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2768 Only get the extra info when needed.
2769 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2770 (mips32_heuristic_proc_desc): Fetch the cooked register.
2771 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2772 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2773 (mips_print_register): Use gdbarch_register_type, instead of
2774 REGISTER_VIRTUAL_TYPE.
2775 (print_gp_register_row): Use gdbarch_register_type, instead of
2776 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2777 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2778 Print the pseudo / cooked registers.
2779 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2780 Print the pseudo / cooked registers.
2781 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2782 REG_NUM is pseudo / cooked.
2783 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2784 (mips_n32n64_xfer_return_value): Ditto.
2785 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2786 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2787 (mips_register_sim_regno): New function.
2788 (mips_gdbarch_init): Set deprecated_register_byte,
2789 register_group_p, pseudo_register_write, pseudo_register_read,
2790 register_sim_regno, and num_pseudo_regs. Set register_type,
2791 instead of register_virtual_type.
2792 * Makefile.in (mips-tdep.o): Update dependencies.
2793 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2794 REGISTER_VIRTUAL_TYPE.
2795 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2796 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2797 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2798 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2799 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2803 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2804 * cli/cli-cmds.c: Include "gdb_vfork.h".
2805 (shell_escape): Use vfork.
2809 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2810 32 bit floating-point register saves.
2812 * frame.h (deprecated_unwind_get_saved_register): Delete.
2813 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2814 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2815 and deprecated_get_next_frame_hack instead of
2816 deprecated_unwind_get_saved_register.
2818 * mips-tdep.c (mips_dump_tdep): Do not print
2819 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2821 * frame.c (get_frame_register): New function.
2822 (frame_unwind_register_signed): New function.
2823 (get_frame_register_signed): New function.
2824 (frame_unwind_register_unsigned): New function.
2825 (get_frame_register_unsigned): New function.
2826 * frame.h: Add comments on naming schema.
2827 (get_frame_register, frame_unwind_register_signed): Declare.
2828 (get_frame_register_signed, get_frame_register_signed): Declare.
2829 (frame_unwind_register_unsigned): Declare.
2830 (get_frame_register_unsigned): Declare.
2834 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2838 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2839 (avr_read_sp): Ditto.
2843 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2844 * config/arm/nm-linux.h: Likewise.
2845 * config/arm/tm-linux.h: Likewise.
2846 * config/ia64/nm-linux.h: Likewise.
2847 * config/ia64/tm-ia64.h: Likewise.
2848 * config/s390/tm-linux.h: Likewise.
2849 * config/s390/tm-s390.h: Likewise.
2850 * s390-nat.c: Likewise.
2851 * s390-tdep.c: Likewise.
2853 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2854 * config/ia64/linux.mt: Likewise.
2855 * config/m68k/linux.mh: Likewise.
2856 * config/mips/linux.mt: Likewise.
2857 * config/powerpc/linux.mh: Likewise.
2858 * config/sh/linux.mt: Likewise.
2862 * solib.c (solib_open): Change tests for whether to search
2863 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2868 * avr-tdep.c (avr_frame_address): Delete function.
2869 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2870 set_gdbarch_frame_args_address.
2874 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2875 (REGISTER_CONVERT_FROM_TYPE): Delete.
2876 (mips_register_convert_to_type): Delete declaration.
2877 (mips_register_convert_from_type): Delete declaration.
2878 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2883 * linux-nat.h: New file.
2884 * linux-nat.c: Include linux-nat.h.
2885 * lin-lwp.c: Include linux-nat.h.
2886 Move struct lwp_info def to linux-nat.h.
2887 * linux-proc.c: Include linux-nat.h.
2888 (linux_make_note_section): Iterate over lwps instead of threads.
2889 (linux_do_thread_registers): Use lwp instead of merged pid.
2890 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2891 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2892 Add dependency on linux_nat_h.
2896 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2900 * varobj.c (get_type, get_target_type): Use check_typedef.
2904 * breakpoint.c (insert_catchpoint): Call internal_error.
2908 * avr-tdep.c (avr_push_dummy_code): Delete function.
2909 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2913 * arch-utils.c (default_prepare_to_proceed): Remove.
2914 (generic_prepare_to_proceed): Remove.
2915 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2916 (generic_prepare_to_proceed): Remove prototype.
2917 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2918 * gdbarch.c: Regenerate.
2919 * gdbarch.h: Regenerate.
2920 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2921 * hppah-nat.c (hppa_switched_threads): Remove.
2922 * infrun.c (prepare_to_proceed): New static function, copied from
2923 generic_prepare_to_proceed. Remove select_it argument.
2924 (proceed): Call prepare_to_proceed.
2925 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2927 (ptrace_wait): Don't set the removed variables.
2928 (hppa_switched_threads): Remove.
2929 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2930 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2931 (lin_lwp_prepare_to_proceed): Remove prototype.
2932 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2933 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2937 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2939 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2940 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2941 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2942 (AVR_PROLOGUE_*): Enumerate prologue types.
2943 (struct frame_extra_info): Remove.
2944 (struct avr_unwind_cache): Define.
2945 (avr_write_sp): Delete function.
2946 (avr_read_fp): Ditto.
2947 (avr_init_extra_frame_info): Ditto.
2948 (avr_pop_frame): Ditto.
2949 (avr_frame_saved_pc): Ditto.
2950 (avr_saved_pc_after_call): Ditto.
2951 (avr_push_return_address): Ditto.
2952 (avr_frame_chain): Ditto.
2953 (avr_store_struct_return): Ditto.
2954 (avr_push_arguments): Ditto.
2955 (avr_scan_prologue): Update comments. Changed to set up the info for
2956 cache unwinding. Now returns end of prologue PC.
2957 (avr_skip_prologue): Better handling of functions lacking a prologue
2958 by using avr_scan_prologue.
2959 (avr_scan_arg_moves): New function.
2960 (avr_saved_regs_unwinder): Ditto.
2961 (avr_frame_unwind_cache): Ditto.
2962 (avr_unwind_pc): Ditto.
2963 (avr_frame_this_id): Ditto.
2964 (avr_frame_prev_register): Ditto.
2965 (avr_frame_p): Ditto.
2966 (avr_frame_base_address ): Ditto.
2967 (avr_unwind_dummy_id): Ditto.
2968 (avr_push_dummy_code): Ditto.
2969 (push_stack_item): Ditto.
2970 (pop_stack_item): Ditto.
2971 (avr_push_dummy_call): Ditto.
2972 (struct stack_item): Define.
2973 (avr_frame_unwind): Declare structure.
2974 (avr_frame_base): Ditto.
2975 (avr_gdbarch_init): Remove calls to
2976 set_gdbarch_deprecated_init_frame_pc,
2977 set_gdbarch_deprecated_target_read_fp,
2978 set_gdbarch_deprecated_dummy_write_sp,
2979 set_gdbarch_deprecated_fp_regnum,
2980 set_gdbarch_deprecated_push_arguments,
2981 set_gdbarch_deprecated_push_return_address,
2982 set_gdbarch_deprecated_pop_frame,
2983 set_gdbarch_deprecated_store_struct_return,
2984 set_gdbarch_deprecated_frame_init_saved_regs,
2985 set_gdbarch_deprecated_init_extra_frame_info,
2986 set_gdbarch_deprecated_frame_chain,
2987 set_gdbarch_deprecated_frame_saved_pc,
2988 set_gdbarch_deprecated_saved_pc_after_call.
2989 Add calls to set_gdbarch_push_dummy_call,
2990 set_gdbarch_push_dummy_code,
2991 frame_unwind_append_predicate,
2992 frame_base_set_default,
2993 set_gdbarch_unwind_dummy_id,
2994 set_gdbarch_unwind_pc.
2999 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3000 registers for H8/300S.
3001 (h8300_print_registers_info): Ditto.
3002 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3006 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3007 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3008 (lin_lwp_wait): Likewise. Update comments.
3009 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3010 (pull_pid_from_list, linux_record_stopped_pid): New.
3014 * ada-lang.c (scan_discrim_bound): Name first argument.
3015 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3016 declared by ALL_BLOCK_SYMBOLS.
3020 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3021 ("regcache.h"): Include it.
3022 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3026 * NEWS: Mention gdbserver detach change and "disconnect" command.
3027 * infcmd.c (disconnect_command): New function.
3028 (_initialize_infcmd): Add ``disconnect'' command.
3029 * remote.c (remote_async_detach): Delete.
3030 (remote_detach): Merge remote_async_detach.
3031 (remote_disconnect): New.
3032 (init_remote_ops): Set to_disconnect.
3033 (init_remote_cisco_ops): Likewise.
3034 (init_remote_async_ops): Likewise. Use remote_detach.
3035 * target.c (cleanup_target): Default to_disconnect.
3036 (update_current_target): Inherit to_disconnect.
3037 (target_disconnect, debug_to_disconnect): New functions.
3038 (setup_target_debug): Set to_disconnect.
3039 * target.h (struct target_ops): Add to_disconnect.
3040 (target_disconnect): Add prototype.
3044 * breakpoint.c (insert_catchpoint): New function.
3045 (insert_breakpoints): Use catch_exceptions to call
3046 insert_catchpoint. Disable catchpoints if they fail to insert.
3050 * symfile.c (reread_symbols): Clear sym_private.
3054 * trad-frame.h (struct frame_info): Add opaque declaration.
3055 * remote-fileio.h (struct cmd_list_element): Add opaque
3057 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3062 * remote.c (remote_prepare_to_store): Replace call to
3063 deprecated_read_register_bytes with multiple regcache_raw_read
3068 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3069 (nto_find_and_open_solib): Likewise.
3070 (nto_init_solib_absolute_prefix): Likewise.
3071 (_initialize_nto_tdep): Fix indentation.
3075 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3079 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3083 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3087 * avr-tdep.c (avr_extract_return_value): New function.
3088 (avr_gdbarch_init): Set extract_return_value method.
3092 * frame.h (deprecated_get_next_frame_hack): Declare.
3093 * frame.c (legacy_saved_regs_prev_register): Only require
3094 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3095 there are always saved regs.
3096 (deprecated_generic_get_saved_register): Do not require
3097 DEPRECATED_FRAME_INIT_SAVED_REGS.
3098 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3099 use frame ID unwind instead.
3100 (deprecated_get_next_frame_hack): New function.
3104 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3105 (h8300_push_dummy_call): ...this function. Some minor optimization.
3106 (h8300_push_return_address): Remove.
3107 (h8300_gdbarch_init): Remove calls to
3108 set_gdbarch_deprecated_dummy_write_sp,
3109 set_gdbarch_deprecated_push_arguments and
3110 set_gdbarch_deprecated_push_return_address.
3111 Add call to set_gdbarch_push_dummy_call.
3115 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3116 (E_PSEUDO_EXR_REGNUM): Ditto.
3117 (h8300_is_argument_spill): Check for instructions moving argument
3118 registers into safe registers.
3119 (h8300_skip_prologue): Check for stm instruction to push registers
3120 used for register variables onto stack.
3121 (gdb_print_insn_h8300): Remove.
3122 (h8300_examine_prologue): Add a comment.
3123 (h8300_register_name): Take pseudo registers into account.
3124 (h8300s_register_name): Ditto.
3125 (h8300sx_register_name): Ditto.
3126 (h8300_print_register): Ditto.
3127 (h8300_print_registers_info): Define "nice" printing order.
3128 (h8300_saved_pc_after_call): Take pseudo registers into account.
3129 (h8300_register_type): Ditto. Return type used for remote connection
3130 when requesting real CCR or EXR register, return actual type when
3131 requesting pseudo CCR or EXR.
3132 (h8300_pseudo_register_read): New function.
3133 (h8300_pseudo_register_write): Ditto.
3134 (h8300_dbg_reg_to_regnum): Ditto.
3135 (h8300s_dbg_reg_to_regnum): Ditto.
3136 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3137 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3138 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3139 set_gdbarch_print_insn architecture dependent.
3140 Call set_gdbarch_pseudo_register_read and
3141 set_gdbarch_pseudo_register_write.
3142 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3146 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3147 * gdbarch.h, gdbarch.c: Re-generate.
3148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3149 * s390-tdep.c (s390_gdbarch_init): Update.
3150 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3151 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3152 * mips-tdep.c (mips_gdbarch_init): Update.
3153 * mcore-tdep.c (mcore_gdbarch_init): Update.
3154 * cris-tdep.c (cris_gdbarch_init): Update.
3155 * infcall.c (call_function_by_hand): Update.
3156 * ia64-tdep.c (ia64_push_arguments): Update comment.
3157 * frame.c (legacy_get_prev_frame): Do not assume
3158 SAVE_DUMMY_FRAME_TOS_P.
3159 * dummy-frame.c (find_dummy_frame): Update comment.
3163 * regcache.c (do_cooked_read): Do not use register_valid_p.
3167 * avr-tdep.c (avr_register_type): Remove a blank line.
3168 (avr_scan_prologue): Correct some comments.
3172 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3174 Properly scan prologues generated by gcc with the -mcall-prologues
3176 Add code to scan -mcall-prologues for mega devices.
3180 * avr-tdep.c (avr_register_byte): Delete function.
3181 (avr_register_raw_size): Delete function.
3182 (avr_register_virtual_size): Delete function.
3183 (avr_register_virtual_type): Delete function.
3184 (avr_register_type): New function.
3185 (avr_address_to_pointer): Remove unused code.
3186 (avr_read_fp): Need to read FP as two separate bytes due to change to
3187 avr_register_type() usage.
3188 (avr_gdbarch_init): Don't set deprecated_register_size.
3189 Don't set deprecated_register_bytes.
3190 Don't set deprecated_register_byte.
3191 Don't set deprecated_register_raw_size.
3192 Don't set deprecated_max_register_raw_size.
3193 Don't set deprecated_register_virtual_size.
3194 Don't set deprecated_max_register_virtual_size.
3195 Don't set deprecated_register_virtual_type.
3196 Set register_type method.
3200 * Makefile.in (linux-nat.o): Add rule.
3201 * linux-nat.c: New file.
3202 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3203 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3204 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3205 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3206 * config/arm/linux.mh (NATDEPFILES): Likewise.
3207 * config/i386/linux.mh (NATDEPFILES): Likewise.
3208 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3209 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3210 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3211 * config/mips/linux.mh (NATDEPFILES): Likewise.
3212 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3213 * config/s390/s390.mh (NATDEPFILES): Likewise.
3214 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3218 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3219 replace out-of-date comment.
3223 * rdi-share/host.h (Fail): Change to a varargs function.
3224 * remote-rdi.c (Fail): Update.
3228 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3229 (i386_convert_register_p, i386_register_to_value,
3230 i386_register_from_value): Handle types longer than 8 bytes.
3234 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3235 Move floating-point code to new function in i387-tdep.c.
3236 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3237 New functions containing code moved here from i386-tdep.c.
3238 * i387-tdep.h: Add opaque declaration for `struct type'.
3239 (i387_register_to_value, i387_value_to_register): New prototypes.
3240 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3241 (x86_64_init_abi): Set convert_register_p, register_to_value and
3242 value_to_register here.
3246 * mips-tdep.c (mips_register_to_value): Make static.
3247 (mips_value_to_register): Make static.
3248 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3249 * ia64-tdep.c (ia64_register_raw_size): Make static.
3250 (ia64_register_virtual_size): Make static.
3251 (ia64_register_byte): Make static.
3252 * i387-tdep.c: Include "i387-tdep.h".
3253 (print_387_control_word): Delete function.
3254 (print_387_status_word): Delete function.
3255 (print_387_status_bits): Delete function.
3256 (print_387_control_bits): Delete function.
3257 * Makefile.in (i387-tdep.o): Update dependencies.
3258 * rdi-share/host.h (Fail): Declare.
3259 * remote-rdi.c (Fail): Update to match declaration.
3263 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3264 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3265 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3266 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3267 * README: Delete reference to remote-array.
3268 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3269 (remote-array.o): Delete target.
3270 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3271 * remote-array.c: Delete file.
3276 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3277 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3278 parameter with "frame".
3279 * gdbarch.h, gdbarch.c: Re-generate.
3280 * frame.h (put_frame_register): Declare.
3281 * frame.c (put_frame_register): New function.
3282 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3283 (legacy_register_to_value): Rewrite, use "frame" to get the
3285 (legacy_value_to_register): Rewrite, use "frame" to find the
3286 register's location before storing.
3287 * arch-utils.h (legacy_convert_register_p): Update.
3288 (legacy_register_to_value, legacy_value_to_register): Update.
3289 * findvar.c (value_from_register): Rewrite, eliminate use of
3290 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3291 "frame" to REGISTER_TO_VALUE.
3292 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3293 lval_reg_frame_relative + lval_register branch of the switch. Do
3294 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3295 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3296 I386_EDI_REGNUM): New defines.
3297 (i386_next_regnum, i386_convert_register_p,
3298 i386_register_to_value, i386_value_to_register): New functions.
3299 (i386_register_convertible, i386_register_convert_to_virtual,
3300 i386_convert_to_raw): Remove functions.
3301 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3302 value_to_register instead of register_convertible,
3303 register_convert_to_virtual and register_convert_to_raw.
3304 * mips-tdep.c (mips_convert_register_p): New function.
3305 (mips_value_to_register): Replace mips_register_convert_from_type.
3306 (mips_register_to_value): Replace mips_register_convert_to_type.
3307 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3309 * alpha-tdep.c (alpha_convert_register_p): Update.
3310 (alpha_value_to_register): Update, store the register.
3311 (alpha_register_to_value): Update, fetch the register.
3315 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3316 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3317 Don't set deprecated_call_dummy_words.
3318 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3319 Don't set remote_translate_xfer_address.
3320 (avr_io_reg_read_command): Remove commented out debug printf.
3325 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3326 causes gdb to seg fault.
3330 * sparc-nat.c (fetch_inferior_registers): Correct
3331 a reference to "registers".
3335 * Makefile.in (exc_request_U_h): Define
3336 (exc_request_S_h): Likewise.
3337 (msg_reply_S_h): Likewise.
3338 (msg_U_h): Likewise.
3339 (notify_S_h): Likewise.
3340 (process_reply_S_h): Likewise.
3341 (gnu-nat.o): Depend on gdb_obstack_h
3342 * gnu-nat.c: Include "gdb_obstack.h".
3346 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3347 * gdbarch.h, gdbarch.c: Re-generate.
3351 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3352 when deprecated REGISTER macros can be deleted.
3353 * gdbarch.h, gdbarch.c: Re-generate.
3357 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3358 Linux entry point symbols for _dl_debug_state, too.
3362 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3363 available, do not use the FP register, and always save the TOS.
3364 * dummy-frame.c (dummy_frame_this_id): Do not assert
3365 SAVE_DUMMY_FRAME_TOS.
3366 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3367 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3368 (i386_push_dummy_call): Add 8 to the returned SP.
3369 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3370 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3371 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3372 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3373 (x86_64_push_dummy_call): Return "sp + 16".
3374 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3375 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3376 save_dummy_frame_tos.
3380 * frv-tdep.c (frv_use_struct_convention): Delete static
3381 declaration for function deleted in my change of 2003-06-12.
3385 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3386 (avr_pointer_to_address): Shift code addrs left 1 bit.
3387 (avr_convert_from_func_ptr_addr): Delete function since operation is
3388 better handled by avr_address_to_pointer and avr_pointer_to_address.
3389 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3394 * configure.host: Accept i[34567]86 variants.
3395 * configure.tgt: Likewise.
3396 * nlm/configure.in: Likewise.
3397 * nlm/configure: Regenerated.
3401 * arm-tdep.c (solib-svr4.h): Dont' include it.
3402 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3403 * arm-linux-tdep.c: ... here. Make static.
3404 (arm_linux_init_abi): Register it.
3405 (solib-svr4.h): Include it.
3406 * Makefile.in: Update dependencies.
3407 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3408 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3412 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3413 indicate registers used for return values.
3414 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3415 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3417 (h8300_init_extra_frame_info): Ditto.
3418 (h8300_frame_locals_address): Removed.
3419 (h8300_frame_args_address): Removed.
3420 (h8300_extract_return_value): Use new regcache structure. Only care
3422 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3423 (h8300_store_return_value): Use new regcache structure. Only care
3425 (h8300h_store_return_value): Same function for 32 bit CPUs.
3426 (h8300_store_struct_return): Removed.
3427 (h8300_extract_struct_value_address): Use new regcache structure.
3428 (h8300h_extract_struct_value_address): Removed.
3429 (h8300_push_dummy_code): New function.
3430 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3431 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3432 set_gdbarch_store_return_value architecture dependent.
3433 Call set_gdbarch_push_dummy_code and
3434 set_gdbarch_extract_struct_value_address.
3435 Remove calls to set_gdbarch_frame_args_address,
3436 set_gdbarch_frame_locals_address,
3437 set_gdbarch_deprecated_store_struct_return,
3438 set_gdbarch_deprecated_extract_return_value,
3439 set_gdbarch_deprecated_extract_struct_value_address,
3440 set_gdbarch_deprecated_call_dummy_words and
3441 set_gdbarch_deprecated_sizeof_call_dummy_words.
3445 * h8300-tdep.c (h8300_register_byte): Remove.
3446 (h8300h_register_byte): Remove.
3447 (h8300_register_virtual_type): Remove. Substitute by...
3448 (h8300_register_type): New function.
3449 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3450 (h8300h_extract_struct_value_address): Ditto.
3451 (h8300_gdbarch_init): Drop calls to
3452 set_gdbarch_deprecated_register_byte and
3453 set_gdbarch_deprecated_register_virtual_type.
3454 Add call to set_gdbarch_register_type.
3458 * gdbarch.sh: Update comments on registers.
3459 (deprecated_register_byte): Rename register_byte.
3460 (deprecated_register_raw_size): Rename register_raw_size.
3461 (deprecated_register_virtual_size): Rename register_virtual_size.
3462 (deprecated_register_virtual_type): Rename register_virtual_type.
3463 * gdbarch.h, gdbarch.c: Re-generate.
3464 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3465 * vax-tdep.c (vax_gdbarch_init): Update.
3466 * v850-tdep.c (v850_gdbarch_init): Update.
3467 * sparc-tdep.c (sparc_gdbarch_init): Update.
3468 * sh-tdep.c (sh_gdbarch_init): Update.
3469 * s390-tdep.c (s390_gdbarch_init): Update.
3470 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3471 * ns32k-tdep.c: Update.
3472 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3473 * mips-tdep.c (mips_gdbarch_init): Update.
3474 * mcore-tdep.c (mcore_gdbarch_init): Update.
3475 * m68k-tdep.c (m68k_gdbarch_init): Update.
3476 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3477 * ia64-tdep.c (ia64_gdbarch_init): Update.
3478 * hppa-tdep.c (hppa_gdbarch_init): Update.
3479 * h8300-tdep.c (h8300_gdbarch_init): Update.
3480 * frv-tdep.c (frv_gdbarch_init): Update.
3481 * cris-tdep.c (cris_gdbarch_init): Update.
3482 * avr-tdep.c (avr_gdbarch_init): Update.
3483 * alpha-tdep.c (alpha_gdbarch_init): Update.
3484 * arm-tdep.c (arm_gdbarch_init): Update.
3488 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3489 mips_o32_use_struct_convention with always_use_struct_convention.
3493 * cp-namespace.c (cp_set_block_scope): Comment out
3494 processing_has_namespace_info branch.
3498 Recognize and skip 64-bit PowerPC Linux linkage functions.
3499 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3500 insn_pattern, insns_match_pattern, d_field, ds_field): New
3501 functions, macros, and types for working with PPC instructions.
3502 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3503 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3504 ppc64_skip_trampoline_code): New functions, variables, and macros
3505 for recognizing and skipping linkage functions.
3506 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3507 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3509 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3510 register offsets for both the 32- and 64-bit interfaces.
3512 Actually finish the job started by my change of 2003-05-29.
3513 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3514 other #definition of this.
3515 (ppc_linux_skip_trampoline_code): Remove declaration.
3516 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3518 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3521 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3522 'long' on ppc64-*-linux*.
3524 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3525 isn't #defined, assume the register doesn't exist: act as if
3526 tdep->ppc_mq_regnum were -1.
3528 * configure.host, configure.tgt: Add entries for
3529 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3531 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3534 * arch-utils.c (always_use_struct_convention): New function.
3535 * arch-utils.h (always_use_struct_convention): New prototype.
3536 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3537 (alpha_gdbarch_init): Register always_use_struct_convention,
3538 instead of alpha_use_struct_convention.
3539 * cris-tdep.c (cris_use_struct_convention): Delete.
3540 (cris_gdbarch_init): Register always_use_struct_convention,
3541 instead of cris_use_struct_convention.
3542 * frv-tdep.c (frv_use_struct_convention): Delete.
3543 (frv_gdbarch_init): Register always_use_struct_convention,
3544 instead of frv_use_struct_convention.
3545 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3546 (h8300_gdbarch_init): Register always_use_struct_convention,
3547 instead of h8300_use_struct_convention.
3548 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3549 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3550 instead of mips_o32_use_struct_convention.
3554 * wince.c: Include "mips-tdep.h".
3555 * mips-tdep.h (mips_next_pc): Declare.
3556 * mcore-tdep.c: Make more local functions static.
3557 * Makefile.in (wince.o): Update dependencies.
3561 * symtab.c (lookup_symbol_aux_minsyms): Replace
3562 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3563 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3564 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3565 SYMBOL_NATURAL_NAME.
3569 * Makefile.in (tuiDisassem.o): Update dependencies.
3573 * symtab.h: Delete declaration of make_symbol_overload_list.
3574 Add declaration of lookup_partial_symbol.
3575 * symtab.c (remove_params): Move to cp-support.c.
3576 (overload_list_add_symbol, make_symbol_overload_list)
3577 (sym_return_val_size, sym_return_val_index): Ditto.
3578 (lookup_partial_symbol): Make extern.
3579 * cp-support.h: Add declaration of make_symbol_overload_list.
3580 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3581 symtab.h, and block.h.
3582 (remove_params): Move here from symtab.c.
3583 (overload_list_add_symbol, make_symbol_overload_list)
3584 (sym_return_val_size, sym_return_val_index): Ditto.
3585 * valops.c: Include cp-support.h.
3586 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3587 frame_h, and block_h.
3588 (valops.o): Depend on cp_support_h.
3592 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3593 substitute by NUM_REGS throughout.
3594 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3595 (h8300s_register_name): New function for H8S registers.
3596 (h8300sx_register_name): Ditto for H8SX registers.
3597 (h8300_print_register): Revise register printing, avoid depending
3599 (h8300_register_byte): Only care for H8/300 registers.
3600 (h8300h_register_byte): New function for any other architecture.
3601 (h8300_register_raw_size): Remove.
3602 (h8300_register_virtual_type): Revise to return actually useful
3604 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3605 (h8300h_extract_struct_value_address): New function for any other
3607 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3608 set_gdbarch_register_name, set_gdbarch_register_byte,
3609 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3610 Remove calls to set_gdbarch_deprecated_register_size,
3611 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3612 set_gdbarch_deprecated_max_register_raw_size,
3613 set_gdbarch_register_virtual_size and
3614 set_gdbarch_deprecated_max_register_virtual_size entirely.
3615 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3616 set_gdbarch_long_double_bit.
3620 * doublest.c (convert_doublest_to_floatformat): When dealing
3621 with the implied integer bit, only alter mant_bits if we are
3622 processing a full 32 bits of mantissa.
3626 * dictionary.h: New.
3627 * dictionary.c: New.
3628 * block.h: Add opaque declaration for struct dictionary.
3629 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3631 (BLOCK_DICT): New macro.
3632 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3633 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3635 (ALL_BLOCK_SYMBOLS): Update definition.
3636 * Makefile.in (SFILES): Add dictionary.c.
3637 (dictionary_h): New.
3638 (COMMON_OBS): Add dictionary.o.
3639 (dictionary.o): New.
3640 (ada-lang.o): Depend on dictionary_h.
3641 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3642 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3643 (mi-cmd-stack.o): Ditto.
3644 (gdbtk-cmds.o): Update dependencies.
3645 (gdbtk-stack.o): Ditto.
3646 * ada-lang.c: Include dictionary.h.
3647 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3648 (fill_in_ada_prototype, debug_print_block): Ditto.
3649 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3650 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3652 * mdebugread.c: Include dictionary.h.
3653 (struct parse_stack): Delete 'maxsyms' member.
3654 (parse_symbol): Update calls to new_block. Delete calls to
3655 shrink_block. Use dictionary methods.
3656 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3657 Update calls to new_symtab. Don't maintain maxsyms data.
3658 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3659 (add_symbol): Just call dict_add_symbol.
3660 (new_symtab): Delete 'maxsyms' argument.
3661 (new_symtab): Update calls to new_block.
3662 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3663 (shrink_block): Delete function.
3664 (fixup_sigtramp): Update call to new_block. Add symbol via
3666 * jv-lang.c: Include dictionary.h.
3667 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3668 appropriately. Set class_symtab->free_func. Make sure the
3669 blockvector is big enough to hold two blocks.
3670 (add_class_symtab_symbol): Use dictionary methods.
3671 (free_class_block): New function.
3672 (type_from_class): Replace explicit iteration by
3674 * symtab.h (struct symtab): Replace 'free_ptr' method by
3676 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3678 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3680 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3681 Include dictionary.h.
3682 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3683 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3685 * objfiles.c: Include dictionary.h.
3686 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3687 * buildsym.c: Include dictionary.h.
3688 (finish_block): Use dictionary methods.
3689 (end_symtab): Set free_func to NULL, not free_ptr.
3690 * tracepoint.c: Include dictionary.h.
3691 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3692 (scope_info): Ditto.
3693 * stack.c: Include dictionary.h.
3694 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3695 (print_block_frame_labels, print_frame_arg_vars)
3696 (print_frame_args): Ditto.
3697 * symmisc.c (free_symtab_block): Use dictionary methods.
3698 (dump_symtab): Ditto.
3699 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3700 Include dictionary.h.
3701 * symfile.h: Delete declarations of sort_block_syms,
3703 * symfile.c (sort_block_syms): Delete.
3704 (sort_symtab_syms): Delete.
3705 * symtab.c: Include dictionary.h.
3706 (lookup_block_symbol): Use dictionary iterators.
3707 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3708 (search_symbols, make_symbol_completion_list): Ditto.
3709 (make_symbol_overload_list): Ditto.
3710 * valops.c (value_of_local): Use dict_empty.
3711 Include dictionary.h.
3715 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3719 * block.h (BLOCK_SHOULD_SORT): Delete.
3720 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3722 * ada-lang.c (ada_add_block_symbols): Ditto.
3723 * symfile.c (sort_block_syms): Delete.
3724 (sort_symtab_syms): Ditto.
3725 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3727 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3728 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3729 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3730 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3731 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3732 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3733 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3737 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3742 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3743 REGISTER_CONVERTIBLE.
3744 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3745 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3746 * gdbarch.h, gdbarch.c: Re-generate.
3747 * arch-utils.h (deprecated_register_convertible_not): Rename
3748 generic_register_convertible_not.
3749 * arch-utils.c (deprecated_register_convertible_not): Rename
3750 generic_register_convertible.
3751 (legacy_convert_register_p, legacy_register_to_value): Update.
3752 * sh-tdep.c (sh64_push_arguments): Update.
3753 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3754 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3755 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3756 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3757 * arch-utils.c (legacy_value_to_register): Update.
3758 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3759 (rs6000_register_convert_to_raw): Make parameter "from" const.
3760 * mips-tdep.c (mips_gdbarch_init): Update.
3761 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3762 * infcmd.c (default_print_registers_info): Update.
3763 * ia64-tdep.c (ia64_gdbarch_init): Update.
3764 (ia64_register_convert_to_raw): Make parameter "from" const.
3765 * i386-tdep.c (i386_gdbarch_init): Update.
3766 (i386_register_convert_to_raw): Update.
3770 * remote-fileio.c: Include "remote-fileio.h".
3771 * Makefile.in (remote-fileio.o): Update dependencies.
3772 (remote_fileio_h): Fix typo.
3776 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3777 (xstormy16_save_dummy_frame_tos): Make static.
3778 (_initialize_xstormy16_tdep): Add declaration.
3779 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3780 * v850-tdep.c: Make local functions static.
3781 (_initialize_v850_tdep): Add declaration.
3782 * sparc-tdep.c: Make local functions static.
3783 (_initialize_sparc_tdep): Add declaration.
3784 * sh-tdep.c: Make local functions static.
3785 (_initialize_sh_tdep): Add declaration.
3786 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3787 * s390-tdep.c: Make local functions static.
3788 (_initialize_s390_tdep): Add declaration.
3789 * dbxread.c (find_stab_function_addr): Make static.
3790 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3791 * ocd.c (_initialize_remote_ocd): Add declaration.
3792 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3793 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3794 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3795 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3796 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3797 * remote-array.c (_initialize_array): Add declaration.
3798 (_initialize_remote_monitors): Add declaration.
3799 * remote-mips.c: Make local functions static.
3800 (_initialize_remote_mips): Add declaration.
3801 * mcore-tdep.c: Make all local functions static.
3802 (_initialize_mcore_tdep): Add declaration.
3803 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3804 * abug-rom.c (_initialize_abug_rom): Add declaration.
3805 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3806 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3807 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3808 * remote-est.c (_initialize_est): Add declaration.
3809 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3810 (m68hc11_call_dummy_address): Make static.
3811 * ia64-tdep.c: Make local functions static.
3812 (_initialize_ia64_tdep): Add declaration.
3813 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3814 * monitor.c (monitor_wait_filter): Make static.
3815 (_initialize_remote_monitors): Add declaration.
3816 * remote-hms.c (_initialize_remote_hms): Add declaration.
3817 * remote-e7000.c (fetch_regs_from_dump): Make static.
3818 (expect_n): Make static.
3819 (_initialize_remote_e7000): Add declaration.
3820 * ser-e7kpc.c: Always include "defs.h".
3821 (_initialize_ser_e7000pc): Add declaration.
3822 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3823 * cris-tdep.c: Make all but one function static.
3824 (_initialize_cris_tdep): Add declaration.
3825 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3826 * solib.c (update_solib_list): Make static.
3827 (_initialize_solib): Add declaration.
3828 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3829 (_initialize_avr_tdep): Add declaration.
3830 * remote-rdi.c (voiddummy): Make static.
3831 (_initialize_remote_rdi): Add declaration.
3832 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3833 * remote-rdp.c (send_rdp): Make static.
3834 (_initialize_remote_rdp): Add declaration.
3835 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3839 * remote-fileio.c: Make ari happy.
3843 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3844 fetching the trailing bytes of the buffer we are about to write.
3848 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3849 * Makefile.in (remote-fileio.o): Update dependencies.
3850 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3851 include <setjmp.h>, or <sys/types.h> conditional on USG.
3852 (remote_fio_jmp_buf): Delete global variable.
3857 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3858 (SFILES): Add remote-fileio.c.
3859 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3860 dependencies for building remote.o.
3861 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3862 * remote-fileio.h: New header file defining remote File-I/O interface.
3863 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3864 static storage class.
3865 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3867 (_initialize_remote): Call initialize_remote_fileio().
3868 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3869 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3870 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3871 (captured_main): Initialize new ui_files.
3872 * ui-file.c: Add read and fgets input functions.
3873 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3874 (null_file_read): New function.
3875 (ui_file_read): New function.
3876 (set_ui_file_read): New function.
3877 (stdio_file_read): New function.
3878 * ui-file.h: New type ui_file_read_ftype.
3879 (set_ui_file_read): Declare.
3880 (ui_file_read): Declare.
3884 * frame.h (deprecated_unwind_get_saved_register): Rename
3885 generic_unwind_get_saved_register, update comments.
3886 * mips-tdep.c (mips_get_saved_register): Update.
3887 * frame.c (deprecated_unwind_get_saved_register): Update.
3891 * vax-tdep.c (vax_frame_locals_address): Delete function.
3892 (vax_gdbarch_init): Do not set frame_locals_address.
3893 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3894 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3895 * s390-tdep.c (s390_frame_args_address): Delete function.
3896 (s390_gdbarch_init): Do not set frame_args_address or
3897 frame_locals_address.
3898 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3899 (ns32k_gdbarch_init): Do not set frame_locals_address.
3900 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3901 (hppa_frame_locals_address): Delete function.
3902 (hppa_gdbarch_init): Do not set frame_args_address, or
3903 frame_locals_address.
3904 * arm-tdep.c (arm_frame_args_address): Delete.
3905 (arm_frame_locals_address): Delete.
3906 (arm_gdbarch_init): Do not set frame_args_address, or
3907 frame_locals_address.
3911 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3912 * gdbarch.h, gdbarch.c: Re-generate.
3913 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3914 * arch-utils.c (frame_num_args_unknown): Delete function.
3915 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3916 (frame_info): Use FRAME_NUM_ARGS_P.
3917 * arm-tdep.c (arm_frame_num_args): Delete function.
3918 (arm_gdbarch_init): Do not set frame_num_args.
3919 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3920 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3921 (hppa_gdbarch_init): Do not set frame_num_args.
3922 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3923 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3924 frame_num_args to default frame_num_args_unknown.
3925 * v850-tdep.c (v850_gdbarch_init): Ditto.
3926 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3927 * sh-tdep.c (sh_gdbarch_init): Ditto.
3928 * s390-tdep.c (s390_gdbarch_init): Ditto.
3929 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3930 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3931 * mips-tdep.c (mips_gdbarch_init): Ditto.
3932 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3933 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3935 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3936 * i386-tdep.c (i386_gdbarch_init): Ditto.
3937 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3938 * frv-tdep.c (frv_gdbarch_init): Ditto.
3939 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3940 * cris-tdep.c (cris_gdbarch_init): Ditto.
3941 * avr-tdep.c (avr_gdbarch_init): Ditto.
3942 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3946 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3947 (print_frame_args): Moved to "stack.c".
3948 * stack.c: Include "gdb_assert.h".
3949 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3950 (print_frame_args): Moved from "printcmd.c".
3951 * frame.h (print_frame_args): Delete declaration.
3952 * Makefile.in (stack.o): Update dependencies.
3956 * frame.c (get_prev_frame): Remove reference to
3957 frame_args_address_correct in comments.
3958 * frame-base.c (default_frame_args_address): Delete code
3959 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3960 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3961 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3962 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3963 (vax_frame_args_address_correct): Delete declaration.
3967 * gdbarch.sh (UNWIND_SP): Add.
3968 * gdbarch.h, gdbarch.c: Re-generate.
3969 * frame.c (frame_sp_unwind): New function.
3970 (get_frame_sp): New function.
3971 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3972 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3973 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3975 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3976 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3980 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3983 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3984 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3985 * config/m68k/tm-sun3.h: Update.
3986 * config/m68k/tm-m68klynx.h: Update.
3987 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3989 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3990 trad_frame". Update comments.
3991 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3992 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3993 (trad_frame_register_value, trad_frame_prev_register): Update.
3997 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3998 from GCC's acinclude.m4.
3999 * configure.in: Check for getopt's delcaration.
4000 * aclocal.m4, config.in, configure: Re-generate.
4001 * main.c (error_init): Delete declaration.
4002 * defs.h (error_init): Declare.
4003 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4004 (rs6000_convert_from_func_ptr_addr): Make static.
4005 (_initialize_rs6000_tdep): Add declaration.
4006 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4007 (show_commands, set_verbose, show_history): Delete declaration.
4008 * top.h (set_verbose): Add declaration.
4009 (show_history, set_history, show_commands): Add declaration.
4010 (do_restore_instream_cleanup): Add declaration.
4011 * objc-lang.c (specialcmp): Make static.
4012 (print_object_command): Make static.
4013 (find_objc_msgsend): Make static.
4014 (find_objc_msgcall_submethod_helper): Make static.
4015 (find_objc_msgcall_submethod): Make static.
4016 (_initialize_objc_language): Add declaration.
4017 (find_implementation_from_class): Make static.
4018 (find_implementation): Make static.
4019 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4020 * objc-lang.h (lookup_struct_typedef): Add declaration.
4021 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4022 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4023 (do_restore_user_call_depth): Make static.
4024 (do_restore_instream_cleanup): Delete declaration.
4025 (dont_repeat): Delete declaration.
4026 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4027 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4028 * reggroups.c (_initialize_reggroup): Add declaration.
4029 * cp-support.c (_initialize_cp_support): Add declaration.
4030 * cp-abi.c (_initialize_cp_abi): Add declaration.
4031 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4032 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4033 (_initialize_gnu_v3_abi): Add declaration.
4034 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4035 (_initialize_gnu_v2_abi): Add declaration.
4036 * frame-base.c (_initialize_frame_base): Add declaration.
4037 * doublest.c (floatformat_from_length): Make static.
4038 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4039 * frame.c (create_sentinel_frame): Make static.
4040 (_initialize_frame): Add declaration.
4041 * top.c (do_catch_errors): Make static.
4042 (gdb_rl_operate_and_get_next_completion): Make static.
4043 * typeprint.c: Include "typeprint.h".
4044 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4045 (sentinel_frame_this_id): Make static.
4046 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4047 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4048 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4049 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4050 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4051 * maint.c (maintenance_print_architecture): Make static.
4052 * signals/signals.c (_initialize_signals): Add declaration.
4053 * std-regs.c (_initialize_frame_reg): Add declaration.
4054 * jv-exp.y (push_variable): ISO C definition.
4055 (push_qualified_expression_name): Ditto.
4056 * memattr.c (_initialize_mem): Add declaration.
4057 * remote.c (remote_check_watch_resources): Make static.
4058 (remote_stopped_by_watchpoint): Make static.
4059 (remote_stopped_data_address): Make static.
4060 * d10v-tdep.c (nr_dmap_regs): Make static.
4061 (a0_regnum): Make static.
4062 (d10v_frame_unwind_cache): Make static.
4063 (d10v_frame_p): Make static.
4064 * osabi.c (show_osabi): Make static.
4065 (_initialize_gdb_osabi): Add extern declaration.
4066 * gdbtypes.c (make_qualified_type): Make static.
4067 (safe_parse_type): Make static.
4068 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4069 * macrotab.c (macro_bcache_free): Make static.
4070 * interps.c (interp_set_quiet): Make static.
4071 (interpreter_exec_cmd): Make static.
4072 * stack.h (select_frame_command): New file.
4073 * stack.c: Include "stack.h".
4074 (select_frame_command_wrapper): Delete function.
4075 (select_frame_command): Make global.
4076 * infcall.c: Include "infcall.h".
4077 * linespec.c: Include "linespec.h".
4078 * symfile.c (sections_overlap): Make static.
4079 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4080 * charset.c (_initialize_charset): Add missing prototype.
4081 * regcache.c (init_legacy_regcache_descr): Make static.
4082 (do_regcache_xfree): Make static.
4083 (regcache_xfer_part): Make static.
4084 (_initialize_regcache): Add missing prototype.
4085 * breakpoint.c (parse_breakpoint_sals): Make static.
4086 (breakpoint_sals_to_pc): Make static.
4087 * interps.h (clear_interpreter_hooks): ISO C declaration.
4088 * Makefile.in (stack_h): Define.
4089 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4090 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4094 * Makefile.in (d10v-tdep.o): Update dependencies.
4095 (SFILES): Add trad-frame.c.
4096 (trad_frame_h): Define.
4097 (COMMON_OBS): Add trad-frame.o.
4098 (trad-frame.o): Specify dependencies.
4099 * d10v-tdep.c: Include "trad-frame.h".
4100 (saved_regs_unwinder): Delete function.
4101 (d10v_frame_prev_register): Use trad_frame_prev_register.
4102 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4103 trad_frame", delete "regs" and "prev_sp".
4104 (prologue_find_regs): Use trad-frame.
4105 * trad-frame.h, trad-frame.c: New files.
4109 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4113 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4114 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4115 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4116 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4117 resolve_msgsend_super, resolve_msgsend_super_stret):
4122 * symfile.h: Re-indent, clean up comments.
4126 * inferior.h (deprecated_write_sp): Replace
4127 generic_target_write_sp.
4128 * regcache.c (deprecated_write_sp): Replace
4129 generic_target_write_sp.
4130 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4131 * vax-tdep.c (vax_gdbarch_init): Update.
4132 * v850-tdep.c (v850_gdbarch_init): Update.
4133 * sparc-tdep.c (sparc_gdbarch_init): Update.
4134 * sh-tdep.c (sh_gdbarch_init): Update.
4135 * s390-tdep.c (s390_gdbarch_init): Update.
4136 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4137 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4138 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4139 * mcore-tdep.c (mcore_gdbarch_init): Update.
4140 * m68k-tdep.c (m68k_gdbarch_init): Update.
4141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4142 * ia64-tdep.c (ia64_gdbarch_init): Update.
4143 * h8300-tdep.c (h8300_gdbarch_init): Update.
4144 * frv-tdep.c (frv_gdbarch_init): Update.
4145 * cris-tdep.c (cris_gdbarch_init): Update.
4146 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4150 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4151 Assert that PC_REGNUM is valid.
4152 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4156 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4157 * gdbarch.h, gdbarch.c: Regenerate.
4158 * mn10300-tdep.c: Include "gdb_assert.h".
4159 (mn10300_read_fp): New function.
4160 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4161 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4162 * ia64-tdep.c: Include "gdb_assert.h".
4163 (ia64_read_fp): New function.
4164 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4165 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4166 * regcache.c (generic_target_read_sp): Delete function.
4167 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4168 * inferior.h (generic_target_read_sp): Delete declaration.
4169 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4170 generic_target_read_sp.
4171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4172 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4173 * sh-tdep.c (sh_gdbarch_init): Ditto.
4174 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4175 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4179 * gdbarch.sh: Comment each field of startup_gdbarch.
4180 * gdbarch.h, gdbarch.c: Re-generate.
4184 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4185 * gdbarch.h, gdbarch.c: Re-generate.
4186 * regcache.c: Update comments on read_pc et.al.
4187 (generic_target_read_pc): Delete function.
4188 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4189 * inferior.h (generic_target_read_pc): Delete declaration.
4190 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4191 generic_target_read_pc.
4192 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4193 * sh-tdep.c (sh_gdbarch_init): Ditto.
4194 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4199 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4200 "index" with "special_local_sect". Use strcmp instead of STREQ.
4201 Append period to coments.
4205 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4206 (elfstab_offset_sections): Likewise.
4207 * gdb-stabs.h (stab_section_info): Likewise.
4208 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4209 * objfiles.c (objfile_relocate): Likewise.
4210 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4211 * remote.c (get_offsets): Likewise.
4212 (remote_cisco_objfile_relocate): Likewise.
4213 * somread.c (som_symfile_offsets): Likewise.
4214 * symfile.c (alloc_section_addr_info): New function.
4215 (build_section_addr_info_from_section_tab): Use it.
4216 (free_section_addr_info): Adjust.
4217 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4218 (syms_from_objfile): Allocate local_addr dynamically.
4219 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4221 (add_symbol_file_command): Allocate sect_opts dynamically.
4222 (reread_symbols): Avoid use of SECT_OFF_MAX.
4223 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4224 (alloc_section_addr_info): Declare it.
4225 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4226 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4228 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4232 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4233 (d10v_frame_unwind_cache): Do not set "return_pc".
4237 * h8300-tdep.c: Make tidy (long lines).
4241 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4242 to regcache_collect().
4246 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4247 pc_in_sigtramp multiarch method.
4248 (hppa_hpux_som_init_abi): Use it.
4249 (hppa_hpux_elf_init_abi): Likewise.
4250 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4251 macro has been multiarched.
4252 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4253 macro here, as hppa64 isn't multiarched yet.
4257 * Makefile.in (value_h): Add $(frame_h).
4258 * value.h: Include "frame.h".
4259 (struct value): Replace "frame_addr" with "frame_id".
4260 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4261 * values.c (allocate_value): Use VALUE_FRAME_ID.
4262 (value_copy): Use VALUE_FRAME_ID.
4263 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4264 * valops.c (value_assign): Update. Use frame_find_by_id.
4268 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4273 * thread-db.c (check_event): For create/death event breakpoints,
4274 loop through all messages to ensure that we read the message
4275 corresponding to the breakpoint we are at.
4279 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4283 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4284 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4285 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4286 when handling .eh_frame sections.
4290 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4291 prepare_to_proceed procedure instead of the hppa-specific one.
4292 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4296 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4297 * config.in: Regenerated.
4298 * configure.in: Add test for syscall function and check for
4299 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4300 * configure: Regenerated.
4301 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4303 (kill_lwp): New function that uses tkill syscall or
4304 uses kill, depending on whether threading model is nptl or not.
4305 All callers of kill() changed to use kill_lwp().
4306 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4307 see if all threads have already exited in the nptl model.
4308 (stop_and_resume_callback): New callback function used by the
4309 lin_lwp_wait thread exit handling code.
4310 (stop_wait_callback): Check for threads already having exited and
4311 delete such threads fromt the lwp list when discovered.
4312 (stop_callback): Don't assert retcode of kill call.
4315 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4320 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4321 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4322 (alpha_sigtramp_frame_prev_register): Likewise.
4323 (alpha_heuristic_frame_prev_register): Likewise.
4324 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4326 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4327 alpha-specific register id names.
4328 (alpha_mdebug_frame_unwind_cache): Likewise.
4329 (alpha_mdebug_frame_prev_register): Likewise.
4333 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4334 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4335 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4336 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4338 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4339 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4340 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4342 * alpha-linux-tdep.c: Remove unnecessary includes.
4343 * Makefile.in (alpha-linux-tdep.o): Update.
4347 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4348 (alphabsd_fill_fpreg): Likewise.
4352 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4353 references to struct frame_info fields by calls to the equivalent
4354 accessors. Necessary now that frame_info is opaque.
4358 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4359 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4360 structure, field no longer exists.
4364 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4365 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4369 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4370 references to struct frame_info fields by calls to the equivalent
4371 accessors. Necessary now that frame_info is opaque.
4375 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4376 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4377 structure, field no longer exists.
4381 * remote.c (init_remote_state): Compute sizeof_g_packet by
4382 accumulation of the size of all registers instead of blindly using
4383 DEPRECATED_REGISTER_BYTES.
4387 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4388 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4393 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4394 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4398 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4399 (sparc_convert_to_raw): Delete function.
4400 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4401 register_convert_to_virtual.
4405 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4406 layer if not dealing with a statically-linked threaded program.
4410 * solib.c (solib_open): Update comment to reflect actual search order.
4414 * frame.c (get_frame_memory_signed): New function.
4415 (get_frame_memory, get_frame_memory_unsigned): New function.
4416 (get_frame_arch): New function.
4417 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4418 (get_frame_memory, get_frame_unsigned_memory): Declare.
4419 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4420 get_frame_memory_unsigned and get_frame_arch.
4421 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4425 * MAINTAINERS (write after approval): Add myself.
4429 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4430 elements of gregset_t are 64 bits each, but access registers
4431 are still 32 bits, so they're packed two per gregset_t
4432 element. Unpack/pack them properly.
4436 * linespec.c (find_methods): Break out code into
4437 add_matching_methods and add_constructors.
4438 (add_matching_methods): New.
4439 (add_constructors): Ditto.
4443 * sparc-tdep.c (sparc_print_registers): Delete call to
4444 REGISTER_CONVERTIBLE.
4445 (sparc_gdbarch_init): Do not set register_convertible.
4446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4447 * frv-tdep.c (frv_gdbarch_init): Ditto.
4448 * cris-tdep.c (cris_gdbarch_init): Ditto.
4452 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4453 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4454 (syms_from_objfile): Ditto.
4458 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4459 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4463 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4464 a member of all_reggroup.
4468 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4469 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4470 (alpha_lds, alpha_sts): New.
4471 (alpha_convert_register_p): Change from _register_convertible.
4472 (alpha_register_to_value): Change from _convert_to_virtual;
4473 restructure and fail for type sizes other than 4 or 8.
4474 (alpha_value_to_register): Similarly.
4475 (alpha_extract_return_value): Use alpha_sts.
4476 (alpha_store_return_value): Use alpha_lds.
4477 (alpha_gdbarch_init): Update hooks.
4481 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4483 (alpha_sigtramp_register_address): Likewise.
4487 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4488 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4489 * alpha-tdep.h: Declare them.
4491 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4492 Remove zerobuf. Don't error on UNIQUE.
4493 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4494 (ALPHA_REGSET_UNIQUE): Provide default.
4495 (supply_gregset): Use alpha_supply_int_regs.
4496 (fill_gregset): Use alpha_fill_int_regs.
4497 (supply_fpregset): Use alpha_supply_fp_regs.
4498 (fill_fpregset): Use alpha_fill_fp_regs.
4499 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4500 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4501 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4502 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4503 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4504 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4508 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4510 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4511 (alpha_store_return_value): Likewise.
4515 * block.c (contained_in): Add 'const' to arguments.
4516 (block_function): Ditto.
4517 * block.h: Update declarations for block_function and
4522 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4523 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4524 * p-valprint.c (pascal_val_print): Ditto.
4525 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4529 * alpha-tdep.c (alpha_push_dummy_call): Use
4530 builtin_type_ieee_double_little instead of builtin_type_double.
4532 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4533 sign-extension of 32-bit values.
4534 (alpha_store_return_value): Similarly.
4536 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4537 (alpha_extract_return_value): Likewise.
4538 (alpha_store_return_value): Likewise.
4540 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4541 (alpha_store_return_value): Error on IEEE Quad floats.
4543 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4544 (alpha_extract_struct_value_address): Likewise.
4545 (alpha_store_return_value): Likewise.
4546 (alpha_store_struct_return): Remove.
4547 (alpha_gdbarch_init): Update hook registration to match.
4549 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4550 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4551 macros where appropriate.
4552 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4553 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4555 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4556 for SP, GP; void_func_ptr for PC; non-language-specific types
4558 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4562 * top.h (lim_at_start): Declare.
4563 * main.c (captured_main): Set it.
4564 * top.c (lim_at_start): Define.
4565 (command_loop): Use it instead of &environ.
4566 * event-top.c (command_handler): Likewise.
4570 * mipsnbsd-tdep.c: Update copyright years.
4571 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4575 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4576 (alpha-linux-tdep.o): Update dependencies.
4577 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4578 * alpha-mdebug-tdep.c: Remove unneeded includes.
4582 * alpha-tdep.c (alpha_register_reggroup_p): New.
4583 (alpha_gdbarch_init): Register it.
4587 * dwarfread.c: Eliminate "register"
4588 (decode_die_type): Eliminate assignment within "if".
4589 (struct_type, decode_array_element_type): Ditto.
4590 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4591 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4592 (decode_modified_type, completedieinfo): Ditto.
4593 * block.c: Eliminate "register".
4594 (blockvector_for_pc_sect): Eliminate assignment within "if".
4595 * cp-support.h (struct symbol): Opaque declaration.
4596 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4600 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4601 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4605 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4606 * gdbarch.[ch]: Regenerate.
4607 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4608 (hppa_gdbarch_init): Set it in the gdbarch vector.
4609 * i386-tdep.c (i386_fetch_pointer_argument): New
4610 (i386_gdbarch_init): Set it into gdbarch.
4611 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4612 (rs6000_gdbarch_init): Set it in gdbarch.
4613 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4614 (sparc_gdbarch_init): Set it in gdbarch.
4618 * defs.h (extract_address): Delete declaration.
4619 * findvar.c (extract_address): Delete function.
4620 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4621 extract_address with the inline equivalent,
4622 extract_unsigned_integer.
4623 (xstormy16_extract_struct_value_address): Ditto.
4624 (xstormy16_pointer_to_address): Ditto.
4625 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4626 * v850-tdep.c (v850_push_arguments): Ditto.
4627 (v850_extract_return_value): Ditto.
4628 (v850_extract_struct_value_address): Ditto.
4629 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4630 (sparcnbsd_get_longjmp_target_64): Ditto.
4631 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4632 (get_longjmp_target): Ditto.
4633 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4634 (sh64_extract_struct_value_address): Ditto.
4635 (sh_push_arguments): Ditto.
4636 (sh64_push_arguments): Ditto.
4637 * remote-vxsparc.c (vx_read_register): Ditto.
4638 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4639 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4640 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4641 * mipsv4-nat.c (get_longjmp_target): Ditto.
4642 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4643 * mips-nat.c (get_longjmp_target): Ditto.
4644 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4645 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4646 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4647 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4648 * irix5-nat.c (get_longjmp_target): Ditto.
4649 * irix4-nat.c (get_longjmp_target): Ditto.
4650 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4651 (ia64_push_arguments): Ditto.
4652 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4653 * h8300-tdep.c (h8300_push_arguments): Ditto.
4654 (h8300_store_return_value): Ditto.
4655 (h8300_extract_struct_value_address): Ditto.
4656 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4657 (frv_push_arguments): Ditto.
4658 * avr-tdep.c (avr_pointer_to_address): Ditto.
4659 (avr_push_arguments): Ditto.
4660 * arm-tdep.c (arm_push_dummy_call): Ditto.
4661 (arm_get_longjmp_target): Ditto.
4662 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4663 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4664 (alpha_get_longjmp_target): Ditto.
4666 * solib-irix.c (extract_mips_address): Inline extract_address,
4667 replacing it with extract_signed_integer.
4668 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4669 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4670 (first_link_map_member, open_symbol_file_object): Ditto.
4671 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4672 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4673 (LM_NEXT, LM_NAME): Ditto.
4677 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4678 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4679 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4680 (alpha_cannot_store_register): Likewise.
4681 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4682 * alpha-nat.c (supply_gregset): Likewise.
4683 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4687 * infcall.c (call_function_by_hand): Update comment on
4688 DEPRECATED_DUMMY_WRITE_SP.
4690 * mips-tdep.c (mips_gdbarch_init): Do not set
4691 deprecated_dummy_write_sp.
4692 (mips_eabi_push_dummy_call): Set the SP register.
4693 (mips_o64_push_dummy_call): Set the SP register.
4694 (mips_o32_push_dummy_call): Set the SP register.
4695 (mips_n32n64_push_dummy_call): Set the SP register.
4699 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4700 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4701 (supply_gregset): Likewise.
4702 * alpha-tdep.c (alpha_store_return_value): Likewise.
4703 (alpha_get_longjmp_target): Likewise.
4704 (alpha_register_name): Constify array.
4705 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4706 deprecated_register_size, deprecated_register_bytes,
4707 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4708 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4709 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4713 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4714 from arg_reg_buffer to regcache to avoid double conversion.
4718 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4720 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4721 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4725 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4726 (decode_frame_entry): Set it. Skip FDE augmentation.
4730 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4731 not overlapping PC_REGNUM.
4735 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4736 alpha_push_arguments. Don't dump argument register data to
4737 the target stack. Fix float and 128-bit long double semantics.
4738 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4739 (alpha_fix_call_dummy): Remove.
4740 (alpha_call_dummy_words): Remove.
4741 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4745 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4749 * mips-tdep.c (is_mips16_addr): New function.
4750 (make_mips16_addr, unmake_mips16_addr): New functions.
4751 (pc_is_mips16, mips_fetch_instruction): Use.
4752 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4753 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4754 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4755 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4757 * config/mips/tm-mips.h: Update copyright.
4758 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4759 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4760 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4761 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4762 (TM_PRINT_INSN_MACH): Delete.
4763 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4765 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4766 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4767 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4768 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4769 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4770 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4771 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4772 mips*-*-riscos* and mips*-*-sysv* onto mips.
4773 * config/mips/mips64.mt: New file.
4774 * config/mips/mips.mt: New file.
4775 * config/mips/littlemips.mt: Delete file.
4776 * config/mips/decstation.mt: Delete file.
4777 * config/mips/vr4300el.mt: Delete file.
4778 * config/mips/vr5000el.mt: Delete file.
4779 * config/mips/vr5000.mt: Delete file.
4780 * config/mips/vr4100.mt: Delete file.
4781 * config/mips/vr4xxxel.mt: Delete file.
4782 * config/mips/vr4300.mt: Delete file.
4783 * config/mips/vr4xxx.mt: Delete file.
4784 * config/mips/bigmips.mt: Delete file.
4785 * config/mips/bigmips64.mt: Delete file.
4786 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4787 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4788 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4789 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4790 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4792 * config/mips/tm-irix3.h: Ditto.
4793 * config/mips/tm-mipsv4.h: Ditto.
4794 * config/mips/tm-embed.h: Ditto.
4795 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4797 * config/mips/tm-vr5000el.h: Delete file.
4798 * config/mips/tm-tx39l.h: Delete file.
4799 * config/mips/tm-vr4300el.h: Delete file.
4800 * config/mips/tm-vr4xxxel.h: Delete file.
4801 * config/mips/tm-vr4300.h: Delete file.
4802 * config/mips/tm-vr4100.h: Delete file.
4803 * config/mips/tm-vr4xxx.h: Delete file.
4804 * config/mips/tm-vr5000.h: Delete file.
4805 * config/mips/tm-embedl64.h: Delete file.
4806 * config/mips/tm-embedl.h: Delete file.
4807 * config/mips/tm-embed64.h: Delete file.
4808 * config/mips/tm-bigmips64.h: Delete file.
4809 * config/mips/tm-bigmips.h: Delete file.
4814 * shnbsd-nat.c: Include "sh-tdep.h".
4817 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4821 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4822 forward declaration.
4823 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4824 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4825 (mips_find_saved_regs): Use set_reg_offset.
4826 (mips_frame_init_saved_regs): Delete function.
4827 (mips_pop_frame): Call mips_find_saved_regs instead of
4828 DEPRECATED_FRAME_INIT_SAVED_REGS.
4832 * mips-tdep.c (mips_gdbarch_init): Do not set
4833 deprecated_max_register_raw_size, register_virtual_size, and
4834 deprecated_max_register_virtual_size.
4838 * i386-tdep.c: Include "dwarf2-frame.h".
4839 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4840 * Makefile.in (i386-tdep.o): Update dependencies.
4842 * dwarf2-frame.c, dwarf2-frame.h: New files.
4843 * Makefile.in (SFILES): Add dwarf2-frame.c.
4844 (dwarf2_frame_h): Define.
4845 (COMMON_OBS): Add dwarf2-frame.o.
4846 (dwarf2-frame.o): Add dependencies.
4850 * x86-64-linux-nat.c: Fix comment.
4854 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4857 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4858 have a sigcontext_addr handler.
4859 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4860 sigcontext_addr handler.
4864 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4865 (print_fp_register_row): Replace do_fp_register_row.
4866 (mips_print_fp_register): Add "file" and "frame" parameters.
4867 (mips_print_register): Add "file" and "frame" parameters.
4868 (mips_print_registers_info): Replace mips_do_registers_info.
4869 (mips_gdbarch_init): Set print_registers_info instead of
4870 deprecated_do_registers_info.
4871 (mips_read_fp_register_single): Add "frame" parameter.
4872 (mips_read_fp_register_double): Add "frame" parameter.
4876 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4877 Fixes a bug where GDB would print the wrong register names for
4878 targets without SSE.
4880 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4881 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4884 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4885 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4886 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4890 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4892 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4893 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4894 I386_ST0_REGNUM): Move here from...
4895 * i386-tdep.c: ... here.
4896 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4897 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4898 registers if possible.
4899 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4900 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4902 (i386bsd_sc_reg_offset): New variable.
4903 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4904 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4906 (i386fbsd_sc_reg_offset): New variable.
4907 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4909 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4911 (i386fbsd4_sc_reg_offset): New variable.
4912 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4913 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4915 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4916 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4917 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4919 (i386nbsd_sc_reg_offset): New variable.
4920 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4921 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4923 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4925 (i386obsd_sc_reg_offset): New variable.
4926 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4927 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4929 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4930 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4931 for frame pointer offset in `struct sigcontext'.
4935 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4936 architecture methods call_dummy_words, sizeof_call_dummy_words,
4937 push_return_address, store_struct_return, and fix_call_dummy. Set
4938 push_dummy_call instead of deprecated_push_arguments.
4939 (mips_store_struct_return): Delete function.
4940 (mips_fix_call_dummy): Delete function.
4941 (mips_push_return_address): Delete function.
4942 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4943 RA_REGNUM and T9_REGNUM.
4944 (mips_n32n64_push_dummy_call): Ditto for
4945 mips_n32n64_push_arguments.
4946 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4947 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4951 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4952 "dummy_addr" to "bp_addr".
4953 * infcall.c (call_function_by_hand): Pass "funaddr" to
4954 gdbarch_push_dummy_call.
4955 * gdbarch.h, gdbarch.c: Re-generate.
4956 * i386-tdep.c (i386_push_dummy_call): Update.
4957 * arm-tdep.c (arm_push_dummy_call): Update.
4958 * d10v-tdep.c (d10v_push_dummy_call): Update.
4962 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4963 variable declarations.
4964 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4965 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4966 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4967 x86_64_init_frame_pc, x86_64_init_frame_pc,
4968 x86_64_function_has_prologue): Remove prototypes.
4969 (X86_64_NUM_GREGS): New define.
4970 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4971 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4972 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4973 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4974 XMM1_REGNUM): Remove defines.
4975 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4976 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4977 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4978 X86_64_XMM1_REGNUM): New defines.
4979 (struct x86_64_register_info): Renamed from `struct
4980 register_info'. Remove `size' member.
4981 (x86_64_register_info_table): Remove variable.
4982 (x86_64_register_info): New variable.
4983 (X86_64_NUM_REGS): New define.
4984 (X86_64_NUM_GREGS): Remove define.
4985 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4986 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4988 (x86_54_dwarf2_reg_to_regnum): Remove function.
4989 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4990 (x86_64_dwarf_reg_to_regnum): New function.
4991 (x86_64_register_name): Rewrite.
4992 (x86_64_register_raw_size): Remove function.
4993 (x86_64_register_byte_table): Remove variable.
4994 (x86_64_register_byte): Remove function.
4995 (x86_64_register_virtual_type): Remove function.
4996 (x86_64_register_type): New function.
4997 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4998 x86_64_register_convert_to_raw): Remove functions.
4999 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5000 (x86_64_use_struct_convention): Make static. Adjust for renamed
5002 (x86_64_frame_init_saved_regs): Remove function.
5003 (x86_64_push_arguments): Make static. Change to accept a regcache
5005 (x86_64_store_return_value, x86_64_extract_return_value): Make
5006 static. Rewrite based on i386 counterparts.
5007 (x86_64_push_dummy_call): New function.
5008 (X86_64_NUM_SAVED_REGS): New define.
5009 (x86_64_register_number): Remove function.
5010 (x86_64_store_struct_return): Remove function.
5011 (x86_64_frameless_function_invocation,
5012 x86_64_function_has_prologue): Remove functions.
5013 (PROLOG_BUFSIZE): Remove define.
5014 (struct x86_64_frame_cache): New structure.
5015 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5016 x86_64_frame_cache, x86_64_frame_this_id,
5017 x86_64_frame_prev_register, x86_64_frame_p,
5018 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5019 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5021 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5023 (x86_64_skip_prologue): Rewrite in terms of
5024 x86_64_analyze_prologue.
5025 (x86_64_frame_base_address): New function.
5026 (x86_64_frame_base): New variable.
5027 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5028 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5029 set deprecated_fp_regnum, deprecated_register_size,
5030 deprecated_register_bytes, register_raw_size, register_byte,
5031 register_virtual_type, register_convertiable,
5032 register_convert_to_virtual, convert_to_raw,
5033 deprecated_get_saved_register, deprecated_target_read_fp,
5034 deprecated_push_arguments, deprecated_push_return_address,
5035 deprecated_pop_frame, deprecated_store_struct_return,
5036 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5037 frameless_function_invocation, deprecated_frame_saved_pc,
5038 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5039 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5040 deprecated_init_frame_pc and virtual_frame_pointer. Call
5041 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5042 and x86_64_frame_p. Call frame_base_set_default to register
5044 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5045 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5046 (_initialize_x86_64_tdep): Remove function.
5047 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5048 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5049 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5051 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5052 (x86_64_linux_sigcontext_addr): Rewrite.
5053 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5054 x86_64_linux_frame_saved_pc): Remove functions.
5055 (x86_64_linux_pc_in_sigtramp): Renamed from
5056 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5058 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5060 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5061 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5062 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5063 (x86_64_regmap): Rename to regmap.
5064 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5066 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5068 (x86_64_fxsave_offset): Remove function.
5069 (supply_fpregset): Simply call x86_64_supply_fxsave.
5070 (fill_fpregset): Simply call x86_64_fill_fxsave.
5071 (fetch_inferior_registers, store_inferior_registers): Avoid
5072 asignment in if-statement.
5073 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5074 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5075 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5076 (fetch_core_registers): Remove function.
5077 (linux_elf_core_fns): Remove.
5078 (offsetoff): Don't define.
5079 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5080 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5081 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5083 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5084 protection against multiple includes instead of NM_X86_64_h. Add
5085 various comments. Include "config/nm-linux.h". Don't include
5087 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5088 GET_THREAD_SIGNALS): Remove defines.
5089 (x86_64_register_u_addr, kernel_u_size,
5090 lin_thread_get_thread_signals): Remove prototypes.
5091 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5092 [HAVE_LINK_H]: Don't include "solib.h".
5093 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5094 * config/i386/tm-x86-64linux.h: Fix comments.
5095 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5096 x86-64-tdep.o): Update dependencies.
5100 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5101 Change parameter type to a "struct regcache *".
5103 * gdbarch.sh: Regardless of the multi-arch level, always define
5104 the macro when not already defined.
5105 * gdbarch.h, gdbarch.c: Re-generate.
5109 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5110 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5111 (alpha_mdebug_frame_this_id): Likewise.
5112 (alpha_mdebug_frame_prev_register): Likewise.
5113 (alpha_mdebug_frame_base_address): Likewise.
5114 (alpha_mdebug_frame_locals_address): Likewise.
5115 (alpha_mdebug_frame_args_address): Likewise.
5116 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5117 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5118 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5120 (alpha_heuristic_frame_this_id): Make static.
5121 (alpha_heuristic_frame_prev_register): Likewise.
5122 (alpha_heuristic_frame_base_address): Likewise.
5123 * alpha-tdep.h: Update.
5127 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5128 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5130 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5131 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5132 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5133 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5134 I386_ST0_REGNUM): New defines.
5135 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5136 codestream_get): Remove define.
5137 (codestream_next_addr, condestream_addr, condestream_buf,
5138 codestream_off, codestream_cnt): Remove variables.
5139 (codestream_fill, codestream_seek, codestream_read): Remove
5141 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5143 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5144 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5145 i386_frame_saved_pc, i386_saved_pc_after_call,
5146 i386_frame_num_args, i386_frame_init_saved_regs,
5147 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5148 i386_push_arguments): Remove functions.
5149 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5150 functionality. Use i386_analyze_prologue instead of
5151 i386_get_frame_setup.
5152 (I386_NUM_SAVED_REGS): New define.
5153 (struct i386_frame_cache): New structure.
5154 (i386_alloc_frame_cache, i386_analyze_struct_return,
5155 i386_skip_probe, i386_analyze_frame_setup,
5156 i386_analyze_register_saves, i386_analyze_prologue,
5157 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5158 i386_frame_prev_register, i386_sigtramp_frame_cache,
5159 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5160 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5161 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5163 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5165 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5166 I386_EAX_REGNUM and I386_EDX_REGNUM.
5167 (i386_extract_return_value, i386_store_return_value): Use
5168 I386_ST0_REGNUM where appropriate.
5169 (i386_extract_struct_value_address): Rewrite to use extract_address.
5170 (i386_svr4_pc_in_sigtramp): Add comment.
5171 (i386_svr4_sigcontext_addr): Rewrite.
5172 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5174 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5175 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5176 of new defines. Set push_dummy_call, don't set
5177 deprecated_push_arguments, deprecated_push_return_address,
5178 deprecated_pop_frame. Don't set parm_boundary. Don't set
5179 deprecated_frame_chain, deprecated_frame_saved_pc,
5180 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5181 save_dummy_frame_tos, unwind_pc. Call
5182 frame_unwind_append_predicate and frame_base_set_default. Don't
5183 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5184 Don't set frameless_function_invocation. Don't set
5185 deprecated_register_bytes, deprecated_register_size,
5186 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5187 * i386-linux-tdep.c: Fix formatting in some comments.
5188 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5189 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5190 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5191 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5192 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5193 redundant parentheses.
5194 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5195 (i386_linux_sigcontext_addr): Use it. Rewrite.
5196 (find_minsym_and_objfile): Change name of second argument.
5197 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5198 changed. Use frame_pc_unwind instead of
5199 DEPRECATED_SAVED_PC_AFTER_CALL.
5200 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5201 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5202 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5204 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5206 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5207 (_initialize_i386_cygwin_tdep): New prototype.
5208 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5209 deprecated_frame_chain_valid.
5210 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5211 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5212 Rely on the SVR4 defaults.
5213 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5214 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5218 * infcall.c (call_function_by_hand): Always call
5219 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5223 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5228 Use gdbarch methods for solib stuff on PowerPC Linux.
5229 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5230 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5232 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5233 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5234 giving the same effect as the #definitions above.
5238 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5239 (find_implementation_from_class): Replace it with the standard
5240 case i.e. do nothing.
5244 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5245 (alpha_linux_sigtramp_offset): Use it. Make static.
5246 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5247 update for new frame model.
5248 * alpha-mdebug-tdep.c: New file.
5249 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5250 (alpha_osf1_init_abi): Install it.
5251 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5252 (linked_proc_desc_table): Remove.
5253 (alpha_frame_past_sigtramp_frame): Remove.
5254 (alpha_dynamic_sigtramp_offset): Remove.
5255 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5256 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5257 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5258 (push_sigtramp_desc): Remove.
5259 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5260 (alpha_cannot_store_register): Likewise.
5261 (alpha_sigcontext_addr): Remove.
5262 (alpha_find_saved_regs): Remove.
5263 (alpha_frame_init_saved_regs): Remove.
5264 (alpha_init_frame_pc_first): Remove.
5265 (read_next_frame_reg): Remove.
5266 (alpha_frame_saved_pc): Remove.
5267 (alpha_saved_pc_after_call): Remove.
5268 (temp_proc_desc, temp_saved_regs): Remove.
5269 (alpha_about_to_return): Remove.
5270 (cached_proc_desc): Remove.
5271 (alpha_frame_chain): Remove.
5272 (alpha_print_extra_frame_info): Remove.
5273 (alpha_init_extra_frame_info): Remove.
5274 (alpha_frame_locals_address): Remove.
5275 (alpha_frame_args_address): Remove.
5276 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5277 (alpha_push_dummy_frame): Remove.
5278 (alpha_pop_frame): Remove.
5279 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5280 (alpha_read_insn): New.
5281 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5282 for different insn encodings.
5283 (alpha_in_lenient_prologue): Remove.
5284 (struct alpha_sigtramp_unwind_cache): New.
5285 (alpha_sigtramp_frame_unwind_cache): New.
5286 (alpha_sigtramp_register_address): New.
5287 (alpha_sigtramp_frame_this_id): New.
5288 (alpha_sigtramp_frame_prev_register): New.
5289 (alpha_sigtramp_frame_unwind): New.
5290 (alpha_sigtramp_frame_p): New.
5291 (struct alpha_heuristic_unwind_cache): New.
5292 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5293 don't count nop insns that occur between functions.
5294 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5295 heuristic_proc_desc, but without the mdebug wrapping.
5296 (alpha_heuristic_frame_this_id): New.
5297 (alpha_heuristic_frame_prev_register): New.
5298 (alpha_heuristic_frame_unwind): New.
5299 (alpha_heuristic_frame_p): New.
5300 (alpha_heuristic_frame_base_address): New.
5301 (alpha_heuristic_frame_base): New.
5302 (alpha_unwind_dummy_id): New.
5303 (alpha_unwind_pc): New.
5304 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5305 frame related deprecated initializations; install replacements.
5306 (alpha_dump_tdep): Remove.
5307 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5308 (alpha_read_insn, alpha_after_prologue,
5309 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5310 alpha_heuristic_frame_prev_register,
5311 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5312 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5313 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5314 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5318 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5319 dependant on the availability of ASSERT_FUNCTION.
5320 (ASSERT_FUNCTION): Do not define when there is no function name.
5325 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5329 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5330 argument to ptrace to int; the system headers should give it the
5331 right type, and pointers don't fit in ints on powerpc64-*-*.
5335 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5340 * stabsread.c (dbx_lookup_type): Make static.
5342 (add_undefined_type): Ditto.
5343 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5348 * hpread.c (hpread_has_name): Make static.
5349 (hpread_psymtab_to_symtab): Ditto.
5350 (file_exists): Ditto.
5351 (hpread_call_pxdb): Ditto.
5352 (hpread_pxdb_needed): Ditto.
5353 (hpread_quick_traverse): Ditto.
5354 (hpread_get_header): Ditto.
5355 (hpread_get_lntt): Ditto.
5356 (hpread_get_slt): Ditto.
5361 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5362 stack_align and deprecated_extra_stack_alignment_needed.
5363 (m68k_stack_align): Delete.
5365 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5366 (m68k_register_virtual_size): Likewise.
5367 (altos_skip_prologue): Remove obsolete function.
5368 (isi_frame_num_args): Likewise.
5369 (news_frame_num_args): Likewise.
5370 (m68k_fix_call_dummy): Make static.
5371 (m68k_push_dummy_frame): Likewise.
5372 (m68k_pop_frame): Likewise.
5373 (m68k_skip_prologue): Likewise.
5374 (m68k_frame_init_saved_regs): Likewise.
5375 (m68k_saved_pc_after_call): Likewise.
5376 (m68k_get_longjmp_target): Make multi-arch.
5377 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5378 structure. Register m68k_get_longjmp_target if enabled.
5379 * m68k-tdep.h (struct gdbarch_tdep): Define.
5380 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5382 * Makefile.in (config.status): Also depend on configure.tgt
5384 (m68klinux-tdep.o): Update dependencies.
5385 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5386 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5387 (M68K_LINUX_JB_PC): Define.
5388 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5389 and take additional parameter.
5390 (m68k_linux_sigtramp_saved_pc): Update.
5391 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5392 m68k_linux_pc_in_sigtramp, in_plt_section,
5393 find_solib_trampoline_target.
5394 * config/m68k/tm-linux.h: Don't include any tm headers.
5395 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5396 (JB_ELEMENT_SIZE): Likewise.
5398 (GET_LONGJMP_TARGET): Likewise.
5399 (IN_SIGTRAMP): Likewise.
5400 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5404 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5405 (sparc32_push_arguments): Re-implement by calling
5406 sparc32_do_push_arguments.
5410 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5411 SPARC_O1_REGNUM): New defines.
5412 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5413 (sparc32_store_return_value): New function.
5414 (sparc_extract_struct_value_address): Rewrite to operate on a
5416 (sparc_gdbarch_init): Don't set
5417 deprecated_extract_struct_value_address. Set
5418 extract_struct_value_address instead. Don't set
5419 deprecated_extract_return_value and deprecated_store_return_value
5420 for 32-bit targets. Set extract_return_value and
5421 store_return_value instead.
5422 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5423 DEPRECTAED_EXTRACT_RETURN_VALUE,
5424 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5425 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5426 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5427 (sparc_store_return_value): Remove prototype.
5428 (sparc32_store_return_value): New prototype.
5429 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5434 * sparcnbsd-tdep.c: Include "gdb_string.h".
5438 * p-valprint.c (pascal_val_print): Replace extract_address with
5439 the inline equivalent extract_unsigned_integer.
5440 * jv-valprint.c (java_value_print): Ditto.
5441 * ada-valprint.c (ada_val_print_1): Ditto.
5442 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5446 * blockframe.c (frameless_look_for_prologue): Remove unused
5447 after_prologue variable.
5451 * blockframe.c (get_pc_function_start): Rewrite to avoid
5452 asignments in if-statements.
5457 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5458 files, don't relocate absolute symbols (and do use mst_abs).
5462 * objc-lang.c: Include "gdb_assert.h".
5463 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5464 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5465 (gdb_check, gdb_check_fatal): Delete functions.
5466 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5468 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5469 * Makefile.in (objc-lang.o): Update dependencies.
5473 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5474 with fprintf_filtered, not fprintf_unfiltered.
5478 * stack.c (frame_info): Inline extract_address, replacing it with
5479 extract_unsigned_integer.
5480 * findvar.c (unsigned_pointer_to_address): Ditto.
5481 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5482 * dwarf2expr.c (dwarf2_read_address): Ditto.
5483 * frame.c (frame_pc_unwind): Update comment.
5484 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5488 * infptrace.c (detach): Call print_sys_errmsg rather than
5489 perror_with_name to issue warning message when errno is non-zero
5490 after calling ptrace detach.
5494 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5495 macro definitions from here...
5496 * hppa-tdep.c: ...to there.
5500 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5501 register_ptrace_addr(). Fix all callers.
5505 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5507 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5509 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5510 (_initialize_m68k_linux_tdep): New function.
5511 (m68k_linux_frame_saved_pc): Make static.
5512 (m68k_linux_extract_return_value): Likewise.
5513 (m68k_linux_store_return_value): Likewise.
5514 (m68k_linux_extract_struct_value_address): Likewise.
5515 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5517 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5518 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5519 (DEPRECATED_FRAME_SAVED_PC): Remove.
5523 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5524 regset numbering rather than our own.
5528 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5532 Partial fix for PR c++/827.
5533 * cp-support.h: Include symtab.h.
5534 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5535 * cp-namespace.c: Update contributors.
5536 (cp_lookup_symbol_nonlocal): New.
5537 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5538 (lookup_symbol_file): Ditto.
5539 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5540 * block.h: Declare block_scope, block_using, block_global_block.
5541 * block.c (block_scope): New.
5542 (block_using, block_global_block): Ditto.
5543 * Makefile.in (cp_support_h): Depend on symtab_h.
5544 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5548 * language.h (struct language_defn): Add 'la_value_of_this'
5549 and 'la_lookup_symbol_nonlocal' members.
5550 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5551 lookup_symbol_static, lookup_symbol_global,
5552 lookup_symbol_aux_block.
5553 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5554 if we should search fields of this and how to do static/global
5556 (lookup_symbol_aux_block): Make extern.
5557 (basic_lookup_symbol_nonlocal): New.
5558 (lookup_symbol_static, lookup_symbol_global): Ditto.
5559 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5560 'la_lookup_symbol_nonlocal' members.
5561 * c-lang.c (c_language_defn, cplus_language_defn)
5562 (asm_language_defn, minimal_language_defn): Ditto.
5563 * jv-lang.c (java_language_defn): Ditto.
5564 * language.c (unknown_language_defn, auto_language_defn)
5565 (local_language_defn): Ditto.
5566 * m2-lang.c (m2_language_defn): Ditto.
5567 * objc-lang.c (objc_language_defn): Ditto.
5568 * scm-lang.c (scm_language_defn): Ditto.
5569 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5570 * p-lang.c (pascal_language_defn): Ditto for both.
5571 * Makefile.in (f-lang.o): Depend on value_h.
5576 * block.h: Declare block_static_block.
5577 * block.c (block_static_block): New.
5578 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5579 lookup_symbol_aux_local, calling block_static_block instead.
5580 (lookup_symbol_aux_local): Delete 'static_block' argument.
5584 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5588 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5589 register numbers mapping.
5593 * symtab.c (completion_list_objc_symbol): New function.
5594 (make_symbol_completion_list): Use it to add ObjC symbols
5595 when looking though the list.
5596 (language_search_unquoted_string): New function.
5597 (make_file_symbol_completion_list): Use it.
5601 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5603 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5604 as m68k_linux_extract_return_value.
5605 (DEPRECATED_STORE_RETURN_VALUE): Define as
5606 m68k_linux_store_return_value.
5607 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5608 m68k_linux_extract_struct_value_address.
5609 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5610 get_next_frame, get_frame_base, get_frame_pc.
5611 (m68k_linux_frame_saved_pc): Use get_frame_base.
5612 (m68k_linux_extract_return_value): New function.
5613 (m68k_linux_store_return_value): New function.
5614 (m68k_linux_extract_struct_value_address): New function.
5615 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5617 * c-exp.y (typebase): Remove duplicate occurence of
5618 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5619 of lookup_signed_typename.
5623 * dwarf2loc.c (find_location_expression): Change type of second
5624 argument to `size_t *'.
5625 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5630 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5631 'linkage_name'. Add comment.
5632 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5634 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5635 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5636 (lookup_block_symbol): Ditto.
5640 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5641 * gdbarch.h, gdbarch.c: Re-generate.
5642 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5643 * TODO (REGISTER_BYTES): Delete reference.
5644 * alpha-tdep.c (alpha_gdbarch_init): Update.
5645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5646 * x86-64-tdep.c (x86_64_init_abi): Update.
5647 * vax-tdep.c (vax_gdbarch_init): Update.
5648 * v850-tdep.c (v850_gdbarch_init): Update.
5649 * sparc-tdep.c (sparc_gdbarch_init): Update.
5650 * sh-tdep.c (sh_gdbarch_init): Update.
5651 * s390-tdep.c (s390_gdbarch_init): Update.
5652 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5653 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5654 (ns32k_gdbarch_init_32382): Update.
5655 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5656 * mcore-tdep.c (mcore_gdbarch_init): Update.
5657 * m68k-tdep.c (m68k_gdbarch_init): Update.
5658 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5659 * ia64-tdep.c (ia64_gdbarch_init): Update.
5660 * i386-tdep.c (i386_gdbarch_init): Update.
5661 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5662 * hppa-tdep.c (hppa_gdbarch_init): Update.
5663 * h8300-tdep.c (h8300_gdbarch_init): Update.
5664 * frv-tdep.c (frv_gdbarch_init): Update.
5665 * cris-tdep.c (cris_gdbarch_init): Update.
5666 * avr-tdep.c (avr_gdbarch_init): Update.
5667 * arm-tdep.c (arm_gdbarch_init): Update.
5668 * sparc-tdep.c (sparc_pop_frame): Update.
5669 * rs6000-tdep.c (rs6000_pop_frame): Update.
5670 * remote.c (init_remote_state): Update.
5671 (remote_prepare_to_store): Update.
5672 * remote-vx.c (vx_prepare_to_store): Update.
5673 * remote-sds.c (sds_fetch_registers): Update.
5674 (sds_prepare_to_store): Update.
5675 * remote-array.c: Update.
5676 * regcache.c (init_legacy_regcache_descr): Update.
5677 (init_regcache_descr): Update.
5678 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5679 (mips_o64_extract_return_value): Update.
5680 * irix5-nat.c (fetch_core_registers): Update.
5681 * irix4-nat.c (fetch_core_registers): Update.
5682 * i386-tdep.h: Update.
5683 * hppa-tdep.c (pa_do_registers_info): Update.
5684 (pa_do_strcat_registers_info): Update.
5685 * cris-tdep.c (cris_register_bytes_ok): Update.
5686 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5687 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5688 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5689 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5690 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5691 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5692 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5693 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5694 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5695 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5696 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5697 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5698 (REGISTER_BYTES_OK): Update.
5699 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5700 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5704 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5705 (vax_print_insn, print_insn_arg): Remove static functions.
5706 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5707 print_insn_vax from opcodes library.
5708 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5712 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5713 * target.h (memory_breakpoint_from_pc): Delete declaration.
5714 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5715 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5716 * monitor.c (monitor_insert_breakpoint): Use
5717 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5718 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5719 * gdbarch.h, gdbarch.c: Re-generate.
5720 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5721 (sparc_gdbarch_init): Set breakpoint_from_pc to
5722 sparc_breakpoint_from_pc.
5723 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5724 (BREAKPOINT_FROM_PC): Define.
5725 (sparc_breakpoint_from_pc): Declare.
5726 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5727 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5728 (BREAKPOINT_FROM_PC): Define.
5729 (BREAKPOINT): Delete macro.
5730 * target.h: Update comment.
5731 * s390-tdep.c (s390_gdbarch_init): Update comments.
5732 * remote.c: Update comments.
5733 * remote-mips.c: Update comments.
5734 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5735 * mem-break.c: Update comment.
5736 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5737 (ia64_memory_insert_breakpoint): Update.
5738 * config/sparc/tm-sparc.h: Update comment.
5739 * config/pa/tm-hppa64.h: Update comment.
5740 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5741 (rs6000_breakpoint_from_pc): Update.
5742 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5743 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5744 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5745 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5746 (mips_breakpoint_from_pc): Update.
5747 (mips_dump_tdep): Update.
5749 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5750 * minsyms.c (lookup_minimal_symbol): Inline
5751 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5753 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5754 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5755 * p-lang.c (pascal_printstr): Ditto.
5756 * objc-lang.c (objc_printstr): Ditto.
5757 * m2-lang.c (m2_printstr): Ditto.
5758 * jv-valprint.c (java_print_value_fields): Ditto.
5759 * f-lang.c (f_printstr): Ditto.
5760 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5761 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5762 for repeat_count_threshold.
5763 * Makefile.in (cp-valprint.o): Update dependencies.
5767 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5768 (examine_prologue): Support looking through leaf functions, knowing
5769 they start with mov r2,r12. Support skipping over indirect stores
5770 of the input registers. Upon hitting a non-nop branch instruction
5771 or predicated instruction, bail out by setting lim_pc to the current
5772 pc value in the loop. At the end, if the lim_pc value is still
5773 beyond our calculated value and we have trust_limit set,
5774 use the lim_pc value.
5778 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5779 generic_find_dummy_frame.
5780 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5781 (deprecated_generic_find_dummy_frame): Update.
5782 (deprecated_read_register_dummy): Update.
5783 * frame.c (deprecated_generic_get_saved_register): Update.
5787 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5788 (avr_gdbarch_init): Set breakpoint_from_pc method.
5792 * regcache.c (build_regcache): Set deprecated_register_valid
5794 (deprecated_grub_regcache_for_register_valid): Delete function.
5795 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5801 * symtab.c (lookup_symbol_aux): Delete calls to
5802 lookup_symbol_aux_minsyms.
5803 (lookup_symbol_aux_minsyms): Comment out function and
5804 prototype. Delete lookup by mangled name.
5808 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5809 correctly indicate an empty stack and ``stack_allocated'' to the
5810 indicate the number of elements initially allocated.
5811 (dwarf_expr_grow_stack): Simplify method for computing new
5812 stack size. Don't loop infinitely if ``stack_len'' is zero.
5813 (execute_stack_op): Move ``ctx->in_reg'' initialization
5814 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5815 be used in conjuction with DW_OP_piece. Revise error message
5820 * MAINTAINERS: Update my email address.
5821 * avr-tdep.c: Ditto.
5825 * symtab.h (enum domain_enum): Rename from namespace_enum.
5826 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5827 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5828 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5829 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5830 TYPES_NAMESPACE, METHODS_NAMESPACE.
5831 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5832 (struct symbol, struct partial_symbol): Rename field
5833 'namespace_enum namespace' to 'domain_enum domain'.
5834 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5835 Delete old define kludge for namespace.
5837 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5838 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5839 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5840 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5841 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5842 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5843 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5844 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5845 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5846 occurrences of the above.
5850 * Makefile.in (install-only): Use $(SHELL) when running
5855 * MAINTAINERS (write after approval): Add myself.
5857 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5858 second and third arguments.
5859 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5860 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5864 * defs.h (store_address): Delete declaration.
5865 findvar.c (store_address): Delete function.
5866 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5867 store_unsigned_integer.
5868 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5869 * v850-tdep.c (v850_push_arguments): Ditto.
5870 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5871 * sh-tdep.c (sh64_get_saved_register): Ditto.
5872 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5873 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5874 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5875 (mips_get_saved_register): Ditto.
5876 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5877 (find_func_descr, ia64_push_arguments): Ditto.
5878 * i386-tdep.c (i386_push_arguments): Ditto.
5879 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5880 * frv-tdep.c (frv_push_arguments): Ditto.
5881 * frame.c (legacy_saved_regs_prev_register): Ditto.
5882 (deprecated_generic_get_saved_register): Ditto.
5883 * findvar.c (unsigned_address_to_pointer): Ditto.
5884 * dwarf2read.c (dwarf2_const_value): Ditto.
5885 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5886 * alpha-tdep.c (alpha_push_arguments): Ditto.
5890 * NEWS: Mention that the hppa-hpux port has been partially
5891 multiarched (32bit ABIT only, so far).
5895 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5896 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5897 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5898 sim/testsuite/sim/arm/misaligned2.ms, and
5899 sim/testsuite/sim/arm/misaligned3.ms.
5900 * disasm.h (struct ui_file): Add opaque struct declaration.
5901 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5902 * frame.h (struct ui_file): Ditto.
5906 * value.h: Pretty print.
5910 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5914 * regcache.h (max_register_size): Delete declaration.
5915 * regcache.c (max_register_size): Delete function.
5916 (struct regcache_descr): Delete field "max_register_size".
5917 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5918 registers fit in MAX_REGISTER_SIZE.
5919 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5920 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5921 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5922 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5923 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5924 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5925 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5926 * dve3900-rom.c, hppa-tdep.c: Ditto.
5930 * valops.c (push_word): Fix typo.
5934 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5935 * gdbarch.h: Re-generate.
5936 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5937 (legacy_max_register_raw_size): Delete declaration.
5938 * regcache.c (legacy_max_register_raw_size): Delete function.
5939 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5940 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5941 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5942 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5943 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5944 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5945 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5946 * findvar.c, dwarf2cfi.c: Ditto.
5950 * mips-tdep.c (read_signed_register): New function, moved to here
5952 (read_signed_register_pid): Ditto.
5953 * regcache.c (read_signed_register_pid): Delete function, moved to
5955 (read_signed_register): Ditto.
5956 * regcache.h (read_signed_register): Delete declaration.
5957 (read_signed_register_pid): Delete declaration.
5961 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5962 * gdbarch.h: Re-generate.
5963 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5964 (legacy_max_register_virtual_size): Delete declaration.
5965 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5966 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5967 * tracepoint.c (memrange_sortmerge): Ditto.
5968 * sparc-tdep.c (sparc_print_registers): Ditto.
5969 * regcache.c (legacy_max_register_virtual_size): Delete function.
5973 * fork-child.c (escape_bang_in_quoted_argument): New function.
5974 (fork_inferior): Escape '!' characters in quoted arguments
5979 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5980 the language of the CU is not currently supported by GDB.
5984 * defs.h (language): Add language_minimal enum value.
5985 * c-lang.c (minimal_language_defn): New language definition.
5986 (_initialize_c_language): Add the new minimal language to the list
5987 of languages known to GDB.
5991 * frame.c (get_frame_type): Don't attempt to lazily initialize
5992 frame's unwinder for legacy frames.
5996 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5997 and "regcache" parameters.
5998 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6002 * dwarf2read.c (dwarf_decode_lines): Only use output of
6003 check_cu_functions() when calling record_line(). Do not update
6004 the current address.
6008 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6013 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6014 'maint info symtabs' and 'maint info psymtabs'.
6015 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6016 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6017 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6018 Declarations updated.
6019 * maint.c (maintenance_list_command): Delete.
6020 (_initialize_maint_cmds): Update calls to add_cmd.
6021 * gdbcmd.h (maintenancelistlist): Delete declaration.
6022 * cli/cli-cmds.c (maintenancelistlist): Delete.
6023 (init_cmd_lists): Don't initialize it.
6024 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6028 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6030 (d10v_print_registers_info): Update.
6031 (d10v_dmap_register, d10v_imap_register): Delete functions.
6032 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6033 and "imap_register".
6034 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6035 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6036 * arch-utils.c (generic_remote_translate_xfer_address): Add
6037 "regcache" and "gdbarch" parameters.
6038 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6039 parameter. Change class to multi-arch.
6040 * gdbarch.h, gdbarch.c: Re-generate.
6041 * remote.c (remote_xfer_memory): Use
6042 gdbarch_remote_translate_xfer_address.
6046 * infrun.c (prev_pc): Move declaration ahead of proceed().
6047 (proceed): Refresh prev_pc value before resuming.
6048 (stop_stepping): Remove code to refresh prev_pc.
6052 * nto-tdep.c: Removed stray comment.
6056 * i386-nto-tdep.c: Fix old K&R function definitions.
6057 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6058 Also change add_show_from_set() call to add_setshow_cmd().
6059 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6063 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6064 (fprint_dummy_frames): New function.
6065 (maintenance_print_dummy_frames): New function.
6066 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6067 * frame.c (fprint_frame_id): Make global.
6068 * frame.h (fprint_frame_id): Declare.
6069 * Makefile.in (dummy-frame.o): Update dependencies.
6073 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6074 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6075 SIZEOF_CALL_DUMMY_WORDS.
6076 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6077 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6078 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6079 CALL_DUMMY_BREAKPOINT_OFFSET.
6080 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6081 CALL_DUMMY_START_OFFSET.
6082 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6083 * gdbarch.h, gdbarch.c: Re-generate.
6084 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6085 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6086 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6087 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6088 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6089 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6090 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6091 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6092 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6093 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6094 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6095 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6096 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6097 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6098 * config/sparc/tm-sparc.h: Update.
6102 * configure.tgt: Add i[3456]86-*-nto*.
6103 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6104 * nto-tdep.c: New file. Neutrino target support routines.
6105 * nto-tdep.h: New file. Neutrino target header.
6106 * config/tm-qnxnto.h: New file.
6107 * config/i386/i386nto.mt: New file.
6108 * config/i386/tm-i386nto.h: New file.
6112 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6113 (load_infrun_state): Ditto.
6114 (struct thread_info): Drop "prev_func_name" field.
6115 * thread.c (load_infrun_state): Update.
6116 (save_infrun_state): Update.
6117 * infrun.c (prev_func_name): Delete variable.
6118 (init_wait_for_inferior): Do not clear prev_func_name.
6119 (stop_stepping, keep_going, context_switch): Do not swap
6121 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6122 instead of PC_IN_SIGTRAMP.
6126 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6127 REGISTER_BYTE with register_offset_hack.
6128 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6129 that REGISTER_BYTE is consistent with the regcache.
6130 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6131 * gdbarch.h, gdbarch.c: Regenerate.
6135 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6136 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6138 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6143 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6144 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6145 (mi-cmd-symbol.o): Add rule.
6149 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6150 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6151 * gdbarch.h, gdbarch.c: Re-generate.
6152 * d10v-tdep.c (d10v_push_dummy_code): New function.
6153 (d10v_gdbarch_init): Set push_dummy_code.
6154 * infcall.c (legacy_push_dummy_code): New function.
6155 (generic_push_dummy_code): New function.
6156 (push_dummy_code): New function.
6157 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6158 instead of dummy_addr, to push_dummy_call. Move call to
6159 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6161 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6165 * disasm.h (print_insn): Declare.
6166 * disasm.c (init_gdb_disassemble_info): New function.
6167 (gdb_disassembly): Call init_gdb_disassemble_info.
6168 (gdb_print_insn): New function.
6169 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6170 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6171 * mcore-tdep.c: Include "disasm.h"
6172 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6173 * d10v-tdep.c: Include "disasm.h".
6174 (display_trace): Call gdb_print_insn, instead of print_insn.
6175 (print_insn): Delete function.
6176 * printcmd.c: Include "disasm.h".
6177 (print_insn): Delete function.
6178 (print_formatted): Call gdb_print_insn, instead of print_insn.
6179 * Makefile.in (printcmd.o): Update dependencies.
6180 (mcore-tdep.o, d10v-tdep.o): Ditto.
6184 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6185 PC_REGNUM, re-indent.
6186 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6187 PC_REGNUM isn't set.
6189 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6190 * gdbarch.h, gdbarch.c: Re-generate.
6191 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6192 register_virtual_size, pc_regnum, or register_bytes.
6193 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6194 (d10v_register_type): Use D10V_PC_REGNUM.
6195 (d10v_print_registers_info, d10v_read_pc): Ditto.
6196 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6197 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6201 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6202 the name with mstrsave.
6206 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6207 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6208 (host_charset_name, target_charset_name): New vars for use by
6210 (host_charset_enum, target_charset_enum): New enums for set/show
6212 (set_charset_sfunc, set_host_charset_sfunc,
6213 set_target_charset_sfunc): New functions.
6214 (set_host_charset, set_target_charset): Make static.
6215 (list_charsets, set_host_charset_command,
6216 set_target_charset_command): Delete functions.
6217 (show_charset_command): Rewrite as....
6218 (show_charset): Hook this up with the set/show command mechanism.
6219 (_initialize_charset): Change names of charsets to match the
6220 set/show enums. Use host_charset_name and target_charset_name.
6221 Use set/show mechanism for charset, host-charset, target-charset
6222 commands. Do not make 'show host-charset' and 'show
6223 target-charset' be aliases of 'show charset'.
6225 * charset.h (set_host_charset, set_target_charset): Don't export,
6226 they are not used outside the file.
6230 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6231 (gdb_disassembly): Make "di" non static, always initialize and
6232 cleanup. Always use dis_asm_read_memory.
6233 (gdb_dis_asm_read_memory): Delete function.
6237 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6238 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6242 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6243 "tm_print_insn_info".
6244 (TARGET_PRINT_INSN_INFO): Delete macro.
6245 (dis_asm_read_memory): Delete function declaration.
6246 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6247 (tm_print_insn_info): Delete variable definition.
6248 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6249 * gdbarch.h, gdbarch.c: Re-generate.
6250 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6251 "deprecated_tm_print_insn_info".
6252 * mcore-tdep.c (mcore_dump_insn): Ditto.
6253 * mips-tdep.c (mips_gdbarch_init): Ditto.
6254 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6255 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6256 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6257 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6258 instead of TARGET_PRINT_INSN_INFO, add comment.
6259 * s390-tdep.c (s390_get_frame_info): Instead of
6260 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6261 (s390_check_function_end, s390_is_sigreturn): Ditto.
6262 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6263 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6264 * disasm.c: Include "gdbcore.h".
6265 (_initialize_disasm): New function, initialize
6266 "deprecated_tm_print_insn_info".
6267 (deprecated_tm_print_insn_info): New variable.
6268 (dis_asm_read_memory): Moved from "corefile.c", made static.
6269 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6270 * Makefile.in (disasm.o): Update dependencies.
6274 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6278 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6279 * infcall.c (find_function_addr): Make non-static.
6280 * infcall.h (find_function_addr): Declare.
6281 * Makefile.in (eval.o): Update dependencies.
6285 * symtab.c (symbol_find_demangled_name): Check for and demangle
6287 (symbol_init_demangled_name): Init for language_objc as well.
6291 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6292 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6293 * gdbarch.h, gdbarch.c: Re-generate.
6294 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6295 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6296 * inferior.h (deprecated_read_fp): Rename read_fp.
6297 (generic_target_read_fp): Delete declaration.
6298 * regcache.c (generic_target_read_fp): Delete function.
6299 (deprecated_read_fp): Replace read_fp, use
6300 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6301 * d10v-tdep.c (d10v_read_fp): Delete function.
6302 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6304 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6305 deprecated_target_read_fp to generic_target_read_fp.
6306 * sh-tdep.c (sh_gdbarch_init): Ditto.
6307 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6308 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6309 * frv-tdep.c (frv_gdbarch_init): Ditto.
6311 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6312 deprecated_fp_regnum.
6313 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6314 * vax-tdep.c (vax_gdbarch_init): Ditto.
6315 * v850-tdep.c (v850_gdbarch_init): Ditto.
6316 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6317 * sh-tdep.c (sh_gdbarch_init): Ditto.
6318 * s390-tdep.c (s390_gdbarch_init): Ditto.
6319 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6320 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6321 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6322 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6324 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6325 * i386-tdep.c (i386_gdbarch_init): Ditto.
6326 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6327 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6328 * frv-tdep.c (frv_gdbarch_init): Ditto.
6329 * cris-tdep.c (cris_gdbarch_init): Ditto.
6330 * avr-tdep.c (avr_gdbarch_init): Ditto.
6331 * arm-tdep.c (arm_gdbarch_init): Ditto.
6332 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6334 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6335 * v850-tdep.c (v850_gdbarch_init): Ditto.
6336 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6337 * sh-tdep.c (sh_gdbarch_init): Ditto.
6338 * s390-tdep.c (s390_gdbarch_init): Ditto.
6339 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6340 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6341 * mips-tdep.c (mips_gdbarch_init): Ditto.
6342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6343 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6344 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6345 * frv-tdep.c (frv_gdbarch_init): Ditto.
6346 * avr-tdep.c (avr_gdbarch_init): Ditto.
6347 * arm-tdep.c (arm_gdbarch_init): Ditto.
6349 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6350 DEPRECATED_FP_REGNUM.
6351 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6352 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6353 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6354 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6355 (sparc32_register_virtual_type): Ditto.
6356 * sh-tdep.c (sh64_frame_chain): Ditto.
6357 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6358 (sh_nofp_frame_init_saved_regs): Ditto.
6359 (sh64_nofp_frame_init_saved_regs): Ditto.
6360 (sh_fp_frame_init_saved_regs): Ditto.
6361 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6362 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6363 * procfs.c (procfs_fetch_registers): Ditto.
6364 (procfs_store_registers): Ditto.
6365 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6366 (store_inferior_registers, fetch_core_registers): Ditto.
6367 (fetch_kcore_registers, clear_regs): Ditto.
6368 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6369 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6370 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6371 * nlm/i386.c (do_status): Ditto.
6372 * mipsv4-nat.c (supply_gregset): Ditto.
6373 * mips-tdep.c: Ditto for comments.
6374 * mips-nat.c (fetch_inferior_registers): Ditto.
6375 (store_inferior_registers, fetch_core_registers): Ditto.
6376 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6377 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6378 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6379 (i386_do_pop_frame, i386_register_type): Ditto.
6380 * hppa-tdep.c (hppa_frame_chain): Ditto.
6381 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6382 (hppa_pop_frame, hppa_read_fp): Ditto.
6383 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6384 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6385 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6386 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6387 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6388 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6389 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6390 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6391 * blockframe.c: Ditto for comments.
6392 * arch-utils.h: Ditto for comments.
6393 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6394 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6395 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6396 * alpha-tdep.h: Ditto for comments.
6397 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6398 (alpha_cannot_store_register): Ditto.
6399 (alpha_push_dummy_frame): Ditto.
6400 * alpha-nat.c (supply_gregset): Ditto.
6402 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6403 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6404 * config/sparc/tm-sparc.h: Update comment.
6406 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6407 deprecated_read_fp instead of TARGET_READ_FP.
6408 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6409 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6410 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6411 deprecated_read_fp instead of read_fp.
6412 * s390-tdep.c (s390_push_arguments): Ditto.
6413 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6414 * frame.h: Ditto in comments.
6415 * frame.c (legacy_get_prev_frame): Ditto.
6416 * dummy-frame.c (dummy_frame_this_id): Ditto.
6417 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6421 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6422 * gdbarch.h, gdbarch.c: Re-generate.
6423 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6424 * vax-tdep.c (_initialize_vax_tdep): Update.
6425 * v850-tdep.c (_initialize_v850_tdep): Update.
6426 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6427 * s390-tdep.c (_initialize_s390_tdep): Update.
6428 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6429 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6430 * mips-tdep.c (_initialize_mips_tdep): Update.
6431 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6432 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6433 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6434 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6435 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6436 * frv-tdep.c (_initialize_frv_tdep): Update.
6437 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6438 (_initialize_cris_tdep): Update.
6439 * arch-utils.c (legacy_print_insn): Update.
6440 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6444 * linespec.c (decode_objc): New function to decode ObjC calls
6445 (decode_line_1): Check for ObjC calls (using decode_objc)
6446 * Makefile (linespec.o): Update dependencies.
6450 * breakpoint.h (struct breakpoint_ops): New.
6451 (struct breakpoint): Add ops member.
6453 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6454 (mention): Use new breakpoint ops member.
6455 (set_raw_breakpoint): Initialize ops field to NULL.
6456 (print_exception_catchpoint, print_one_exception_catchpoint)
6457 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6458 (gnu_v3_exception_catchpoint_ops): New.
6459 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6463 * Makefile.in (COMMON_OBS): Add objc-lang.o
6467 * d10v-tdep.c (print_insn): Delete function.
6468 (display_trace): Use TARGET_PRINT_INSN.
6469 (_initialize_d10v_tdep): Do not set tm_print_insn.
6470 (d10v_gdbarch_init): Set print_insn.
6474 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6475 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6476 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6477 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6478 (nr_dmap_regs, a0_regnum): ... new functions.
6479 (d10v_print_registers_info): Use a0_regnum, use register_size.
6480 (d10v_register_byte): Delete function.
6481 (d10v_register_raw_size): Delete function.
6482 (d10v_register_type): Use a0_regnum.
6483 (d10v_print_registers_info): Use a0_regnum.
6484 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6485 (d10v_gdbarch_init): Do not set register_byte or
6486 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6487 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6489 (trace_command): Use XCALLOC.
6490 (print_insn): Delete reference to tm_print_insn.
6491 (saved_regs_unwinder): Use store_unsigned_integer instead of
6493 * frame.h (FRAME_OBSTACK_CALLOC): Define
6497 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6501 * objc-lang.c: Include "valprint.h"
6502 * Makefile.in (objc-lang.o): Update dependencies.
6506 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6507 architecture dependant compilation and mark as unimplemented
6508 (until they get put in the gdbarch vector).
6512 * cp-support.c (cp_find_first_component): Accept 'operator' in
6517 * infcall.c (call_function_by_hand): Eliminate redundant
6518 indentation. Move "saved_async" and "old_cleanups" to where they
6523 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6524 and "buffer". Move the "name" code to where it is needed.
6528 * infcall.c (call_function_by_hand): Move variables "start_sp",
6529 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6530 code to ON_STACK switch branch.
6534 * infcall.c (call_function_by_hand): Make declaration of "i",
6535 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6540 * infcall.c (call_function_by_hand): Delete variable
6541 "n_method_args". Localize "param_type"'s declaration to the loop
6542 that it is used. Reinstate code assigning to said variable -
6543 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6544 Rationalize code using "param_type".
6548 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6549 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6550 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6551 to DEPRECATED_PUSH_RETURN_ADDRESS.
6555 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6556 on the DWARF2 register number prior to fetching a register.
6560 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6561 Update all the tests using SOFT_FLOAT considering the fact that
6562 this macro was always set to 0.
6563 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6564 considering the fact that this macro was always set to 0.
6565 * hppa-tdep.h (hppa_store_return_value): Likewise.
6566 (hppa_extract_return_value): Likewise.
6570 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6571 the hppa-pro target only.
6575 Ongoing multi-arch conversion effort for HP/UX:
6576 * config/pa/tm-hppa.h: Move all macro that are no longer
6577 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6578 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6582 * config/pa/tm-hppa.h: Obsolete a section that was only used
6587 Ongoing multi-arch conversion for HP/UX.
6588 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6589 if already defined (allows hppa64 to stay non-multiarched for now).
6590 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6594 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6598 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6599 "i386_num_mmx_regs".
6603 * infcall.c: New file.
6604 * infcall.h: New file.
6605 * valarith.c: Include "infcall.h".
6606 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6607 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6608 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6609 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6610 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6611 (SFILES): Add "infcall.c"
6612 (COMMON_OBS): Add "infcall.o".
6613 (infcall.o): Specify dependencies.
6614 * value.h (call_function_by_hand): Delete declaration.
6615 * inferior.h (run_stack_dummy): Delete declaration.
6616 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6617 (run_stack_dummy): Move to "infcall.c", merged into
6618 call_function_by_hand.
6619 * valops.c (call_function_by_hand): Moved to "infcall.c".
6620 (find_function_addr, value_arg_coerce): Ditto.
6621 (unwindonsignal_p, coerce_float_to_double): Ditto.
6622 (_initialize_valops): Move "set/show coerce-float-to-double", and
6623 "set/show unwindonsignal" commands to "infcall.c".
6624 * v850-tdep.c, target.h: Update comments.
6625 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6626 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6627 (sh64_init_extra_frame_info): Update comments.
6628 * mn10300-tdep.c: Update comments.
6629 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6630 * config/sparc/tm-sparc.h: Update comments.
6631 * breakpoint.h: Update comments.
6632 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6633 * arm-tdep.c: Update comment.
6637 * i386-tdep.c (i386_num_register_names): New variable.
6638 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6639 (MM0_REGNUM): Remove redundant parentheses in define.
6640 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6641 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6642 i386_mxcsr_regnum_p): Remove redundant parentheses.
6643 (i386_register_name): Use i386_num_register_names.
6645 * i386-tdep.c (i386_extract_return_value,
6646 i386_store_return_value): Correct check for availability of
6647 floating-point registers.
6649 * i386-tdep.c (i386_frame_num_args): Remove function.
6650 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6652 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6653 mmx_regnum_to_fp_regnum. Adjust all callers.
6655 * i386-tdep.c (i386_get_longjmp_target): Use
6656 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6657 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6662 * core-regset.c: Update comments to reflect reality. Re-order
6664 (fetch_core_registers): Use switch instead of if. Remove
6665 redundant prototype.
6669 * s390-tdep.c (s390_frame_align): New function.
6670 (s390_gdbarch_init): Register it with the gdbarch object.
6674 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6680 * gdb_gcore.sh: New script to create a core dump of a process.
6684 * values.c (value_being_returned): Don't fetch the return
6685 value if the return type is void.
6689 * thread-db.c: Reindented.
6693 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6694 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6723 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6724 the size of ``long double'' to 16, instead of 8.
6728 * i386-linux-nat.c: Add some whitespace to make things more
6730 (fetch_register, store_register, fetch_inferior_registers,
6731 store_inferior_registers): Get rid of assignment in if-statement.
6732 (store_register): Fix typo in error message.
6736 * utils.c (xmmalloc): Always allocate something, matches
6737 libiberty/xmalloc's semantics.
6738 (xmrealloc, xmcalloc): Ditto.
6742 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6744 (get_frame_type): Initialize unwind and type when needed.
6745 (get_frame_id, frame_register_unwind): Ditto.
6749 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6751 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6752 * sparcl-stub.c: Obsolete file.
6753 * config/sparc/tm-sparclet.h: Obsolete file.
6754 * sparclet-stub.c: Obsolete file.
6755 * sparclet-rom.c: Obsolete file.
6756 * sparcl-tdep.c: Obsolete file.
6757 * config/sparc/tm-sparclite.h: Obsolete file.
6758 * config/sparc/sparclite.mt: Obsolete file.
6759 * config/sparc/sparclet.mt: Obsolete file.
6760 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6761 sparc86x-*-* obsolete.
6765 * Makefile.in (SFILES): Add cp-namespace.c.
6766 (COMMON_OBS): Add cp-namespace.o.
6767 (block.o): Depend on gdb_obstack_h and cp_support_h.
6768 (buildsym.o): Depend on cp_support_h.
6769 (cp-namespace.o): New.
6770 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6771 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6772 (dwarf2read.o): Depend on cp_support_h.
6773 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6774 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6775 processing_current_namespace.
6776 (read_namespace): Update processing_current_namespace; check for
6777 anonymous namespaces.
6778 (dwarf2_name): New function.
6779 (dwarf2_extension): Ditto.
6780 * cp-support.h: Update copyright, contributors.
6781 Add inclusion guards.
6782 Add opaque declaration for structs obstack, block, symbol.
6783 (struct using_direct): New struct.
6784 Add declarations for cp_find_first_component,
6785 cp_entire_prefix_len, processing_has_namespace_info,
6786 processing_current_namespace, cp_is_anonymous,
6787 cp_add_using_directive, cp_initialize_namespace,
6788 cp_finalize_namespace, cp_set_block_scope,
6789 cp_scan_for_anonymous_namespaces.
6790 * cp-namespace.c: New file.
6791 * cp-support.c: Update copyright.
6792 Include ctype.h, gdb_assert.h, gdbcmd.h.
6793 New variable maint_cplus_cmd_list.
6794 (cp_find_first_component): New function.
6795 (cp_entire_prefix_len, maint_cplus_command)
6796 (first_component_command, _initialize_cp_support): Ditto.
6797 * buildsym.c: Include cp-support.h.
6798 New variable using_list.
6799 (add_symbol_to_list): Check for anonymous namespaces.
6800 (finish_block): Set block's scope.
6801 (start_symtab): Initialize C++ namespace support.
6802 (end_symtab): Finalize C++ namespace support.
6803 * block.h: Add opaque declarations for structs
6804 block_namespace_info, using_direct, and obstack.
6805 Add declarations for block_set_scope and block_set_using.
6806 (struct block): Add 'language_specific' member.
6807 (BLOCK_NAMESPACE): New macro.
6808 * block.c: Include gdb_obstack.h and cp-support.h.
6809 (struct block_namespace_info): New struct.
6810 (block_set_scope): New function.
6811 (block_set_using, block_initialize_namespace): Ditto.
6815 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6816 (locate_base): Return early if there aren't any link map offsets.
6817 (svr4_solib_create_inferior_hook): Warn if shared library support
6822 * symtab.c (symbol_set_names): Add prefix when storing Java names
6823 in hash table. Fix for PR java/1039.
6827 * symtab.c (symbol_set_names): Rename 'name' arg to
6828 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6829 * symtab.h: Change 'name' argument in declaration of
6830 symbol_set_names to 'linkage_name'.
6831 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6835 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6836 return the fully sign-extended register value.
6837 (get_frame_pointer): Ditto.
6838 (mips_pop_frame): Initialize "proc_desc" after checking for a
6843 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6844 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6845 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6846 (mips_push_register): Delete function.
6847 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6852 * symmisc.c: #include "gdb_regex.h".
6853 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6855 * maint.c (maintenance_list_command): New function.
6856 (_initialize_maint_cmds): Register the above as commands.
6857 * symtab.h (maintenance_list_symtabs,
6858 maintenance_list_psymtabs): New declarations.
6859 * cli/cli-cmds.c (maintenancelistlist): New variable.
6860 (init_cmd_lists): Initialize it.
6861 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6862 * gdbcmd.h (maintenancelistlist): New declaration.
6863 * Makefile.in (symmisc.o): Update dependencies.
6867 * s390-nat.c: Include asm/types.h for addr_t.
6871 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6872 actually incoming type.
6876 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6877 get_next_frame and get_frame_saved_regs.
6881 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6882 of gdbarch_num_regs.
6886 * frame.h: Mention what replaced what in "struct frame_info".
6887 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6888 deprecated_update_frame_base_hack and
6889 deprecated_update_frame_pc_hack.
6890 * hppa-tdep.c: Ditto.
6894 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6895 to read_reg and update its comment. Remove regnum member.
6896 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6897 Don't call read_reg when setting in_reg. Call read_reg to get
6898 the frame base if it's in a register. Return the register number
6899 on the stack instead of in the context. Remove extra arguments
6901 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6902 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6903 the register number on the expression stack.
6904 (needs_frame_read_reg): Remove extra arguments.
6908 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6910 (execute_stack_op): All callers updated.
6911 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6912 * dwarf2loc.c (find_location_expression): New function.
6913 (dwarf_expr_frame_base): Call it.
6914 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6915 (dwarf2_tracepoint_var_ref): New function, broken out from
6916 locexpr_tracepoint_var_ref.
6917 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6919 (loclist_read_variable, loclist_read_needs_frame): New functions.
6920 (loclist_describe_location, loclist_tracepoint_var_ref): New
6922 (dwarf2_loclist_funcs): New struct location_funcs.
6923 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6924 (struct dwarf2_locexpr_baton): Add comments.
6925 (dwarf2_loclist_funcs): New extern.
6926 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6927 base_address and base_known.
6928 (dwarf_loc_buffer): New variable.
6929 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6930 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6931 (dwarf2_has_info): Initialize dwarf_loc_offset.
6932 (dwarf2_build_psymtabs): Read in .debug_loc.
6933 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6935 (psymtab_to_symtab_1): Likewise. Move base address calculation
6937 (dwarf2_get_pc_bounds): ... here. Use the base address from
6939 (dwarf2_symbol_mark_computed): Handle location lists.
6943 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6944 if the linkage name demangled successfully.
6948 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6949 disassmbly_flavour): Removed.
6951 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6955 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6959 * frame.h (struct frame_info): Move definition from here ...
6960 * frame.c (struct frame_info): ... to here.
6964 * gdbthread.h (save_infrun_state): Delete parameter
6966 (struct thread_info): Delete field "prev_func_start".
6967 (load_infrun_state): Ditto.
6968 * thread.c (load_infrun_state, save_infrun_state): Update.
6969 * infrun.c (prev_func_start): Delete variable.
6970 (context_switch, init_wait_for_inferior): Update.
6971 (stop_stepping, keep_going): Update.
6975 * gdbarch.sh: Add missing opaque declarations.
6976 * gdbarch.h: Regnerate.
6977 * symtab.h: Add missing opaque declarations.
6978 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6979 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6980 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6981 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6982 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6983 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6984 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6985 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6986 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6987 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6988 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6989 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6990 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6994 * frame.c (get_frame_id): Return this frame's "id".
6995 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6997 (legacy_saved_regs_this_id): Replace function body with
6999 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7000 FRAME_OBSTACK_ZALLOC.
7001 (create_new_frame): Mark the frame ID as valid.
7005 * Makefile.in (libbfd_h): Added missing setting.
7006 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7007 according to the selected ABI.
7011 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7015 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7016 SAVED_PC_AFTER_CALL.
7017 * gdbarch.h, gdbarch.c: Regenerate.
7018 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7019 * x86-64-tdep.c (x86_64_init_abi): Update.
7020 * vax-tdep.c (vax_gdbarch_init): Update.
7021 * v850-tdep.c (v850_gdbarch_init): Update.
7022 * sparc-tdep.c (sparc_gdbarch_init): Update.
7023 * sh-tdep.c (sh_gdbarch_init): Update.
7024 * s390-tdep.c (s390_gdbarch_init): Update.
7025 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7026 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7027 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7028 * mips-tdep.c (mips_gdbarch_init): Update.
7029 * mcore-tdep.c (mcore_gdbarch_init): Update.
7030 * m68k-tdep.c (m68k_gdbarch_init): Update.
7031 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7032 * ia64-tdep.c (ia64_gdbarch_init): Update.
7033 (ia64_saved_pc_after_call): Update declaration.
7034 * i386ly-tdep.c (i386lynx_init_abi): Update.
7035 * i386-tdep.c (i386_gdbarch_init): Update.
7036 * hppa-tdep.c (hppa_gdbarch_init): Update.
7037 * h8300-tdep.c (h8300_gdbarch_init): Update.
7038 * frv-tdep.c (frv_gdbarch_init): Update.
7039 * cris-tdep.c (cris_gdbarch_init): Update.
7040 * avr-tdep.c (avr_gdbarch_init): Update.
7041 * arm-tdep.c (arm_gdbarch_init): Update.
7042 * alpha-tdep.c (alpha_gdbarch_init): Update.
7043 * ns32knbsd-nat.c (frame_num_args): Update.
7044 * ns32k-tdep.c (umax_frame_num_args): Update.
7045 * mips-tdep.c (mips_init_frame_pc_first): Update.
7046 * infrun.c (step_over_function): Update.
7047 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7048 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7049 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7050 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7051 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7052 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7053 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7054 * arch-utils.c (init_frame_pc_default): Update.
7055 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7056 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7061 * i387-tdep.c: Update copyright.
7062 (i387_to_double): Delete function.
7063 (double_to_i387): Delete function.
7067 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7068 frame's function's address. Simplify.
7069 (d10v_frame_unwind_cache): Check that the frame's function is
7074 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7075 call to set_gdbarch_deprecated_push_arguments.
7079 * frame.c (fprint_frame_id): New function.
7080 (fprint_frame_type, fprint_frame): New function.
7081 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7082 (create_sentinel_frame, get_frame_id): Ditto.
7083 (frame_id_p, frame_id_eq): Ditto.
7084 (frame_id_inner, create_new_frame): Ditto.
7085 (legacy_get_prev_frame, get_prev_frame): Ditto.
7086 (deprecated_update_frame_pc_hack): Ditto.
7087 (frame_register_unwind): Ditto.
7088 (deprecated_update_frame_base_hack): Ditto.
7092 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7093 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7094 frame_chain function.
7095 * Makefile.in: Add dependencies due to above change.
7099 * blockframe.c (legacy_frame_chain_valid): Move call to
7100 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7105 * frame.h (struct frame_id): Replace "pc" and "base" with
7106 "stack_addr" and "code_addr". Update comments.
7107 (frame_id_build): Update parameter names and comment.
7108 (struct frame_info): Replace "id_p" and "id" with "this_id".
7109 * dummy-frame.c (dummy_frame_this_id): Update.
7110 * breakpoint.c (print_one_breakpoint): Update.
7111 * frame.c (get_frame_id): Update.
7112 (get_frame_base, frame_id_build): Update.
7113 (create_sentinel_frame, legacy_get_prev_frame): Update.
7114 (deprecated_update_frame_base_hack): Update.
7115 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7116 (frame_id_inner): Ditto.
7120 * defs.h (gdb_print_host_address): Make "addr" parameter a
7122 * utils.c (gdb_print_host_address): Update.
7126 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7127 register number for R0 is 0.
7131 * frame.h (struct gdbarch): Add opaque structure definition
7132 to avoid a compilation warning on LynxOS 4.0.
7136 * frame.h (struct frame_info): Delete field "pc". Replace
7137 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7139 * frame.c (frame_pc_unwind): Update.
7140 (create_sentinel_frame): Do not set "pc".
7141 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7142 (get_frame_pc): Call frame_pc_unwind.
7143 (deprecated_update_frame_pc_hack): Update.
7144 (create_new_frame): Use "pc" not "->pc".
7148 * frame.c (get_frame_id): Eliminate code updating "frame".
7149 (legacy_get_prev_frame): Ditto.
7150 (get_frame_base): Return id.base directly.
7151 (deprecated_update_frame_base_hack): Update "id.base".
7152 * frame.h (struct frame_info): Delete field "frame".
7156 * NEWS: Mention that the "Sequent family" is obsolete.
7157 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7158 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7159 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7160 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7161 * config/i386/tm-ptx4.h: Obsolete file.
7162 * config/i386/tm-ptx.h: Obsolete file.
7163 * symm-tdep.c: Obsolete file.
7164 * config/i386/symmetry.mt: Obsolete file.
7165 * config/i386/tm-symmetry.h: Obsolete file.
7166 * symm-nat.c: Obsolete file.
7167 * config/i386/nm-symmetry.h: Obsolete file.
7168 * config/i386/xm-symmetry.h: Obsolete file.
7169 * config/i386/symmetry.mh: Obsolete file.
7170 * config/i386/nm-ptx4.h: Obsolete file.
7171 * config/i386/ptx4.mh: Obsolete file.
7172 * config/i386/ptx.mt: Obsolete file.
7173 * config/i386/ptx.mh: Obsolete file.
7174 * config/i386/xm-ptx4.h: Obsolete file.
7175 * config/i386/xm-ptx.h: Obsolete file.
7179 Obsolete mips*-*-mach3*.
7180 * NEWS: Mention that mips*-*-mach3* is obsolete.
7181 * m3-nat.c: Obsolete file.
7182 * config/nm-m3.h: Obsolete file.
7183 * config/mips/tm-mipsm3.h: Obsolete file.
7184 * config/mips/mipsm3.mt: Obsolete file.
7185 * config/mips/mipsm3.mh: Obsolete file.
7186 * config/mips/xm-mipsm3.h: Obsolete file.
7187 * mipsm3-nat.c: Obsolete file.
7188 * configure.host: Obsolete mips-dec-mach3*.
7189 * configure.tgt: Obsolete mips*-*-mach3*.
7193 * doublest.h: Update copyright.
7194 (deprecated_store_floating, deprecated_extract_floating): Rename
7195 store_floating and extract_floating. Update comments.
7196 * doublest.c: Update copyright.
7197 (extract_floating_by_length): Replace extract_floating.
7198 (store_floating_by_length): Replace store_floating.
7199 (deprecated_extract_floating): New function.
7200 (deprecated_store_floating): New function.
7201 (extract_typed_floating): Call extract_floating_by_length.
7202 (store_typed_floating): Call store_floating_by_length.
7203 * x86-64-tdep.c (x86_64_store_return_value): Update.
7204 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7205 (sh64_extract_return_value): Update.
7206 (sh_sh4_register_convert_to_virtual): Update.
7207 (sh_sh64_register_convert_to_virtual): Update.
7208 (sh_sh4_register_convert_to_raw): Update.
7209 (sh_sh64_register_convert_to_raw): Update.
7210 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7211 (rs6000_register_convert_to_raw): Update.
7212 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7213 (ia64_register_convert_to_raw): Update.
7214 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7215 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7216 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7217 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7218 (alpha_register_convert_to_raw): Update.
7222 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7223 * gdbarch.h, gdbarch.c: Re-generate.
7224 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7225 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7226 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7227 conditionally, use frame_pc_unwind as an alternative. Add
7229 * arch-utils.c (init_frame_pc_default): Only call
7230 SAVED_PC_AFTER_CALL when available.
7234 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7235 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7236 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7237 (start_remote): Ditto.
7238 (handle_inferior_event): Ditto.
7239 (save_inferior_status): Ditto.
7240 (restore_inferior_status): Ditto.
7241 * infcmd.c (attach_command): Ditto.
7242 * fork-child.c (startup_inferior): Ditto.
7243 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7244 * alpha-tdep.c (heuristic_proc_start): Ditto.
7245 * mips-tdep.c (heuristic_proc_start): Ditto.
7246 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7247 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7248 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7249 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7250 * remote-vx.c (vx_create_inferior): Ditto.
7254 * infrun.c (stop_soon_quietly): Make it an enum, to better
7255 override the default behavior of handle_inferior_event.
7256 (clear_proceed_status): Update uses of stop_soon_quietly to
7257 reflect that it is now an enum.
7258 (start_remote): Ditto.
7259 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7260 is set to handle the new GNU/Linux kernel behavior for
7261 attach/sigstop. Update uses of stop_soon_quietly.
7262 * inferior.h (enum stop_kind): New enum.
7263 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7264 Reset normal handle_inferior_event behavior, afterwards.
7265 * fork-child.c (startup_inferior): Update.
7266 * alpha-tdep.c (heuristic_proc_start): Update.
7267 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7268 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7269 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7270 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7271 * remote-vx.c (vx_create_inferior): Update.
7272 * mips-tdep.c (heuristic_proc_start): Update.
7276 * disasm.c (dump_insns): Move variables inside loop, or they will
7277 be freed more than once, causing wild memory corruptions.
7278 (gdb_disassembly): Look for the substring "-thread",
7279 instead of "-threads" in the target name, to make sure to find
7280 the 'multi-thread' target. Also, make sure we do the right thing
7281 with the "core" target.
7285 * mips-tdep.c (mips_print_fp_register): New function, created from
7286 do_fp_register_row(). Registers are now (also) printed as hex.
7287 Only one register is printed per row.
7288 (mips_print_register, do_fp_register_row): Print floating point
7289 registers with mips_print_fp_register().
7293 * valprint.h (inspect_it): Add extern declaration.
7294 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7295 (selectors_info, classes_info): Ditto.
7296 (find_objc_msgcall): Fix indentation.
7297 (objc_printstr): Delete extern declarations.
7299 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7303 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7305 * frame.c (legacy_saved_regs_this_id): Update.
7306 (legacy_get_prev_frame): Update.
7307 * xstormy16-tdep.c: Update comment.
7308 * sparc-tdep.c (sparc_frame_chain): Update comment.
7309 * blockframe.c (legacy_frame_chain_valid): Update.
7313 * valprint.c (val_print_type_code_int): Delete #ifdef
7314 PRINT_TYPELESS_INTEGER code.
7316 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7317 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7318 multi-arch definition.
7319 * gdbarch.h: Re-generate.
7323 Eliminate FRAME_FIND_SAVED_REGS.
7324 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7325 Change FSR parameter to a pointer.
7326 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7327 Assume FSR parameter is a pointer.
7328 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7330 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7331 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7332 saved_regs a pointer.
7333 (hppa_frame_saved_pc): Ditto.
7334 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7335 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7337 (restore_pc_queue): Make fsr a pointer.
7338 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7339 (hppa_frame_chain): Make saved_regs a pointer, call
7340 hppa_frame_init_saved_regs.
7341 * sparc-tdep.c: Include "gdb_assert.h".
7342 (sparc_frame_find_saved_regs): Replace internal_error with
7344 * remote-vxsparc.c (vx_read_register): Delete reference to
7345 FRAME_FIND_SAVED_REGS.
7346 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7347 * gdbarch.h: Regenerate.
7348 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7349 (deprecated_get_frame_saved_regs): Delete declaration.
7350 (struct frame_saved_regs): Delete definition.
7351 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7352 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7353 (hppa_frame_find_saved_regs): Delete declaration.
7354 (FRAME_FIND_SAVED_REGS): Delete macro.
7355 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7356 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7357 FRAME_FIND_SAVED_REGS in comment.
7361 * frame.c (frame_func_unwind, get_frame_func): New functions.
7362 * frame.h (get_frame_func, frame_func_unwind): Declare.
7363 (struct frame_info): Add field "prev_func" for caching the
7364 previous frame's function address.
7365 * arm-tdep.c (arm_frameless_function_invocation): Combine
7366 get_pc_function_start and get_frame_pc into get_frame_func.
7367 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7368 (sh64_nofp_frame_init_saved_regs): Ditto.
7369 * s390-tdep.c (s390_function_start): Ditto.
7370 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7371 (rs6000_frameless_function_invocation): Ditto.
7372 (rs6000_frame_saved_pc): Ditto.
7373 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7374 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7375 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7376 (i386_frame_init_saved_regs): Ditto.
7377 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7378 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7379 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7380 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7381 * blockframe.c (frameless_look_for_prologue): Ditto.
7385 * frame.c (legacy_get_prev_frame): Link prev to next at the
7386 function start. Update comments.
7390 * frame.c (get_frame_id): Update comment.
7391 (legacy_get_prev_frame): Update comment.
7392 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7393 * gdbarch.h: Regenerate.
7394 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7395 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7399 * stack.c (print_frame_info): Use get_frame_pc.
7403 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7404 the frame's type from the unwinder.
7405 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7406 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7407 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7408 (get_frame_base_address): Use get_frame_type.
7409 (get_frame_locals_address, get_frame_args_address): Ditto.
7410 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7411 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7412 (struct frame_info): Add comment explaining why the frame contains
7414 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7415 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7416 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7418 * frame-unwind.h: Include "frame.h".
7419 (struct frame_unwind): Add "type" field.
7420 * Makefile.in (frame_unwind_h): Add $(frame_h).
7424 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7425 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7426 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7428 (d10v_unwind_dummy_id): Use frame_id_build.
7429 * frame.c (find_frame_sal): Use get_frame_pc.
7430 (create_new_frame): Use deprecated_update_frame_pc_hack and
7431 deprecated_update_frame_base_hack.
7432 (create_sentinel_frame): Add comment about ->pc going away.
7433 (get_prev_frame): Add comment about ->pc going away.
7434 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7435 frame_id_build, deprecated_update_frame_pc_hack and
7436 deprecated_update_frame_base_hack.
7437 (select_frame): Use get_frame_pc.
7438 (legacy_saved_regs_this_id): Use frame_id_build.
7442 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7443 signed integer case.
7444 (classify_argument): Handle enumerations and references.
7448 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7453 * gdb/objc-lang.c (selectors_info): Replace calls to
7454 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7455 SYMBOL_NATURAL_NAME.
7456 (classes_info, find_methods): Likewise.
7460 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7461 ``mach'' to the value determined by bfd_default_set_arch_mach().
7465 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7466 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7467 (mi-cmd-file.o): Update dependencies.
7471 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7472 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7476 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7477 * language.h (struct language_defn): Add la_demangle.
7478 (language_demangle): Declare.
7479 * language.c (language_demangle): New function.
7480 (unk_lang_demangle): Likewise.
7481 (unknown_language_defn, auto_language_defn, local_language_defn):
7482 Add ukn_lang_demangle.
7483 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7484 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7485 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7486 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7487 * jv-lang.c (java_demangle): New function
7488 (java_language_defn): Use it for la_demangle element.
7489 * objc-lang.c (objc_demangle): Add options argument
7490 (objc_language_defn): Use objc_demangle for la_demangle element.
7491 * maint.c (maintenance_demangle): Replace switch with
7492 call to language_demangle.
7493 * utils.c (fprintf_symbol_filtered): Likewise.
7497 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7498 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7499 PRINT_TYPELESS_INTEGER.
7500 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7501 PUSH_RETURN_ADDRESS.
7505 * Makefile.in (d10v-tdep.o): Update dependencies.
7506 * d10v-tdep.c: Include "frame-base.h".
7507 (d10v_frame_unwind): Make constant.
7508 (d10v_frame_base_address): New function.
7509 (d10v_frame_base): New variable.
7510 (d10v_gdbarch_init): Set frame_base default.
7511 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7513 (d10v_frame_unwind_cache): Set and use "prev_sp".
7514 (d10v_frame_this_id): Use the previous frame's inner most stack
7515 address and this frame's func address for the frame ID. Use
7516 frame_id_build. Don't analyze beyond the current instruction.
7520 * frame.h (get_frame_locals_address, get_frame_args_address):
7521 Refer to the base address, instead of the address of the first
7526 Add frame debug info addresses:
7527 * frame-base.c: New file.
7528 * frame-base.h: New file.
7529 * frame.h (struct frame_base): Add opaque declaration.
7530 (get_frame_base): Update comment.
7531 (get_frame_base_address): Declare.
7532 (get_frame_locals_address): Declare.
7533 (get_frame_args_address): Declare.
7534 (struct frame_info): Add "base" and "base_cache". Update
7535 comments on the unwinder.
7536 * frame.c: Include "frame-base.h".
7537 (get_frame_locals_address): New function.
7538 (get_frame_base_address): New function.
7539 (get_frame_args_address): New function.
7540 * findvar.c (read_var_value): Use get_frame_locals_address and
7541 get_frame_args_address.
7542 * stack.c (frame_info): Use get_frame_locals_address and
7543 get_frame_args_address.
7544 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7545 moved to "frame-base.c".
7546 * printcmd.c (print_frame_nameless_args): Ditto.
7547 * symtab.h (address_class): Update comments.
7548 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7549 get_frame_base_address.
7550 * dwarf2expr.c (execute_stack_op): Ditto.
7551 * Makefile.in (frame_base_h): Define.
7552 (frame.o): Update dependencies.
7553 (frame-base.o): Add dependencies.
7554 (SFILES): Add frame-base.c.
7555 (COMMON_OBS): Add frame-base.o.
7559 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7560 CALL_DUMMY_LENGTH): Ditto.
7561 * gdbarch.c: Re-generate.
7562 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7563 (CALL_DUMMY_LENGTH): Delete macro.
7564 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7565 * arm-tdep.c (arm_gdbarch_init): Ditto.
7566 * avr-tdep.c (avr_gdbarch_init): Ditto.
7567 * cris-tdep.c (cris_gdbarch_init): Ditto.
7568 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7569 * frv-tdep.c (frv_gdbarch_init): Ditto.
7570 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7571 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7572 * i386-tdep.c (i386_gdbarch_init): Ditto.
7573 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7574 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7575 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7576 * mips-tdep.c (mips_gdbarch_init): Ditto.
7577 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7578 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7579 * s390-tdep.c (s390_gdbarch_init): Ditto.
7580 * sh-tdep.c (sh_gdbarch_init): Ditto.
7581 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7582 * v850-tdep.c (v850_gdbarch_init): Ditto.
7583 * vax-tdep.c (vax_gdbarch_init): Ditto.
7584 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7588 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7592 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7593 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7594 * gdbarch.h, gdbarch.c: Re-generate.
7595 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7596 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7597 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7598 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7599 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7600 * infcmd.c (run_stack_dummy): Simplify assuming
7601 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7602 * infrun.c (handle_inferior_event): Ditto.
7603 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7604 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7605 * arm-tdep.c (arm_gdbarch_init): Ditto.
7606 * avr-tdep.c (avr_gdbarch_init): Ditto.
7607 * cris-tdep.c (cris_gdbarch_init): Ditto.
7608 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7609 * frv-tdep.c (frv_gdbarch_init): Ditto.
7610 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7611 * i386-tdep.c (i386_gdbarch_init): Ditto.
7612 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7614 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7615 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7616 * mips-tdep.c (mips_gdbarch_init): Ditto.
7617 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7618 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7619 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7620 * s390-tdep.c (s390_gdbarch_init): Ditto.
7621 * sh-tdep.c (sh_gdbarch_init): Ditto.
7622 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7623 * v850-tdep.c (v850_gdbarch_init): Ditto.
7624 * vax-tdep.c (vax_gdbarch_init): Ditto.
7625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7629 * symfile.c (symfile_relocate_debug_section): Update call to
7630 bfd_simple_get_relocated_section_contents.
7634 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7635 * gdbarch.h, gdbarch.c: Regenerate.
7636 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7637 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7639 * frame.h (generic_fix_call_dummy): Delete declaration.
7640 * dummy-frame.h: Update comment.
7641 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7644 * sh-tdep.c (sh_gdbarch_init): Ditto.
7645 * s390-tdep.c (s390_gdbarch_init): Ditto.
7646 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7647 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7649 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7650 * i386-tdep.c (i386_gdbarch_init): Ditto.
7651 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7652 * frv-tdep.c (frv_gdbarch_init): Ditto.
7653 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7654 * cris-tdep.c (cris_gdbarch_init): Ditto.
7655 * avr-tdep.c (avr_gdbarch_init): Ditto.
7656 * arm-tdep.c (arm_gdbarch_init): Ditto.
7660 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7661 (INIT_FRAME_AP): Likewise.
7662 (EXTRA_FRAME_INFO): Likewise.
7666 * gdbarch.sh: Include "symfile.h".
7667 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7668 * gdbarch.h, gdbarch.c: Re-generate.
7669 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7671 call_dummy_address, the default is at entry_point_address.
7672 * v850-tdep.c (v850_gdbarch_init): Ditto.
7673 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7674 * sh-tdep.c (sh_gdbarch_init): Ditto.
7675 * s390-tdep.c (s390_gdbarch_init): Ditto.
7676 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7677 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7678 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7679 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7680 * i386-tdep.c (i386_gdbarch_init): Ditto.
7681 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7682 * frv-tdep.c (frv_gdbarch_init): Ditto.
7683 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7684 * cris-tdep.c (cris_gdbarch_init): Ditto.
7685 * arm-tdep.c (arm_gdbarch_init): Ditto.
7689 * gdbarch.sh (CALL_DUMMY_P): Delete.
7690 * gdbarch.h, gdbarch.c: Re-generate.
7691 * inferior.h (CALL_DUMMY_P): Delete macro.
7692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7693 * vax-tdep.c (vax_gdbarch_init): Update.
7694 * v850-tdep.c (v850_gdbarch_init): Update.
7695 * sparc-tdep.c (sparc_gdbarch_init): Update.
7696 * sh-tdep.c (sh_gdbarch_init): Update.
7697 * s390-tdep.c (s390_gdbarch_init): Update.
7698 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7699 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7700 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7701 * mips-tdep.c (mips_gdbarch_init): Update.
7702 * mcore-tdep.c (mcore_gdbarch_init): Update.
7703 * m68k-tdep.c (m68k_gdbarch_init): Update.
7704 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7705 * ia64-tdep.c (ia64_gdbarch_init): Update.
7706 * i386-tdep.c (i386_gdbarch_init): Update.
7707 * h8300-tdep.c (h8300_gdbarch_init): Update.
7708 * frv-tdep.c (frv_gdbarch_init): Update.
7709 * d10v-tdep.c (d10v_gdbarch_init): Update.
7710 * cris-tdep.c (cris_gdbarch_init): Update.
7711 * breakpoint.c (deprecated_frame_in_dummy): Update.
7712 * avr-tdep.c (avr_gdbarch_init): Update.
7713 * alpha-tdep.c (alpha_gdbarch_init): Update.
7714 * arm-tdep.c (arm_gdbarch_init): Update.
7715 * dummy-frame.c (dummy_frame_this_id): Update comments.
7716 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7717 * frame.c (legacy_get_prev_frame): Ditto.
7718 * valops.c (call_function_by_hand): Delete function.
7719 (hand_function_call): Rename to call_function_by_hand
7724 * value.h (struct value): Update comment.
7728 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7730 (d10v_gdbarch_init): Do not set fp_regnum.
7732 * frame.c (get_frame_base): Force ID initialization.
7733 (get_prev_frame): Move computation of the frame ID from here ...
7734 (get_frame_id): ... to here.
7735 (legacy_get_prev_frame): Mark the frame ID as valid.
7736 * frame.h (struct frame_info): Add field "id_p".
7740 * i386-tdep.c (i386_store_struct_return): Removed.
7741 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7745 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7746 * gdbarch.h, gdbarch.c: Regenerate.
7747 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7748 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7749 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7750 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7751 * i386-tdep.c (i386_gdbarch_init): Ditto.
7752 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7753 * cris-tdep.c (cris_gdbarch_init): Ditto.
7754 * vax-tdep.c (vax_gdbarch_init): Ditto.
7755 * s390-tdep.c (s390_gdbarch_init): Ditto.
7756 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7757 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7758 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7759 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7760 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7761 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7762 * sparc-tdep.c (sparc_gdbarch_init): Update.
7763 * sh-tdep.c (sh_gdbarch_init): Update.
7764 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7765 * mips-tdep.c (mips_gdbarch_init): Update.
7766 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7767 * ia64-tdep.c (ia64_gdbarch_init): Update.
7768 * frv-tdep.c (frv_gdbarch_init): Update.
7769 * avr-tdep.c (avr_gdbarch_init): Update.
7770 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7771 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7772 instead of when push_dummy_call is not available.
7776 * infttrace.c: Include "gdbthread.h".
7777 (parent_attach_all): Fix function signature.
7778 (call_ptrace): Update call.
7779 * Makefile.in (infttrace.o): Update dependencies.
7783 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7784 PUSH_RETURN_ADDRESS.
7785 * gdbarch.h, gdbarch.c: Regenerate.
7786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7787 * x86-64-tdep.c (x86_64_init_abi): Update.
7788 * v850-tdep.c (v850_gdbarch_init): Update.
7789 * sparc-tdep.c (sparc_gdbarch_init): Update.
7790 * sh-tdep.c (sh_gdbarch_init): Update.
7791 * s390-tdep.c (s390_gdbarch_init): Update.
7792 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7793 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7794 * mips-tdep.c (mips_gdbarch_init): Update.
7795 * mcore-tdep.c (mcore_gdbarch_init): Update.
7796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7797 * ia64-tdep.c (ia64_gdbarch_init): Update.
7798 * i386-tdep.c (i386_gdbarch_init): Update.
7799 * h8300-tdep.c (h8300_gdbarch_init): Update.
7800 * frv-tdep.c (frv_gdbarch_init): Update.
7801 * cris-tdep.c (cris_gdbarch_init): Update.
7802 * avr-tdep.c (avr_gdbarch_init): Update.
7803 * arm-tdep.c (arm_gdbarch_init): Update.
7804 * valops.c (hand_function_call): Update.
7808 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7809 sizeof_call_dummy_words.
7810 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7812 * gdbarch.h: Regenerate.
7816 * infttrace.h: New file.
7817 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7818 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7819 (hpread_read_doc_function_type): Detect an initialized type1.
7820 (hpread_quick_traverse): Initialize mod_name_string.
7821 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7822 (som_solib_get_solib_by_pc): Declare.
7823 (so_lib_thread_start_addr): Declare.
7824 (no_shared_libraries): Declare.
7825 * somread.c (init_import_symbols): Make static. Add forward
7827 * config/pa/nm-hppah.h: Include "infttrace.h" for
7829 (hppa_insert_hw_watchpoint): Declare.
7830 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7831 * hppah-nat.c: Include "gdb_string.h".
7832 (parent_attach_all): Delete extern declaration, moved to
7834 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7836 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7837 * Makefile.in (infttrace_h): Define.
7838 (hpread.o): Update dependencies.
7839 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7840 * hppa-hpux-tdep.c: Include "gdb_string.h".
7841 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7842 * infrun.c (handle_inferior_event): Always initialize
7843 stepped_after_stopped_by_watchpoint. Add default and remove
7844 fallthrough in switch statement.
7845 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7847 (hppa_remove_hw_watchpoint): Ditto.
7851 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7856 * arm-tdep.c (arm_push_arguments): Delete.
7857 (struct stack_item): New type.
7858 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7859 (arm_store_struct_return): Delte.
7860 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7861 arm_push_arguments or arm_store_struct_return.
7865 * Makefile.in (d10v-tdep.o): Update dependencies.
7866 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7867 * d10v-tdep.c: Include "remote.h".
7868 (target_resume_hook): Delete extern declaration.
7869 (target_wait_loop_hook): Ditto.
7870 (tdisassemble_command): Eliminate assignment in "if" conditional.
7871 (d10v_ts2_register_sim_regno): Eliminate call to
7872 legacy_register_sim_regno.
7873 (d10v_ts3_register_sim_regno): Ditto.
7877 * thread.c: Reindented.
7879 * linux-proc.c: Ditto.
7883 * MAINTAINERS (write after approval): Add myself.
7887 * objc-exp.y: Add missing semi-colons.
7891 * regcache.c (write_sp): Delete function and references.
7892 * inferior.h (write_sp): Delete declaration.
7893 * valops.c (hand_function_call): Replace write_sp with
7895 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7896 (sparc_pop_frame): Ditto.
7900 * NEWS: Mention removal of support for hppa*-*-bsd* and
7901 hppa*-*-osf* natives, and hppa*-*-pro* target.
7902 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7903 * config/pa/xm-pa.h: Obsolete file.
7904 * config/pa/xm-hppab.h: Obsolete file.
7905 * config/pa/nm-hppab.h: Obsolete file.
7906 * config/pa/tm-hppab.h: Obsolete file.
7907 * config/pa/tm-hppao.h: Obsolete file.
7908 * config/pa/nm-hppao.h: Obsolete file.
7909 * config/pa/tm-pro.h: Obsolete file.
7910 * config/pa/hppaosf.mt: Obsolete file.
7911 * config/pa/hppaosf.mh: Obsolete file.
7912 * config/pa/hppapro.mt: Obsolete file.
7913 * config/pa/hppabsd.mt: Obsolete file.
7914 * config/pa/hppabsd.mh: Obsolete file.
7915 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7916 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7921 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7922 push_arguments. Don't set push_return_address or write_sp.
7923 (d10v_push_dummy_call): Replace d10v_push_arguments.
7924 (d10v_push_return_address, d10v_write_sp): Delete function,
7925 handled by push_dummy_call.
7929 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7930 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7931 regcache and dummy_addr parameters.
7932 * gdbarch.h, gdbarch.c: Re-generate.
7933 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7934 available; assume it will handle stack alignment and return
7935 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7936 legacy_push_arguments.
7937 (legacy_push_arguments): Rename default_push_arguments.
7938 * value.h (legacy_push_arguments): Rename default_push_arguments.
7939 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7940 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7941 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7942 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7943 * config/i386/tm-symmetry.h: Update.
7944 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7945 * x86-64-tdep.c (x86_64_init_abi): Update.
7946 * v850-tdep.c (v850_gdbarch_init): Update.
7947 * sparc-tdep.c (sparc_gdbarch_init): Update.
7948 * sh-tdep.c (sh_gdbarch_init): Update.
7949 * s390-tdep.c (s390_gdbarch_init): Update.
7950 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7951 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7952 * mips-tdep.c (mips_gdbarch_init): Update.
7953 * mcore-tdep.c (mcore_gdbarch_init): Update.
7954 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7955 * ia64-tdep.c (ia64_gdbarch_init): Update.
7956 * i386-tdep.c (i386_gdbarch_init): Update.
7957 * hppa-tdep.c (hppa_gdbarch_init): Update.
7958 * h8300-tdep.c (h8300_gdbarch_init): Update.
7959 * frv-tdep.c (frv_gdbarch_init): Update.
7960 * d10v-tdep.c (d10v_gdbarch_init): Update.
7961 * cris-tdep.c (cris_gdbarch_init): Update.
7962 * avr-tdep.c (avr_gdbarch_init): Update.
7963 * arm-tdep.c (arm_gdbarch_init): Update.
7964 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7965 * alpha-tdep.c (alpha_gdbarch_init): Update.
7969 * signals/signals.c (do_target_signal_to_host): Correct realtime
7974 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7975 (struct sal_chain, map_catch_names): Remove.
7976 (catch_exception_command_1): Don't call
7977 handle_gnu_4_16_catch_command.
7982 * dwarf2cfi.c (read_2u): Increment pointer by two.
7986 * signals/signals.c: Fix typos in last change.
7990 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7991 not already defined. Use __SIGRTMIN if available.
7992 (target_signal_from_host): Remove SIGRTMIN block.
7993 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7994 the signal is within the realtime range.
7998 * Makefile.in (infrun.o): Add $(language_h)
7999 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8000 for language specific trampolines.
8001 * language.h (struct language_defn): Add skip_trampoline.
8002 (skip_language_trampoline): Declare.
8003 * language.c (unk_lang_trampoline, skip_language_trampoline):
8005 (unknown_language_defn, auto_language_defn, local_language_defn):
8006 Add ukn_lang_trampoline.
8007 * ada-lang.c (ada_language_defn): Add NULL for language
8008 specific skip_trampoline.
8009 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8010 scm-lang.c: Likewise.
8011 * objc-lang.c (objc_skip_trampoline): New function.
8012 (objc_language_defn): Add objc_skip_trampoline.
8016 * frame.c (get_prev_frame): Delay validating a frame's ID -
8017 non-NULL, didn't go backwards - until an attempt to unwind it to
8022 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8023 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8024 * gdbarch.h, gdbarch.c: Re-generate.
8025 * config/sparc/tm-sparc.h
8026 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8027 * sparc-tdep.c (sparc_gdbarch_init): Set
8028 deprecated_extra_stack_alignment_needed.
8029 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8030 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8031 extra_stack_alignment_needed.
8032 * v850-tdep.c (v850_gdbarch_init): Ditto.
8033 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8034 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8035 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8036 * cris-tdep.c (cris_gdbarch_init): Ditto.
8037 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8038 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8042 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8043 STORE_STRUCT_RETURN.
8044 * gdbarch.h, gdbarch.c: Regenerate.
8045 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8046 (d10v_push_arguments): Set the struct return register.
8047 (d10v_gdbarch_init): Update.
8048 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8049 * x86-64-tdep.c (x86_64_init_abi): Update.
8050 * vax-tdep.c (vax_gdbarch_init): Update.
8051 * v850-tdep.c (v850_gdbarch_init): Update.
8052 * sparc-tdep.c (sparc_gdbarch_init): Update.
8053 * sh-tdep.c (sh_gdbarch_init): Update.
8054 * s390-tdep.c (s390_gdbarch_init): Update.
8055 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8056 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8057 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8058 * mips-tdep.c (mips_gdbarch_init): Update.
8059 * mcore-tdep.c (mcore_gdbarch_init): Update.
8060 * m68k-tdep.c (m68k_gdbarch_init): Update.
8061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8062 * ia64-tdep.c (ia64_gdbarch_init): Update.
8063 * i386-tdep.c (i386_gdbarch_init): Update.
8064 * hppa-tdep.c (hppa_gdbarch_init): Update.
8065 * h8300-tdep.c (h8300_gdbarch_init): Update.
8066 * frv-tdep.c (frv_gdbarch_init): Update.
8067 * cris-tdep.c (cris_gdbarch_init): Update.
8068 * avr-tdep.c (avr_gdbarch_init): Update.
8069 * arm-tdep.c (arm_gdbarch_init): Update.
8070 * alpha-tdep.c (alpha_gdbarch_init): Update.
8074 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8075 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8076 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8077 * gdbarch.h, gdbarch.c: Regenerate.
8078 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8079 call_dummy_stack_adjust_p.
8080 * vax-tdep.c (vax_gdbarch_init): Ditto.
8081 * v850-tdep.c (v850_gdbarch_init): Ditto.
8082 * sh-tdep.c (sh_gdbarch_init): Ditto.
8083 * s390-tdep.c (s390_gdbarch_init): Ditto.
8084 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8085 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8086 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8087 * mips-tdep.c (mips_gdbarch_init): Ditto.
8088 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8089 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8091 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8092 * i386-tdep.c (i386_gdbarch_init): Ditto.
8093 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8094 * frv-tdep.c (frv_gdbarch_init): Ditto.
8095 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8096 * cris-tdep.c (cris_gdbarch_init): Ditto.
8097 * avr-tdep.c (avr_gdbarch_init): Ditto.
8098 * arm-tdep.c (arm_gdbarch_init): Ditto.
8099 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8100 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8101 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8102 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8103 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8104 call_dummy_stack_adjust_p.
8105 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8106 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8107 * sparc-tdep.c (sparc32_push_arguments): Update.
8108 * valops.c (hand_function_call): Update.
8112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8113 set_gdbarch_char_signed.
8118 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8122 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8123 (_initialize_arm_tdep): Don't set tm_print_insn.
8127 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8128 * objc-lang.h: Add multiple inclusion protection.
8129 (start_msglist, add_msglist, end_msglist): Additional declarations.
8133 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8134 value was renamed to ARM_FLOAT_SOFT_FPA.
8138 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8139 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8140 * gdbarch.h, gdbarch.c: Regenerate.
8141 * valops.c (hand_function_call): Update.
8142 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8143 * frame.c (legacy_saved_regs_this_id): Update.
8144 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8145 * dummy-frame.h: Update.
8146 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8147 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8148 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8149 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8150 * config/m68k/tm-sun3.h: Update.
8151 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8153 * x86-64-tdep.c (x86_64_init_abi): Update.
8154 * vax-tdep.c (vax_gdbarch_init): Update.
8155 * v850-tdep.c (v850_gdbarch_init): Update.
8156 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8157 * sh-tdep.c (sh_gdbarch_init): Update.
8158 * s390-tdep.c (s390_gdbarch_init): Update.
8159 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8160 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8161 (frame_get_saved_regs): Update.
8162 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8163 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8164 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8165 * mips-tdep.c (mips_gdbarch_init): Update.
8166 * mcore-tdep.c (mcore_gdbarch_init): Update.
8167 * m68k-tdep.c (m68k_gdbarch_init): Update.
8168 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8169 * ia64-tdep.c (ia64_gdbarch_init): Update.
8170 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8171 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8172 (i386_interix_back_one_frame): Update.
8173 * hppa-tdep.c (hppa_gdbarch_init): Update.
8174 (hppa_init_extra_frame_info): Update.
8175 * h8300-tdep.c (h8300_gdbarch_init): Update.
8176 * frv-tdep.c (frv_gdbarch_init): Update.
8177 * cris-tdep.c (cris_gdbarch_init): Update.
8178 * avr-tdep.c (avr_gdbarch_init): Update.
8179 * arm-tdep.c (arm_gdbarch_init): Update.
8180 * alpha-tdep.c (alpha_gdbarch_init): Update.
8184 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8185 (arm_get_fp_model): Declare.
8186 * arm-tdep.c (fp_model_strings): New string array.
8187 (arm_fp_model, current_fp_model): New variables.
8188 (arm_get_fp_model): New function.
8189 (arm_set_fp): New function.
8190 (set_fp_model_sfunc): New function.
8191 (show_fp_model): New function.
8192 (_initialize_arm_tdep): Add new command to set/show the FPU.
8193 (arm_extract_return_value): Use arm_get_fp_model.
8194 (arm_store_return_value): Likewise.
8195 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8196 to initialize the floating-point data types.
8197 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8202 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8203 the current setting of each value.
8204 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8205 new_set and new_show. Use add_setshow_cmd_full and
8206 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8207 commands and add new version as subcommands of "set/show arm".
8211 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8212 (set_arm_command, show_arm_command): New functions.
8213 (_initialize_arm_tdep): Add them.
8214 (num_disassembly_options): Renamed from num_flavor_options.
8215 (valid_disassembly_styles): Renamed from valid_flavors.
8216 (disassembly_style): Renamed from disassembly_flavor.
8217 (set_disassembly_style_sfunc): Renamed from
8218 set_disassembly_flavor_sfunc.
8219 (set_disassembly_style): Renamed from set_disassembly_flavor.
8220 (arm_othernames): Updated.
8221 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8222 command. Add "set/show arm disassembly" commands. Deprecate
8223 "othernames" command.
8227 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8228 (arm-tdep.o): Depend on elf_arm_h.
8232 * Makefile.in (coff_internal_h): Define.
8233 (arm-tdep.o): Update dependencies.
8237 * arm-tdep.c (prologue_cache): Delete.
8238 (check_prologue_cache, save_prologue_cache): Delete.
8239 (arm_scan_prologue): Don't check or update the prologue_cache.
8240 (arm_gdb_arch_init): Don't initialize it.
8241 (_initialize_arm_tdep): Likewise.
8245 * MAINTAINERS (tui): Maintainer of tui code.
8249 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8250 (i386-cygwin-tdep.o): Add dependencies.
8251 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8252 * i386-cygwin-tdep.c: New file.
8253 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8254 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8258 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8259 (handle_inferior_event): Remove code calling
8260 DYNAMIC_TRAMPOLINE_NEXTPC.
8262 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8263 already has a full path.
8265 * main.c (gdb_main): Return 1.
8266 (captured_main): Call error to report an invalid interpreter.
8268 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8269 * alpha-osf1-tdep.c: Include "gdb_string.h".
8273 Continuing work to convert the hppa targets to multiarch partial.
8275 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8276 method, now that hppa_push_dummy_frame has a conformant prototype.
8277 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8278 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8279 for the switch to multiarch partial.
8283 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8284 when iss is issNull.
8288 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8289 NUM_REGS bounds check.
8293 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8294 * mips-tdep.c (gdb_assert.h): Include.
8295 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8296 (mips_register_name): Handle integer registers explicitly. Add
8298 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8299 (mips_lsi33k_reg_names): Don't list integer registers; they're
8300 handled by mips_register_name() now.
8301 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8302 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8303 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8304 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8305 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8309 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8311 * gdbtypes.h (print_scalar_formatted): Update declaration.
8312 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8316 * infrun.c (observer.h): Add #include.
8317 (normal_stop): Add call to observer_notify_normal_stop.
8318 * Makefile.in (infrun.o): Add dependency on observer.h.
8322 Continuing work to convert the hppa targets to multiarch partial.
8323 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8324 parameter. Reformat comment.
8325 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8326 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8327 to match new profile.
8331 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8332 appear to be working in any case.
8336 * observer.c (observer_test_first_observer): New static variable.
8337 (observer_test_second_observer): Likewise.
8338 (observer_test_third_observer): Likewise.
8339 (observer_test_first_notification_function): New static function.
8340 (observer_test_second_notification_function): Likewise.
8341 (observer_test_third_notification_function): Likewise.
8345 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8346 * somsolib.c (gdb_assert.h): Likewise.
8347 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8348 (somsolib.o): Likewise.
8352 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8353 BFD. Simplify setting of di.endian.
8357 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8358 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8361 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8362 vector and floating-point parameters.
8363 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8365 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8369 * MAINTAINERS: Remove my name from several maintainership roles.
8373 Fix frame off-by-one bug.
8374 * frame-unwind.h (frame_this_id_ftype): Replace
8375 frame_unwind_id_ftype.
8376 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8377 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8378 with "prev_register".
8379 * frame-unwind.c (frame_unwind_find_by_pc): Return
8380 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8382 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8383 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8384 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8385 (dummy_frame_unwind): Update.
8386 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8387 sentinel_frame_register_unwind.
8388 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8389 (sentinel_frame_unwinder): Update.
8390 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8391 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8392 * frame.c (create_sentinel_frame): Update. Initialize
8393 "prologue_cache" instead of "unwind_cache".
8394 (frame_register_unwind): Call this frame's prev_register with the
8395 next frame and this frame's prologue cache.
8396 (get_prev_frame): Simplify. Always call prev frame's this_id with
8397 this frame and prev frame's prologue cache. Document that this
8398 call is shifted one to the left when compared to the
8399 frame_register_unwind call.
8400 (legacy_saved_regs_prev_register): Replace
8401 frame_saved_regs_register_unwind.
8402 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8403 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8404 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8405 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8406 (d10v_frame_unwind): Update.
8407 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8408 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8409 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8410 "saved_regs" with "this_saved_regs".
8414 * frame.c (frame_pop): Don't call target_store_registers. Fix
8415 problem reported by Mark Kettenis.
8419 * i386-tdep.c (i386_register_type): Renamed from
8420 i386_register_virtual_type. Adjust function signature.
8421 (i386_gdbarch_init): Set register_type instead of
8422 deprecated_max_register_raw_size,
8423 deprecated_max_register_virtual_size and register_virtual_type.
8427 * frame.c (get_prev_frame): When a legacy frame, always call
8428 legacy_get_prev_frame. Simplify unwind code using assumption that
8429 the unwinder is new.
8430 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8431 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8432 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8436 * frame.c (get_saved_register): Delete function.
8437 * frame.h (get_saved_register): Delete declaration.
8438 * xstormy16-tdep.c: Update comment.
8439 * regcache.h: Update comments.
8440 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8441 get_saved_register and extract_address, use
8442 frame_read_unsigned_register.
8443 (sparc_frame_saved_pc): Ditto.
8444 (sparc_get_saved_register): Instead of get_saved_register, use
8446 (sparc_pop_frame): Ditto.
8447 * findvar.c: Update comments.
8448 (value_of_register): Call frame_register instead of
8450 (value_from_register): Ditto.
8451 * config/sparc/tm-sparc.h: Update comment.
8452 * breakpoint.c: Update comment.
8456 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8458 * gdbarch.h, gdbarch.c: Re-generate.
8459 * frame.h: Update comments.
8460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8461 * x86-64-tdep.c (x86_64_init_abi): Update.
8462 * sparc-tdep.c (sparc_gdbarch_init): Update.
8463 * sh-tdep.c (sh_gdbarch_init): Update.
8464 * mips-tdep.c (mips_gdbarch_init): Update.
8465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8466 * cris-tdep.c (cris_gdbarch_init): Update.
8467 * ia64-tdep.c (ia64_gdbarch_init): Update.
8468 * frame.c (frame_register): Update.
8469 (get_saved_register): Update.
8470 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8474 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8475 * gdbarch.h, gdbarch.c: Regenerate.
8476 * valops.c (hand_function_call): Update comment.
8477 * stack.c (return_command): Update comment.
8478 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8479 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8481 * x86-64-tdep.c (x86_64_init_abi): Update.
8482 * vax-tdep.c (vax_gdbarch_init): Update.
8483 * v850-tdep.c (v850_gdbarch_init): Update.
8484 * sparc-tdep.c (sparc_gdbarch_init): Update.
8485 * sh-tdep.c (sh_gdbarch_init): Update.
8486 * s390-tdep.c (s390_gdbarch_init): Update.
8487 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8488 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8489 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8490 * mips-tdep.c (mips_gdbarch_init): Update.
8491 * mcore-tdep.c (mcore_gdbarch_init): Update.
8492 * m68k-tdep.c (m68k_gdbarch_init): Update.
8493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8494 * ia64-tdep.c (ia64_gdbarch_init): Update.
8495 * i386-tdep.c (i386_gdbarch_init): Update.
8496 * hppa-tdep.c (hppa_gdbarch_init): Update.
8497 * h8300-tdep.c (h8300_gdbarch_init): Update.
8498 * frv-tdep.c (frv_gdbarch_init): Update.
8499 * cris-tdep.c (cris_gdbarch_init): Update.
8500 * avr-tdep.c (avr_gdbarch_init): Update.
8501 * arm-tdep.c (arm_gdbarch_init): Update.
8502 * alpha-tdep.c (alpha_gdbarch_init): Update.
8506 * frame.c (legacy_frame_p): New function.
8507 (get_prev_frame): Use legacy_frame_p.
8508 * frame.h (legacy_frame_p): Declare.
8512 * MAINTAINERS (write after approval): Alphabetically
8517 * MAINTAINERS (write after approval): Add myself.
8521 * frame.c (get_prev_frame): Rename the frame parameter to
8523 (get_next_frame, legacy_get_prev_frame): Ditto.
8527 * frame.c (get_current_frame): Check target_has_registers before
8528 checking target_has_stack.
8529 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8530 instead of deprecated_selected_frame.
8531 * findvar.c (value_of_register): Pass "frame", not
8532 deprecated_selected_frame, to value_of_builtin_reg.
8536 * regcache.c (regcache_cooked_write_signed): New function.
8537 (regcache_cooked_write_unsigned): New function.
8538 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8539 (regcache_cooked_read_signed): Fix regnum in range assertion.
8540 * regcache.h (regcache_cooked_write_signed): Declare.
8541 (regcache_cooked_write_unsigned): Declare.
8545 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8546 * gdbarch.h, gdbarch.c: Re-generate.
8547 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8548 * x86-64-tdep.h: Update.
8549 * x86-64-tdep.c (x86_64_init_abi): Update.
8550 * v850-tdep.c (v850_gdbarch_init): Update.
8551 * sparc-tdep.c (sparc_gdbarch_init): Update.
8552 * sh-tdep.c (sh_gdbarch_init): Update.
8553 * s390-tdep.c (s390_gdbarch_init): Update.
8554 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8555 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8556 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8557 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8558 * mips-tdep.c (mips_gdbarch_init): Update.
8559 * mcore-tdep.c (mcore_gdbarch_init): Update.
8560 * m68k-tdep.c (m68k_gdbarch_init): Update.
8561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8562 * ia64-tdep.c (ia64_gdbarch_init): Update.
8563 * i386-tdep.c (i386_gdbarch_init): Update.
8564 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8565 * hppa-tdep.c (hppa_gdbarch_init): Update.
8566 * h8300-tdep.c (h8300_gdbarch_init): Update.
8567 * frv-tdep.c (frv_gdbarch_init): Update.
8568 * cris-tdep.c (cris_gdbarch_init): Update.
8569 * avr-tdep.c (avr_gdbarch_init): Update.
8570 * arm-tdep.c (arm_gdbarch_init): Update.
8571 * alpha-tdep.c (alpha_gdbarch_init): Update.
8572 * sh-tdep.c (sh_init_extra_frame_info): Update.
8573 (sh64_init_extra_frame_info): Update.
8574 * ns32knbsd-nat.c (frame_num_args): Update.
8575 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8576 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8577 (xstormy16_frame_chain_valid): Update.
8578 * vax-tdep.c (vax_saved_pc_after_call): Update.
8579 * v850-tdep.c (v850_frame_chain): Update.
8580 (v850_pop_frame): Update.
8581 (v850_init_extra_frame_info): Update.
8582 * sparc-tdep.c (setup_arbitrary_frame): Update.
8583 * ns32k-tdep.c (umax_frame_num_args): Update.
8584 * s390-tdep.c (s390_pop_frame_regular): Update.
8585 * mn10300-tdep.c (mn10300_frame_chain): Update.
8586 (mn10300_pop_frame_regular): Update.
8587 (mn10300_init_extra_frame_info): Update.
8588 * mips-tdep.c (mips_init_frame_pc_first): Update.
8589 (mips_frame_chain): Update.
8590 (mips_pop_frame): Update.
8591 * mcore-tdep.c (mcore_frame_chain): Update.
8592 (mcore_pop_frame): Update.
8593 (mcore_init_extra_frame_info): Update.
8594 * arch-utils.c (init_frame_pc_default): Update.
8595 * m68k-tdep.c (isi_frame_num_args): Update.
8596 (delta68_frame_num_args): Update.
8597 (news_frame_num_args): Update.
8598 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8599 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8600 (alpha_frame_chain): Update.
8601 (alpha_pop_frame): Update.
8602 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8603 (hppa_init_extra_frame_info): Update.
8604 (hppa_frame_chain): Update.
8605 (hppa_frame_chain_valid): Update.
8606 * cris-tdep.c (cris_init_extra_frame_info): Update.
8607 * avr-tdep.c (avr_init_extra_frame_info): Update.
8608 * arm-tdep.c (arm_frame_chain_valid): Update.
8609 (arm_init_extra_frame_info): Update.
8610 (arm_pop_frame): Update.
8611 * frame.c (frame_pc_unwind): Update.
8612 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8613 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8614 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8615 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8616 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8617 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8621 Eliminate the need for POP_FRAME.
8622 * frame.c (do_frame_unwind_register): New function.
8623 (frame_pop): When no POP_FRAME, pop the frame using register
8624 unwind and a scratch regcache.
8625 (frame_saved_regs_pop): Delete function.
8626 (trad_frame_unwinder): Update.
8627 * d10v-tdep.c (d10v_frame_pop): Delete function.
8628 (d10v_frame_unwind): Update.
8629 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8630 (sentinel_frame_unwinder): Update.
8631 * dummy-frame.c (dummy_frame_pop): Delete function.
8632 (dummy_frame_unwind): Update.
8633 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8634 (struct frame_unwind): Update.
8638 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8639 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8640 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8641 Do range checks on register number obtained from debugging info.
8642 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8643 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8644 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8646 (do_fp_register_row): Fix typo which caused double type to be
8647 used when attempting to unpack a float.
8651 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8655 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8656 frame. Problem found by Corinna Vinschen.
8660 * doublest.c (floatformat_from_length): Accept also
8661 the real size of 'long double' type.
8666 * breakpoint.c (bpstat_copy): Copy the command lines as well
8667 as the old value, to match what is freed in bpstat_clear.
8671 * minsyms.c (add_minsym_to_hash_table): Replace
8672 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8673 (compare_minimal_symbols, compact_minimal_symbols)
8674 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8675 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8676 of DEPRECATED_SYMBOL_MATCHES_NAME.
8677 (lookup_minimal_symbol_solib_trampoline): Ditto.
8681 * regcache.h (regcache_cooked_read_ftype): Define.
8682 (regcache_save, regcache_restore): Add a cooked_read parameter.
8683 * regcache.c (regcache_save, regcache_restore): Update.
8684 (do_cooked_read): New function.
8685 (regcache_cpy): Pass do_cooked_read to regcache_save and
8690 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8691 * gdbarch.h, gdbarch.c: Re-generate.
8692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8693 * x86-64-tdep.h: Update.
8694 * x86-64-tdep.c (x86_64_init_abi): Update.
8695 * v850-tdep.c (v850_gdbarch_init): Update.
8696 * sparc-tdep.c (sparc_gdbarch_init): Update.
8697 * sh-tdep.c (sh_gdbarch_init): Update.
8698 * s390-tdep.c (s390_gdbarch_init): Update.
8699 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8700 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8701 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8703 * mips-tdep.c (mips_gdbarch_init): Update.
8704 * mcore-tdep.c (mcore_gdbarch_init): Update.
8705 * m68k-tdep.c (m68k_gdbarch_init): Update.
8706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8707 * ia64-tdep.c (ia64_gdbarch_init): Update.
8708 * i386-tdep.c (i386_gdbarch_init): Update.
8709 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8710 * hppa-tdep.c (hppa_gdbarch_init): Update.
8711 * h8300-tdep.c (h8300_gdbarch_init): Update.
8712 * frv-tdep.c (frv_gdbarch_init): Update.
8713 * cris-tdep.c (cris_gdbarch_init): Update.
8714 * avr-tdep.c (avr_gdbarch_init): Update.
8715 * arm-tdep.c (arm_gdbarch_init): Update.
8716 * alpha-tdep.c (alpha_gdbarch_init): Update.
8717 * sh-tdep.c (sh_init_extra_frame_info): Update.
8718 (sh64_init_extra_frame_info): Update.
8719 * ns32knbsd-nat.c (frame_num_args): Update.
8720 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8721 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8722 (xstormy16_frame_chain_valid): Update.
8723 * vax-tdep.c (vax_saved_pc_after_call): Update.
8724 * v850-tdep.c (v850_frame_chain): Update.
8725 (v850_pop_frame): Update.
8726 (v850_init_extra_frame_info): Update.
8727 * sparc-tdep.c (setup_arbitrary_frame): Update.
8728 * ns32k-tdep.c (umax_frame_num_args): Update.
8729 * s390-tdep.c (s390_pop_frame_regular): Update.
8730 * mn10300-tdep.c (mn10300_frame_chain): Update.
8731 (mn10300_pop_frame_regular): Update.
8732 (mn10300_init_extra_frame_info): Update.
8733 * mips-tdep.c (mips_init_frame_pc_first): Update.
8734 (mips_frame_chain): Update.
8735 (mips_pop_frame): Update.
8736 * mcore-tdep.c (mcore_frame_chain): Update.
8737 (mcore_pop_frame): Update.
8738 (mcore_init_extra_frame_info): Update.
8739 * arch-utils.c (init_frame_pc_default): Update.
8740 * m68k-tdep.c (isi_frame_num_args): Update.
8741 (delta68_frame_num_args): Update.
8742 (news_frame_num_args): Update.
8743 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8744 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8745 (alpha_frame_chain): Update.
8746 (alpha_pop_frame): Update.
8747 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8748 (hppa_init_extra_frame_info): Update.
8749 (hppa_frame_chain): Update.
8750 (hppa_frame_chain_valid): Update.
8751 * cris-tdep.c (cris_init_extra_frame_info): Update.
8752 * avr-tdep.c (avr_init_extra_frame_info): Update.
8753 * arm-tdep.c (arm_frame_chain_valid): Update.
8754 (arm_init_extra_frame_info): Update.
8755 (arm_pop_frame): Update.
8756 * frame.c (frame_pc_unwind): Update.
8757 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8758 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8759 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8760 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8761 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8762 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8766 * gdbarch.sh (gdbarch_unwind_pc): New method.
8767 * gdbarch.h, gdbarch.c: Regenerate.
8768 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8769 but use read_pc and FRAME_SAVED_PC as fall backs.
8770 (frame_saved_regs_pc_unwind): Delete function.
8771 (trad_frame_unwinder): Update.
8772 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8773 (struct frame_unwind): Update.
8774 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8775 (dummy_frame_unwind): Update.
8776 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8777 (sentinel_frame_unwinder): Update.
8778 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8779 (d10v_frame_unwind): Update.
8780 (d10v_unwind_pc): New function.
8781 (d10v_gdbarch_init): Set unwind_pc.
8785 * gdbarch.h: Re-generate.
8787 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8789 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8794 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8798 * cli-out.c: Update copyright.
8799 (cli_out_data): Define typedef. Use instead of ui_out_data.
8803 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8808 * gdbarch.sh: Don't generate two macro definitions when an
8809 undefined macro taking no arguments.
8810 * gdbarch.h: Regenerate.
8814 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8815 (x86_64_unwind_dummy_id): New functions.
8816 (x86_64_init_abi): Register these two new functions.
8820 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8821 (x86_64_skip_prologue): Move prologue detection to
8823 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8827 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8828 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8829 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8830 to use unwind_dummy_id when a dummy frame.
8831 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8833 * gdbarch.h, gdbarch.c: Regneerate.
8837 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8838 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8839 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8844 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8845 (struct d10v_unwind_cache): Delete field "frameless". Replace
8846 "next_addr" with "sp_offset". Add "r11_offset".
8847 (d10v_frame_unwind_cache): Update.
8848 (prologue_find_regs): Update. When "mv r11, sp", save the
8849 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8850 RN was saved in r11_offset.
8854 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8855 cached PC value in the next frame.
8859 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8860 "id_unwind_cache" with "id".
8861 (frame_id_unwind): Delete declaration.
8862 * frame.c (frame_id_unwind): Delete function.
8863 (get_prev_frame): Call the frame id unwind method directly. Store
8864 the returned next frame's ID value in NEXT_FRAME. Note that there
8865 is a problem with the wrong unwind ID being called with the wrong
8870 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8875 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8876 (auto_cp_abi): New variable.
8877 (current_cp_abi, num_cp_abis): Make static.
8878 (CP_ABI_MAX): Define.
8879 (cp_abis): Turn into an array.
8880 (value_virtual_fn_field): Fix formatting.
8881 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8883 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8884 (list_cp_abis, _initialize_cp_abi): New functions.
8885 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8886 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8887 switch_to_cp_abi. Update prototype for register_cp_abi.
8888 * Makefile.in (cp-abi.o): Update dependencies.
8889 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8890 instead of switch_to_cp_abi.
8891 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8893 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8895 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8899 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8900 * dwarf2loc.c: Include "regcache.h".
8901 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8903 * Makefile.in (dwarf2loc.o): Update dependencies.
8907 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8908 number of io registers reported by remote target is not a multiple of
8913 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8914 (lookup_symbol_aux_psymtabs): Update call to
8915 lookup_partial_symbol.
8916 (lookup_transparent_type, find_main_psymtab)
8917 (make_symbol_overload_list): Ditto.
8921 * MAINTAINERS (Write after approval): Update my email address.
8925 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8926 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8927 predicate. Replace MAX_REGISTER_RAW_SIZE.
8928 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8929 MAX_REGISTER_VIRTUAL_SIZE.
8930 * regcache.c (legacy_max_register_raw_size): New function.
8931 (legacy_max_register_virtual_size): New function.
8932 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8933 (MAX_REGISTER_RAW_SIZE): Define.
8934 (legacy_max_register_raw_size): Declare.
8935 (legacy_max_register_virtual_size): Declare.
8936 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8937 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8938 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8939 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8940 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8941 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8942 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8943 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8944 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8945 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8946 * vax-tdep.c (vax_gdbarch_init): Update.
8947 * v850-tdep.c (v850_gdbarch_init): Update.
8948 * sparc-tdep.c (sparc_gdbarch_init): Update.
8949 * sh-tdep.c (sh_gdbarch_init): Update.
8950 * s390-tdep.c (s390_gdbarch_init): Update.
8951 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8952 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8953 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8954 * mips-tdep.c (mips_gdbarch_init): Update.
8955 * mcore-tdep.c (mcore_gdbarch_init): Update.
8956 * m68k-tdep.c (m68k_gdbarch_init): Update.
8957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8958 * ia64-tdep.c (ia64_gdbarch_init): Update.
8959 * i386-tdep.c (i386_gdbarch_init): Update.
8960 * hppa-tdep.c (hppa_gdbarch_init): Update.
8961 * h8300-tdep.c (h8300_gdbarch_init): Update.
8962 * frv-tdep.c (frv_gdbarch_init): Update.
8963 * cris-tdep.c (cris_gdbarch_init): Update.
8964 * avr-tdep.c (avr_gdbarch_init): Update.
8965 * arm-tdep.c (arm_gdbarch_init): Update.
8966 * alpha-tdep.c (alpha_gdbarch_init): Update.
8967 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8968 max_register_raw_size or max_register_virtual_size.
8972 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8973 SYMBOL_MATCHES_NAME, add comment.
8974 (SYMBOL_MATCHES_NATURAL_NAME): New.
8975 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8976 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8977 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8978 * symtab.c (lookup_partial_symbol): Use
8979 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8981 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8982 SYMBOL_MATCHES_NAME.
8987 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8988 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8989 by regexp matching against SYMBOL_NATURAL_NAME.
8993 * linespec.c (find_method): Extract code into collect_methods.
8994 (collect_methods): New.
8998 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9001 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9002 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9006 * arch-utils.c (generic_register_byte): Fix to use the loop index
9007 and not regnum when summing the size of all registers up to regnum.
9011 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9012 FRAME_INIT_SAVED_REGS.
9013 * gdbarch.h, gdbarch.c: Regenerate.
9014 * stack.c (frame_info): Update.
9015 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9016 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9017 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9018 * ns32k-tdep.c (ns32k_pop_frame): Update.
9019 * mips-tdep.c (mips_pop_frame): Update.
9020 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9021 * ia64-tdep.c (ia64_frame_chain): Update.
9022 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9023 (ia64_frameless_function_invocation): Update.
9024 (ia64_init_extra_frame_info): Update.
9025 (ia64_pop_frame_regular): Update.
9026 * frame.h (struct frame_info): Update comment.
9027 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9028 * frame.c (frame_saved_regs_register_unwind): Update.
9029 (frame_saved_regs_register_unwind): Update.
9030 (deprecated_generic_get_saved_register): Update.
9031 * cris-tdep.c: Update comment.
9032 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9035 * x86-64-tdep.c (x86_64_init_abi): Update.
9036 * vax-tdep.c (vax_gdbarch_init): Update.
9037 * v850-tdep.c (v850_gdbarch_init): Update.
9038 * sparc-tdep.c (sparc_gdbarch_init): Update.
9039 * sh-tdep.c (sh_gdbarch_init): Update.
9040 * s390-tdep.c (s390_gdbarch_init): Update.
9041 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9042 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9043 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9044 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9045 * mips-tdep.c (mips_gdbarch_init): Update.
9046 * mcore-tdep.c (mcore_gdbarch_init): Update.
9047 * m68k-tdep.c (m68k_gdbarch_init): Update.
9048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9049 * ia64-tdep.c (ia64_gdbarch_init): Update.
9050 * i386-tdep.c (i386_gdbarch_init): Update.
9051 * frv-tdep.c (frv_gdbarch_init): Update.
9052 * avr-tdep.c (avr_gdbarch_init): Update.
9053 * arm-tdep.c (arm_gdbarch_init): Update.
9054 * alpha-tdep.c (alpha_gdbarch_init): Update.
9058 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9059 option enum and switch. When no windows, set the interpreter to
9064 * main.c (captured_main): Replace magic option characters with an
9069 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9070 INIT_EXTRA_FRAME_INFO.
9071 * gdbarch.h, gdbarch.c: Regenerate.
9072 * arm-tdep.c: Update comments.
9073 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9074 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9075 * frame.h, avr-tdep.c: Ditto.
9076 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9077 (create_new_frame, legacy_get_prev_frame): Ditto.
9078 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9079 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9080 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9081 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9082 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9083 * v850-tdep.c (v850_gdbarch_init): Ditto.
9084 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9085 * sh-tdep.c (sh_gdbarch_init): Ditto.
9086 * s390-tdep.c (s390_gdbarch_init): Ditto.
9087 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9088 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9089 * mips-tdep.c (mips_gdbarch_init): Ditto.
9090 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9091 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9092 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9093 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9094 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9095 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9096 * frv-tdep.c (frv_gdbarch_init): Ditto.
9097 * cris-tdep.c (cris_gdbarch_init): Ditto.
9098 * avr-tdep.c (avr_gdbarch_init): Ditto.
9099 * arm-tdep.c (arm_gdbarch_init): Ditto.
9100 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9101 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9105 * gdbarch.sh (register_type): New function with predicate.
9106 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9107 * gdbarch.h, gdbarch.c: Re-generate.
9108 * arch-utils.c (generic_register_byte): Use generic_register_size.
9109 (generic_register_size): When available, use
9110 gdbarch_register_type.
9111 * regcache.c (init_regcache_descr): When available, initialize the
9112 register type array using gdbarch_register_type. If the
9113 architecture supplies gdbarch_register_type, do not use the legacy
9115 * d10v-tdep.c (d10v_register_type): Replace
9116 d10v_register_virtual_type.
9117 (d10v_gdbarch_init): Set register_type instead of
9118 register_virtual_type.
9122 * Makefile.in (ax-gdb.o): Update dependencies.
9123 * ax-gdb.c: Include "regcache.h".
9124 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9125 * findvar.c (value_of_register): Ditto.
9126 * infcmd.c (default_print_registers_info): Ditto.
9130 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9131 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9135 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9140 * Makefile.in (dwarf2loc.o): Update dependencies.
9141 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9142 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9143 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9144 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9145 (locexpr_tracepoint_var_ref): New function.
9146 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9150 * regcache.c (register_size): New function.
9151 * regcache.h (register_size): Declare
9152 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9153 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9157 * linespec.c (decode_compound): Extract code into find_method.
9162 * Makefile.in: Add rules to build and link in observer.o.
9166 * observer.c: Minor comments edits.
9170 * observer.h, observer.c: New file.
9174 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9178 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9179 (M6812_OP_STS_EXT): Likewise.
9180 (m6811_prologue): Use the above to recognize prologue.
9181 (m6812_prologue): Likewise.
9185 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9187 (compare_psymbols): Ditto.
9188 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9192 * f-lang.c (build_fortran_types): New function.
9193 (_initialize_f_language): Gdbarch-register built-in fortran types.
9194 * doublest.c (extract_floating): Fix warning text.
9198 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9199 predicate. Replaces PUSH_DUMMY_FRAME.
9200 * gdbarch.h, gdbarch.c: Regnerate.
9201 * valops.c (hand_function_call): Update. Call
9202 generic_push_dummy_frame directly.
9203 * vax-tdep.c (vax_gdbarch_init): Update.
9204 * sparc-tdep.c (sparc_gdbarch_init): Update.
9205 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9206 * m68k-tdep.c (m68k_gdbarch_init): Update.
9207 * hppa-tdep.c (hppa_gdbarch_init): Update.
9208 * alpha-tdep.c (alpha_gdbarch_init): Update.
9209 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9210 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9211 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9213 push_dummy_frame to generic_push_dummy_frame.
9214 * v850-tdep.c (v850_gdbarch_init): Ditto.
9215 * sh-tdep.c (sh_gdbarch_init): Ditto.
9216 * s390-tdep.c (s390_gdbarch_init): Ditto.
9217 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9218 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9219 * mips-tdep.c (mips_gdbarch_init): Ditto.
9220 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9222 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9223 * i386-tdep.c (i386_gdbarch_init): Ditto.
9224 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9225 * frv-tdep.c (frv_gdbarch_init): Ditto.
9226 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9227 * cris-tdep.c (cris_gdbarch_init): Ditto.
9228 * avr-tdep.c (avr_gdbarch_init): Ditto.
9229 * arm-tdep.c (arm_gdbarch_init): Ditto.
9233 * mips-tdep.c (show_mips_abi): New function.
9234 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9235 command ``show mips abi''.
9240 * dbxread.c (process_one_symbol): Only record line 0 if one or
9241 more sline entries have been seen for the function.
9245 * configure: Regenerate with autoconf 000227.
9250 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9251 for old libc5/glibc.
9252 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9256 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9257 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9261 * configure.in: New variable HAVE_UINTPTR_T.
9262 * configure, config.in: Regenerated.
9267 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9271 * frame.c (get_prev_frame): Add comment on check for
9272 inside_entry_func. Only check for inside_entry_file when not a
9273 dummy and not a sentinel. Check that the new frame is not inner
9278 * frame.c (frame_debug): New variable.
9279 (_initialize_frame): Add "set/show debug frame" command.
9280 (get_prev_frame): When frame_debug, print reason why unwind
9285 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9286 to avoid uintptr_t definition problems.
9290 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9291 (SYMBOL_LINKAGE_NAME): Ditto.
9292 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9293 SYMBOL_LINKAGE_NAME.
9294 (struct general_symbol_info): Expand comment.
9295 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9296 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9297 (SYMBOL_MATCHES_REGEXP): Ditto.
9298 * symtab.c (symbol_natural_name): New function.
9299 * objfiles.h: Replace all uses of SYMBOL_NAME by
9300 DEPRECATED_SYMBOL_NAME.
9301 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9302 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9303 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9304 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9305 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9306 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9307 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9308 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9309 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9310 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9312 * ada-exp.y: Update copyright.
9313 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9314 * cp-valprint.c: Ditto.
9318 * infptrace.c (detach): Do not flag error if ptrace detach fails
9319 and errno is set to ESRCH.
9323 * infptrace.c (udot_info): Change type of udot_off to long. Use
9324 paddr when printing udot_off's value.
9328 * symtab.c (make_symbol_overload_list): Only read in partial
9329 symtabs containing a matching partial symbol.
9333 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9334 do the comparison, not strcmp.
9335 * symfile.c (compare_psymbols): Ditto.
9336 * defs.h: Declare strcmp_iw_ordered.
9337 * utils.c (strcmp_iw_ordered): New function.
9341 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9342 support, shared libs): Remove my name from here, to better reflect
9347 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9348 (target_ops): Add to_have_continuable_watchpoint.
9349 * target.c (update_current_target): Add INHERIT line for
9350 to_have_continuable_watchpoint.
9351 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9352 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9353 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9354 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9358 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9363 * solib.c (solib_open): Call target defined search function after
9364 failing with solib-search-path.
9365 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9366 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9370 * MAINTAINERS: Add myself to Write After section.
9374 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9378 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9379 (m68hc11_add_reggroups): New function.
9380 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9381 (m68hc11_gdbarch_init): Install the reggroups.
9382 (_initialize_m68hc11_tdep): Initialize them.
9386 * MAINTAINERS: Update my email address.
9390 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9395 * symtab.h: Add opaque declarations of struct axs_value and
9397 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9398 (struct location_funcs): New type.
9399 (struct symbol): Add "loc" to aux_value.
9400 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9401 * dwarf2read.c: Include "dwarf2expr.h".
9402 (dwarf2_symbol_mark_computed): New function.
9403 (read_func_scope): Use it.
9404 (var_decode_location): New function.
9405 (new_symbol): Use it.
9406 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9408 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9409 (dwarf2expr_h, dwarf2loc_h): New variables.
9410 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9411 (dwarf2expr.o, dwarf2loc.o): New rules.
9412 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9413 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9415 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9416 * m2-exp.y (yylex): Likewise.
9417 * printcmd.c (address_info, print_frame_args): Likewise.
9418 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9419 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9420 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9421 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9422 * symtab.c (lookup_block_symbol): Likewise.
9426 * symtab.h: Remove objc_specific struct
9427 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9428 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9429 Have language_objc use cplus_specific struct.
9433 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9434 TYPE_NAME, when printing a String value. PR java/1075.
9438 * objc-lang.h (find_methods): Remove declaration.
9439 * objc-lang.c (find_methods): Make static.
9443 * win32-nat.c (get_image_name): Check return value from
9445 (child_xfer_memory): Ditto.
9449 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9450 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9451 '${exec_prefix}' (in addition to the expansion thereof) as
9453 * configure: Rebuilt.
9457 * symtab.c (search_symbols): Revert the search_symbols part of my
9458 2002-12-23 patch. Add comment.
9462 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9463 * dbxread.c (elfstab_build_psymtabs): Don't call
9464 install_minimal_symbols.
9465 (stabsect_build_psymtabs): Likewise.
9466 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9468 * somread.c (som_symfile_read): Call install_minimal_symbols
9469 and do_cleanups earlier.
9470 * nlmread.c (nlm_symfile_read): Likewise.
9471 * mdebugread.c (elfmdebug_build_psymtabs): Call
9472 install_minimal_symbols and make appropriate cleanups.
9476 * solib.c (reload_shared_libraries): New function.
9477 (_initialize_solib): Add callbacks for ``set solib-search-path''
9478 and ``set solib-absolute-prefix''.
9482 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9484 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9485 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9486 * ada-typeprint.c (ada_typedef_print): Ditto.
9487 * ax-gdb.c (gen_var_ref): Ditto.
9488 * breakpoint.c (print_one_breakpoint): Ditto.
9489 * buildsym.c (finish_block): Ditto.
9490 * c-valprint.c (c_val_print): Ditto.
9491 * expprint.c (print_subexp): Ditto.
9492 * findvar.c (locate_var_value): Ditto.
9493 * infcmd.c (jump_command): Ditto.
9494 * linespec.c (decode_line_2, decode_compound): Ditto.
9495 * maint.c (maintenance_translate_address): Ditto.
9496 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9497 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9499 * p-valprint.c (pascal_val_print): Ditto.
9500 * stabsread.c (define_symbol): Ditto.
9501 * stack.c (print_frame, frame_info, print_block_frame_locals)
9502 (print_frame_arg_vars, return_command): Ditto.
9503 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9504 * symmisc.c (print_symbol): Ditto.
9505 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9506 (compare_search_syms, print_symbol_info, print_msymbol_info)
9507 (rbreak_command): Ditto.
9508 * tracepoint.c (tracepoints_info): Ditto.
9509 * typeprint.c (typedef_print): Ditto.
9510 * valops.c (value_of_variable, hand_function_call): Ditto.
9511 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9512 * ada-typeprint.c: Update Copyright.
9513 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9514 * tracepoint.c, cli/cli-cmds.c: Ditto.
9518 * frame.c (generic_unwind_get_saved_register): Make non-static.
9519 * frame.h (generic_unwind_get_saved_register): Declare.
9520 * mips-tdep.c (read_next_frame_reg): Fetch register from
9521 current regcache when frame is NULL.
9522 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9524 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9525 instead of frame_register_unwind().
9529 * remote-sim.c (gdbsim_insert_breakpoint)
9530 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9535 * remote.c (_initialize_remote): Add commands "set/show remote
9536 hardware-watchpoint-limit" and "set/show remote
9537 hardware-breakpoint-limit".
9538 (remote_hw_watchpoint_limit): Initialize to -1.
9539 (remote_hw_breakpoint_limit): Ditto.
9540 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9544 * coff-pe-read.c: New file - support reading of minimal symbols from a
9545 portable executable using the export table.
9546 * coff-pe-read.h: New file.
9547 * coffread.c: Include coff-pe-read.h.
9548 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9549 debugging symbols found.
9550 * Makefile.in (SFILES): Add coff-pe-read.o.
9551 (coff_pe_read_h): Define.
9552 (COMMON_OBS): Add coff-pe-read.o.
9553 (coffread.o): Add coff_pe_read_h dependency.
9554 (coff-pe-read.o): New target.
9558 * Makefile.in (SFILES): Add block.c.
9560 (COMMON_OBS): Add block.o.
9562 (x86-64-tdep.o): Add $(block_h).
9563 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9564 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9565 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9566 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9567 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9568 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9569 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9570 * value.h: Add opaque declaration for struct block.
9571 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9572 * ada-lang.h: Ditto.
9573 * x86-64-tdep.c: #include "block.h"
9574 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9575 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9576 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9577 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9578 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9579 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9580 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9581 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9582 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9583 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9584 * symtab.c (block_function): Ditto.
9585 (contained_in): Ditto.
9586 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9587 block.h. Add opaque declaration for struct block.
9588 * symtab.h: Move block_function and contained_in declarations to
9589 block.h. Add opaque declarations for struct block, struct
9591 (struct block): Move to block.h.
9592 (struct blockvector): Ditto.
9593 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9594 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9595 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9596 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9597 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9599 * block.c: New file.
9600 * block.h: New file.
9604 * avr-tdep.c (avr_extract_return_value): Remove function.
9605 (avr_store_return_value): Remove function.
9606 (avr_extract_struct_value_address): Remove function.
9607 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9611 * rs6000-tdep.c: Include "gdb_assert.h".
9612 (registers_e500): Add "acc" and "spefscr".
9613 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9614 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9615 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9617 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9621 * Makefile.in: Add gdbtk-interps.c.
9625 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9626 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9630 * symtab.h (struct objfile): Add opaque declaration.
9635 * dbxread.c (process_one_symbol): Use last_function_start rather
9636 than function_start_offset to find the real beginning of the
9637 current function. The latter is just the text section offset on
9638 some systems, the former is always the real function start.
9642 * configure.in: Revert ${target} != ${host}.
9646 * configure.in (Makefile): Use the test ${target} != ${host},
9647 instead of the absence of the "nm.h" file, to determine of the
9648 configuration non-native.
9649 * configure: Regenerate.
9655 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9656 conditionalize tui_active test.
9657 (lookup_cmd_1): Ditto.
9661 * configure.in: Add check for _etext.
9662 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9664 * config.in, configure: regenerated.
9668 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9672 * main.c (tui_version): Delete variable.
9673 (captured_main): When --tui, set interpreter_p to "tui" instead of
9674 enabling tui_version.
9675 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9677 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9678 * cli/cli-cmds.c (disassemble_command): Ditto.
9679 * defs.h (tui_version): Delete declaration.
9680 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9681 (tui-interp.o): Add rules.
9682 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9686 * win32-nat.c (register_loaded_dll): Correctly set address range for
9691 * symmisc.c (print_objfile_statistics): Include information about
9692 the number of psymtabs and symtabs in each object file.
9696 * main.h (struct captured_main_args): Add interpreter_p.
9697 * main.c (captured_main): Initialize interpreter_p from context.
9698 * gdb.c (main): Set interpreter_p argument.
9699 * Makefile.in (gdb.o): Add dependency for interps.h.
9703 * event-top.c (cli_command_loop): Delete declaration.
9704 (_initialize_event_loop): Delete function setting event_loop_hook.
9705 * event-top.h (cli_command_loop): Declare. Update copyright.
9706 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9707 * interps.c (current_interp_command_loop): When event_loop_p, call
9712 * interps.h (interp_command_loop_ftype): Change return type to
9717 * x86-64-tdep.c (x86_64_extract_return_value)
9718 (x86_64_store_return_value): Use regcache instead of regbuf.
9719 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9720 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9724 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9725 * aclocal.m4: Regenerate.
9726 * configure: Regenerate.
9728 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9729 TCL_LD_SEARCH_FLAGS.
9733 * dwarf2cfi.c: Reindented.
9737 * interps.c (clear_interpreter_hooks): Convert function definition
9742 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9746 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9747 (struct type): ...to here.
9748 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9750 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9751 (replace_type): Set length on all type variants for a given type.
9755 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9757 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9761 * Makefile.in (symm-nat.o): Update dependencies.
9762 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9763 (lynx-nat.o, ia64-linux-nat.): Ditto.
9764 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9765 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9766 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9768 * Makefile.in (inflow_h): Define.
9769 (procfs.o, inflow.o, procfs.o): Update dependencies.
9770 * inftarg.c (child_stop): Delete extern declaration of
9771 inferior_process_group. Include "inflow.h".
9772 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9773 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9774 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9775 (our_process_group, inferior_process_group): Extern declarations.
9777 * procfs.c: Include "gdb_assert.h".
9779 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9780 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9781 * jv-typeprint.c (java_type_print_base): Ditto.
9782 * typeprint.c (typedef_print): Eliminate STREQ.
9783 * cli/cli-script.c (define_command, define_command): Ditto.
9784 * main.c (captured_main): Ditto.
9785 * values.c (lookup_internalvar): Ditto.
9786 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9787 within `if' conditional.
9788 * linespec.c (decode_line_2): Ditto.
9789 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9790 (bfd_openw_with_cleanup): Ditto.
9794 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9795 legacy_extract_return_value and store_return_value to
9796 legacy_return_value.
9800 * win32-nat.c (get_relocated_section_addrs): New function. Find
9801 section load addresses for symbol handling in relocated DLLs.
9802 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9806 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9808 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9810 (angel_RDI_info): Ditto.
9811 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9813 (threads_continue_all_with_signals): Ditto.
9820 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9821 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9822 (SUBDIR_MI_OBS): Add "mi-interp.o".
9823 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9824 (SFILES): Add "interps.c".
9825 (COMMON_OBS): Add "interps.o".
9826 (interps_h, mi_main_h): Define.
9827 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9828 (mi-main.o, main.o, event-top.o): Update dependencies.
9829 * cli/cli-interp.c: New file.
9830 * interps.h, interps.c: New files.
9831 * top.c: (gdb_init): Don't install the default interpreter, handed
9833 * main.c: Include "interps.h".
9834 (interpreter_p): Note that it should malloc'ed.
9835 (captured_command_loop): Call current_interp_command_loop.
9836 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9837 xfree and xstrdup when updating interpreter_p. Install the
9838 default interpreter. Add hack to stop mi1's copyright notice
9840 * event-top.h (gdb_setup_readline): Declare.
9841 (gdb_disable_readline): Declare.
9842 * event-top.c: Include "interps.h".
9843 (display_gdb_prompt): Call current_interp_display_prompt_p.
9844 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9845 gdb_stdlog, and gdb_stdtarg.
9846 (_initialize_event_loop): Don't call gdb_setup_readline.
9847 * cli-out.c (cli_out_set_stream): New function.
9848 * cli-out.h (cli_out_set_stream): Declare.
9852 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9853 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9854 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9855 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9856 config/i386/i386v42mp.mt: Removed.
9860 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9865 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9866 2.12.1 and earlier versions.
9870 Remove orphaned hosts, targets and files.
9871 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9872 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9873 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9874 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9875 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9876 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9877 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9878 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9879 * config/sparc/tm-sp64sim.h: Delete.
9880 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9882 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9883 mips*-dec-mach3* targets.
9887 * NEWS: Fix typo: sepcifying -> specifying.
9891 * dwarfread.c: Add documentation on the state of dwarf-1,
9892 looking towards obsoletion.
9896 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9897 gdb/testsuite/gdb.c++/pr-1023.exp.
9901 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9902 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9904 * utils.c (init_page_info): Delete reference to MPW in comments.
9905 * main.c (captured_main): Delete #ifdef MPW.
9909 * NEWS: Note that the m32r-*-elf* is obsolete.
9910 * monitor.c (monitor_expect): Obsolete reference to m32r.
9911 * configure.tgt: Mark m32r-*-elf* as obsolete.
9912 * MAINTAINERS: Mark m32k as obsolete.
9913 * m32r-rom.c: Obsolete file.
9914 * config/m32r/m32r.mt: Obsolete file.
9915 * config/m32r/tm-m32r.h: Obsolete file.
9916 * m32r-stub.c: Obsolete file.
9917 * m32r-tdep.c: Obsolete file.
9921 * NEWS: Mention that the z8k-zilog-none is obsolete.
9922 * MAINTAINERS: Mark z8k as obsolete.
9923 * configure.tgt: Obsolete the z8k-*-coff* target.
9924 * config/z8k/z8k.mt: Obsolete file.
9925 * config/z8k/tm-z8k.h: Obsolete file.
9926 * z8k-tdep.c: Obsolete file.
9930 * NEWS: Mention that the mn10200-elf is obsolete.
9931 * configure.tgt: Obsolete mn10200-*-* target.
9932 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9933 mention that the mn10200 is obsolete.
9934 * breakpoint.h: Ditto.
9935 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9936 * config/mn10200/mn10200.mt: Obsolete file.
9937 * config/mn10200/tm-mn10200.h: Obsolete file.
9938 * mn10200-tdep.c: Obsolete file.
9942 * MAINTAINERS: Mark h8500 as obsolete.
9943 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9944 * findvar.c (value_from_register): Ditto.
9945 * h8500-tdep.c: Mark file as obsolete.
9946 * config/h8500/h8500.mt: Ditto.
9947 * config/h8500/tm-h8500.h: Ditto.
9948 * NEWS: Mention that h8500 is obsolete.
9952 * objfiles.c (allocate_objfile): Always set name. Add comment at
9954 * jv-lang.c (get_dynamics_objfile): Add comment.
9958 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9959 * printcmd.c (build_address_symbolic): Replace uses of
9960 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9961 SYMBOL_NAME, and asm_demangle.
9966 * linespec.c (decode_compound): Extract code into
9968 (lookup_prefix_sym): New function.
9972 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9973 FLOAT_COERCION_BADNESS.
9974 * gdbtypes.c (rank_one_type): Replace all uses of
9975 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9979 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9980 section, let dwarf_macinfo_section point to it, not
9986 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9987 (ppc_linux_at_sigtramp_return_path): Use it.
9991 * defs.h (streq): Add prototype.
9992 * utils.c (streq): New function.
9994 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9995 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9996 * mdebugread.c (new_symbol): Likewise.
9997 * stabsread.c (define_symbol): Likewise.
9998 * coffread.c (process_coff_symbol): Likewise.
9999 * dwarfread.c (new_symbol): Likewise.
10001 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10002 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10004 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10005 SYMBOL_INIT_DEMANGLED_NAME.
10006 * objfiles.c: Include "hashtab.h".
10007 (allocate_objfile): Call htab_set_functions_ex for the
10008 demangled_names_hash.
10009 (free_objfile): Call htab_delete for the demangled_names_hash.
10010 * objfiles.h (struct htab): Add declaration.
10011 (struct objfile): Add demangled_names_hash.
10012 * symfile.c: Include "hashtab.h".
10013 (reread_symbols): Call htab_delete for the demangled_names_hash.
10014 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10015 SYMBOL_NAME in the bcache.
10016 * symtab.c: Include "hashtab.h". Update comments.
10017 (create_demangled_names_hash, symbol_set_names): New functions.
10018 (symbol_find_demangled_name): New function, broken out from
10019 symbol_init_demangled_names.
10020 (symbol_init_demangled_names): Use it.
10021 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10022 (SYMBOL_SET_NAMES): New macro.
10023 (symbol_set_names): Add prototype.
10027 Use a single, consistent representation for an empty minimal
10028 symbol table in an objfile.
10029 * objfiles.c (terminate_minimal_symbol_table): New function.
10030 (allocate_objfile): Call it.
10031 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10032 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10034 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10035 objfile has minimal symbols, compare minimal_symbol_count to zero,
10036 instead of comparing msymbols with NULL.
10037 * objfiles.c (have_minimal_symbols): Same.
10038 * solib-sunos.c (solib_add_common_symbols): Call
10039 terminate_minimal_symbol_table.
10040 * symfile.c (reread_symbols): Same.
10044 * s390-tdep.c (s390_address_class_type_flags)
10045 (s390_address_class_type_flags_to_name)
10046 (s390_address_class_name_to_type_flags): New functions.
10047 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10048 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10052 * arm-tdep.c: Fix spell-o in comment.
10056 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10057 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10058 error messages to contain BFD filename.
10062 Fix PR gdb/742 gdb/743 gdb/877
10063 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10064 (do_mixed_source_and_assembly): Use
10065 make_cleanup_ui_out_tuple_begin_end and
10066 make_cleanup_ui_out_tuple_begin_end.
10067 (do_mixed_source_and_assembly): Ditto.
10068 * thread.c (do_captured_list_thread_ids): Ditto.
10069 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10070 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10071 ui_out_tuple_end): Delete prototypes.
10072 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10073 ui_out_list_end, ui_out_tuple_end): Delete.
10076 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10077 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10078 (do_cleanup_table_end): New functions.
10079 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10080 Use cleanups to invoke_ui_out_tuple_end().
10081 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10082 * cli/cli-setshow.c (cmd_show_list): Use
10083 make_cleanup_ui_out_tuple_begin_end.
10087 * frame.c (frame_unwind_register): New function.
10088 (frame_unwind_unsigned_register): Use.
10089 (frame_unwind_signed_register): Use.
10090 (frame_read_register): New function.
10091 * frame.h (frame_unwind_register): Declare.
10092 (frame_read_register): Declare.
10094 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10095 and frame_unwind_register instead of read_memory, write_register
10096 and deprecated_write_register_bytes.
10100 * frame.h: Note that namelen can be negative.
10101 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10104 * NEWS: Mention that the d10v's `regs' command is deprecated.
10105 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10106 (d10v_print_registers_info): New function.
10107 (show_regs): Call d10v_print_registers_info.
10108 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10112 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10113 lost in the previous patch.
10118 * stack.c (print_frame_info_base): Output complete FRAME tuple
10119 for synthesized frames.
10123 * mips-nat.c (zerobuf): Delete.
10124 (fetch_inferior_registers): Alloc local zerobuf.
10125 (fetch_core_registers): Alloc local zerobuf.
10126 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10127 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10128 * thread-db.c (thread_db_store_registers): Ditto.
10129 * sh-tdep.c (sh_do_register): Ditto.
10130 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10131 * remote-sim.c (gdbsim_store_register): Ditto.
10132 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10133 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10134 * monitor.c (monitor_supply_register): Ditto.
10135 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10136 * mips-nat.c (fetch_inferior_registers): Ditto.
10137 * m68klinux-nat.c (fetch_register): Ditto.
10138 * lynx-nat.c (fetch_inferior_registers): Ditto.
10139 (fetch_inferior_registers): Ditto.
10140 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10141 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10142 (hpux_thread_store_registers): Ditto.
10143 * hppah-nat.c (fetch_register): Ditto.
10144 * hppab-nat.c (fetch_register): Ditto.
10145 * hppa-tdep.c (pa_register_look_aside): Ditto.
10146 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10147 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10151 * gdbarch.sh: Explictly specify all method levels. When a
10152 variable with an empty level, provide a non-multi-arch default.
10153 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10154 * gdbarch.h: Re-generate.
10155 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10156 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10160 * defs.h (host_pointer_to_address): Delete declaration.
10161 (address_to_host_pointer): Delete declaration.
10162 * utils.c (host_pointer_to_address): Delete function.
10163 (address_to_host_pointer): Delete function.
10164 * procfs.c (procfs_address_to_host_pointer): New function.
10165 * procfs.c (proc_set_watchpoint): Use.
10166 (procfs_can_use_hw_breakpoint): Update comments.
10167 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10168 (som_solib_add): Use.
10169 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10170 * hppa-tdep.c (unwind_command): Use.
10174 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10177 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10178 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10179 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10180 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10181 (define_symbol): Update.
10182 * symfile.c (generic_load): Remove references to nindy.
10183 * symtab.c: Remove references to nindy.
10187 * infcmd.c (print_float_info): Delete code conditional on
10189 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10190 * config/m68k/nm-apollo68b.h: Ditto.
10191 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10192 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10193 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10197 * config/i386/tm-i386os9k.h: Removed.
10199 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10200 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10201 they're identical to i[3456]86-*-sysv* now.
10202 * config/i386/i386v32.mh: Removed.
10203 * config/i386/xm-i386v32.h: Removed.
10204 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10206 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10208 * config/i386/i386dgux.mh: Removed.
10209 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10211 * configure.in: Fix typo.
10212 * configure: Regenerated.
10216 * dwarf2read.c (dwarf2_locate_sections): Set
10217 dwarf_ranges_section.
10221 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10222 * utils.c: Update comments documenting legitimate uses of PTR.
10224 * utils.c: Re-indent.
10226 * config/djgpp/fnchange.lst: Delete nindy files.
10227 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10228 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10229 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10230 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10231 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10232 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10233 * Makefile.in (init.c): Remove nindy references.
10234 (saber_gdb): Delete rule.
10235 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10236 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10238 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10239 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10240 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10241 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10242 nindy-share/stop.h.
10243 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10244 * saber.suppress: Delete file.
10248 * dbxread.c (stabs_data): New static variable.
10249 (fill_symbuf): Support an in-memory buffer for stabs data.
10250 (stabs_seek): New function.
10251 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10252 (read_ofile_symtab): Use stabs_seek.
10253 (elfstab_build_psymtabs): Take an asection* instead of
10254 an offset and size. Relocate the stabs data if necessary.
10255 Save the section* for dbx_psymtab_to_symtab.
10256 * dwarf2read.c: Add section variables for each debug section.
10257 (dwarf2_locate_sections): Fill them in.
10258 (dwarf2_read_section): Take an asection* argument.
10259 Relocate the section contents if necessary.
10260 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10261 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10262 it to dwarf2_read_section.
10263 (dwarf2_build_frame_info): Update callers.
10264 * elfread.c (elf_symfile_read): Update call to
10265 elfstab_build_psymtabs.
10266 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10267 (DBX_STAB_SECTION): New macro.
10268 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10269 * symfile.c (symfile_dummy_outputs): New function.
10270 (symfile_relocate_debug_section): New function.
10271 * symfile.h (symfile_relocate_debug_section): Add prototype.
10275 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10276 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10277 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10278 * alpha-tdep.c (alpha_register_name): Add "unique".
10279 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10280 (ALPHA_UNIQUE_REGNUM): New.
10281 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10285 * README: Remove reference to Ericsson 1800 monitor.
10286 * Makefile.in (remote-es.o): Delete rule.
10287 (ALLDEPFILES): Delete remote-es.c.
10288 * remote-es.c: Delete file.
10289 * config/m68k/es1800.mt: Delete file.
10290 * config/djgpp/fnchange.lst: Update.
10291 * configure.tgt: Delete m68*-ericsson-* target.
10295 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10296 Remove duplicate/shadowing variable of same name.
10300 * symfile.c (find_separate_debug_file): Assert that the objfile's
10301 directory name we compute ends with a slash, and then assume that
10302 that's so everywhere we use it.
10306 * valops.c (value_assign): Flush frame cache after stores to memory
10311 * Makefile.in (mon960-rom.o): Delete rule.
10312 * mon960-rom.c: Delete file.
10316 * d10v-tdep.c: Include "frame-unwind.h".
10317 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10319 (next_addr, uses_frame): Delete.
10320 (struct d10v_unwind_cache): Define.
10321 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10322 Use info instead of next_addr and uses_frame globals.
10323 (d10v_frame_init_saved_regs): Delete function.
10324 (d10v_init_extra_frame_info): Delete function.
10325 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10326 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10327 init_frame_pc or frame_saved_pc.
10328 (d10v_pop_frame): Delete function.
10329 (do_d10v_pop_frame): Delete function.
10330 (d10v_frame_chain): Delete function.
10331 (d10v_frame_chain_valid): Delete function.
10332 (d10v_frame_pc_unwind): New function.
10333 (d10v_frame_id_unwind): New function.
10334 (saved_regs_unwinder): New function.
10335 (d10v_frame_register_unwind): New function.
10336 (d10v_frame_pop): New function.
10337 (d10v_frame_unwind): New variable.
10338 (d10v_frame_p): New function.
10339 (d10v_frame_saved_pc): Delete function.
10340 * Makefile.in (d10v-tdep.o): Update dependencies.
10344 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10345 causing some regressions due to a change in the default value
10353 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10355 (RANGES_SECTION): New.
10356 (dwarf_ranges_buffer): New variable.
10357 (struct comp_unit_head): Add member "die".
10358 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10359 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10360 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10361 (dwarf2_locate_sections): Likewise.
10362 (dwarf2_build_psymtabs): Read .debug_ranges.
10363 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10364 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10365 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10366 Look for DW_AT_ranges and return the bounding box.
10370 * win32-nat.c (cygwin_pid): Removed as unused.
10371 (child_attach): Try fall back to Cygwin pid.
10375 * objfiles.h (struct objfile): Doc fix.
10379 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10380 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10381 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10382 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10383 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10384 (FRAME_SAVED_PC): Change to a function with predicate.
10385 * gdbarch.h, gdbarch.c: Re-generate.
10389 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10391 * complaints.c (complain): Delete function.
10392 * complaints.h (struct deprecated_complaint): Delete definition.
10393 (complain): Delete declaration.
10397 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10402 * sentinel-frame.h, sentinel-frame.c: New files.
10403 * Makefile.in (frame.o): Update dependencies.
10404 (SFILES): Add sentinel-frame.c.
10405 (sentinel_frame_h): Define.
10406 (COMMON_OBS): Add sentinel-frame.o.
10407 (sentinel-frame.o): Specify dependencies.
10408 * frame.c: Include "sentinel-frame.h".
10409 (frame_register_unwind): Rewrite assuming that there is always a a
10411 (frame_register, generic_unwind_get_saved_register): Ditto.
10412 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10413 (create_sentinel_frame, unwind_to_current_frame): New functions.
10414 (get_current_frame): Rewrite using create_sentinel_frame and
10415 unwind_to_current_frame. When possible, always create a frame.
10416 (create_new_frame): Set next to the sentinel frame.
10417 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10418 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10419 ID cache when necessary.
10420 (frame_saved_regs_id_unwind): Use frame_relative_level.
10421 (deprecated_generic_get_saved_register): Use frame_relative_level,
10422 get_frame_saved_regs, get_frame_pc, get_frame_base and
10424 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10429 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10433 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10434 (maintenance_set_profile_cmd): Use error () instead of warning ().
10438 * configure.in: Check that -pg works if using --enable-profiling.
10439 Check for monstartup and _mcleanup regardless of --enable-profiling.
10440 * maint.c: Check for monstartup and _mcleanup before using them.
10441 * config.in: Regenerated.
10442 * configure: Regenerated.
10446 * Add sh2e support:
10450 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10451 (sh2e_show_regs): New.
10452 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10453 * config/sh/tm-sh.h: Added sh2e to comments.
10457 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10458 symbols found)" message here; we haven't checked for a separate
10459 debug info file yet, so we don't know yet.
10460 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10461 we've looked everywhere. Also, there's no need to print a special
10462 message when we're loading the separate debug info file: the one
10463 symbol_file_add prints is fine.
10468 Add support for executables whose debug info has been separated
10469 out into a separate file, leaving only a link behind.
10470 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10471 and separate_debug_objfile_backlink.
10472 (put_objfile_before): New declaration.
10473 * symfile.c: #include "filenames.h".
10474 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10475 debug info in a separate file, read that, too. Save the addrs
10476 argument, so we can use it again to read the separated debug info;
10477 syms_from_objfile modifies the table we pass it.
10478 (reread_symbols): After re-reading an objfile, call
10479 reread_separate_symbols to refresh its separate debug info
10480 objfile, if it has one.
10481 (reread_separate_symbols, find_separate_debug_file,
10482 get_debug_link_info, separate_debug_file_exists): New functions.
10483 (debug_file_directory): New global var.
10484 (_initialize_symfile): Initialize debug_file_directory, and
10485 provide the new `set debug-file-directory' command to let the user
10487 * objfiles.c (free_objfile): If this objfile has its debug info in
10488 a separate objfile, free that one too. If this is itself a
10489 separate debug info objfile, clear our parent's backlink.
10490 (put_objfile_before): New function.
10491 * utils.c (gnu_debuglink_crc32): New function.
10492 * defs.h (gnu_debuglink_crc32): New declaration.
10493 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10494 * configure.in: Handle --with-separate-debug-dir config option.
10495 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10496 * acconfig.h (DEBUGDIR): New macro.
10497 * configure, aclocal.m4, config.in: Regenerated.
10501 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10502 like the old symbol_file_add, but taking new arguments: you can
10503 now pass in either a `struct section_addr_info' list to say where
10504 each section is loaded, or a `struct section_offsets' table. Pass
10505 these new arguments through to syms_from_objfile as appropriate.
10506 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10507 with the appropriate quiescent values for the new arguments.
10509 * symfile.c: #include "gdb_assert.h".
10510 (syms_from_objfile): Add the ability to pass in a section offset
10511 table directly, as an alternative to the section_addr_info table.
10512 Document arguments better.
10513 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10514 * symfile.h (syms_from_objfile): Update declaration.
10515 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10517 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10523 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10524 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10525 * NEWS: Mention profiling.
10526 * configure.in (--enable-gdbtk): Fix typo.
10527 (--enable-profiling): New. Set PROFILE_CFLAGS.
10528 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10530 (profiling_state): New variable.
10531 (mcleanup_wrapper): New function.
10532 (_initialize_maint): Remove NOTYET, fix call to
10533 add_setshow_boolean_cmd for "maint set profile".
10534 * configure: Regenerated.
10538 * Makefile.in (install-gdbtk): Install PNG images too.
10542 * exec.c (text_start): Delete global variable.
10543 (exec_file_attach): Make text_start local to the function.
10544 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10545 * valops.c (hand_function_call): Delete code that handles
10546 BEFORE_TEXT_END and AFTER_TEXT_END.
10547 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10548 of CALL_DUMMY_LOCATION.
10549 * gdbarch.c: Regenerate.
10550 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10551 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10552 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10553 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10554 (text_end): Delete extern declaration.
10558 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10559 * blockframe.c (backtrace_below_main): Move to "frame.c".
10560 (frame_chain_valid): Delete check for backtrace_below_main.
10561 (_initialize_blockframe): Delete initialization, move ``set
10562 backtrace-below-main'' command to "frame.c".
10563 (do_flush_frames_sfunc): Delete function.
10564 * frame.c: Include "command.h" and "gdbcmd.h".
10565 (frame_type_from_pc): New function.
10566 (create_new_frame): Use frame_type_from_pc.
10567 (legacy_get_prev_frame): New function.
10568 (get_prev_frame): Rewrite. When an old style frame, call
10569 legacy_get_prev_frame. Otherwize, unwind the PC first.
10570 (_initialize_frame): Add ``set backtrace-below-main'' command.
10571 * Makefile.in (frame.o): Update dependencies.
10575 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10576 DEPRECATED_REGISTERS_INFO.
10580 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10581 Maintainers'. Update `Various Maintainers'.
10585 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10586 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10587 Suppress actual parameters when `-'.
10588 * gdbarch.h, gdbarch.c: Regenerate.
10592 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10593 code handling dummy frames.
10597 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10598 (struct frame_unwind): Add field pop.
10599 * frame.h (frame_pop): Declare.
10600 * frame.c (frame_saved_regs_pop): New function.
10601 (trad_frame_unwinder): Add frame_saved_regs_pop.
10602 (frame_pop): New function.
10603 * dummy-frame.c (dummy_frame_pop): New function.
10604 (discard_innermost_dummy): New function.
10605 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10606 (dummy_frame_unwind): Add dummy_frame_pop.
10607 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10608 * valops.c (hand_function_call): Ditto.
10609 * stack.c (return_command): Ditto.
10613 * cris-tdep.c: Fix function declaration indentation.
10614 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10615 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10616 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10617 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10618 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10619 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10623 * README (Unpacking and Installation -- quick overview):
10624 Warn against ".../gdb-5.3/gdb/configure".
10628 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10629 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10630 (struct frame_unwind): Declare opaque.
10631 (dummy_frame_p): Declare function.
10632 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10633 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10634 * dummy-frame.c: Include "frame-unwind.h".
10635 (dummy_frame_p): New function.
10636 (dummy_frame_unwind): New variable.
10637 * frame.c: Include "frame-unwind.h".
10638 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10639 to use the new unwind field.
10640 (set_unwind_by_pc): Delete function.
10641 (create_new_frame, get_prev_frame): Set unwind field using
10642 frame_unwind_find_by_pc.
10643 (trad_frame_unwind, trad_frame_unwinder): New variables.
10644 * frame.h (trad_frame_unwind): Declare variable.
10645 (frame_id_unwind_ftype): Delete declaration.
10646 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10647 (struct frame_unwind): Declare opaque.
10648 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10649 register_unwind with a single unwind pointer.
10650 * frame-unwind.h, frame-unwind.c: New files.
10651 * Makefile.in (SFILES): Add frame-unwind.c.
10652 (frame_unwind_h): Define.
10653 (COMMON_OBS): Add frame-unwind.o.
10654 (frame-unwind.o): Specify dependencies.
10655 (frame.o, dummy-frame.o): Update dependencies.
10659 * ada-valprint.c: Eliminate PTR.
10660 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10661 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10662 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10663 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10664 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10665 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10666 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10670 * main.c (captured_main): Don't use PTR.
10671 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10672 * gdbtypes.c (lookup_primitive_typename): Ditto.
10673 (lookup_struct_elt_type): Ditto.
10674 * f-valprint.c (info_common_command): Ditto.
10675 (list_all_visible_commons): Ditto.
10676 * jv-typeprint.c (java_type_print_base): Ditto.
10678 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10679 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10680 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10681 i386-interix-nat.c and i386-interix-tdep.c. Rename
10682 m68klinux-nat.c and m68klinux-tdep.c. Rename
10683 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10684 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10685 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10686 * main.c (captured_main): Use xfree, not free.
10690 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10691 ID back using a parameter.
10692 * frame.c (frame_id_unwind): Update call.
10693 (frame_saved_regs_id_unwind): Update.
10694 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10695 * dummy-frame.h (struct frame_id): Add opaque declaration.
10696 (dummy_frame_id_unwind): Update declaration.
10700 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10704 * MAINTAINERS (Stephen P. Smith): Updated email address.
10709 * breakpoint.c (until_break_command): Add new argument. Use it to
10710 decide whether to stop only at the current frame or not.
10711 * breakpoint.h (until_break_command): Update prototype.
10712 * infcmd.c (until_command): Add new argument to until_break_command
10714 (advance_command): New function.
10715 (_initialize_infcmd): Update help string for 'until' command.
10716 Add new 'advance' command.
10720 * linespec.c (decode_line_1): Normalize comments.
10721 (set_flags): Ditto.
10722 (locate_first_half): Ditto.
10723 (decode_compound): Ditto.
10724 (symtab_from_filename): Ditto.
10725 (decode_all_digits): Ditto.
10726 (decode_dollar): Ditto.
10727 (find_methods): Ditto.
10728 (find_toplevel_char): Ditto.
10732 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10733 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10734 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10735 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10736 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10737 * language.c, language.h, m32r-tdep.c: Update copyright.
10738 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10739 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10740 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10741 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10742 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10743 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10747 * stabsread.h (process_later, resolve_cfront_continuation):
10749 Update copyright years.
10750 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10751 Update copyright year.
10752 * dbxread.c(struct cont_elem): Obsolete.
10753 (process_later, process_now): Obsolete functions.
10754 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10755 Update copyright year.
10756 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10757 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10758 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10759 (parse_partial_symbols): Obsolete cfront support.
10761 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10763 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10764 read_cfront_baseclasses, read_cfront_member_functions,
10765 resolve_cfront_continuation,read_cfront_static_fields,
10766 copy_cfront_struct_fields): Obsolete functions.
10767 (define_symbol, read_one_struct_field): Obsolete cfront support.
10768 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10769 Update Copyright year.
10773 * stack.c (print_frame_info, print_stack_frame_base_stub,
10774 print_stack_frame_base, show_and_print_stack_frame_stub,
10775 show_and_print_stack_frame, print_only_stack_frame_stub,
10776 print_only_stack_frame): Delete functions.
10777 (print_stack_frame_stub): Call print_frame_info instead of
10778 print_frame_info_base.
10779 (print_frame_info_base): Rename to print_frame_info.
10780 (backtrace_command_1): Call print_frame_info, instead of
10781 print_frame_info_base.
10782 (current_frame_command): Call print_stack_frame, instead of
10783 print_only_stack_frame.
10784 (frame_command): Call print_stack_frame, instead of
10785 show_and_print_stack_frame.
10786 (up_command): Ditto.
10787 (down_command): Ditto.
10788 * frame.h (print_only_stack_frame): Delete prototype.
10789 * infrun.c (normal_stop): Call print_stack_frame, instead of
10790 show_and_print_stack_frame.
10791 * thread.c (info_threads_command): Call print_stack_frame, instead
10792 of print_only_stack_frame.
10796 * README (Graphical interface to GDB): Update URL. Point at
10799 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10804 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10809 * thread-db.c (attach_thread): Prototype.
10810 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10811 thread information (ti), and valid flags (th_valid, ti_valid).
10812 (attach_thread): Move target_pid_to_str call to after the thread
10813 is added to GDB's list. Initialize the cache.
10814 (thread_get_info_callback, thread_db_map_id2thr)
10815 (thread_db_get_info): New functions.
10816 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10817 (thread_db_store_registers, thread_db_thread_alive)
10818 (thread_db_get_thread_local_address): Use them.
10819 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10820 of calling error() for threads in unknown state.
10822 (clear_lwpid_callback): New function.
10823 (thread_db_resume): Use it to clear the cache.
10827 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10828 (resume_callback): Remove dead code.
10832 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10834 * gdbarch.h, gdbarch.c: Regenerate.
10835 * stack.c (frame_info): Only initialize the saved registers when
10836 FRAME_INIT_SAVED_REGS_P.
10837 * frame.c (frame_saved_regs_register_unwind): Assert
10838 FRAME_INIT_SAVED_REGS_P.
10839 (deprecated_generic_get_saved_register): Ditto.
10843 * source.c (openp): Squelch warning about "filename".
10847 * source.c (openp): If the file does not exist don't necessarily
10853 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10854 (integer_types_same_name_p): New function.
10855 (rank_one_type): Use it.
10856 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10860 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10862 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10863 * configure.in: Add --with-sysroot.
10864 * configure: Regenerated.
10865 * main.c (gdb_sysroot): New variable.
10866 (captured_main): Initialize gdb_sysroot.
10867 * defs.h (gdb_sysroot): New extern declaration.
10868 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10872 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10876 * top.c (print_gdb_version): Bump copyright year to 2003.
10880 * linespec.c (symtab_from_filename): Rename variable 's' to
10885 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10887 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10891 * d10v-tdep.c: Include "gdb_assert.h".
10892 (d10v_store_return_value): Rewrite to match current interface.
10893 (d10v_extract_struct_value_address): Ditto.
10894 (d10v_extract_return_value): Ditto.
10895 (d10v_gdbarch_init): Set store_restore_value,
10896 extract_struct_value_address and extract_return_value.
10900 * hpread.c (set_namestring): New procedure replacing the
10901 SET_NAMESTRING macro.
10902 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10903 by calls to set_namestring.
10907 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10908 a compilation warning.
10909 (hpread_process_one_debug_symbol): Likewise.
10913 * linespec.c (decode_line_1): Rename variable 's' to
10915 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10916 (decode_dollar): Ditto.
10917 (decode_variable): Ditto.
10918 (symbol_found): Ditto.
10922 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10926 * win32-nat.c (set_process_privilege): New function.
10927 (child_attach): Call set_process_privilege() to enable the
10928 SE_DEBUG_NAME user privilege if available in process token.
10932 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10933 compilation error in the previous revision.
10937 * linespec.c: Update copyright.
10941 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10942 than inferior_ptid.
10943 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10947 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10949 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10950 (frame_saved_regs_zalloc): Update.
10951 (frame_saved_regs_register_unwind): Update.
10952 (create_new_frame): Update.
10953 (get_prev_frame): Update.
10954 (frame_extra_info_zalloc): Update.
10955 (deprecated_get_frame_saved_regs): Update.
10956 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10957 * cris-tdep.c: Update comment.
10959 * somsolib.h: Fix function indentation.
10960 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10961 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10962 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10963 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10964 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10966 * infrun.c (follow_fork): Use ISO C definition.
10967 * expprint.c (print_subexp): Use xfree instead of free.
10968 * charset.c: Include "gdb_string.h" instead of <string.h>.
10969 (register_iconv_charsets): Use ISO C definition.
10970 (host_charset, target_charset): Ditto.
10971 * Makefile.in (charset.o): Update dependencies.
10972 (mi-cmd-env.o): Update dependencies.
10976 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10981 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10982 build directories. Save edited gdb output in Mbuild.log. If a
10983 build fails, remove any final GDB executable.
10987 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10988 replacing hex constants with function names and stripping leading
10989 file name directory prefixes.
10993 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10998 * linespec.c (decode_line_1): Move code into decode_variable.
10999 (decode_variable): New function.
11003 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11007 * cris-tdep.c (cris_frame_init_saved_regs): Use
11008 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11010 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11011 (sh64_nofp_frame_init_saved_regs): Ditto.
11012 (sh_fp_frame_init_saved_regs): Ditto.
11013 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11014 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11015 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11016 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11020 * minsyms.c (lookup_minimal_symbol): Update comment.
11021 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11022 (lookup_minimal_symbol_solib_trampoline): Likewise.
11026 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11027 frame_relative_level.
11029 * alpha-tdep.c: Use get_frame_extra_info.
11030 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11031 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11032 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11033 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11035 * alpha-tdep.c: Use get_next_frame.
11036 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11037 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11038 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11039 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11040 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11041 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11042 * xstormy16-tdep.c: Ditto.
11046 * alpha-tdep.c: Use get_frame_base.
11047 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11048 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11049 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11050 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11051 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11052 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11053 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11054 * config/sparc/tm-sparc.h: Ditto.
11058 * frame.c (deprecated_get_frame_context): New function.
11059 (deprecated_set_frame_context): New function.
11060 * frame.h (deprecated_get_frame_context): Declare.
11061 (deprecated_set_frame_context): Declare.
11062 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11063 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11067 * frame.c (deprecated_set_frame_next_hack): New function.
11068 (deprecated_set_frame_prev_hack): New function.
11069 * frame.h (deprecated_set_frame_next_hack): Declare.
11070 (deprecated_set_frame_prev_hack): Declare.
11071 * mcore-tdep.c (analyze_dummy_frame): Use
11072 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11073 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11077 * linespec.c (decode_line_1): Move code into decode_dollar.
11078 (decode_dollar): New function.
11082 * arm-tdep.c (arm_init_extra_frame_info): Use
11083 deprecated_update_frame_base_hack.
11084 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11085 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11086 (fix_frame_pointer): Ditto.
11087 (mn10300_analyze_prologue): Ditto.
11091 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11092 extra_info using frame_extra_info_zalloc.
11093 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11094 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11095 (sh64_init_extra_frame_info): Ditto.
11096 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11097 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11098 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11099 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11100 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11101 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11102 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11103 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11104 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11105 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11106 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11107 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11109 * mn10300-tdep.c (analyze_dummy_frame): Use
11110 deprecated_set_frame_extra_info_hack.
11111 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11115 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11116 class is not scText. These do not define "real" procedures.
11117 (parse_partial_symbols): Likewise.
11121 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11125 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11126 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11127 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11128 deprecated_frame_xmalloc_with_cleanup.
11129 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11130 deprecated_frame_xmalloc.
11131 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11132 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11136 * x86-64-linux-tdep.c: Include "osabi.h".
11137 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11139 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11143 * MAINTAINERS (Target Instruction Set Architectures): Update
11144 arm-elf. Can be built with -Werror, has been multiarched.
11146 * value.h (unpack_long): Make buffer parameter constant.
11147 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11148 * scm-lang.h (scm_parse): Ditto.
11149 * defs.h (extract_typed_address, extract_address): Ditto.
11150 (extract_long_unsigned_integer): Ditto.
11151 * inferior.h (unsigned_pointer_to_address): Ditto.
11152 (signed_pointer_to_address): Ditto.
11153 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11154 * gdbarch.h, gdbarch.c: Regenerate.
11155 * findvar.c (extract_long_unsigned_integer): Update.
11156 (extract_address): Update.
11157 (extract_typed_address): Update.
11158 (unsigned_pointer_to_address): Update.
11159 * values.c (unpack_long): Update.
11160 (unpack_double): Update.
11161 (unpack_pointer): Update.
11162 (unpack_field_as_long): Update.
11163 * d10v-tdep.c (d10v_pointer_to_address): Update.
11164 * avr-tdep.c (avr_pointer_to_address): Update.
11165 * scm-lang.c (scm_unpack): Update.
11166 * findvar.c (signed_pointer_to_address): Update.
11170 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11171 since it is in i386-tdep.c.
11175 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11176 failure introduced in the previous change.
11180 * README: Remove references to deleted remote-*.c files:
11181 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11182 remote-nrom.c, remote-os9k.c, remote-udi.c.
11186 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11187 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11188 i386_get_longjmp_target.
11192 * arm-tdep.c (prologue_cache): Change to a pointer.
11193 (_initialize_arm_tdep): Allocate prologue_cache.
11194 (check_prologue_cache): Update.
11195 (save_prologue_cache): Update.
11196 (arm_gdbarch_init): Update.
11200 * stabsread.c (update_method_name_from_physname): Call complaint()
11205 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11206 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11207 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11209 * blockframe.c: Include "gdbcmd.h" and "command.h".
11210 (backtrace_below_main): New variable.
11211 (file_frame_chain_valid, func_frame_chain_valid)
11212 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11213 (generic_func_frame_chain_valid): Remove functions.
11214 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11215 (_initialize_blockframe): New function.
11216 * Makefile.in (blockframe.o): Update dependencies.
11217 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11218 comment. Call frame_chain_valid ().
11219 * frame.h: Remove old prototypes. Add prototype for
11220 frame_chain_valid and update comments to match.
11221 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11222 Remove old comment.
11223 * gdbarch.h: Regenerated.
11224 * gdbarch.c: Regenerated.
11226 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11227 set_gdbarch_frame_chain_valid.
11228 * avr-tdep.c (avr_gdbarch_init): Likewise.
11229 * cris-tdep.c (cris_gdbarch_init): Likewise.
11230 * frv-tdep.c (frv_gdbarch_init): Likewise.
11231 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11232 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11233 (i386_nw_init_abi): Likewise.
11234 (i386_gdbarch_init): Likewise.
11235 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11237 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11238 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11239 * mips-tdep.c (mips_gdbarch_init): Likewise.
11240 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11241 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11242 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11243 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11244 * s390-tdep.c (s390_gdbarch_init): Likewise.
11245 * sh-tdep.c (sh_gdbarch_init): Likewise.
11246 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11247 * v850-tdep.c (v850_gdbarch_init): Likewise.
11248 * vax-tdep.c (vax_gdbarch_init): Likewise.
11249 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11251 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11252 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11253 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11254 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11255 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11256 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11257 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11258 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11262 * Makefile.in (acconfig_h): Remove incorrect macro.
11263 (config_h): Define.
11264 (osabi.o): Update dependencies.
11265 * configure.tgt: Set gdb_osabi based on target triplet.
11266 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11267 * configure: Regenerated.
11268 * config.in: Regenerated.
11269 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11270 (GDB_OSABI_DEFAULT): Define if not already defined.
11271 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11272 (set_osabi_string): New variables.
11273 (gdbarch_register_osabi): Add new OS ABI to
11274 gdb_osabi_available_names.
11275 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11276 (set_osabi, show_osabi): New functions.
11277 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11281 * arch-utils.c (gdbarch_info_init): Set osabi to
11282 GDB_OSABI_UNINITIALIZED.
11283 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11284 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11285 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11286 * gdbarch.c: Regenerated.
11287 * gdbarch.h: Regenerated.
11288 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11290 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11291 * osabi.h (enum gdb_osabi): Move to defs.h.
11292 (gdbarch_init_osabi): Update prototype.
11293 * defs.h (enum gdb_osabi): Moved here.
11294 * Makefile.in: Update dependencies.
11296 * alpha-tdep.h: Don't include "osabi.h".
11297 (struct gdbarch_tdep): Remove osabi member.
11298 * alpha-tdep.c: Include "osabi.h".
11299 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11300 iterate over arches. Update call to gdbarch_init_osabi.
11301 (alpha_dump_tdep): Don't dump osabi.
11302 * alpha-linux-tdep.c: Include "osabi.h".
11303 * alpha-osf1-tdep.c: Include "osabi.h".
11304 * alphafbsd-tdep.c: Include "osabi.h".
11305 * alphanbsd-tdep.c: Include "osabi.h".
11307 * arm-tdep.h: Don't include "osabi.h".
11308 (struct gdbarch_tdep): Remove osabi member.
11309 * arm-tdep.c: Include "osabi.h".
11310 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11311 iterate over arches. Update call to gdbarch_init_osabi.
11312 (arm_dump_tdep): Don't dump osabi.
11313 * arm-linux-tdep.c: Include "osabi.h".
11314 * armnbsd-tdep.c: Include "osabi.h".
11316 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11317 Update call to gdbarch_init_osabi.
11319 * i386-tdep.h: Don't include "osabi.h".
11320 (struct gdbarch_tdep): Remove osabi member.
11321 * i386-tdep.c: Include "osabi.h".
11322 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11323 iterate over arches. Update call to gdbarch_init_osabi.
11324 (i386_dump_tdep): Don't dump osabi.
11325 * i386-linux-tdep.c: Include "osabi.h".
11326 * i386-sol2-tdep.c: Include "osabi.h".
11327 * i386bsd-tdep.c: Include "osabi.h".
11328 * i386gnu-tdep.c: Include "osabi.h".
11329 * i386ly-tdep.c: Include "osabi.h".
11330 * i386nbsd-tdep.c: Include "osabi.h".
11331 * i386obsd-tdep.c: Include "osabi.h".
11333 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11334 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11335 check osabi when iterating over arches. Update call to
11336 gdbarch_init_osabi.
11337 (mips_dump_tdep): Don't dump osabi.
11339 * ns32k-tdep.h: Don't include "osabi.h".
11340 (struct gdbarch_tdep): Remove.
11341 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11342 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11343 allocate tdep. Update call to gdbarch_init_osabi.
11344 (ns32k_dump_tdep): Remove.
11345 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11346 * ns32knbsd-tdep.c: Include "osabi.h".
11348 * ppc-tdep.h: Don't include "osabi.h".
11349 (struct gdbarch_tdep): Remove osabi member.
11350 * rs6000-tdep.c: Include "osabi.h".
11351 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11352 osabi when iterating over arches. Update call to
11353 gdbarch_init_osabi.
11354 (rs6000_dump_tdep): Don't dump osabi.
11355 * ppc-linux-tdep.c: Include "osabi.h".
11356 * ppcnbsd-tdep.c: Include "osabi.h".
11358 * sh-tdep.h: Don't include "osabi.h".
11359 (struct gdbarch_tdep): Remove osabi member.
11360 * sh-tdep.c: Include "osabi.h".
11361 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11362 iterate over arches. Update call to gdbarch_init_osabi.
11363 (sh_dump_tdep): Don't dump osabi.
11364 * shnbsd-tdep.c: Include "osabi.h".
11366 * sparc-tdep.c: Include "osabi.h".
11367 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11368 iterate over arches. Update call to gdbarch_init_osabi.
11369 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11372 * vax-tdep.h: Don't include "osabi.h".
11373 (struct gdbarch_tdep): Remove.
11374 * vax-tdep.c: Include "osabi.h".
11375 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11376 iterate over arches. Don't allocate tdep. Update call
11377 to gdbarch_init_osabi.
11378 (vax_dump_tdep): Remove.
11379 (_initialize_vax_tdep): Update call to gdbarch_register.
11383 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11385 (breakpoint_re_set_one): Don't fetch the value for a disabled
11390 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11391 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11392 (COERCE_FLOAT_TO_DOUBLE): Remove.
11393 * gdbarch.c: Regenerate.
11394 * gdbarch.h: Regenerate.
11395 * Makefile.in: Remove value_h from gdbarch_h.
11396 * valops.c (coerce_float_to_double): New variable.
11397 (default_coerce_float_to_double): Remove.
11398 (standard_coerce_float_to_double): Remove.
11399 (value_arg_coerce): Use coerce_float_to_double.
11400 (_initialize_valops): Add "set coerce-float-to-double".
11401 * value.h (default_coerce_float_to_double): Remove prototype.
11402 (standard_coerce_float_to_double): Remove prototype.
11404 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11406 * mdebugread.c (parse_symbol): Likewise.
11407 * stabsread.c (define_symbol): Mark all functions as prototyped.
11409 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11410 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11411 set_gdbarch_coerce_float_to_double.
11412 * arm-tdep.c (arm_gdbarch_init): Likewise.
11413 * frv-tdep.c (frv_gdbarch_init): Likewise.
11414 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11415 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11416 * mips-tdep.c (mips_gdbarch_init): Likewise.
11417 (mips_coerce_float_to_double): Remove.
11418 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11419 (rs6000_coerce_float_to_double): Remove.
11420 * s390-tdep.c (s390_gdbarch_init): Likewise.
11421 * sh-tdep.c (sh_gdbarch_init): Likewise.
11422 (sh_coerce_float_to_double): Remove.
11423 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11424 (sparc_coerce_float_to_double): Remove.
11425 * v850-tdep.c (v850_gdbarch_init): Likewise.
11426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11427 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11428 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11429 (hppa_coerce_float_to_double): Remove prototype.
11430 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11434 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11439 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11440 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11441 (c_type_print_varspec_suffix): Likewise.
11445 * configure.in: Don't set and AC_SUBST SUBDIRS.
11446 * configure: Regenerated.
11448 * configure.in: Remove code dealing with shared libraries.
11449 * Makefile.in: Remove HLDFLAGS and HLDENV.
11450 * configure: Regenerated.
11454 * frame.c (deprecated_frame_xmalloc): New function.
11455 (deprecated_set_frame_saved_regs_hack): New function.
11456 (deprecated_set_frame_extra_info_hack): New function.
11457 * frame.h (deprecated_frame_xmalloc): Declare.
11458 (deprecated_set_frame_saved_regs_hack): Declare.
11459 (deprecated_set_frame_extra_info_hack): Declare.
11463 * configure.in: Move code that provides the --enable-gdbtk option
11464 right after the code that handles the --enable-tui option, and
11465 polish it somewhat.
11466 * configure: Regenerated.
11468 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11469 AC_CHECK_FUNCS and remove the old check for pread64.
11470 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11471 * acconfig.h (_GNU_SOURCE): Add.
11472 (HAVE_PREAD64): Remove.
11473 * configure, aclocal.m4, config.in: Regenerated.
11477 * alpha-tdep.c: Use get_frame_saved_regs.
11478 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11479 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11480 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11481 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11482 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11486 * configure.in: Remove all use of the SUBDIRS variable; add
11487 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11488 code providing the --enable-multi-ice option, and move it right in
11489 front of the code that checks whether gdbserver is supported.
11491 * configure: Regenerated.
11492 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11497 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11498 * avr-tdep.c, cris-tdep.c: Ditto.
11499 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11500 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11504 * configure.in: Remove --enable-netrom option.
11505 * configure: Regenerated.
11509 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11510 declaration for `struct re_pattern_buffer' instead.
11511 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11515 * mdebugread.c (parse_symbol): Count until the stEnd matching
11516 the structure name.
11520 * configure.in: Remove --with-cpu option.
11521 subscripts. Remove evil changequotes here.
11522 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11523 * config.in, configure: Regenerated.
11525 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11526 * configure.in: Cleanup section that sources GDB and BFD configure
11527 subscripts. Remove evil changequotes here.
11528 * config.in, configure: Regenerated.
11532 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11533 frame accessor methods.
11534 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11535 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11536 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11537 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11538 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11539 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11540 * z8k-tdep.c: Ditto.
11544 * configure.in: Remove UI_OUT configuration code.
11545 * ada-lang.c: Update assuming UI_OUT is always true.
11546 * Makefile.in (UIOUT_CFLAGS): Remove.
11547 * configure: Regenerated.
11548 * TODO: Remove blurb about elimination of -DUI_OUT.
11550 * configure.in: Move code that provides the --enable-gdbcli,
11551 --enable-gdbmi options right before the code that handles the
11552 --enable-tui option. Polish a bit.
11553 * configure: Regenerated.
11555 * configure.in: Rewrite check for GNU regex and the
11556 --without-included regex option, and move it into the "Checks for
11557 library functions" section. This makes us use the system regex
11558 again by default on systems with version 2 of the GNU C library.
11559 This was apparently broken.
11560 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11561 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11562 * config.in, configure: Regenerated.
11564 * configure.in: Move code that provides the --enable-tui option
11565 before the "Checks for libraries" section. Polish the code
11566 somewhat and set need_curses to yes if we build the TUI. Rewrite
11567 code that looks for a library providing termcap functionality to
11568 match more closely what's done in the Readline library, and move
11569 it into to the "Checks for libraries" section.
11570 * configure: Regenerated.
11571 * Makefile.in (TERMCAP): Remove variable.
11572 * config/i386/go32.mh (TERMCAP): Remove variable.
11576 * MAINTAINERS: Mention gdb_mbuild.sh.
11577 * gdb_mbuild.sh: Rewrite.
11581 * configure.in: Fix typo in last change.
11582 * config.in, configure: Regenerated.
11586 * valarith.c (value_binop): Delete obsolete code and comments.
11587 * configure.host: Ditto.
11588 * buildsym.h (make_blockvector): Ditto.
11589 * buildsym.c (make_blockvector): Ditto.
11590 * defs.h (enum language): Ditto.
11591 (chill_demangle): Ditto.
11592 * elfread.c (elf_symtab_read): Ditto.
11593 * dwarfread.c (CHILL_PRODUCER): Ditto.
11594 (set_cu_language): Ditto.
11595 (handle_producer): Ditto.
11596 * expprint.c (print_subexp): Ditto.
11597 * gdbtypes.c (chill_varying_type): Ditto.
11598 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11599 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11600 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11601 (chill_varying_type): Ditto.
11602 * language.h (_LANG_chill): Ditto.
11603 * language.c (binop_result_type, integral_type): Ditto.
11604 (character_type, string_type, structured_type): Ditto.
11605 (lang_bool_type, binop_type_check): Ditto.
11606 * stabsread.h (os9k_stabs): Ditto.
11607 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11608 (define_symbol, read_type, read_struct_fields): Ditto.
11609 (read_array_type, read_enum_type, read_huge_number): Ditto.
11610 (read_range_type, start_stabs): Ditto.
11611 * symfile.c (init_filename_language_table): Ditto.
11612 (add_psymbol_with_dem_name_to_list): Ditto.
11613 * symtab.c (symbol_init_language_specific): Ditto.
11614 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11615 * symtab.h (struct general_symbol_info): Ditto.
11616 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11617 * typeprint.c (typedef_print): Ditto.
11618 * utils.c (fprintf_symbol_filtered): Ditto.
11619 * valops.c (value_cast, search_struct_field, value_slice): Delete
11621 (varying_to_slice): Delete function.
11622 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11623 (varying_to_slice): Delete declaration.
11624 * MAINTAINERS: Update.
11628 * configure.in: Reorganize "Checks for library functions section"
11629 a bit. Remove check for `btowc' and `isascii' functions.
11630 * configure: Regenerated.
11632 * acconfig.h (_MSE_INT_H): Remove.
11633 * configure.in: Create "Checks for header files" section, and move
11634 appropriate tests there. Don't check for objlist.h, wchar.h,
11635 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11636 misdetection fix. Also add "Checks for types", "Checks for
11637 compiler characteristics" and "Checks for library functions"
11639 * config.in, configure: Regenerated.
11641 * configure.in: Create "Checks for programs" section, and move
11642 appropriate tests there.
11646 * configure.in: Create "Checks for libraries" section, and move
11647 appropriate tests there. Cleanup check for wctype in libw. Use
11648 AC_SEARCH_LIBS to see whether we need libsocket.
11649 * configure: Regenerated.
11651 For older changes see ChangeLog-2002
11657 version-control: never