3 * values.c (using_struct_return): Delete "function" and "funcaddr"
5 * value.h (using_struct_return): Update declaration.
6 * infcmd.c (finish_command_continuation): Update.
7 (finish_command): Update.
8 * infcall.c (call_function_by_hand): Update.
9 * eval.c (evaluate_subexp_standard): Update.
13 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
14 SSE registers since gdb will not operate correctly without this.
15 Restore include file ordering munged in previous change.
16 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
20 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
22 * gdbarch.c, gdbarch.h: Updated.
23 * infcall.c (call_function_by_hand): Update.
24 * stabsread.c (define_symbol): Updated.
26 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
30 * win32-nat.c: Reorganize so that defines used by target headers are
31 actually defined by the system headers.
32 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
33 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
37 * dbxread.c (read_dbx_symtab): Don't report an internal error if
38 the file has no .data, .bss, or .rodata sections. Instead wait
39 until we see a variable alleged to live in one of those sections.
41 * dbxread.c (read_dbx_symtab): If we have no .data section and no
42 .bss section, presume that any variables we find live in the
45 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
46 offsets for global and static variables.
48 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
49 symbol types are, by definition, in the .data section, so it is
50 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
51 If there is no .data section, there should be no N_DATA or N_DATA
56 * amd64fbsd-tdep.c: Fix sigtramp recognition.
57 (amd64fbsd_sigcontext_addr): Rewrite.
58 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
60 (amd64fbsd_sc_reg_offset): Initialize with correct values.
61 (amd64fbsd_init_abi): Fix typo.
65 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
66 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
70 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
71 "entry_file_highpc". Update comments.
72 * defs.h (deprecated_inside_entry_file): Rename
74 * blockframe.c (deprecated_inside_entry_file): Rename
76 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
77 * vax-tdep.c (vax_frame_chain): Update.
78 * sh64-tdep.c (sh64_frame_chain): Update.
79 * sh-tdep.c (sh_frame_chain): Update.
80 * rs6000-tdep.c (rs6000_frame_chain): Update.
81 * ns32k-tdep.c (ns32k_frame_chain): Update.
82 * mips-tdep.c (mips_frame_chain): Update.
83 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
84 * m32r-tdep.c (m32r_frame_this_id): Update.
85 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
86 * frv-tdep.c (frv_frame_this_id): Update.
87 * d10v-tdep.c (d10v_frame_this_id): Update.
88 * cris-tdep.c (cris_frame_chain): Update.
89 * blockframe.c (legacy_frame_chain_valid): Update.
90 * avr-tdep.c (avr_frame_this_id): Update.
91 * arm-tdep.c (arm_prologue_this_id): Update.
92 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
93 * objfiles.c (objfile_relocate): Update.
94 * mipsread.c (mipscoff_symfile_read): Update.
95 (mipscoff_symfile_read): Update.
96 * mdebugread.c (parse_partial_symbols): Update.
97 * dwarfread.c (read_file_scope): Update.
98 * dwarf2read.c (read_file_scope): Update.
99 * dbxread.c (read_dbx_symtab): Update.
100 (read_dbx_symtab): Update.
101 * coffread.c (complete_symtab): Update.
105 * top.c (quit_target): New static helper function.
106 (quit_force): Moved code to quit_target(). Call quit_target()
107 via catch_errors() to catch errors during quit.
111 * buildsym.c (finish_block): Use allocate_block to allocate the
113 * mdebugread.c (new_block): Add FIXME.
117 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
118 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
119 (recursive_dump_type): Ditto.
120 * printcmd.c (print_formatted): Ditto.
121 * typeprint.c (print_type_scalar): Ditto.
122 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
123 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
124 * cp-support.h: Declare cp_check_possible_namespace_symbols,
125 maint_cplus_cmd_list.
126 * cp-support.c: Make maint_cplus_cmd_list extern.
127 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
129 (lookup_symbol_file): Look in possible namespace blocks when
131 (initialize_namespace_symtab): New.
132 (get_possible_namespace_block, free_namespace_block)
133 (check_possible_namespace_symbols)
134 (check_possible_namespace_symbols_loop)
135 (check_one_possible_namespace_symbol)
136 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
137 (_initialize_cp_namespace): Ditto.
138 * block.h: Declare allocate_block.
139 * block.c (allocate_block): New.
140 * jv-lang.c (get_java_class_symtab): Allocate blocks via
142 * symfile.h: Update declaration of add_psymbol_to_list.
143 * symfile.c (add_psymbol_to_list): Return the partial symbol in
145 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
146 scan_partial_symbols_call.
147 (scan_partial_symbols): Add NAMESPACE argument; update calls to
149 (add_partial_symbol): If necessary, scan mangled names for names
151 (add_partial_namespace): Add NAMESPACE argument; generate partial
152 symbols associated to namespaces.
153 (add_partial_enumeration): Add NAMESPACE argument.
154 (new_symbol): Allow namespace syms.
155 (read_namespace): Generate namespace syms.
156 * objfiles.h: Add opaque declaration of struct symtab.
157 (struct objfile): Add cp_namespace_symtab member.
158 * objfiles.c (allocate_objfile): Set
159 objfile->cp_namespace_symtab.
160 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
161 dictionary_h, command_h.
165 * rs6000-tdep.c (rs6000_push_dummy_call): Use
166 regcache_raw_write_signed to set SP_REGNUM, move the operation to
167 near the function's end.
168 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
169 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
170 regcache_raw_write_signed to set SP_REGNUM.
174 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
175 orig_addrs is set up properly.
179 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
180 * gdbarch.h, gdbarch.c: Re-generate.
181 * infcall.c (call_function_by_hand): Update.
182 * hppa-tdep.c (hppa_push_arguments): Update.
183 * ada-lang.c (place_on_stack): Update.
184 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
185 * sparc-tdep.c (sparc_gdbarch_init): Update.
186 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
187 * hppa-tdep.c (hppa_gdbarch_init): Update.
188 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
193 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
194 register do need a frame.
198 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
199 buildable since GDB 5.0.
200 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
201 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
202 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
203 * irix4-nat.c: Delete file.
204 * config/mips/irix4.mh: Delete file.
205 * config/mips/irix3.mh: Delete file.
206 * config/mips/irix3.mt: Delete file.
207 * config/mips/tm-irix3.h: Delete file.
208 * config/mips/nm-irix3.h: Delete file.
209 * config/mips/xm-irix3.h: Delete file.
210 * config/mips/nm-irix4.h: Delete file.
211 * config/mips/xm-irix4.h: Delete file.
212 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
216 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
217 * Makefile.in (hppa-tdep.o): Update dependencies.
221 * MAINTAINERS: Change my e-mail address. Move to paper trail
226 * MAINTAINERS (frv): New ISA entry.
230 * frv-tdep.c (dis-asm.h): Include.
231 * Makefile.in (frv-tdep.o): Update dependencies.
235 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
236 Fix typo for high range of floating registers.
240 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
241 highpc initialization here out of scan_partial_symbols.
242 (scan_partial_symbols): Restructure into a recursive version,
243 calling add_partial_namespace and add_partial_enumeration when
245 (add_partial_namespace): New.
246 (add_partial_enumeration, locate_pdi_sibling): Ditto.
250 * rs6000-tdep.c (ppc_push_return_address): Delete function.
251 (rs6000_push_dummy_call): Set LR to BP_ADDR.
252 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
253 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
255 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
256 (rs6000_push_dummy_call): Set the "TOC" register.
258 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
259 methods "max_register_raw_size", "max_register_virtual_size" or
260 "register_virtual_size".
264 * MAINTAINERS: Update my e-mail address.
268 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
269 (rs6000_push_dummy_call): Store the struct return address.
270 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
274 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
275 "ppc_sysv_abi_push_arguments".
276 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
277 "ppc_sysv_abi_push_arguments".
278 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
279 instead of "push_arguments".
280 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
284 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
285 instead of CALL_DUMMY_ADDRESS.
289 * p-lang.c: Eliminate "register".
298 * objc-lang.c: Ditto.
302 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
306 * avr-tdep.c: Include "dis-asm.h".
307 * cris-tdep.c: Include "dis-asm.h".
308 (cris_delayed_get_disassembler): Use "struct disassemble_info"
309 instead of corresponding typedef.
310 * h8300-tdep.c: Include "dis-asm.h".
311 * ia64-tdep.c: Include "dis-asm.h".
312 * i386-tdep.c: Include "dis-asm.h".
313 (i386_print_insn): Use "struct disassemble_info" instead of
314 corresponding typedef.
315 * m68k-tdep.c: Include "dis-asm.h".
316 * mcore-tdep.c: Include "dis-asm.h".
317 * mips-tdep.c: Include "dis-asm.h".
318 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
319 instead of corresponding typedef.
320 * ns32k-tdep.c: Include "dis-asm.h".
321 * s390-tdep.c: Include "dis-asm.h".
322 * sparc-tdep.c: Include "dis-asm.h".
323 * vax-tdep.c: Include "dis-asm.h".
324 * v850-tdep.c: Include "dis-asm.h".
325 * mn10300-tdep.c: Include "dis-asm.h".
326 * rs6000-tdep.c: Include "dis-asm.h".
327 * xstormy16-tdep.c: Include "dis-asm.h".
328 (_initialize_xstormy16_tdep): Delete "extern" declaration of
329 print_insn_xstormy16.
330 * Makefile.in (v850-tdep.o): Update dependencies.
331 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
332 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
333 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
334 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
335 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
336 (gdbarch_h): Remove $(dis_asm_h).
337 * disasm.c: Include "dis-asm.h".
338 (dis_asm_read_memory): Use "struct disassemble_info" instead of
339 corresponding typedef.
340 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
341 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
342 * gdbarch.sh: Do not include "dis-asm.h".
343 (struct disassemble_info): Declare opaque.
344 (TARGET_PRINT_INSN): Update declaration.
345 * gdbarch.h, gdbarch.c: Re-generate.
349 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
350 CALL_DUMMY_ADDRESS, change to a predicate.
351 * gdbarch.h, gdbarch.c: Re-generate.
352 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
353 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
354 * infcall.c (call_function_by_hand): Ditto.
355 * sparc-tdep.c (sparc_push_return_address): Ditto.
356 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
357 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
358 CALL_DUMMY_ADDRESS with entry_point_address.
359 * v850-tdep.c (v850_push_return_address): Ditto.
360 * s390-tdep.c (s390_push_return_address): Ditto.
361 * rs6000-tdep.c (ppc_push_return_address): Ditto.
362 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
363 * mcore-tdep.c (mcore_push_return_address): Ditto.
364 * cris-tdep.c (cris_push_return_address): Ditto.
365 * arm-tdep.c (arm_push_return_address): Ditto.
369 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
370 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
371 and REG_UNMODIFIED to REG_SAME_VALUE.
372 (execute_cfa_program): Update.
373 (dwarf2_frame_cache): Update. Initialize table to
374 REG_UNSPECIFIED, complain if CFI fails to specify a register's
376 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
380 * gnu-nat.c: Remove "inline" function attribute.
381 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
385 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
390 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
391 (frame_extra_info): Rename this struct to frv_unwind_cache.
392 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
393 Add fields ``prev_sp'' and ``base''.
394 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
395 (frv_saved_pc_after_call, frv_init_extra_frame_info)
396 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
398 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
399 Revise all callers. Fill in the unwind cache argument and make
400 other adjustments to account for new frame mechanisms.
401 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
402 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
403 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
404 (frv_frame_unwind, frv_frame_base): New structs.
405 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
406 additional arguments expected by this method and adjust function
408 (frv_gdbarch_init): Remove calls to the following functions:
409 set_gdbarch_deprecated_init_frame_pc(),
410 set_gdbarch_deprecated_saved_pc_after_call(),
411 set_gdbarch_deprecated_frame_chain(),
412 set_gdbarch_deprecated_frame_saved_pc(),
413 set_gdbarch_deprecated_frame_init_saved_regs(),
414 set_gdbarch_deprecated_push_arguments(),
415 set_gdbarch_deprecated_push_return_address(),
416 set_gdbarch_deprecated_pop_frame(),
417 set_gdbarch_deprecated_call_dummy_words(),
418 set_gdbarch_deprecated_sizeof_call_dummy_words(),
419 set_gdbarch_deprecated_init_extra_frame_info(),
420 set_gdbarch_deprecated_dummy_write_sp(), and
421 set_gdbarch_deprecated_pc_in_call_dummy().
422 Add calls to the following functions:
423 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
424 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
425 frame_base_set_default().
426 * Makefile.in (frv-tdep.o): Update dependencies.
430 * dwarf2-frame.c (read_encoded_value): Add support for
431 DW_EH_PE_aligned encoding.
435 * infrun.c (normal_stop): Don't print a message if the inferior
440 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
441 * dbxread.c: #include "gdb_assert.h".
442 (read_dbx_symtab): If the objfile has no .data section, use the
443 section index for the .bss section instead.
447 * frame.c (deprecated_safe_get_selected_frame): New function.
448 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
449 * findvar.c (read_var_value): Call it.
453 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
454 (sh64-tdep.o): Add dependencies.
455 * configure.tgt: Add FIXME to sh-*-linux*.
456 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
457 (sh_gdbarch_init): Always set correct sh_show_regs function
458 pointer. Call sh64_gdbarch_init() if machine type is sh5.
459 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
460 * sh64-tdep.c: New file, containing all sh64 related code from
462 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
463 * config/sh/linux.mt (TDEPFILES): Ditto.
464 * config/sh/nbsd.mt (TDEPFILES): Ditto.
465 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
466 * config/sh/wince.mt (TDEPFILES): Ditto.
470 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
471 (stop_wait_callback): Handle !lp->signalled also.
472 (lin_lwp_has_pending, flush_callback): New functions.
473 (lin_lwp_wait): Call flush_callback.
474 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
475 (linux_proc_pending_signals): New function.
476 * linux-nat.h (linux_proc_pending_signals): Add prototype.
481 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
482 when the stop PC is at the beginning of a function also.
486 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
487 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
491 * sol-thread.c: Include "gdb_string.h".
495 * gcore.c: Reorder include files in alphabetical order. Include
496 "gdb_assert.h". Various coding style fixes.
497 (derive_stack_segment, derive_heap_segment): Replace check for
498 non-null BOTTOM and TOP with gdb_assert.
499 (derive_heap_segment): Replace check for successful creation of
500 ZERO with gdb_assert.
501 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
505 * thread-db.c (verbose_dlsym): New function.
506 (thread_db_load): Use verbose_dlsym
507 (thread_db_new_objfile): Print that libthread_db was loaded, and
508 that thread debugging was enabled.
512 * configure.tgt: Add "mips64*-*-*" target. Delete
513 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
514 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
515 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
516 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
517 mips*-sony-*, and mips64*-*-elf* targets.
518 * config/mips/embedl.mt: Delete file.
519 * config/mips/embedl64.mt: Delete file.
520 * config/mips/mips.mt: Delete file.
521 * config/mips/mips64.mt: Delete file.
522 * config/mips/tm-embed.h: Delete file.
523 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
524 * config/mips/embed64.mt: Delete out-of-date comment.
528 * hppa-tdep.c (hppa_gdbarch_init): Set
529 "have_nonsteppable_watchpoint".
530 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
531 * mips-tdep.c (mips_dump_tdep): Do not print
532 HAVE_NONSTEPPABLE_WATCHPOINT.
533 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
534 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
535 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
536 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
540 * breakpoint.c (watchpoint_check): Remove accidentally checked in
541 unused code. Add comment.
545 * breakpoint.c (watchpoint_check): Check for pc being in an
546 epilogue if watchpoint frame couldn't be found.
550 * Makefile.in: Re-generate all dependencies.
554 * arch-utils.h (legacy_print_insn): Delete declaration.
555 * arch-utils.c (legacy_print_insn): Delete function.
556 * disasm.c (deprecated_tm_print_insn_info): Delete.
557 (_initialize_disasm): Delete function, contained code initializing
558 deprecated_tm_print_insn_info.
559 * gdbarch.sh (deprecated_tm_print_insn): Delete.
560 (deprecated_tm_print_insn_info): Delete.
561 (TARGET_PRINT_INSN): Do not provide a default.
562 * gdbarch.h, gdbarch.c: Re-generate.
566 * disasm.c (fprintf_disasm): New function.
567 (gdb_disassemble_info): Call "init_disassemble_info", instead of
568 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
569 reverts 2003-08-14 change.
570 (_initialize_disasm): Call "init_disassemble_info", instead of
571 INIT_DISASSEMBLE_INFO_NO_ARCH.
575 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
579 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
580 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
581 * symfile.c (syms_from_objfile): Update.
582 (reread_symbols): `Update
583 * exec.c (exec_file_attach): Update.
584 (exec_file_attach): Update.
585 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
587 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
591 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
593 (arm_get_cache): Delete macro.
594 (struct arm_prologue_cache): Update comments. Make saved_regs into
595 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
597 (thumb_scan_prologue): Update for cache changes. Don't call
598 DEPRECATED_PC_IN_CALL_DUMMY.
599 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
600 argument and use it in desperation search for our prologue. Do not
601 search past the specified PC.
602 (arm_make_prologue_cache): Simplify.
604 (arm_prologue_this_id, arm_prologue_prev_register)
605 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
606 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
607 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
608 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
609 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
611 (arm_frame_chain_valid, arm_find_callers_reg)
612 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
613 (arm_pop_frame): Delete obsolete methods.
614 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
616 (arm_gdbarch_init): Update for new frame methods. Register prologue
617 and sigtramp unwinders. Set the default frame base method.
619 * Makefile.in (arm-tdep.o): Update dependencies.
620 * varobj.c (find_frame_addr_in_frame_chain): Call
621 get_frame_base_address.
622 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
626 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
627 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
628 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
629 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
630 Take NEXT_FRAME and CACHE arguments. Call
631 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
632 Set unwound_pc in CACHE instead of modifying the frame argument.
633 Don't bother checking the frame type when looking for sigtramp
635 (arm_make_prologue_cache, arm_frame_chain)
636 (arm_init_extra_frame_info): New functions.
640 * arm-tdep.c (arm_get_cache): Define.
641 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
642 unwound_sp, unwound_pc, and saved_regs.
643 (thumb_scan_prologue): Take a cache instead of the frame.
644 (arm_scan_prologue): Likewise.
645 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
646 instead of a temporary frame.
647 (arm_init_extra_frame_info): Allocate and use a cache.
648 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
652 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
653 * config/mips/wince.mt (TM_CLIBS): Ditto.
654 * config/sh/wince.mt (TM_CLIBS): Ditto.
655 * config/pa/hppa64.mt (TM_CLIBS): Delete.
656 * config/sparc/sp64.mt (CC): Delete.
660 * defs.h: Do not include "arch-utils.h".
661 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
663 * configure.in (GDB_MULTI_ARCH): Do not define.
664 * configure, config.in: Regenerate.
665 * configure.tgt: Do not set variable "gdb_multi_arch".
666 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
667 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
668 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
669 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
670 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
671 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
672 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
673 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
674 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
675 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
676 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
677 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
678 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
679 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
680 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
681 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
682 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
683 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
687 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
688 * config/m68k/nm-hp300hpux.h: Delete.
689 * config/m68k/tm-hp300hpux.h: Delete.
690 * config/m68k/xm-hp300hpux.h: Delete.
691 * config/m68k/xm-hp300bsd.h: Delete.
692 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
693 tm-hp300hpux.h, xm-hp300hpux.h.
694 * somsolib.c: Remove comment about hp300 shared libraries.
698 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
699 Only define PTRACE_GET_THREAD_AREA is not already defined.
700 Various style fixes in code and comments and some additional
701 spelling fixes in comments. Move after functions dealing with
703 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
706 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
707 frame_unwind_register_unsigned instead of
708 frame_unwind_unsigned_register.
712 * configure.in: Search for gethostbyname in libnsl.
713 * configure: Regenerated.
717 * configure.in: Remove redundant AC_MSG_RESULT in check for
718 uintptr_t in stdint.h.
719 * configure: Regenerated.
721 * amd64-nat.h (struct regcache): Add opaque declaration.
723 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
724 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
725 Change "register array" to "register cache" in comments.
726 (x86_64_linux_gregset64_reg_offset): New variable.
727 (GETREGS_SUPPLIES): Remove macro.
728 (supply_gregset): Call amd64_supply_native_gregset instead of
729 x86_64_linux_supply_gregset.
730 (fill_gregset): Rename `regno' to `regnum'. Call
731 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
732 (store_regs): Rename `regno' to `regnum'.
733 (store_fpregs): Rename `regno' to `regnum'.
734 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
735 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
736 Reorganize function a bit.
737 (store_inferior_registers): Rename `regno' to `regnum'. Use
738 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
739 Reorganize function a bit.
740 (_initialize_x86_64_linux_nat): New function.
741 * config/i386/x86-64linux.mh.
745 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
746 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
747 (target_remove_watchpoint): Delete macro.
748 (target_insert_watchpoint): Delete macro.
749 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
750 (remote_mips_stopped_by_watchpoint): Delete declaration.
751 (remote_mips_remove_watchpoint): Delete declaration.
752 (remote_mips_set_watchpoint): Delete declaration.
753 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
754 * remote-mips.c (_initialize_remote_mips): Set
755 "to_insert_watchpoint", "to_stopped_by_watchpoint",
756 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
757 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
758 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
759 (mips_stopped_by_watchpoint): Rename
760 remote_mips_stopped_by_watchpoint.
761 (mips_can_hardware_watchpoint): Rename
762 remote_mips_can_use_hardware_watchpoint, update function
767 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
768 USER_DS. We haven't given them a register number yet.
770 * amd64-nat.h: New file.
771 * amd64-nat.c: New file.
772 * amd64fbsd-nat.c: Include "amd64-nat.h".
773 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
774 (amd64fbsd32_r_reg_offset): New variable.
775 (supply_gregset): Simply call amd64_supply_native_gregset.
776 (fill_gregset): Rename `regno' to `regnum'. Simply call
777 amd64_collect_native_gregset.
778 (fill_fpregset): Rename `regno' to `regnum'.
779 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
780 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
781 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
782 `fpregset_t'. Call amd64_supply_native_gregset instead of
783 supply_gregset. Call x86_64_supply_fxsave instead of
785 (store_inferior_registers): Rename `regno' to `regnum'. Replace
786 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
787 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
788 `fpregset_t'. Call amd64_collect_native_gregset instead of
789 fill_gregset. Call x86_64_collect_fxsave instead of
791 (_initialize_am64fbsd_nat): Initialize
792 amd64_native_gregset32_reg_offset and
793 amd64_native_gregset64_reg_offset.
794 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
796 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
797 null pointer. Fix typo in comment.
799 * regcache.c (supply_register): Reimplement to call
801 (regcache_collect): Reimplement by calling regcache_raw_collect.
805 * regcache.c (register_buffer): Consitify first argument.
806 (regcache_raw_supply, regcache_raw_collect): New
811 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
812 by Nathan J. Williams.
816 * lin-lwp.c (wait_lwp): New function, copied from
817 stop_wait_callback. Clean up.
818 (stop_wait_callback): Use wait_lwp.
822 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
823 flavour and disassembler options.
824 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
825 (mips_gdbarch_init): Set "print_insn". Delete initialization of
826 deprecated_tm_print_insn_info.
830 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
831 Use target_read_memory.
832 (s390_get_frame_info): Update. Do not reference
833 deprecated_tm_print_insn_info.
834 (s390_check_function_end, s390_is_sigreturn): Ditto.
838 * Makefile.in (cris-tdep.o): Update dependencies.
839 * cris-tdep.c: Include "gdb_assert.h".
840 (cris_gdbarch_init): Set print_insn.
841 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
842 (cris_delayed_get_disassembler): Simplify, directly call the
843 disassembler returned by cris_get_disassembler.
844 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
845 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
846 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
847 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
848 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
849 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
850 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
851 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
852 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
853 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
854 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
855 (gdb_print_insn_sparc): Delete function.
856 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
857 deprecated_tm_print_insn_info.
858 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
859 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
860 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
861 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
862 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
863 * s390-tdep.c (gdb_print_insn_s390): Delete function.
864 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
865 (s390_gdbarch_init): Set print_insn.
869 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
870 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
871 * infcall.c (call_function_by_hand): Convert the entry point
872 address into a code address.
876 * dsrec.c: Include "gdb_string.h".
877 * Makefile.in (dsrec.o): Update dependencies.
881 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
885 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
886 (alpha_osf1_init_abi): Do not set call_dummy_address.
891 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
892 compiles with -Wformat-nonliteral -Werror.
896 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
897 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
898 bfd_lookup_symbol, since we only want symbols in code sections.
899 (look_for_base): Pass zero as the SECT_FLAGS argument to
900 bfd_lookup_symbol, since we're not concerned about which section
905 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
906 we are frameless or the return address register is already known.
910 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
911 in size. Add comments.
915 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
916 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
920 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
921 case out of #ifdef MIPS block.
926 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
927 available before calling SECT_OFF_TEXT.
928 * PROBLEMS: Remove description of java/1322.
932 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
933 bof, and nat0-nat127 as pseudo-registers.
934 (ia64_frame_cache): New struct used to cache frame info.
935 (ia64_register_reggroup_p): New routine used to override default
936 register grouping so registers without names are still saved and
938 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
940 (ia64_pseudo_register_read): New routine to read pseudo-registers.
941 (ia64_pseudo_register_write): New routine to write pseudo-registers.
942 (ia64_alloc_frame_cache): New routine to create a new
944 (examine_prologue): Change prototype to add next_frame pointer.
945 Assume frameless until otherwise proven. Verify that the cfm for
946 current frame matches the cfm that should occur for the prologues
947 alloc insn and if equal, mark as not frameless. At end of routine,
948 if not frameless, calculate registers for the previous frame and store
949 in the cache, if a cache is provided.
950 (ia64_skip_prologue): Use new prototype when calling examine_prologue
951 and pass 0 for next_frame.
952 (ia64_store_return_value): Change to use convert_typed_floating()
953 instead of calling ia64_convert_to_raw().
954 (ia64_extract_return_value): Change to use convert_typed_floating()
955 instead of calling ia64_convert_to_virtual().
956 (ia64_frame_cache): New routine to support new frame model.
957 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
958 (ia64_frame_sniffer): Ditto.
959 (ia64_sigtramp_frame_init_saved_regs): Ditto.
960 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
961 (ia64_sigtramp_frame_prev_register): Ditto.
962 (ia64_sigtramp_frame_sniffer): Ditto.
963 (ia64_frame_base_address): Ditto.
964 (ia64_extract_struct_value_address): Change to issue error message.
965 (ia64_frame_align): New routine to align sp.
966 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
967 (ia64_push_arguments): Removed. Logic moved to
968 ia64_push_dummy_call().
969 (ia64_push_return_address): Ditto.
970 (ia64_unwind_dummy_id): New function.
971 (ia64_unwind_pc): Ditto.
972 (ia64_convert_register_p): Ditto.
973 (ia64_register_to_value): Ditto.
974 (ia64_value_to_register): Ditto.
975 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
976 (ia64_register_byte, ia64_register_raw_size): Ditto.
977 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
978 (ia64_saved_pc_after_call): Ditto.
979 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
980 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
981 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
982 (ia64_register_convert_to_raw): Ditto.
983 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
984 (ia64_init_extra_frame_info): Ditto.
985 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
986 (ia64_gdbarch_init): Remove registering of deprecated functions that
987 are no longer used. Add registration of new gdbarch functions.
988 Remove registering deprecated_write_sp. Replace
989 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
990 Delete set_gdbarch_deprecated_register_convertible(),
991 set_gdbarch_deprecated_register_convert_to_virtual(), and
992 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
993 set_gdbarch_deprecated_register_size(),
994 set_gdbarch_deprecated_register_bytes(),
995 set_gdbarch_pcregnum(),
996 set_gdbarch_deprecated_register_byte(),
997 set_gdbarch_deprecated_register_raw_size(),
998 set_gdbarch_deprecated_max_register_raw_size(),
999 set_gdbarch_deprecated_register_virtual_size(),
1000 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1001 Replace set_gdbarch_deprecated_extract_return_value() with
1002 set_gdbarch_extract_return_value(). Remove calls to:
1003 set_gdbarch_deprecated_saved_pc_after_call();
1004 set_gdbarch_deprecated_frame_chain(),
1005 set_gdbarch_deprecated_frame_saved_pc(),
1006 set_gdbarch_deprecated_frame_init_saved_regs(),
1007 set_gdbarch_deprecated_get_saved_register(),
1008 set_gdbarch_deprecated_call_dummy_words(),
1009 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1010 set_gdbarch_deprecated_init_extra_frame_info(),
1011 set_gdbarch_deprecated_frame_args_address(),
1012 set_gdbarch_deprecated_frame_locals_address(),
1013 and set_gdbarch_deprecated_dummy_write_sp().
1014 Add set_gdbarch_convert_register_p(),
1015 set_gdbarch_register_to_value(),
1016 set_gdbarch_value_to_register(),
1017 set_gdbarch_push_dummy_call(),
1018 set_gdbarch_frame_align(),
1019 set_gdbarch_unwind_dummy_id(),
1020 set_gdbarch_unwind_pc(),
1021 frame_unwind_append_sniffer(),
1022 frame_unwind_append_sniffer(),
1023 and frame_base_set_default().
1027 * configure.tgt: Document need for special "mipsisa64" handling.
1028 (mipsisa64*-*-linux64): Handle as target linux64.
1029 (mipsisa64*-*-*): Handle as target embed64.
1033 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1038 * i387-tdep.h: Update copyright date.
1039 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1041 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1042 CFLAGS games to reflect reality.
1046 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1047 GDB_MULTI_ARCH is always non-zero.
1048 * osabi.c (_initialize_gdb_osabi): Ditto.
1049 (gdbarch_init_osabi): Ditto.
1050 * sparc-tdep.c: Ditto for #if code.
1054 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1056 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1058 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1059 x86_64_supply_fxsave.
1060 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1061 x86_64_supply_fxsave.
1062 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1063 x86_64_supply_fxsave.
1067 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1072 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1073 i387_supply_register.
1074 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1075 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1077 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1079 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1081 * i386bsd-nat.c (supply_fpregset): Adjust call to
1083 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1084 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1086 (store_inferior_registers): Remove extraneous whitespace. Call
1087 i387_fill_fsave instead of fill_fpregset.
1088 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1089 (supply_fpregset): Likewise.
1090 * i386v4-nat.c (supply_fpregset): Adjust call to
1092 * i386-interix-nat.c (supply_fpregset): Adjust call to
1094 * i386-linux-nat.c (supply_fpregset): Adjust call to
1096 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1097 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1098 i387supply_fsave and i387_supply_fxsave.
1099 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1100 Incorporate code from `i387_supply_register.
1101 (i387_supply_register): Remove.
1102 (i387_supply_fxsave): Add `regnum' argument.
1104 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1106 (i387_supply_register): remove prototype.
1111 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1112 Add lines for files in gdb/testsuite/gdb.cp/* that are
1113 still not 8.3 unique.
1117 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1118 TYPE_VPTR_FIELDNO is valid.
1122 * utils.c (set_width_command): Remove prototypes.
1123 (set_screen_size): New prototype.
1124 (init_page_info): Simplify by fetching the screen size from
1125 Readline. Call set_screen_size.
1126 (set_screen_size): New function.
1127 (set_width): Add missing whitespace in comment.
1128 (set_width_command): Call set_screen_size.
1129 (set_height_command): New function.
1130 (initialize_utils): Fix formatting. Make "set height" command
1131 call set_height_command. Remove redundant code that turns off
1132 pagination if output isn't a terminal. Remove redundant call to
1137 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1138 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1139 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1140 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1142 (sparc64_register_info): Give the reister with number
1143 SPARC64_STATE_REGNUM a name.
1144 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1146 (sparc64_push_dummy_call): Take BIAS into account when checking
1148 (sparc_software_single_step): Remove assertions that check whether
1149 NPC and NNPC were zero.
1150 (sparc_supply_rwindow): Make public. Merge functionality with
1151 sparc64_supply_rwindow.
1152 (sparc_fill_rwindow): Make public. Merge functionality with
1153 sparc64_fill_rwindow.
1154 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1155 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1156 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1157 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1158 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1160 * reggroups.c: Add whitespace after declarations of local
1161 variables in functions.
1165 * gdbtypes.h: Change array bound type from an int to enum.
1169 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1170 * config/sparc/tm-sparc.h: Ditto.
1171 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1173 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1177 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1178 (register_objfile_data, set_objfile_data, objfile_data): New
1180 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1182 (allocate_objfile): Call objfile_alloc_data.
1183 (free_objfile): Call objfile_free_data.
1184 (struct objfile_data): New.
1185 (struct objfile_data_registration): New.
1186 (struct objfile_data_registry): New.
1187 (objfile_data_registry): New variable.
1188 (register_objfile_data): New function.
1189 (objfile_alloc_data, objfile_free_data): New functions.
1190 (set_objfile_data, objfile_data): New functions.
1191 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1192 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1193 (_initialize_dwarf2_frame): New function and prototype.
1197 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1198 a specific architecture.
1199 * arch-utils.h (set_architecture_from_arch_mach): Delete
1201 (target_architecture_hook): Delete declaration.
1202 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1203 (default_float_format): Assume GDB_MULTI_ARCH.
1204 (default_double_format): Assume GDB_MULTI_ARCH.
1205 (set_endian_from_file): Delete function.
1206 (arch_ok): Delete function.
1207 (set_arch): Delete function.
1208 (set_architecture_from_arch_mach): Delete function.
1209 (set_architecture_from_file): Delete function.
1210 (set_architecture): Assume GDB_MULTI_ARCH.
1211 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1215 Rewrite FreeBSD/sparc64 native configuration.
1216 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1217 * sparc64fbsd-nat.c: New file.
1218 * sparc64fbsd-tdep.c: New file.
1219 * sparc64-tdep.c sparc64-tdep.h: New files.
1220 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1221 sparc64fbsd-tdep.o): New dependencies.
1222 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1223 and sparc64fbsd-tdep.c.
1224 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1225 * config/sparc/fbsd.mh: Remove copyright notice.
1226 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1228 * config/sparc/fbsd.mt: Remove copyright notice.
1229 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1230 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1231 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1232 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1233 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1234 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1235 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1236 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1238 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1239 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1243 * symtab.h: Add doco on the space critical structures and
1244 some measurements of space usage.
1248 * tracepoint.c (trace_dump_command): Trace break address
1249 is subject to DECR_PC_AFTER_BREAK.
1250 (set_traceframe_context): Make "trace_line" an int.
1255 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1256 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1257 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1259 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1260 functions, replace sh_push_dummy_call.
1261 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1265 * gdbtypes.h (struct main_type): Rearrange to save space.
1269 * trad-frame.c: Comment typo fix.
1274 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1275 (frv_frame_init_saved_regs): Add declaration.
1276 (frame_extra_info): Add new field ``saved_regs''.
1277 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1278 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1279 Update frame related code.
1280 (frv_extract_struct_value_address): Adjust formatting.
1281 * Makefile.in (frv-tdep.o): Update dependencies.
1282 * config/frv/tm-frv.h (target_insert_watchpoint)
1283 (target_remove_watchpoint, target_insert_hw_breakpoint)
1284 (target_remove_hw_breakpoint): Delete these macros.
1285 (remote_insert_watchpoint, remote_remove_watchpoint)
1286 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1291 * defs.h (ENUM_BITFIELD): New macro.
1292 * symtab.h (ENUM_BITFIELD): Use it.
1293 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1297 * MAINTAINERS (write after approval): Add myself.
1301 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1302 * gdbarch.h, gdbarch.c: Re-generate.
1303 * infcall.c (call_function_by_hand): Adjust the SP by
1304 frame_red_zone_size before allocating any stack space.
1305 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1306 * x86-64-tdep.c (x86_64_frame_align): New function.
1307 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1309 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1310 Remove code adjusting SP so that it skips over the Red Zone.
1314 * NEWS (New native configurations): Mention FreeBSD/amd64.
1318 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1319 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1321 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1325 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1329 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1331 * i386-linux-nat.c: Include "linux-nat.h".
1332 (child_post_startup_inferior): New function.
1336 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1337 at the start of a frameless function. This probably fixes PR
1342 * symfile.c (find_sym_fns): Remove special case for apollo target.
1346 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1347 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1348 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1349 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1350 (linux_supports_tracevforkdone): New function.
1351 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1353 (child_follow_fork): Handle vfork.
1354 (linux_handle_extended_wait): Likewise. Also handle exec.
1355 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1356 * NEWS: Mention fork tracing.
1360 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1364 * Makefile.in (i386-linux-nat.o): Update dependencies.
1365 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1366 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1367 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1368 * i386-linux-nat.c: Include "linux-nat.h".
1369 (child_post_startup_inferior): New function.
1370 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1371 * infptrace.c (kill_inferior): Wrap in #ifdef.
1372 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1373 attaching to each LWP.
1374 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1375 (init_lin_lwp_ops): Fill in some more operations.
1376 * linux-nat.h (linux_enable_event_reporting)
1377 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1379 * linux-nat.c (linux_enable_event_reporting): New function.
1380 (child_post_attach, linux_child_post_startup_inferior)
1381 (child_post_startup_inferior, child_follow_fork)
1382 (linux_handle_extended_wait, kill_inferior): New functions.
1386 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1387 * gdbarch.h, gdbarch.c: Re-generate.
1391 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1395 * NEWS: Mention that "set prompt-escape-char" was deleted.
1396 * top.c (get_prompt_1): Delete function.
1397 (gdb_prompt_escape):
1398 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1399 prompt-escape-char" command.
1400 (MAX_PROMPT_SIZE): Delete macro.
1401 (get_prompt): Simplify, do not call get_prompt_1.
1405 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1406 -Werror. -Wformat-nonliteral problems.
1410 Further multiarching work mostly for hppa64-*-hpux11:
1411 * hppa-tdep.h: New file.
1412 * hppa-tdep.c: #include hppa-tdep.c.
1413 (hppa32_num_regs): Renamed from hppa_num_regs.
1414 (hppa64_num_regs): New constant.
1415 (hppa64_call_dummy_breakpoint_offset): New constant.
1416 (hppa32_call_dummy_length): New constant.
1417 (hppa64_call_dummy_length): New constant.
1418 (hppa32_stack_align): Make name 32bit explicit.
1419 (hppa32_register_virtual_type): Likewise.
1420 (hppa32_extract_return_value): Likewise.
1421 (hppa32_use_struct_convention): Likewise.
1422 (hppa32_store_return_value): Likewise.
1423 (hppa64_register_virtual_type): New function.
1424 (hppa64_extract_return_value): New function.
1425 (hppa64_use_struct_convention): New function.
1426 (hppa64_store_return_value): New function.
1427 (hppa_frame_locals_address): Remove declaration, function does
1429 (hppa_register_byte): Add support for PA64 ABI.
1430 (hppa_gdbarch_init): Add support for PA64 ABI.
1431 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1432 Make name 32bit explicit.
1433 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1434 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1435 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1436 (hppa64_hpux_frame_base_before_sigtramp): New function.
1437 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1438 * config/pa/tm-hppa64.h: Remove macros that are no longer
1439 necessary now that the gdbarch vector is properly setup.
1440 Transform some macros into function calls. Some minor cleanup.
1441 * config/pa/tm-hppah.h: Update function calls in macros
1442 following the function renaming in hppa-hpux-tdep.c.
1443 * Makefile.in (hppa_tdep_h): New variable.
1444 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1448 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1452 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1453 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1458 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1459 (frv_saved_pc_after_call): Use deprecated ftype.
1460 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1461 (frv_remote_translate_xfer_address): Remove.
1462 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1466 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1467 initialization after the common gdbarch initialization, not before.
1471 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1472 (ADDR_BITS_REMOVE): Remove, redundant.
1476 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1477 gdbarch method to clear the 2 low bits of text addresses.
1481 * Makefile.in (dsrec.o): Update dependencies.
1482 * dsrec.c: Include "gdb_assert.h".
1483 (make_srec): Use snprintf instead of sprintf, use a literal format
1488 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1489 FRAME_OBSTACK_ZALLOC.
1493 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1498 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1499 amd64fbsd_sc_reg_offset): Add extern declarations.
1500 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1505 * MAINTAINERS (write after approval): Update my mail address.
1509 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1513 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1514 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1515 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1516 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1517 i386bsd_sc_reg_offset): Add extern declarations.
1518 * i386obsd-nat.c: Include "i386-tdep.h"
1519 (_initialize_i386obsd_nat): Remove extern declarations.
1520 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1522 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1525 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1526 instead of frame_read_register.
1527 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1528 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1530 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1531 instead of frame_unwind_unsigned_register. Use
1532 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1533 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1534 instead of read_register. Use builtin_type_void_data_ptr instead
1535 of builtin_type_void_func_ptr when extracting the address of the
1537 (i386_extract_return_value, i386_store_return_value,
1538 i386_pseudo_register_read, i386_pseudo_register_write): Use
1539 register_size instead REGISTER_RAW_SIZE.
1543 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1544 sprintf. Make "name" constant.
1548 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1549 instead of frame_read_register.
1550 (i387_print_float_info): Use get_frame_register and
1551 get_frame_register_unsigned instead of frame_register_read.
1553 * i386fbsd-nat.c: Include "i386-tdep.h".
1554 (child_resume): Make `eflags' an ULONGEST. Use
1555 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1556 instead of register_read and register_write.
1558 * i386bsd-nat.c (fetch_inferior_registers,
1559 store_inferior_registers): Don't use && at the end of a line.
1560 (_initialize_i386bsd_nat): Fix typo.
1562 * frame.c (_initialize_frame): Add missing backslash.
1565 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1566 and supply_register instead of manipulating the register buffer
1570 * config/i386/nm-i386sol2.h
1571 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1574 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1575 instructions that GCC likes to mingle into the prologue. Fixes
1576 gdb/1253 and gdb/1255.
1581 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1582 * command.h (add_setshow_uinteger_cmd): Declare.
1583 * frame.c (set_backtrace_cmd): New function.
1584 (show_backtrace_cmd): New function.
1585 * frame.c (_initialize_frame): Replace "set/show
1586 backtrace-below-main" with "set/show backtrace past-main". Add
1587 command "set/show backtrace limit".
1588 (backtrace_past_main): Rename "backtrace_below_main".
1589 (backtrace_limit): New variable.
1590 (get_prev_frame): Update. Check the backtrace_limit.
1594 * defs.h (xstrprintf): Declare.
1595 * utils.c (xstrprintf): New function.
1596 * breakpoint.c (insert_breakpoints): Replace sprintf and
1597 non-literal format strings, with xstrprintf and cleanups.
1598 (delete_breakpoint,breakpoint_re_set): Ditto.
1599 (commands_command, insert_breakpoints): Ditto.
1600 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1601 (break_at_finish_command_1): Ditto.
1605 * MAINTAINERS (language support): List Adam Fedor as Objective C
1610 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1611 are now multiarched.
1615 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1616 longer necessary now that hppa64 is partially multiarch'ed.
1620 * interps.c (interp_set): Check for a NULL "old_interp".
1624 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1625 (install-only): Support DESTDIR.
1626 (uninstall): Likewise.
1627 (install-gdbtk): Likewise.
1631 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1632 contains something meaningful at all times.
1636 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1640 * MAINTAINERS (write after approval): Added self.
1644 * inferior.h (AT_SYMBOL): Define.
1645 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1646 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1647 * mips-tdep.c (mips_call_dummy_address): Delete function.
1648 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1649 set call_dummy_address.
1653 * language.c (op_error): Delete function.
1654 (binop_type_check): Delete function.
1655 * language.h (type_op_error, range_op_error): Delete macros.
1656 (op_error): Delete declaration.
1660 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1664 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1665 (x86_64_push_arguments): Skip the red zone.
1669 * reggroups.c (reggroup_next): Check for the final entry.
1673 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1674 * cli/cli-script.c (define_command): Call query directly, instead
1675 of passing it a buffer.
1676 * ocd.c (ocd_error): Pass error a constant format string.
1677 * remote-mips.c (mips_error): Use fputs_filtered.
1679 * solib-svr4.c (_initialize_svr4_solib): Update
1680 register_gdbarch_data call.
1681 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1683 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1684 (register_gdbarch_data): Delete "free" parameter. Update
1686 * gdbarch.h, gdbarch.c: Re-generate.
1687 * reggroups.c (_initialize_reggroup): Update.
1688 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1689 * frame-base.c (_initialize_frame_base): Update.
1690 * frame-unwind.c (_initialize_frame_unwind): Update.
1691 * user-regs.c (_initialize_user_regs): Update.
1692 * remote.c (_initialize_remote): Update.
1693 * regcache.c (_initialize_regcache): Update.
1695 * regcache.c (xfree_regcache_descr): Delete function.
1696 (_initialize_regcache): Update call to register_gdbarch_data.
1697 (init_regcache_descr, init_legacy_regcache_descr): Use
1698 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1700 * remote.c (free_remote_state): Delete function.
1701 (_initialize_remote): Update register_gdbarch_data.
1702 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1703 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1707 * reggroups.c (struct reggroup_el): Define.
1708 (struct reggroups): Delete field "nr_group". Replace array
1709 "group" with a "first" to "last" linked list.
1710 (reggroups_init): Update. Allocate using gdbarch's obstack.
1711 (reggroups_free): Delete function.
1712 (add_group): Update. Add "el" parameter.
1713 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1714 (default_groups): Update.
1715 (reggroup_next): Replace reggroups.
1716 (reggroups_dump): Update.
1717 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1718 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1719 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1723 * Makefile.in (tui-interp.o): Update dependencies.
1727 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1728 to internal_error call.
1729 * source.c (forward_search_command): Add "%s" format argument.
1730 (reverse_search_command): Ditto.
1731 * top.c (quit_confirm): Ditto.
1732 * cli/cli-setshow.c (do_setshow_command): Ditto.
1733 * cp-valprint.c (cp_print_class_method): Replace
1734 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1735 (cp_print_class_member): Ditto.
1736 * event-top.c (command_line_handler): Ditto.
1737 * linux-proc.c (linux_info_proc_cmd): Ditto.
1738 * p-typeprint.c (pascal_type_print_base): Ditto.
1739 * p-valprint.c (pascal_object_print_class_method): Ditto.
1740 (pascal_object_print_class_member): Ditto.
1741 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1742 * remote.c (remote_cisco_section_offsets): Ditto.
1743 * top.c (command_line_input): Ditto.
1744 * utils.c (vwarning,error_stream,quit): Ditto.
1745 * valprint.c (print_floating,print_binary_chars)
1746 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1750 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1754 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1755 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1760 * Makefile.in: Update all dependencies and definitions.
1764 * linespec.c (is_objc_method_format): New function
1765 (decode_line_1, locate_first_half): Use it.
1770 * NEWS: Mention that m32r is multi-arch.
1772 * configure.tgt: Recognize m32r-*-*.
1773 * config/m32r/tm-m32r.h: Delete file.
1774 * config/m32r/m32r.mt: New file.
1775 * m32r-rom.c (m32r_upload_command): Use hostent only when
1776 gethostname succeeds, in order to avoid a compilation
1778 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1783 * sh-tdep.c (sh_frame_align): New gdbarch method.
1784 (sh_gdbarch_init): Set up frame_align method.
1788 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1789 which is already covered by the new frames infrastructure.
1793 * user-regs.c (struct user_reg): Add "next" link.
1794 (struct user_regs): Replace "user" with "first" and "last" links.
1795 (append_user_reg): Add pre-allocated "reg" parameter.
1796 (builtin_user_regs): Provide initial value for "last".
1797 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1798 (user_regs_init): Allocate memory from the gdbarch obstack.
1799 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1800 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1802 (usernum_to_user_reg): New function.
1803 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1804 (value_of_user_reg): Use usernum_to_user_reg.
1805 (user_regs_free): Delete function.
1806 (_initialize_user_regs): Update register_gdbarch_data call.
1810 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1814 * value.h (value_being_returned): Add a struct_addr argument.
1815 * infcall.c (call_function_by_hand): Pass struct_addr to
1816 value_being_returned.
1817 * infcmd.c (print_return_value): Pass zero as struct_addr.
1818 * values.c (value_being_returned): If struct_addr is passed,
1819 use it instead of trying to recover it from the inferior.
1823 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1824 the prologue analyzer won't need to attempt to extract the pc
1825 value from the woefully incomplete dummy frame.
1826 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1827 possible. Disable code which modifies the frame.
1831 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1833 (annotate_breakpoints_table, annotate_record): Ditto.
1834 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1835 (annotate_field_name_end, annotate_field_value): Ditto.
1836 (annotate_field_end, annotate_frame_source_begin): Ditto.
1837 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1838 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1839 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1840 (annotate_frame_address_end, annotate_frame_address): Ditto.
1841 (annotate_frame_args, annotate_frame_end): Ditto.
1842 (annotate_frame_where, annotate_arg_begin): Ditto.
1843 (annotate_arg_name_end, annotate_arg_value): Ditto.
1844 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1845 (annotate_function_call, annotate_signal_name): Ditto.
1846 (annotate_signal_string, annotate_signal_name_end): Ditto.
1847 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1848 (annotate_value_begin, annotate_value_history_value): Ditto.
1849 (annotate_value_history_end, annotate_value_end): Ditto.
1850 (annotate_display_begin, annotate_display_number_end): Ditto.
1851 (annotate_display_format, annotate_display_expression): Ditto.
1852 (annotate_display_expression_end, annotate_display_value): Ditto.
1853 (annotate_display_end, annotate_array_section_begin): Ditto.
1854 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1855 (annotate_elt, annotate_array_section_end): Ditto.
1859 * regcache.c (struct regcache_descr): Update comments on
1861 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1862 sizeof_raw_register_valid_p.
1863 (init_regcache_descr): Set nr_raw_registers and
1864 sizeof_raw_register_valid_p before calling
1865 init_legacy_regcache_descr.
1869 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1874 * thread.c (info_threads_command): Use get_selected_frame ().
1875 Check that there is at least one non-sentinel frame.
1879 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1880 (m68hc11_pop_frame): Remove.
1881 (m68hc11_frame_saved_pc): Remove.
1882 (m68hc11_frame_chain): Remove.
1883 (m68hc11_frame_init_saved_regs): Remove.
1884 (m68hc11_init_extra_frame_info): Remove.
1885 (m68hc11_store_struct_return): Remove.
1886 (m68hc11_saved_pc_after_call): Remove.
1890 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1891 frame unwind information.
1892 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1893 and adapted for frame unwinding.
1894 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1895 (m68hc11_unwind_pc): New function.
1896 (m68hc11_frame_unwind_cache): New function to analyze frames.
1897 (m68hc11_frame_this_id): New function to create new frame struct.
1898 (m68hc11_frame_prev_register): New function to unwind a register from
1900 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1901 (m68hc11_frame_p): New function for the above.
1902 (m68hc11_frame_base_address): New function to return fp of frame.
1903 (m68hc11_frame_args_address): Update for frame.
1904 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1905 (m68hc11_unwind_sp): New function.
1906 (m68hc11_unwind_dummy_id): New function.
1907 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1912 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1913 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1914 when we are beyond the current pc.
1918 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1919 from m68hc11_push_arguments.
1920 (m68hc11_push_arguments): Remove.
1921 (m68hc11_push_return_address): Remove.
1922 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1923 handlers; remove deprecated_extra_stack_alignment_needed.
1927 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1928 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1929 REAL_PC and not the pointer.
1930 * hppa-hpux-tdep.c: Include frame.h
1934 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1935 GDB_MULTI_ACH_PARTIAL.
1940 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1941 operator at start and not end of line.
1942 (decode_prologue): Ditto.
1943 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1944 frame_unwind_register_unsigned instead of
1945 frame_unwind_unsigned_register.
1946 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1948 (m32r_push_dummy_call): Use register_size instead of
1950 (m32r_frame_sniffer): Replace m32r_frame_p.
1951 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1952 * m32r-rom.c (report_transfer_performance): Delete extern
1954 (m32r_load, m32r_upload_command): Use print_transfer_performance
1955 instead of report_transfer_performance.
1956 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1957 / add_show_from_set.
1961 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1962 store_return_value and extract_struct_value_address.
1967 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1968 NULL, default to the section containing PC.
1972 * NEWS: Mention "regs" deprecated for m68hc11 too.
1974 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1975 (m68hc11_print_register): New function to print out one register.
1976 (m68hc11_print_registers_info): New function to print registers.
1977 (show_regs): Deprecate and use the above.
1978 (m68hc11_gdbarch_init): Install the print_registers_info.
1982 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1983 that we have a SIGTRAP before returning non-zero.
1988 * linespec.c (decode_line_2): Avoid crash if
1989 find_function_start_sal() returns empty record.
1993 * ia64-tdep.c (ia64_print_insn): New function.
1994 (ia64_gdbarch_init): Set print_insn to it.
1995 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1996 deprecated_tm_print_insn_info.
2000 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2001 handle 8-bit returns (long long).
2002 (h8300h_extract_return_value): Ditto.
2003 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2007 * gdbarch.c Include "gdb_obstack.h".
2008 (struct gdbarch): Add an "obstack".
2009 (alloc_gdbarch_data): Allocate the gdbarch data using
2010 GDBARCH_OBSTACK_CALLOC.
2011 (free_gdbarch_data): Delete function.
2012 (gdbarch_obstack_zalloc): New function.
2013 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2014 Assert that the architecture is not initialized.
2015 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2016 vector from the obstack.
2017 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2018 architecture obstack.
2019 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2020 (set_gdbarch_data): Assert that the data is not initialized.
2021 (struct gdbarch_data): Delete member "free".
2022 (register_gdbarch_data): Do not initialize "free".
2023 * gdbarch.h, gdbarch.c: Re-generate.
2027 * configure.in (build_warnings): Add -Wformat-nonliteral.
2028 * configure: Re-generate.
2032 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2036 * findvar.c (read_var_value): Remove case for thread local storage
2037 variables. It is now entirely handled by the dwarf2 location
2039 * printcmd.c (address_info): Ditto.
2040 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2042 (struct symbol): Remove objfile field, which was used by
2043 LOC_THREAD_LOCAL_STATIC only.
2044 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2045 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2046 usage of objfile pointer.
2047 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2048 thread local variables.
2049 Add include of objfiles.h.
2050 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2052 * Makefile.in (dwarf2loc.o): Update dependencies.
2056 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2058 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2059 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2060 (struct value): Add opaque declaration.
2061 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2066 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2070 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2071 regcache_cooked_read_unsigned instead of read_register.
2072 (m68hc11_saved_pc_after_call): Likewise.
2073 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2074 instead of write_register.
2075 (m68hc11_register_type): New function.
2076 (m68hc11_register_virtual_type): Remove.
2077 (m68hc11_store_return_value): Convert to use the regcache.
2078 (m68hc11_extract_struct_value_address): Likewise.
2079 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2080 m68hc11_register_type; undeprecate store_return_value and
2081 extract_struct_value_address.
2085 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2086 and translate to use regcache.
2087 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2091 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2092 * gdbarch.h, gdbarch.c: Re-generate.
2093 * i386-tdep.c (i386_gdbarch_init): Do not set
2094 DWARF2_BUILD_FRAME_INFO.
2095 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2097 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2098 DWARF2_BUILD_FRAME_INFO.
2103 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2107 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2108 frame_unwind_address_in_block, instead of frame_pc_unwind.
2109 (dwarf2_frame_cache): Ditto.
2113 * user-regs.h (struct gdbarch): Declare opaque.
2114 * ui-out.h (struct ui_file): Declare opaque.
2115 * dwarf2-frame.h (struct frame_info): Declare opaque.
2119 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2121 (procfs_meminfo): Change strerror to safe_strerror.
2122 (procfs_can_run): Remove K&R badness.
2126 * remote-sim.c: Comment typo fix.
2130 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2132 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2133 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2134 GDB_MULTI_ARCH_PARTIAL.
2138 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2139 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2140 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2144 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2146 (avr_frame_unwind_cache): Don't unwind FP for main.
2148 Save the computed prev_sp.
2149 (avr_saved_regs_unwinder): Remove function.
2150 (avr_frame_prev_register): Use PC unwind logic from
2151 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2155 * frame-base.h (frame_base_p_ftype): Delete definition.
2156 (frame_base_append_predicate): Delete declaration.
2157 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2158 (frame_unwind_append_predicate): Delete declaration.
2159 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2160 (append_predicate): Delete parameter "p".
2161 (frame_unwind_append_predicate): Delete function.
2162 (frame_unwind_append_sniffer): Update call to append_predicate.
2163 (frame_unwind_free): Delete function.
2164 (_initialize_frame_unwind): Pass NULL as "free" to
2165 register_gdbarch_data.
2166 (frame_unwind_init): Append the dummy_frame_sniffer.
2167 (frame_unwind_find_by_frame): Simplify.
2168 * frame-base.c (struct frame_base_table): Delete field "p".
2169 (append_predicate): Delete parameter "p".
2170 (frame_base_append_predicate): Delete function.
2171 (frame_base_append_sniffer): Update call to append_predicate.
2172 (frame_base_free): Delete function.
2173 (frame_base_find_by_frame): Simplify.
2174 (_initialize_frame_base): Pass NULL as "free" to
2175 register_gdbarch_data.
2176 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2177 (x86_64_sigtramp_frame_sniffer): Replace
2178 "x86_64_sigtramp_frame_p".
2179 (x86_64_init_abi): Set the frame unwind sniffers.
2180 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2181 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2182 (m68k_gdbarch_init): Set the frame unwind sniffers.
2183 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2184 "i386_sigtramp_frame_p".
2185 (i386_frame_sniffer): Replace "i386_frame_p".
2186 (i386_gdbarch_init): Set the frame unwind sniffers.
2187 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2188 (avr_gdbarch_init): Set the frame unwind sniffers.
2189 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2190 "alpha_sigtramp_frame_p"
2191 (alpha_heuristic_frame_sniffer): Replace
2192 "alpha_heuristic_frame_p".
2193 (alpha_gdbarch_init): Set the frame unwind sniffers.
2194 (alpha_dwarf2_init_abi): Ditto.
2195 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2196 "alpha_debug_frame_p".
2197 (alpha_mdebug_frame_base_sniffer): Replace
2198 "alpha_mdebug_frame_base_p".
2199 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2200 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2201 (d10v_gdbarch_init): Set the frame unwind sniffer.
2202 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2203 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2204 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2205 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2206 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2207 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2211 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2212 should go thru sh_dsp_register_sim_regno, else the dsp regs
2213 will not get the right values.
2217 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2218 deprecated_store_floating by call to store_typed_floating.
2219 (sh_sh4_register_convert_to_raw): Substitute call to
2220 deprecated_extract_floating by call to extract_typed_floating.
2224 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2228 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2229 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2230 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2232 (do_pseudo_register): Remove.
2233 (sh_push_dummy_code): New function.
2234 (sh64_store_struct_return): Rename from sh_store_struct_return.
2235 Only called for sh64 now.
2236 (sh_extract_struct_value_address): Regcache'ify.
2237 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2238 and accomodate new tasks.
2239 (sh64_push_return_address): Rename from sh_push_return_address.
2240 Only called for sh64 now.
2241 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2243 (sh3e_sh4_extract_return_value): Regcache'ify.
2244 (sh_default_store_return_value): Ditto.
2245 (sh3e_sh4_store_return_value): Ditto.
2246 (sh_default_register_byte): Remove.
2247 (sh_sh4_register_byte): Remove.
2248 (sh_default_register_raw_size): Remove.
2249 (sh_sh4_register_raw_size): Remove.
2250 (sh_register_virtual_size): Remove.
2251 (sh_sh3e_register_virtual_type): Remove.
2252 (sh_sh3e_register_type): New function.
2253 (sh_sh4_register_virtual_type): Remove.
2254 (sh_sh4_register_type): New function.
2255 (sh_default_register_virtual_type): Remove.
2256 (sh_default_register_type): New function.
2257 (do_fv_register_info): Add parameters to accomodate call from
2258 sh_print_registers_info.
2259 (do_dr_register_info): Ditto.
2260 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2261 Add parameters to accomodate call from sh_print_registers_info.
2262 (sh_do_fp_register): Ditto.
2263 (sh64_do_pseudo_register): Call do_dr_register_info,
2264 do_fv_register_info and sh_do_fp_register with default parameters.
2265 (sh_do_register): Add parameters to accomodate call from
2266 sh_print_registers_info.
2267 (sh_print_register): Ditto.
2268 (sh_print_registers_info): Rename from sh_do_registers_info.
2269 Add parameters to be used as gdbarch_print_registers_info
2270 implementation. Accomodate removed do_pseudo_register function
2272 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2273 function pointer. Call sh_print_register with default parameters.
2274 (sh64_do_registers_info): Call sh_print_registers_info instead of
2275 sh_do_registers_info.
2276 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2277 detection of deprecated vs. non-deprecated functionality.
2278 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2279 function pointer assignments by direct function calls.
2283 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2284 (frame_register_unwind, create_new_frame): Ditto.
2285 (legacy_get_prev_frame, get_frame_type): Ditto.
2286 (get_frame_base_address): Use frame_base_find_by_frame.
2287 (get_frame_locals_address): Use frame_base_find_by_frame.
2288 (get_frame_args_address): Use frame_base_find_by_frame.
2289 * frame-base.h (frame_base_sniffer_ftype): Declare.
2290 (frame_base_append_sniffer): Declare.
2291 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2292 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2293 (frame_base_append_sniffer): New function.
2294 (frame_base_append_predicate): Add a NULL sniffer.
2295 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2296 (struct frame_base_table): Add "sniffer".
2297 (frame_base_free): Free the "sniffer" table.
2298 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2299 (frame_unwind_append_sniffer): Declare.
2300 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2301 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2302 (struct frame_unwind_table): Add "sniffer", delete "middle".
2303 (append_predicate): Add "sniffer" parameter, append the sniffer.
2304 (frame_unwind_init): Update append_predicate call.
2305 (frame_unwind_append_sniffer): New function.
2306 (frame_unwind_append_predicate): Update append_predicate call.
2307 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2311 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2312 before code inhibiting repeated unwind attempts. Add to
2313 commentary on that test's problems.
2314 * blockframe.c (inside_main_func): Look for "main" in the minimal
2316 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2321 * complaints.c (struct explanation): Define.
2322 (struct complaints): Change type of "explanation" to "struct
2324 (symfile_explanations): Convert to a "struct explanation" table.
2325 (vcomplaint): Update.
2329 * x86-64-linux-nat.c (regmap): Removed.
2330 (supply_gregset, fill_gregset): Call
2331 x86_64_linux_(fill,supply)_gregset functions.
2332 * x86-64-linux-tdep.c (USER_*): New defines.
2333 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2334 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2336 (fetch_core_registers): Ditto.
2337 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2338 * x86-64-linux-tdep.h: New file.
2339 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2341 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2345 * x86-64-tdep.c (x86_64_store_return_value): Use
2346 regcache_cooked_write_part instead of regcache_cooked_write.
2348 * configure.host: Add x86_64-*-freebsd*.
2349 * configure.tgt: Add x86_64-*-freebsd*.
2350 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2351 * amd64fbsd-nat.c: New file.
2352 * amd64fbsd-tdep.c: New file.
2353 * config/i386/nm-fbsd64.h: New file.
2354 * config/i386/fbsd64.mh: New file.
2355 * config/i386/fbsd64.mt: New file.
2359 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2360 `sc_regs_offset' and `sc_fpregs_offset'.
2361 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2362 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2363 (alpha_sigtramp_register_address): Rewrite to use new members of
2364 `struct gdbarch_tdep'.
2365 (alpha_gdbarch_init): Initialize new members of struct
2367 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2368 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2369 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2370 (alphafbsd_pc_in_sigtramp): Implement.
2371 (alphafbsd_sigtramp_offset): New function.
2372 (alphafbsd_sigcontext_addr): New function.
2373 (alphafbsd_init_abi): Initialize signal trampoline related members
2374 of `struct gdbarch_tdep'.
2375 (_initialize_alphafbsd_tdep): Add prototype.
2379 * Makefile.in (install-only): Quote sed expression when generating
2384 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2385 * dwarf2-frame.c: Include complaints.h.
2386 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2387 variable initialization; return NULL on error.
2388 (decode_frame_entry): New.
2392 * frame.h (frame_address_in_block): Delete declaration.
2393 * blockframe.c (frame_address_in_block): Delete function.
2394 (get_frame_block): Use get_frame_address_in_block.
2395 (block_innermost_frame): Ditto.
2396 * stack.c (print_frame, backtrace_command_1): Ditto.
2398 * frame.h (get_frame_address_in_block): Declare.
2399 (frame_unwind_address_in_block): Declare.
2400 * frame.c (frame_unwind_address_in_block): New function.
2401 (get_frame_address_in_block): New function.
2405 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2406 pre-default. Note: re-generate has no effect.
2410 * gdbarch.sh: When a variable, but not a function, compare against
2411 0. Fix problem in previous patch.
2412 * gdbarch.c: Re-generate.
2416 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2417 functions against NULL, not 0.
2418 * gdbarch.c: Re-generate.
2422 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2423 null string instead of a null pointer.
2424 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2428 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2432 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2433 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2434 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2435 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2436 * x86-64-tdep.c: ... from here.
2440 * m68k-tdep.h (enum struct_return): Define.
2441 (struct gdbarch_tdep): Add struct_return.
2442 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2443 bytes are padded to the right, not to the left. Pass struct value
2444 address in register %a1, not on stack.
2445 (m68k_use_struct_convention): New function.
2446 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2447 struct_return in tdep to pcc_struct_return.
2448 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2453 * somread.c (som_symfile_offsets): Fix compilation error.
2457 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2458 Add comments about the checks.
2462 * Makefile.in: Make dependency section headers consistent.
2463 (config_h): Move to $BUILD headers section.
2464 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2465 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2466 (ada-exp.tab.c): Move to YACC/LEX section.
2467 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2468 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2472 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2473 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2474 of strerror with safe_strerror, use ISO C function definitions,
2475 and replace instances of sprintf with snprintf.
2479 * frame.c (get_prev_frame): Enable check for identical frames.
2480 Update comments. Update error messages.
2484 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2488 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2489 sort_symtab_syms, no longer necessary.
2493 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2497 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2498 (mips_register_byte): Likewise.
2502 * Makefile.in (sparc_tdep_h): New.
2503 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2504 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2505 * sparc-linux-nat.c: Include "sparc-tdep.h".
2506 * sparc-nat.c: Likewise.
2507 * sparc-tdep.c: Likewise.
2508 * sparc64nbsd-nat.c: Likewise.
2509 * sparcnbsd-nat.c: Likewise.
2510 * sparcnbsd-tdep.c: Likewise.
2511 * sparc-tdep.h: New file.
2512 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2513 and sparc_npc_regnum.
2517 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2518 (mips_linux_cannot_store_register): List supported instead of
2519 unsupported registers.
2523 * disasm.c (dump_insns): Separate instructions from addresses.
2527 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2529 * m68k-tdep.c (NUM_FREGS): Delete.
2530 (SIG_PC_FP_OFFSET): Delete.
2531 (TARGET_M68K): Delete.
2532 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2533 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2534 P_MOVEL_SP, P_MOVEML_SP): Define.
2535 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2537 (m68k_register_raw_size): Delete.
2538 (m68k_register_virtual_size): Delete.
2539 (m68k_register_type): Renamed from m68k_register_virtual_type and
2540 add gdbarch argument.
2541 (m68k_store_struct_return): Delete.
2542 (m68k_deprecated_extract_return_value): Delete.
2543 (m68k_deprecated_extract_struct_value_address): Delete.
2544 (m68k_frame_chain): Delete.
2545 (m68k_frame_saved_pc): Delete.
2546 (m68k_fix_call_dummy): Delete.
2547 (m68k_push_dummy_frame): Delete.
2548 (m68k_pop_frame): Delete.
2549 (m68k_extract_return_value): New function.
2550 (m68k_store_return_value): Rewrite using regcache.
2551 (m68k_extract_struct_value_address): Rewrite using regcache.
2552 (m68k_push_dummy_call): New function.
2553 (struct m68k_frame_cache): Define.
2554 (m68k_alloc_frame_cache): New function.
2555 (m68k_analyze_frame_setup): New function.
2556 (m68k_analyze_register_saves): New function.
2557 (m68k_analyze_prologue): New function.
2558 (m68k_skip_prologue): Rewrite using above functions.
2559 (m68k_unwind_pc): New function.
2560 (m68k_frame_cache): New function.
2561 (m68k_frame_this_id): New function.
2562 (m68k_frame_prev_register): New function.
2563 (m68k_frame_unwind): New variable.
2564 (m68k_frame_p): New function.
2565 (m68k_sigtramp_frame_cache): New function.
2566 (m68k_sigtramp_frame_this_id): New function.
2567 (m68k_sigtramp_frame_prev_register): New function.
2568 (m68k_sigtramp_frame_unwind): New variable.
2569 (m68k_sigtramp_frame_p): New function.
2570 (m68k_frame_base_address): New function.
2571 (m68k_frame_base): New function.
2572 (m68k_unwind_dummy_id): New function.
2573 (fill_gregset): Use regcache_collect.
2574 (fill_fpregset): Likewise.
2575 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2577 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2578 deprecated_init_frame_pc, deprecated_store_struct_return,
2579 deprecated_extract_return_value, deprecated_store_return_value,
2580 deprecated_frame_chain, deprecated_frame_saved_pc,
2581 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2582 deprecated_register_virtual_size,
2583 deprecated_max_register_raw_size,
2584 deprecated_max_register_virtual_size,
2585 deprecated_register_virtual_type, deprecated_register_size,
2586 deprecated_register_byte, deprecated_register_bytes,
2587 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2588 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2589 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2590 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2591 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2592 deprecated_push_dummy_frame, deprecated_pop_frame,
2593 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2594 only if SYSCALL_TRAP is defined. Set extract_return_value,
2595 store_return_value, extract_struct_value_address, register_type,
2596 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2598 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2599 M68K_MAX_REGISTER_SIZE): Define.
2600 (struct m68k_sigtramp_info): Define.
2601 (struct gdbarch_tdep): Add get_sigtramp_info.
2602 * m68klinux-nat.c (fetch_register): Use register_size instead of
2603 REGISTER_RAW_SIZE. Don't put assignment in if.
2604 (store_register): Likewise.
2605 (fetch_inferior_registers): Likewise.
2606 (store_inferior_registers): Likewise.
2607 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2608 (m68k_linux_frame_saved_pc): Delete.
2609 (m68k_linux_sigcontext_reg_offset,
2610 m68k_linux_ucontext_reg_offset): Define.
2611 (m68k_linux_get_sigtramp_info): New function.
2612 (m68k_linux_extract_return_value): Rewrite using regcache.
2613 (m68k_linux_store_return_value): Likewise.
2614 (m68k_linux_extract_struct_value_address): Likewise.
2615 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2616 Don't set deprecated_frame_saved_pc,
2617 deprecated_extract_return_value, deprecated_store_return_value,
2618 deprecated_extract_struct_value_address. Set
2619 extract_return_value, store_return_value,
2620 extract_struct_value_address.
2624 * expprint.c: Include "user-regs.h" instead of "frame.h".
2625 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2626 frame_map_regnum_to_name.
2627 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2628 (frame_map_name_to_regnum): Simplify, call
2629 user_reg_map_name_to_regnum.
2630 (frame_map_regnum_to_name): Simplify, call
2631 user_reg_map_regnum_to_name.
2632 (frame_register_unwind): Update.
2633 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2634 (_initialize_frame_reg): Call user_reg_add_builtin.
2635 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2636 (value_of_register): Use value_of_user_reg.
2637 * eval.c (evaluate_subexp_standard): Update.
2638 * parse.c (write_dollar_variable): Update.
2639 * d10v-tdep.c (d10v_print_registers_info): Update.
2640 * infcmd.c (registers_info): Update.
2641 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2642 (builtin_regs_h): Delete macro.
2643 (user_regs_h): Define.
2644 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2645 (builtin-regs.o): Delete target.
2646 (user-regs.o): Specify dependencies.
2647 (expprint.o): Update dependencies.
2648 (findvar.o): Update dependencies.
2649 (frame.o): Update dependencies.
2650 (std-regs.o): Update dependencies.
2654 * win32-nat.c (solib_symbols_add): Use one variable for all section
2655 address stuff. Pass variable rather than address of variable to
2656 safe_symbol_file_add.
2660 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2664 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2668 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2672 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2673 * config/i386/nto.mh: New file.
2674 * config/i386/nm-nto.h: New file.
2675 * configure.host: Add i[3456]86-*-nto*.
2679 * remote-vx.c (vx_add_symbols): Fix compilation error.
2683 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2684 * gdbarch.h, gdbarch.c: Re-generate.
2685 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2686 (legacy_register_name): Declare.
2687 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2688 (REGISTER_NAME): Define.
2689 * sparc-tdep.c (legacy_register_name): New function.
2690 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2691 (REGISTER_NAME): Define.
2692 (hppa64_register_name): Declare.
2693 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2694 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2695 (hppa64_register_name): New function.
2696 (hppa_register_name): New function.
2697 * arch-utils.c (legacy_register_name): Delete.
2698 * arch-utils.h (legacy_register_name): Delete.
2702 * cli/cli-interp.c (cli_interpreter_resume): Update the
2703 cli_uiout's stream to gdb_stdout.
2707 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2709 * gdbarch.h, gdbarch.c: Re-generate.
2710 * regcache.c (init_regcache_descr): Use legacy code when either
2711 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2715 * NEWS: Move "set logging" entry into GDB 6.0 section.
2719 * s390-tdep.c (struct frame_extra_info): new member:
2720 'stack_bought_valid'.
2721 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2722 initialize fextra_info->stack_bought.
2723 (s390_frameless_function_invocation): Don't trust the value of
2724 fextra_info_ptr->stack_bought unless
2725 fextra_info->stack_bought_valid is set.
2727 New S390 prologue analyzer.
2728 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2729 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2730 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2731 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2732 compute_x_addr, s390_on_stack, s390_store,
2733 s390_get_signal_frame_info): New functions.
2734 (S390_NUM_SPILL_SLOTS): New macro.
2735 (s390_get_frame_info): Rewritten.
2736 (is_arg_reg): Deleted.
2738 Break out the decoding of S/390 instructions into separate
2739 functions, to make it more legible, and easier to check
2741 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2742 is_rx, is_rxe): New functions.
2743 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2744 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2745 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2746 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2747 enums for opcode values. (Is this an improvement?)
2751 * i386-tdep.c: Revert change committed as part of trad-frame code
2756 * breakpoint.c (insert_catchpoint): Make static.
2760 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2761 former ia64_push_arguments and ia64_push_return_address, and use
2762 regcache functions instead of read/write_register.
2763 (ia64_gdbarch_init): Set push_dummy_call instead of
2764 deprecated_push_arguments and deprecated_push_return_address.
2768 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2770 Set %rax only to number of SSE registers used.
2774 * trad-frame.h: Update comments, a -1 .addr is reserved.
2775 (trad_frame_value_p, trad_frame_addr_p): Declare.
2776 (trad_frame_reg_p): Declare.
2777 (trad_frame_set_value): Rename trad_frame_register_value.
2778 (trad_frame_set_unknown): Declare.
2779 * trad-frame.c (trad_frame_realreg_p): New function.
2780 (trad_frame_addr_p, trad_frame_value_p): New function.
2781 (trad_frame_set_unknown): New function.
2782 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2783 (trad_frame_prev_register): Use trad_frame_realreg_p,
2784 trad_frame_addr_p and trad_frame_value_p.
2785 (trad_frame_set_value): Rename trad_frame_register_value.
2786 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2787 and trad_frame_set_value.
2791 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2792 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2793 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2794 for 16 registers, and then 32 more bytes.
2795 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2797 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2798 Move up in the file, since it's now used by is_simple_arg.
2799 (is_simple_arg): Don't assume registers are four bytes long.
2800 Exclude all double arguments. Extended floats are not simple
2802 (is_power_of_two): New function.
2803 (pass_by_copy_ref): Call is_power_of_two, and check that the
2804 length fits in a register, rather than listing all the acceptable
2805 sizes. Extended floats are not passed by reference.
2806 (s390_push_arguments): Don't assume registers are four bytes long.
2807 Reserve an argument register to point to the buffer for structures
2808 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2809 S390_STACK_FRAME_OVERHEAD.
2813 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2814 format error message.
2818 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2822 Band-aid for PR c++/1245.
2823 * Makefile.in (cp-support.o): Depend on complaints_h.
2824 * cp-support.c: Include complaints.h. Add declaration for
2825 find_last_component.
2826 (cp_find_first_component): Separate code into
2827 cp_find_first_component_aux.
2828 (cp_find_first_component_aux): Call demangled_name_complaint.
2829 (demangled_name_complaint): New.
2833 * remote.c (remote_write_bytes): Explicitly compute and then use
2834 the payload size. Update comments to reflect. Fixes problem of
2835 GDB not sending small packets as found by Fred Fish.
2839 * remote.c (remote_async_wait): Fix -Wformat problem.
2843 * remote.c (remote_wait): Call error, and not warning, when the
2845 (remote_async_wait): Ditto.
2849 * sparc-tdep.c (sparc_y_regnum): Make external again.
2853 * cli/cli-logging.c (pop_output_files): Add void to function
2858 * frame.c (frame_register_unwind): Use unsigned char when dumping
2859 the buffer contents.
2863 * cli/cli-logging.c: New file.
2864 * cli-out.c (struct ui_out_data): Add original_stream.
2865 (cli_redirect): New function.
2866 (cli_ui_out_impl): Add cli_redirect.
2867 (cli_out_new): Initialize original_stream.
2868 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2869 (uo_redirect, ui_out_redirect): New.
2870 * ui-out.h (struct ui_out_impl): Add redirect member.
2871 (redirect_ftype): New.
2872 (ui_out_redirect): Add prototype.
2873 * Makefile.in: Add rules for cli-logging.c.
2874 * NEWS: Mention "set logging".
2878 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2882 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2883 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2884 * avr-tdep.c (avr_call_dummy_address): Delete function.
2885 (avr_gdbarch_init): Do not set call_dummy_address.
2889 * symfile.c (syms_from_objfile): Move variables to inner block.
2890 Move the checks for the non-mainline case a bit earlier to avoid
2891 doing some useless computations.
2895 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2899 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2904 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2905 gdb/testsuite/gdb.c++/pr-1210.exp.
2909 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2910 altivec_expression.h and altivec_registers.h.
2914 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2915 info->mach when MIPS16. Patch suggested by Fred Fish.
2919 * utils.c (internal_vproblem): Print the problem to a reason
2920 buffer and then pass to query. Make the msg variable more local.
2924 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2925 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2926 * gdbarch.h, gdbarch.c: Re-generate.
2927 * frame-base.c (default_frame_args_address): Update. Use
2928 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2930 (default_frame_locals_address): Ditto for
2931 DEPRECATED_FRAME_LOCALS_ADDRESS.
2932 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2933 (vax_frame_num_args): Update.
2934 (vax_gdbarch_init): Update.
2935 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2936 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2937 * mcore-tdep.c (mcore_gdbarch_init): Update.
2938 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2939 * ia64-tdep.c (ia64_gdbarch_init): Update.
2940 * symtab.h (address_class): Update comments.
2941 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2942 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2943 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2944 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2945 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2946 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2947 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2948 * alpha-mdebug-tdep.c: Update.
2949 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2953 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2954 of SSE registers so that varargs functions work. Rework handling
2955 of passing arguments on the stack.
2956 (x86_64_store_return_value): Return double and float values in SSE
2961 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2962 the "constructor breakpoints ignored" bug.
2966 * MAINTAINERS: Update e-mail address.
2970 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2972 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2974 (ppc_linux_init_abi): Register it as the
2975 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2977 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2978 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2981 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2982 (ppc64_standard_linkage_target): Use it.
2986 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2987 for 0 "int0" and 4 "int32" sized registers.
2988 * gdbtypes.c (builtin_type_int0): Define.
2989 (build_gdbtypes): Initialize builtin_type_int0.
2990 * gdbtypes.h (builtin_type_int0): Declare.
2994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2995 as characters are unsigned.
3000 * dwarfread.c (struct_type): Skip static fields without crashing.
3004 GDB 6.0 branch created.
3006 * PROBLEMS: Update. Empty.
3011 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3016 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3017 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3022 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3027 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3028 argument of val_print.
3029 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3030 to the address argument of baseclass_offset or target_read_memory.
3031 Do add it to the argument of cp_print_value_fields.
3035 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3036 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3037 instead of 0..NUM_REGS.
3038 (mips_register_reggroup_p): New function.
3039 (mips_pseudo_register_write): New function.
3040 (mips_pseudo_register_read): New function.
3041 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3042 based on the register's type.
3043 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3045 (mips_get_saved_register): Simplify. Assert that REGNO is a
3047 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3048 (mips_register_type): Replace mips_register_virtual_type. Map
3049 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3051 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3052 that the register is cooked / virtual.
3053 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3054 Only get the extra info when needed.
3055 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3056 (mips32_heuristic_proc_desc): Fetch the cooked register.
3057 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3058 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3059 (mips_print_register): Use gdbarch_register_type, instead of
3060 REGISTER_VIRTUAL_TYPE.
3061 (print_gp_register_row): Use gdbarch_register_type, instead of
3062 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3063 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3064 Print the pseudo / cooked registers.
3065 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3066 Print the pseudo / cooked registers.
3067 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3068 REG_NUM is pseudo / cooked.
3069 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3070 (mips_n32n64_xfer_return_value): Ditto.
3071 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3072 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3073 (mips_register_sim_regno): New function.
3074 (mips_gdbarch_init): Set deprecated_register_byte,
3075 register_group_p, pseudo_register_write, pseudo_register_read,
3076 register_sim_regno, and num_pseudo_regs. Set register_type,
3077 instead of register_virtual_type.
3078 * Makefile.in (mips-tdep.o): Update dependencies.
3079 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3080 REGISTER_VIRTUAL_TYPE.
3081 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3082 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3083 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3084 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3085 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3089 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3090 * cli/cli-cmds.c: Include "gdb_vfork.h".
3091 (shell_escape): Use vfork.
3095 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3096 32 bit floating-point register saves.
3098 * frame.h (deprecated_unwind_get_saved_register): Delete.
3099 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3100 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3101 and deprecated_get_next_frame_hack instead of
3102 deprecated_unwind_get_saved_register.
3104 * mips-tdep.c (mips_dump_tdep): Do not print
3105 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3107 * frame.c (get_frame_register): New function.
3108 (frame_unwind_register_signed): New function.
3109 (get_frame_register_signed): New function.
3110 (frame_unwind_register_unsigned): New function.
3111 (get_frame_register_unsigned): New function.
3112 * frame.h: Add comments on naming schema.
3113 (get_frame_register, frame_unwind_register_signed): Declare.
3114 (get_frame_register_signed, get_frame_register_signed): Declare.
3115 (frame_unwind_register_unsigned): Declare.
3116 (get_frame_register_unsigned): Declare.
3120 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3124 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3125 (avr_read_sp): Ditto.
3129 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3130 * config/arm/nm-linux.h: Likewise.
3131 * config/arm/tm-linux.h: Likewise.
3132 * config/ia64/nm-linux.h: Likewise.
3133 * config/ia64/tm-ia64.h: Likewise.
3134 * config/s390/tm-linux.h: Likewise.
3135 * config/s390/tm-s390.h: Likewise.
3136 * s390-nat.c: Likewise.
3137 * s390-tdep.c: Likewise.
3139 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3140 * config/ia64/linux.mt: Likewise.
3141 * config/m68k/linux.mh: Likewise.
3142 * config/mips/linux.mt: Likewise.
3143 * config/powerpc/linux.mh: Likewise.
3144 * config/sh/linux.mt: Likewise.
3148 * solib.c (solib_open): Change tests for whether to search
3149 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3154 * avr-tdep.c (avr_frame_address): Delete function.
3155 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3156 set_gdbarch_frame_args_address.
3160 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3161 (REGISTER_CONVERT_FROM_TYPE): Delete.
3162 (mips_register_convert_to_type): Delete declaration.
3163 (mips_register_convert_from_type): Delete declaration.
3164 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3169 * linux-nat.h: New file.
3170 * linux-nat.c: Include linux-nat.h.
3171 * lin-lwp.c: Include linux-nat.h.
3172 Move struct lwp_info def to linux-nat.h.
3173 * linux-proc.c: Include linux-nat.h.
3174 (linux_make_note_section): Iterate over lwps instead of threads.
3175 (linux_do_thread_registers): Use lwp instead of merged pid.
3176 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3177 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3178 Add dependency on linux_nat_h.
3182 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3186 * varobj.c (get_type, get_target_type): Use check_typedef.
3190 * breakpoint.c (insert_catchpoint): Call internal_error.
3194 * avr-tdep.c (avr_push_dummy_code): Delete function.
3195 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3199 * arch-utils.c (default_prepare_to_proceed): Remove.
3200 (generic_prepare_to_proceed): Remove.
3201 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3202 (generic_prepare_to_proceed): Remove prototype.
3203 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3204 * gdbarch.c: Regenerate.
3205 * gdbarch.h: Regenerate.
3206 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3207 * hppah-nat.c (hppa_switched_threads): Remove.
3208 * infrun.c (prepare_to_proceed): New static function, copied from
3209 generic_prepare_to_proceed. Remove select_it argument.
3210 (proceed): Call prepare_to_proceed.
3211 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3213 (ptrace_wait): Don't set the removed variables.
3214 (hppa_switched_threads): Remove.
3215 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3216 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3217 (lin_lwp_prepare_to_proceed): Remove prototype.
3218 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3219 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3223 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3225 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3226 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3227 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3228 (AVR_PROLOGUE_*): Enumerate prologue types.
3229 (struct frame_extra_info): Remove.
3230 (struct avr_unwind_cache): Define.
3231 (avr_write_sp): Delete function.
3232 (avr_read_fp): Ditto.
3233 (avr_init_extra_frame_info): Ditto.
3234 (avr_pop_frame): Ditto.
3235 (avr_frame_saved_pc): Ditto.
3236 (avr_saved_pc_after_call): Ditto.
3237 (avr_push_return_address): Ditto.
3238 (avr_frame_chain): Ditto.
3239 (avr_store_struct_return): Ditto.
3240 (avr_push_arguments): Ditto.
3241 (avr_scan_prologue): Update comments. Changed to set up the info for
3242 cache unwinding. Now returns end of prologue PC.
3243 (avr_skip_prologue): Better handling of functions lacking a prologue
3244 by using avr_scan_prologue.
3245 (avr_scan_arg_moves): New function.
3246 (avr_saved_regs_unwinder): Ditto.
3247 (avr_frame_unwind_cache): Ditto.
3248 (avr_unwind_pc): Ditto.
3249 (avr_frame_this_id): Ditto.
3250 (avr_frame_prev_register): Ditto.
3251 (avr_frame_p): Ditto.
3252 (avr_frame_base_address ): Ditto.
3253 (avr_unwind_dummy_id): Ditto.
3254 (avr_push_dummy_code): Ditto.
3255 (push_stack_item): Ditto.
3256 (pop_stack_item): Ditto.
3257 (avr_push_dummy_call): Ditto.
3258 (struct stack_item): Define.
3259 (avr_frame_unwind): Declare structure.
3260 (avr_frame_base): Ditto.
3261 (avr_gdbarch_init): Remove calls to
3262 set_gdbarch_deprecated_init_frame_pc,
3263 set_gdbarch_deprecated_target_read_fp,
3264 set_gdbarch_deprecated_dummy_write_sp,
3265 set_gdbarch_deprecated_fp_regnum,
3266 set_gdbarch_deprecated_push_arguments,
3267 set_gdbarch_deprecated_push_return_address,
3268 set_gdbarch_deprecated_pop_frame,
3269 set_gdbarch_deprecated_store_struct_return,
3270 set_gdbarch_deprecated_frame_init_saved_regs,
3271 set_gdbarch_deprecated_init_extra_frame_info,
3272 set_gdbarch_deprecated_frame_chain,
3273 set_gdbarch_deprecated_frame_saved_pc,
3274 set_gdbarch_deprecated_saved_pc_after_call.
3275 Add calls to set_gdbarch_push_dummy_call,
3276 set_gdbarch_push_dummy_code,
3277 frame_unwind_append_predicate,
3278 frame_base_set_default,
3279 set_gdbarch_unwind_dummy_id,
3280 set_gdbarch_unwind_pc.
3285 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3286 registers for H8/300S.
3287 (h8300_print_registers_info): Ditto.
3288 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3292 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3293 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3294 (lin_lwp_wait): Likewise. Update comments.
3295 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3296 (pull_pid_from_list, linux_record_stopped_pid): New.
3300 * ada-lang.c (scan_discrim_bound): Name first argument.
3301 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3302 declared by ALL_BLOCK_SYMBOLS.
3306 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3307 ("regcache.h"): Include it.
3308 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3312 * NEWS: Mention gdbserver detach change and "disconnect" command.
3313 * infcmd.c (disconnect_command): New function.
3314 (_initialize_infcmd): Add ``disconnect'' command.
3315 * remote.c (remote_async_detach): Delete.
3316 (remote_detach): Merge remote_async_detach.
3317 (remote_disconnect): New.
3318 (init_remote_ops): Set to_disconnect.
3319 (init_remote_cisco_ops): Likewise.
3320 (init_remote_async_ops): Likewise. Use remote_detach.
3321 * target.c (cleanup_target): Default to_disconnect.
3322 (update_current_target): Inherit to_disconnect.
3323 (target_disconnect, debug_to_disconnect): New functions.
3324 (setup_target_debug): Set to_disconnect.
3325 * target.h (struct target_ops): Add to_disconnect.
3326 (target_disconnect): Add prototype.
3330 * breakpoint.c (insert_catchpoint): New function.
3331 (insert_breakpoints): Use catch_exceptions to call
3332 insert_catchpoint. Disable catchpoints if they fail to insert.
3336 * symfile.c (reread_symbols): Clear sym_private.
3340 * trad-frame.h (struct frame_info): Add opaque declaration.
3341 * remote-fileio.h (struct cmd_list_element): Add opaque
3343 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3348 * remote.c (remote_prepare_to_store): Replace call to
3349 deprecated_read_register_bytes with multiple regcache_raw_read
3354 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3355 (nto_find_and_open_solib): Likewise.
3356 (nto_init_solib_absolute_prefix): Likewise.
3357 (_initialize_nto_tdep): Fix indentation.
3361 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3365 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3369 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3373 * avr-tdep.c (avr_extract_return_value): New function.
3374 (avr_gdbarch_init): Set extract_return_value method.
3378 * frame.h (deprecated_get_next_frame_hack): Declare.
3379 * frame.c (legacy_saved_regs_prev_register): Only require
3380 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3381 there are always saved regs.
3382 (deprecated_generic_get_saved_register): Do not require
3383 DEPRECATED_FRAME_INIT_SAVED_REGS.
3384 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3385 use frame ID unwind instead.
3386 (deprecated_get_next_frame_hack): New function.
3390 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3391 (h8300_push_dummy_call): ...this function. Some minor optimization.
3392 (h8300_push_return_address): Remove.
3393 (h8300_gdbarch_init): Remove calls to
3394 set_gdbarch_deprecated_dummy_write_sp,
3395 set_gdbarch_deprecated_push_arguments and
3396 set_gdbarch_deprecated_push_return_address.
3397 Add call to set_gdbarch_push_dummy_call.
3401 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3402 (E_PSEUDO_EXR_REGNUM): Ditto.
3403 (h8300_is_argument_spill): Check for instructions moving argument
3404 registers into safe registers.
3405 (h8300_skip_prologue): Check for stm instruction to push registers
3406 used for register variables onto stack.
3407 (gdb_print_insn_h8300): Remove.
3408 (h8300_examine_prologue): Add a comment.
3409 (h8300_register_name): Take pseudo registers into account.
3410 (h8300s_register_name): Ditto.
3411 (h8300sx_register_name): Ditto.
3412 (h8300_print_register): Ditto.
3413 (h8300_print_registers_info): Define "nice" printing order.
3414 (h8300_saved_pc_after_call): Take pseudo registers into account.
3415 (h8300_register_type): Ditto. Return type used for remote connection
3416 when requesting real CCR or EXR register, return actual type when
3417 requesting pseudo CCR or EXR.
3418 (h8300_pseudo_register_read): New function.
3419 (h8300_pseudo_register_write): Ditto.
3420 (h8300_dbg_reg_to_regnum): Ditto.
3421 (h8300s_dbg_reg_to_regnum): Ditto.
3422 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3423 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3424 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3425 set_gdbarch_print_insn architecture dependent.
3426 Call set_gdbarch_pseudo_register_read and
3427 set_gdbarch_pseudo_register_write.
3428 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3432 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3433 * gdbarch.h, gdbarch.c: Re-generate.
3434 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3435 * s390-tdep.c (s390_gdbarch_init): Update.
3436 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3437 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3438 * mips-tdep.c (mips_gdbarch_init): Update.
3439 * mcore-tdep.c (mcore_gdbarch_init): Update.
3440 * cris-tdep.c (cris_gdbarch_init): Update.
3441 * infcall.c (call_function_by_hand): Update.
3442 * ia64-tdep.c (ia64_push_arguments): Update comment.
3443 * frame.c (legacy_get_prev_frame): Do not assume
3444 SAVE_DUMMY_FRAME_TOS_P.
3445 * dummy-frame.c (find_dummy_frame): Update comment.
3449 * regcache.c (do_cooked_read): Do not use register_valid_p.
3453 * avr-tdep.c (avr_register_type): Remove a blank line.
3454 (avr_scan_prologue): Correct some comments.
3458 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3460 Properly scan prologues generated by gcc with the -mcall-prologues
3462 Add code to scan -mcall-prologues for mega devices.
3466 * avr-tdep.c (avr_register_byte): Delete function.
3467 (avr_register_raw_size): Delete function.
3468 (avr_register_virtual_size): Delete function.
3469 (avr_register_virtual_type): Delete function.
3470 (avr_register_type): New function.
3471 (avr_address_to_pointer): Remove unused code.
3472 (avr_read_fp): Need to read FP as two separate bytes due to change to
3473 avr_register_type() usage.
3474 (avr_gdbarch_init): Don't set deprecated_register_size.
3475 Don't set deprecated_register_bytes.
3476 Don't set deprecated_register_byte.
3477 Don't set deprecated_register_raw_size.
3478 Don't set deprecated_max_register_raw_size.
3479 Don't set deprecated_register_virtual_size.
3480 Don't set deprecated_max_register_virtual_size.
3481 Don't set deprecated_register_virtual_type.
3482 Set register_type method.
3486 * Makefile.in (linux-nat.o): Add rule.
3487 * linux-nat.c: New file.
3488 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3489 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3490 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3491 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3492 * config/arm/linux.mh (NATDEPFILES): Likewise.
3493 * config/i386/linux.mh (NATDEPFILES): Likewise.
3494 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3495 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3496 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3497 * config/mips/linux.mh (NATDEPFILES): Likewise.
3498 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3499 * config/s390/s390.mh (NATDEPFILES): Likewise.
3500 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3504 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3505 replace out-of-date comment.
3509 * rdi-share/host.h (Fail): Change to a varargs function.
3510 * remote-rdi.c (Fail): Update.
3514 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3515 (i386_convert_register_p, i386_register_to_value,
3516 i386_register_from_value): Handle types longer than 8 bytes.
3520 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3521 Move floating-point code to new function in i387-tdep.c.
3522 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3523 New functions containing code moved here from i386-tdep.c.
3524 * i387-tdep.h: Add opaque declaration for `struct type'.
3525 (i387_register_to_value, i387_value_to_register): New prototypes.
3526 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3527 (x86_64_init_abi): Set convert_register_p, register_to_value and
3528 value_to_register here.
3532 * mips-tdep.c (mips_register_to_value): Make static.
3533 (mips_value_to_register): Make static.
3534 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3535 * ia64-tdep.c (ia64_register_raw_size): Make static.
3536 (ia64_register_virtual_size): Make static.
3537 (ia64_register_byte): Make static.
3538 * i387-tdep.c: Include "i387-tdep.h".
3539 (print_387_control_word): Delete function.
3540 (print_387_status_word): Delete function.
3541 (print_387_status_bits): Delete function.
3542 (print_387_control_bits): Delete function.
3543 * Makefile.in (i387-tdep.o): Update dependencies.
3544 * rdi-share/host.h (Fail): Declare.
3545 * remote-rdi.c (Fail): Update to match declaration.
3549 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3550 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3551 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3552 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3553 * README: Delete reference to remote-array.
3554 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3555 (remote-array.o): Delete target.
3556 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3557 * remote-array.c: Delete file.
3562 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3563 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3564 parameter with "frame".
3565 * gdbarch.h, gdbarch.c: Re-generate.
3566 * frame.h (put_frame_register): Declare.
3567 * frame.c (put_frame_register): New function.
3568 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3569 (legacy_register_to_value): Rewrite, use "frame" to get the
3571 (legacy_value_to_register): Rewrite, use "frame" to find the
3572 register's location before storing.
3573 * arch-utils.h (legacy_convert_register_p): Update.
3574 (legacy_register_to_value, legacy_value_to_register): Update.
3575 * findvar.c (value_from_register): Rewrite, eliminate use of
3576 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3577 "frame" to REGISTER_TO_VALUE.
3578 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3579 lval_reg_frame_relative + lval_register branch of the switch. Do
3580 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3581 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3582 I386_EDI_REGNUM): New defines.
3583 (i386_next_regnum, i386_convert_register_p,
3584 i386_register_to_value, i386_value_to_register): New functions.
3585 (i386_register_convertible, i386_register_convert_to_virtual,
3586 i386_convert_to_raw): Remove functions.
3587 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3588 value_to_register instead of register_convertible,
3589 register_convert_to_virtual and register_convert_to_raw.
3590 * mips-tdep.c (mips_convert_register_p): New function.
3591 (mips_value_to_register): Replace mips_register_convert_from_type.
3592 (mips_register_to_value): Replace mips_register_convert_to_type.
3593 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3595 * alpha-tdep.c (alpha_convert_register_p): Update.
3596 (alpha_value_to_register): Update, store the register.
3597 (alpha_register_to_value): Update, fetch the register.
3601 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3602 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3603 Don't set deprecated_call_dummy_words.
3604 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3605 Don't set remote_translate_xfer_address.
3606 (avr_io_reg_read_command): Remove commented out debug printf.
3611 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3612 causes gdb to seg fault.
3616 * sparc-nat.c (fetch_inferior_registers): Correct
3617 a reference to "registers".
3621 * Makefile.in (exc_request_U_h): Define
3622 (exc_request_S_h): Likewise.
3623 (msg_reply_S_h): Likewise.
3624 (msg_U_h): Likewise.
3625 (notify_S_h): Likewise.
3626 (process_reply_S_h): Likewise.
3627 (gnu-nat.o): Depend on gdb_obstack_h
3628 * gnu-nat.c: Include "gdb_obstack.h".
3632 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3633 * gdbarch.h, gdbarch.c: Re-generate.
3637 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3638 when deprecated REGISTER macros can be deleted.
3639 * gdbarch.h, gdbarch.c: Re-generate.
3643 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3644 Linux entry point symbols for _dl_debug_state, too.
3648 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3649 available, do not use the FP register, and always save the TOS.
3650 * dummy-frame.c (dummy_frame_this_id): Do not assert
3651 SAVE_DUMMY_FRAME_TOS.
3652 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3653 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3654 (i386_push_dummy_call): Add 8 to the returned SP.
3655 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3656 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3657 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3658 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3659 (x86_64_push_dummy_call): Return "sp + 16".
3660 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3661 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3662 save_dummy_frame_tos.
3666 * frv-tdep.c (frv_use_struct_convention): Delete static
3667 declaration for function deleted in my change of 2003-06-12.
3671 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3672 (avr_pointer_to_address): Shift code addrs left 1 bit.
3673 (avr_convert_from_func_ptr_addr): Delete function since operation is
3674 better handled by avr_address_to_pointer and avr_pointer_to_address.
3675 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3680 * configure.host: Accept i[34567]86 variants.
3681 * configure.tgt: Likewise.
3682 * nlm/configure.in: Likewise.
3683 * nlm/configure: Regenerated.
3687 * arm-tdep.c (solib-svr4.h): Dont' include it.
3688 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3689 * arm-linux-tdep.c: ... here. Make static.
3690 (arm_linux_init_abi): Register it.
3691 (solib-svr4.h): Include it.
3692 * Makefile.in: Update dependencies.
3693 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3694 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3698 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3699 indicate registers used for return values.
3700 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3701 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3703 (h8300_init_extra_frame_info): Ditto.
3704 (h8300_frame_locals_address): Removed.
3705 (h8300_frame_args_address): Removed.
3706 (h8300_extract_return_value): Use new regcache structure. Only care
3708 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3709 (h8300_store_return_value): Use new regcache structure. Only care
3711 (h8300h_store_return_value): Same function for 32 bit CPUs.
3712 (h8300_store_struct_return): Removed.
3713 (h8300_extract_struct_value_address): Use new regcache structure.
3714 (h8300h_extract_struct_value_address): Removed.
3715 (h8300_push_dummy_code): New function.
3716 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3717 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3718 set_gdbarch_store_return_value architecture dependent.
3719 Call set_gdbarch_push_dummy_code and
3720 set_gdbarch_extract_struct_value_address.
3721 Remove calls to set_gdbarch_frame_args_address,
3722 set_gdbarch_frame_locals_address,
3723 set_gdbarch_deprecated_store_struct_return,
3724 set_gdbarch_deprecated_extract_return_value,
3725 set_gdbarch_deprecated_extract_struct_value_address,
3726 set_gdbarch_deprecated_call_dummy_words and
3727 set_gdbarch_deprecated_sizeof_call_dummy_words.
3731 * h8300-tdep.c (h8300_register_byte): Remove.
3732 (h8300h_register_byte): Remove.
3733 (h8300_register_virtual_type): Remove. Substitute by...
3734 (h8300_register_type): New function.
3735 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3736 (h8300h_extract_struct_value_address): Ditto.
3737 (h8300_gdbarch_init): Drop calls to
3738 set_gdbarch_deprecated_register_byte and
3739 set_gdbarch_deprecated_register_virtual_type.
3740 Add call to set_gdbarch_register_type.
3744 * gdbarch.sh: Update comments on registers.
3745 (deprecated_register_byte): Rename register_byte.
3746 (deprecated_register_raw_size): Rename register_raw_size.
3747 (deprecated_register_virtual_size): Rename register_virtual_size.
3748 (deprecated_register_virtual_type): Rename register_virtual_type.
3749 * gdbarch.h, gdbarch.c: Re-generate.
3750 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3751 * vax-tdep.c (vax_gdbarch_init): Update.
3752 * v850-tdep.c (v850_gdbarch_init): Update.
3753 * sparc-tdep.c (sparc_gdbarch_init): Update.
3754 * sh-tdep.c (sh_gdbarch_init): Update.
3755 * s390-tdep.c (s390_gdbarch_init): Update.
3756 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3757 * ns32k-tdep.c: Update.
3758 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3759 * mips-tdep.c (mips_gdbarch_init): Update.
3760 * mcore-tdep.c (mcore_gdbarch_init): Update.
3761 * m68k-tdep.c (m68k_gdbarch_init): Update.
3762 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3763 * ia64-tdep.c (ia64_gdbarch_init): Update.
3764 * hppa-tdep.c (hppa_gdbarch_init): Update.
3765 * h8300-tdep.c (h8300_gdbarch_init): Update.
3766 * frv-tdep.c (frv_gdbarch_init): Update.
3767 * cris-tdep.c (cris_gdbarch_init): Update.
3768 * avr-tdep.c (avr_gdbarch_init): Update.
3769 * alpha-tdep.c (alpha_gdbarch_init): Update.
3770 * arm-tdep.c (arm_gdbarch_init): Update.
3774 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3775 mips_o32_use_struct_convention with always_use_struct_convention.
3779 * cp-namespace.c (cp_set_block_scope): Comment out
3780 processing_has_namespace_info branch.
3784 Recognize and skip 64-bit PowerPC Linux linkage functions.
3785 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3786 insn_pattern, insns_match_pattern, d_field, ds_field): New
3787 functions, macros, and types for working with PPC instructions.
3788 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3789 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3790 ppc64_skip_trampoline_code): New functions, variables, and macros
3791 for recognizing and skipping linkage functions.
3792 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3793 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3795 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3796 register offsets for both the 32- and 64-bit interfaces.
3798 Actually finish the job started by my change of 2003-05-29.
3799 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3800 other #definition of this.
3801 (ppc_linux_skip_trampoline_code): Remove declaration.
3802 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3804 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3807 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3808 'long' on ppc64-*-linux*.
3810 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3811 isn't #defined, assume the register doesn't exist: act as if
3812 tdep->ppc_mq_regnum were -1.
3814 * configure.host, configure.tgt: Add entries for
3815 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3817 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3820 * arch-utils.c (always_use_struct_convention): New function.
3821 * arch-utils.h (always_use_struct_convention): New prototype.
3822 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3823 (alpha_gdbarch_init): Register always_use_struct_convention,
3824 instead of alpha_use_struct_convention.
3825 * cris-tdep.c (cris_use_struct_convention): Delete.
3826 (cris_gdbarch_init): Register always_use_struct_convention,
3827 instead of cris_use_struct_convention.
3828 * frv-tdep.c (frv_use_struct_convention): Delete.
3829 (frv_gdbarch_init): Register always_use_struct_convention,
3830 instead of frv_use_struct_convention.
3831 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3832 (h8300_gdbarch_init): Register always_use_struct_convention,
3833 instead of h8300_use_struct_convention.
3834 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3835 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3836 instead of mips_o32_use_struct_convention.
3840 * wince.c: Include "mips-tdep.h".
3841 * mips-tdep.h (mips_next_pc): Declare.
3842 * mcore-tdep.c: Make more local functions static.
3843 * Makefile.in (wince.o): Update dependencies.
3847 * symtab.c (lookup_symbol_aux_minsyms): Replace
3848 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3849 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3850 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3851 SYMBOL_NATURAL_NAME.
3855 * Makefile.in (tuiDisassem.o): Update dependencies.
3859 * symtab.h: Delete declaration of make_symbol_overload_list.
3860 Add declaration of lookup_partial_symbol.
3861 * symtab.c (remove_params): Move to cp-support.c.
3862 (overload_list_add_symbol, make_symbol_overload_list)
3863 (sym_return_val_size, sym_return_val_index): Ditto.
3864 (lookup_partial_symbol): Make extern.
3865 * cp-support.h: Add declaration of make_symbol_overload_list.
3866 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3867 symtab.h, and block.h.
3868 (remove_params): Move here from symtab.c.
3869 (overload_list_add_symbol, make_symbol_overload_list)
3870 (sym_return_val_size, sym_return_val_index): Ditto.
3871 * valops.c: Include cp-support.h.
3872 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3873 frame_h, and block_h.
3874 (valops.o): Depend on cp_support_h.
3878 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3879 substitute by NUM_REGS throughout.
3880 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3881 (h8300s_register_name): New function for H8S registers.
3882 (h8300sx_register_name): Ditto for H8SX registers.
3883 (h8300_print_register): Revise register printing, avoid depending
3885 (h8300_register_byte): Only care for H8/300 registers.
3886 (h8300h_register_byte): New function for any other architecture.
3887 (h8300_register_raw_size): Remove.
3888 (h8300_register_virtual_type): Revise to return actually useful
3890 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3891 (h8300h_extract_struct_value_address): New function for any other
3893 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3894 set_gdbarch_register_name, set_gdbarch_register_byte,
3895 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3896 Remove calls to set_gdbarch_deprecated_register_size,
3897 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3898 set_gdbarch_deprecated_max_register_raw_size,
3899 set_gdbarch_register_virtual_size and
3900 set_gdbarch_deprecated_max_register_virtual_size entirely.
3901 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3902 set_gdbarch_long_double_bit.
3906 * doublest.c (convert_doublest_to_floatformat): When dealing
3907 with the implied integer bit, only alter mant_bits if we are
3908 processing a full 32 bits of mantissa.
3912 * dictionary.h: New.
3913 * dictionary.c: New.
3914 * block.h: Add opaque declaration for struct dictionary.
3915 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3917 (BLOCK_DICT): New macro.
3918 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3919 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3921 (ALL_BLOCK_SYMBOLS): Update definition.
3922 * Makefile.in (SFILES): Add dictionary.c.
3923 (dictionary_h): New.
3924 (COMMON_OBS): Add dictionary.o.
3925 (dictionary.o): New.
3926 (ada-lang.o): Depend on dictionary_h.
3927 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3928 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3929 (mi-cmd-stack.o): Ditto.
3930 (gdbtk-cmds.o): Update dependencies.
3931 (gdbtk-stack.o): Ditto.
3932 * ada-lang.c: Include dictionary.h.
3933 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3934 (fill_in_ada_prototype, debug_print_block): Ditto.
3935 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3936 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3938 * mdebugread.c: Include dictionary.h.
3939 (struct parse_stack): Delete 'maxsyms' member.
3940 (parse_symbol): Update calls to new_block. Delete calls to
3941 shrink_block. Use dictionary methods.
3942 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3943 Update calls to new_symtab. Don't maintain maxsyms data.
3944 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3945 (add_symbol): Just call dict_add_symbol.
3946 (new_symtab): Delete 'maxsyms' argument.
3947 (new_symtab): Update calls to new_block.
3948 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3949 (shrink_block): Delete function.
3950 (fixup_sigtramp): Update call to new_block. Add symbol via
3952 * jv-lang.c: Include dictionary.h.
3953 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3954 appropriately. Set class_symtab->free_func. Make sure the
3955 blockvector is big enough to hold two blocks.
3956 (add_class_symtab_symbol): Use dictionary methods.
3957 (free_class_block): New function.
3958 (type_from_class): Replace explicit iteration by
3960 * symtab.h (struct symtab): Replace 'free_ptr' method by
3962 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3964 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3966 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3967 Include dictionary.h.
3968 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3969 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3971 * objfiles.c: Include dictionary.h.
3972 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3973 * buildsym.c: Include dictionary.h.
3974 (finish_block): Use dictionary methods.
3975 (end_symtab): Set free_func to NULL, not free_ptr.
3976 * tracepoint.c: Include dictionary.h.
3977 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3978 (scope_info): Ditto.
3979 * stack.c: Include dictionary.h.
3980 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3981 (print_block_frame_labels, print_frame_arg_vars)
3982 (print_frame_args): Ditto.
3983 * symmisc.c (free_symtab_block): Use dictionary methods.
3984 (dump_symtab): Ditto.
3985 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3986 Include dictionary.h.
3987 * symfile.h: Delete declarations of sort_block_syms,
3989 * symfile.c (sort_block_syms): Delete.
3990 (sort_symtab_syms): Delete.
3991 * symtab.c: Include dictionary.h.
3992 (lookup_block_symbol): Use dictionary iterators.
3993 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3994 (search_symbols, make_symbol_completion_list): Ditto.
3995 (make_symbol_overload_list): Ditto.
3996 * valops.c (value_of_local): Use dict_empty.
3997 Include dictionary.h.
4001 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4005 * block.h (BLOCK_SHOULD_SORT): Delete.
4006 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4008 * ada-lang.c (ada_add_block_symbols): Ditto.
4009 * symfile.c (sort_block_syms): Delete.
4010 (sort_symtab_syms): Ditto.
4011 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4013 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4014 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4015 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4016 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4017 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4018 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4019 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4023 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4028 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4029 REGISTER_CONVERTIBLE.
4030 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4031 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4032 * gdbarch.h, gdbarch.c: Re-generate.
4033 * arch-utils.h (deprecated_register_convertible_not): Rename
4034 generic_register_convertible_not.
4035 * arch-utils.c (deprecated_register_convertible_not): Rename
4036 generic_register_convertible.
4037 (legacy_convert_register_p, legacy_register_to_value): Update.
4038 * sh-tdep.c (sh64_push_arguments): Update.
4039 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4040 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4041 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4042 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4043 * arch-utils.c (legacy_value_to_register): Update.
4044 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4045 (rs6000_register_convert_to_raw): Make parameter "from" const.
4046 * mips-tdep.c (mips_gdbarch_init): Update.
4047 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4048 * infcmd.c (default_print_registers_info): Update.
4049 * ia64-tdep.c (ia64_gdbarch_init): Update.
4050 (ia64_register_convert_to_raw): Make parameter "from" const.
4051 * i386-tdep.c (i386_gdbarch_init): Update.
4052 (i386_register_convert_to_raw): Update.
4056 * remote-fileio.c: Include "remote-fileio.h".
4057 * Makefile.in (remote-fileio.o): Update dependencies.
4058 (remote_fileio_h): Fix typo.
4062 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4063 (xstormy16_save_dummy_frame_tos): Make static.
4064 (_initialize_xstormy16_tdep): Add declaration.
4065 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4066 * v850-tdep.c: Make local functions static.
4067 (_initialize_v850_tdep): Add declaration.
4068 * sparc-tdep.c: Make local functions static.
4069 (_initialize_sparc_tdep): Add declaration.
4070 * sh-tdep.c: Make local functions static.
4071 (_initialize_sh_tdep): Add declaration.
4072 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4073 * s390-tdep.c: Make local functions static.
4074 (_initialize_s390_tdep): Add declaration.
4075 * dbxread.c (find_stab_function_addr): Make static.
4076 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4077 * ocd.c (_initialize_remote_ocd): Add declaration.
4078 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4079 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4080 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4081 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4082 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4083 * remote-array.c (_initialize_array): Add declaration.
4084 (_initialize_remote_monitors): Add declaration.
4085 * remote-mips.c: Make local functions static.
4086 (_initialize_remote_mips): Add declaration.
4087 * mcore-tdep.c: Make all local functions static.
4088 (_initialize_mcore_tdep): Add declaration.
4089 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4090 * abug-rom.c (_initialize_abug_rom): Add declaration.
4091 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4092 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4093 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4094 * remote-est.c (_initialize_est): Add declaration.
4095 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4096 (m68hc11_call_dummy_address): Make static.
4097 * ia64-tdep.c: Make local functions static.
4098 (_initialize_ia64_tdep): Add declaration.
4099 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4100 * monitor.c (monitor_wait_filter): Make static.
4101 (_initialize_remote_monitors): Add declaration.
4102 * remote-hms.c (_initialize_remote_hms): Add declaration.
4103 * remote-e7000.c (fetch_regs_from_dump): Make static.
4104 (expect_n): Make static.
4105 (_initialize_remote_e7000): Add declaration.
4106 * ser-e7kpc.c: Always include "defs.h".
4107 (_initialize_ser_e7000pc): Add declaration.
4108 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4109 * cris-tdep.c: Make all but one function static.
4110 (_initialize_cris_tdep): Add declaration.
4111 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4112 * solib.c (update_solib_list): Make static.
4113 (_initialize_solib): Add declaration.
4114 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4115 (_initialize_avr_tdep): Add declaration.
4116 * remote-rdi.c (voiddummy): Make static.
4117 (_initialize_remote_rdi): Add declaration.
4118 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4119 * remote-rdp.c (send_rdp): Make static.
4120 (_initialize_remote_rdp): Add declaration.
4121 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4125 * remote-fileio.c: Make ari happy.
4129 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4130 fetching the trailing bytes of the buffer we are about to write.
4134 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4135 * Makefile.in (remote-fileio.o): Update dependencies.
4136 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4137 include <setjmp.h>, or <sys/types.h> conditional on USG.
4138 (remote_fio_jmp_buf): Delete global variable.
4143 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4144 (SFILES): Add remote-fileio.c.
4145 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4146 dependencies for building remote.o.
4147 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4148 * remote-fileio.h: New header file defining remote File-I/O interface.
4149 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4150 static storage class.
4151 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4153 (_initialize_remote): Call initialize_remote_fileio().
4154 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4155 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4156 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4157 (captured_main): Initialize new ui_files.
4158 * ui-file.c: Add read and fgets input functions.
4159 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4160 (null_file_read): New function.
4161 (ui_file_read): New function.
4162 (set_ui_file_read): New function.
4163 (stdio_file_read): New function.
4164 * ui-file.h: New type ui_file_read_ftype.
4165 (set_ui_file_read): Declare.
4166 (ui_file_read): Declare.
4170 * frame.h (deprecated_unwind_get_saved_register): Rename
4171 generic_unwind_get_saved_register, update comments.
4172 * mips-tdep.c (mips_get_saved_register): Update.
4173 * frame.c (deprecated_unwind_get_saved_register): Update.
4177 * vax-tdep.c (vax_frame_locals_address): Delete function.
4178 (vax_gdbarch_init): Do not set frame_locals_address.
4179 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4180 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4181 * s390-tdep.c (s390_frame_args_address): Delete function.
4182 (s390_gdbarch_init): Do not set frame_args_address or
4183 frame_locals_address.
4184 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4185 (ns32k_gdbarch_init): Do not set frame_locals_address.
4186 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4187 (hppa_frame_locals_address): Delete function.
4188 (hppa_gdbarch_init): Do not set frame_args_address, or
4189 frame_locals_address.
4190 * arm-tdep.c (arm_frame_args_address): Delete.
4191 (arm_frame_locals_address): Delete.
4192 (arm_gdbarch_init): Do not set frame_args_address, or
4193 frame_locals_address.
4197 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4198 * gdbarch.h, gdbarch.c: Re-generate.
4199 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4200 * arch-utils.c (frame_num_args_unknown): Delete function.
4201 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4202 (frame_info): Use FRAME_NUM_ARGS_P.
4203 * arm-tdep.c (arm_frame_num_args): Delete function.
4204 (arm_gdbarch_init): Do not set frame_num_args.
4205 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4206 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4207 (hppa_gdbarch_init): Do not set frame_num_args.
4208 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4209 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4210 frame_num_args to default frame_num_args_unknown.
4211 * v850-tdep.c (v850_gdbarch_init): Ditto.
4212 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4213 * sh-tdep.c (sh_gdbarch_init): Ditto.
4214 * s390-tdep.c (s390_gdbarch_init): Ditto.
4215 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4216 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4217 * mips-tdep.c (mips_gdbarch_init): Ditto.
4218 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4219 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4221 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4222 * i386-tdep.c (i386_gdbarch_init): Ditto.
4223 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4224 * frv-tdep.c (frv_gdbarch_init): Ditto.
4225 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4226 * cris-tdep.c (cris_gdbarch_init): Ditto.
4227 * avr-tdep.c (avr_gdbarch_init): Ditto.
4228 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4232 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4233 (print_frame_args): Moved to "stack.c".
4234 * stack.c: Include "gdb_assert.h".
4235 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4236 (print_frame_args): Moved from "printcmd.c".
4237 * frame.h (print_frame_args): Delete declaration.
4238 * Makefile.in (stack.o): Update dependencies.
4242 * frame.c (get_prev_frame): Remove reference to
4243 frame_args_address_correct in comments.
4244 * frame-base.c (default_frame_args_address): Delete code
4245 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4246 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4247 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4248 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4249 (vax_frame_args_address_correct): Delete declaration.
4253 * gdbarch.sh (UNWIND_SP): Add.
4254 * gdbarch.h, gdbarch.c: Re-generate.
4255 * frame.c (frame_sp_unwind): New function.
4256 (get_frame_sp): New function.
4257 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4258 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4259 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4261 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4262 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4266 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4269 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4270 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4271 * config/m68k/tm-sun3.h: Update.
4272 * config/m68k/tm-m68klynx.h: Update.
4273 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4275 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4276 trad_frame". Update comments.
4277 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4278 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4279 (trad_frame_register_value, trad_frame_prev_register): Update.
4283 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4284 from GCC's acinclude.m4.
4285 * configure.in: Check for getopt's delcaration.
4286 * aclocal.m4, config.in, configure: Re-generate.
4287 * main.c (error_init): Delete declaration.
4288 * defs.h (error_init): Declare.
4289 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4290 (rs6000_convert_from_func_ptr_addr): Make static.
4291 (_initialize_rs6000_tdep): Add declaration.
4292 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4293 (show_commands, set_verbose, show_history): Delete declaration.
4294 * top.h (set_verbose): Add declaration.
4295 (show_history, set_history, show_commands): Add declaration.
4296 (do_restore_instream_cleanup): Add declaration.
4297 * objc-lang.c (specialcmp): Make static.
4298 (print_object_command): Make static.
4299 (find_objc_msgsend): Make static.
4300 (find_objc_msgcall_submethod_helper): Make static.
4301 (find_objc_msgcall_submethod): Make static.
4302 (_initialize_objc_language): Add declaration.
4303 (find_implementation_from_class): Make static.
4304 (find_implementation): Make static.
4305 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4306 * objc-lang.h (lookup_struct_typedef): Add declaration.
4307 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4308 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4309 (do_restore_user_call_depth): Make static.
4310 (do_restore_instream_cleanup): Delete declaration.
4311 (dont_repeat): Delete declaration.
4312 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4313 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4314 * reggroups.c (_initialize_reggroup): Add declaration.
4315 * cp-support.c (_initialize_cp_support): Add declaration.
4316 * cp-abi.c (_initialize_cp_abi): Add declaration.
4317 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4318 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4319 (_initialize_gnu_v3_abi): Add declaration.
4320 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4321 (_initialize_gnu_v2_abi): Add declaration.
4322 * frame-base.c (_initialize_frame_base): Add declaration.
4323 * doublest.c (floatformat_from_length): Make static.
4324 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4325 * frame.c (create_sentinel_frame): Make static.
4326 (_initialize_frame): Add declaration.
4327 * top.c (do_catch_errors): Make static.
4328 (gdb_rl_operate_and_get_next_completion): Make static.
4329 * typeprint.c: Include "typeprint.h".
4330 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4331 (sentinel_frame_this_id): Make static.
4332 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4333 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4334 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4335 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4336 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4337 * maint.c (maintenance_print_architecture): Make static.
4338 * signals/signals.c (_initialize_signals): Add declaration.
4339 * std-regs.c (_initialize_frame_reg): Add declaration.
4340 * jv-exp.y (push_variable): ISO C definition.
4341 (push_qualified_expression_name): Ditto.
4342 * memattr.c (_initialize_mem): Add declaration.
4343 * remote.c (remote_check_watch_resources): Make static.
4344 (remote_stopped_by_watchpoint): Make static.
4345 (remote_stopped_data_address): Make static.
4346 * d10v-tdep.c (nr_dmap_regs): Make static.
4347 (a0_regnum): Make static.
4348 (d10v_frame_unwind_cache): Make static.
4349 (d10v_frame_p): Make static.
4350 * osabi.c (show_osabi): Make static.
4351 (_initialize_gdb_osabi): Add extern declaration.
4352 * gdbtypes.c (make_qualified_type): Make static.
4353 (safe_parse_type): Make static.
4354 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4355 * macrotab.c (macro_bcache_free): Make static.
4356 * interps.c (interp_set_quiet): Make static.
4357 (interpreter_exec_cmd): Make static.
4358 * stack.h (select_frame_command): New file.
4359 * stack.c: Include "stack.h".
4360 (select_frame_command_wrapper): Delete function.
4361 (select_frame_command): Make global.
4362 * infcall.c: Include "infcall.h".
4363 * linespec.c: Include "linespec.h".
4364 * symfile.c (sections_overlap): Make static.
4365 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4366 * charset.c (_initialize_charset): Add missing prototype.
4367 * regcache.c (init_legacy_regcache_descr): Make static.
4368 (do_regcache_xfree): Make static.
4369 (regcache_xfer_part): Make static.
4370 (_initialize_regcache): Add missing prototype.
4371 * breakpoint.c (parse_breakpoint_sals): Make static.
4372 (breakpoint_sals_to_pc): Make static.
4373 * interps.h (clear_interpreter_hooks): ISO C declaration.
4374 * Makefile.in (stack_h): Define.
4375 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4376 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4380 * Makefile.in (d10v-tdep.o): Update dependencies.
4381 (SFILES): Add trad-frame.c.
4382 (trad_frame_h): Define.
4383 (COMMON_OBS): Add trad-frame.o.
4384 (trad-frame.o): Specify dependencies.
4385 * d10v-tdep.c: Include "trad-frame.h".
4386 (saved_regs_unwinder): Delete function.
4387 (d10v_frame_prev_register): Use trad_frame_prev_register.
4388 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4389 trad_frame", delete "regs" and "prev_sp".
4390 (prologue_find_regs): Use trad-frame.
4391 * trad-frame.h, trad-frame.c: New files.
4395 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4399 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4400 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4401 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4402 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4403 resolve_msgsend_super, resolve_msgsend_super_stret):
4408 * symfile.h: Re-indent, clean up comments.
4412 * inferior.h (deprecated_write_sp): Replace
4413 generic_target_write_sp.
4414 * regcache.c (deprecated_write_sp): Replace
4415 generic_target_write_sp.
4416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4417 * vax-tdep.c (vax_gdbarch_init): Update.
4418 * v850-tdep.c (v850_gdbarch_init): Update.
4419 * sparc-tdep.c (sparc_gdbarch_init): Update.
4420 * sh-tdep.c (sh_gdbarch_init): Update.
4421 * s390-tdep.c (s390_gdbarch_init): Update.
4422 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4423 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4424 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4425 * mcore-tdep.c (mcore_gdbarch_init): Update.
4426 * m68k-tdep.c (m68k_gdbarch_init): Update.
4427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4428 * ia64-tdep.c (ia64_gdbarch_init): Update.
4429 * h8300-tdep.c (h8300_gdbarch_init): Update.
4430 * frv-tdep.c (frv_gdbarch_init): Update.
4431 * cris-tdep.c (cris_gdbarch_init): Update.
4432 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4436 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4437 Assert that PC_REGNUM is valid.
4438 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4442 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4443 * gdbarch.h, gdbarch.c: Regenerate.
4444 * mn10300-tdep.c: Include "gdb_assert.h".
4445 (mn10300_read_fp): New function.
4446 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4447 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4448 * ia64-tdep.c: Include "gdb_assert.h".
4449 (ia64_read_fp): New function.
4450 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4451 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4452 * regcache.c (generic_target_read_sp): Delete function.
4453 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4454 * inferior.h (generic_target_read_sp): Delete declaration.
4455 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4456 generic_target_read_sp.
4457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4458 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4459 * sh-tdep.c (sh_gdbarch_init): Ditto.
4460 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4461 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4465 * gdbarch.sh: Comment each field of startup_gdbarch.
4466 * gdbarch.h, gdbarch.c: Re-generate.
4470 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4471 * gdbarch.h, gdbarch.c: Re-generate.
4472 * regcache.c: Update comments on read_pc et.al.
4473 (generic_target_read_pc): Delete function.
4474 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4475 * inferior.h (generic_target_read_pc): Delete declaration.
4476 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4477 generic_target_read_pc.
4478 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4479 * sh-tdep.c (sh_gdbarch_init): Ditto.
4480 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4481 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4485 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4486 "index" with "special_local_sect". Use strcmp instead of STREQ.
4487 Append period to coments.
4491 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4492 (elfstab_offset_sections): Likewise.
4493 * gdb-stabs.h (stab_section_info): Likewise.
4494 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4495 * objfiles.c (objfile_relocate): Likewise.
4496 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4497 * remote.c (get_offsets): Likewise.
4498 (remote_cisco_objfile_relocate): Likewise.
4499 * somread.c (som_symfile_offsets): Likewise.
4500 * symfile.c (alloc_section_addr_info): New function.
4501 (build_section_addr_info_from_section_tab): Use it.
4502 (free_section_addr_info): Adjust.
4503 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4504 (syms_from_objfile): Allocate local_addr dynamically.
4505 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4507 (add_symbol_file_command): Allocate sect_opts dynamically.
4508 (reread_symbols): Avoid use of SECT_OFF_MAX.
4509 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4510 (alloc_section_addr_info): Declare it.
4511 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4512 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4514 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4518 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4519 (d10v_frame_unwind_cache): Do not set "return_pc".
4523 * h8300-tdep.c: Make tidy (long lines).
4527 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4528 to regcache_collect().
4532 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4533 pc_in_sigtramp multiarch method.
4534 (hppa_hpux_som_init_abi): Use it.
4535 (hppa_hpux_elf_init_abi): Likewise.
4536 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4537 macro has been multiarched.
4538 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4539 macro here, as hppa64 isn't multiarched yet.
4543 * Makefile.in (value_h): Add $(frame_h).
4544 * value.h: Include "frame.h".
4545 (struct value): Replace "frame_addr" with "frame_id".
4546 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4547 * values.c (allocate_value): Use VALUE_FRAME_ID.
4548 (value_copy): Use VALUE_FRAME_ID.
4549 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4550 * valops.c (value_assign): Update. Use frame_find_by_id.
4554 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4559 * thread-db.c (check_event): For create/death event breakpoints,
4560 loop through all messages to ensure that we read the message
4561 corresponding to the breakpoint we are at.
4565 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4569 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4570 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4571 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4572 when handling .eh_frame sections.
4576 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4577 prepare_to_proceed procedure instead of the hppa-specific one.
4578 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4582 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4583 * config.in: Regenerated.
4584 * configure.in: Add test for syscall function and check for
4585 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4586 * configure: Regenerated.
4587 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4589 (kill_lwp): New function that uses tkill syscall or
4590 uses kill, depending on whether threading model is nptl or not.
4591 All callers of kill() changed to use kill_lwp().
4592 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4593 see if all threads have already exited in the nptl model.
4594 (stop_and_resume_callback): New callback function used by the
4595 lin_lwp_wait thread exit handling code.
4596 (stop_wait_callback): Check for threads already having exited and
4597 delete such threads fromt the lwp list when discovered.
4598 (stop_callback): Don't assert retcode of kill call.
4601 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4606 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4607 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4608 (alpha_sigtramp_frame_prev_register): Likewise.
4609 (alpha_heuristic_frame_prev_register): Likewise.
4610 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4612 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4613 alpha-specific register id names.
4614 (alpha_mdebug_frame_unwind_cache): Likewise.
4615 (alpha_mdebug_frame_prev_register): Likewise.
4619 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4620 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4621 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4622 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4624 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4625 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4626 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4628 * alpha-linux-tdep.c: Remove unnecessary includes.
4629 * Makefile.in (alpha-linux-tdep.o): Update.
4633 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4634 (alphabsd_fill_fpreg): Likewise.
4638 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4639 references to struct frame_info fields by calls to the equivalent
4640 accessors. Necessary now that frame_info is opaque.
4644 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4645 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4646 structure, field no longer exists.
4650 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4651 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4655 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4656 references to struct frame_info fields by calls to the equivalent
4657 accessors. Necessary now that frame_info is opaque.
4661 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4662 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4663 structure, field no longer exists.
4667 * remote.c (init_remote_state): Compute sizeof_g_packet by
4668 accumulation of the size of all registers instead of blindly using
4669 DEPRECATED_REGISTER_BYTES.
4673 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4674 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4679 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4680 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4684 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4685 (sparc_convert_to_raw): Delete function.
4686 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4687 register_convert_to_virtual.
4691 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4692 layer if not dealing with a statically-linked threaded program.
4696 * solib.c (solib_open): Update comment to reflect actual search order.
4700 * frame.c (get_frame_memory_signed): New function.
4701 (get_frame_memory, get_frame_memory_unsigned): New function.
4702 (get_frame_arch): New function.
4703 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4704 (get_frame_memory, get_frame_unsigned_memory): Declare.
4705 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4706 get_frame_memory_unsigned and get_frame_arch.
4707 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4711 * MAINTAINERS (write after approval): Add myself.
4715 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4716 elements of gregset_t are 64 bits each, but access registers
4717 are still 32 bits, so they're packed two per gregset_t
4718 element. Unpack/pack them properly.
4722 * linespec.c (find_methods): Break out code into
4723 add_matching_methods and add_constructors.
4724 (add_matching_methods): New.
4725 (add_constructors): Ditto.
4729 * sparc-tdep.c (sparc_print_registers): Delete call to
4730 REGISTER_CONVERTIBLE.
4731 (sparc_gdbarch_init): Do not set register_convertible.
4732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4733 * frv-tdep.c (frv_gdbarch_init): Ditto.
4734 * cris-tdep.c (cris_gdbarch_init): Ditto.
4738 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4739 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4740 (syms_from_objfile): Ditto.
4744 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4745 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4749 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4750 a member of all_reggroup.
4754 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4755 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4756 (alpha_lds, alpha_sts): New.
4757 (alpha_convert_register_p): Change from _register_convertible.
4758 (alpha_register_to_value): Change from _convert_to_virtual;
4759 restructure and fail for type sizes other than 4 or 8.
4760 (alpha_value_to_register): Similarly.
4761 (alpha_extract_return_value): Use alpha_sts.
4762 (alpha_store_return_value): Use alpha_lds.
4763 (alpha_gdbarch_init): Update hooks.
4767 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4769 (alpha_sigtramp_register_address): Likewise.
4773 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4774 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4775 * alpha-tdep.h: Declare them.
4777 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4778 Remove zerobuf. Don't error on UNIQUE.
4779 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4780 (ALPHA_REGSET_UNIQUE): Provide default.
4781 (supply_gregset): Use alpha_supply_int_regs.
4782 (fill_gregset): Use alpha_fill_int_regs.
4783 (supply_fpregset): Use alpha_supply_fp_regs.
4784 (fill_fpregset): Use alpha_fill_fp_regs.
4785 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4786 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4787 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4788 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4789 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4790 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4794 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4796 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4797 (alpha_store_return_value): Likewise.
4801 * block.c (contained_in): Add 'const' to arguments.
4802 (block_function): Ditto.
4803 * block.h: Update declarations for block_function and
4808 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4809 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4810 * p-valprint.c (pascal_val_print): Ditto.
4811 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4815 * alpha-tdep.c (alpha_push_dummy_call): Use
4816 builtin_type_ieee_double_little instead of builtin_type_double.
4818 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4819 sign-extension of 32-bit values.
4820 (alpha_store_return_value): Similarly.
4822 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4823 (alpha_extract_return_value): Likewise.
4824 (alpha_store_return_value): Likewise.
4826 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4827 (alpha_store_return_value): Error on IEEE Quad floats.
4829 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4830 (alpha_extract_struct_value_address): Likewise.
4831 (alpha_store_return_value): Likewise.
4832 (alpha_store_struct_return): Remove.
4833 (alpha_gdbarch_init): Update hook registration to match.
4835 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4836 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4837 macros where appropriate.
4838 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4839 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4841 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4842 for SP, GP; void_func_ptr for PC; non-language-specific types
4844 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4848 * top.h (lim_at_start): Declare.
4849 * main.c (captured_main): Set it.
4850 * top.c (lim_at_start): Define.
4851 (command_loop): Use it instead of &environ.
4852 * event-top.c (command_handler): Likewise.
4856 * mipsnbsd-tdep.c: Update copyright years.
4857 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4861 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4862 (alpha-linux-tdep.o): Update dependencies.
4863 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4864 * alpha-mdebug-tdep.c: Remove unneeded includes.
4868 * alpha-tdep.c (alpha_register_reggroup_p): New.
4869 (alpha_gdbarch_init): Register it.
4873 * dwarfread.c: Eliminate "register"
4874 (decode_die_type): Eliminate assignment within "if".
4875 (struct_type, decode_array_element_type): Ditto.
4876 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4877 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4878 (decode_modified_type, completedieinfo): Ditto.
4879 * block.c: Eliminate "register".
4880 (blockvector_for_pc_sect): Eliminate assignment within "if".
4881 * cp-support.h (struct symbol): Opaque declaration.
4882 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4886 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4887 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4891 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4892 * gdbarch.[ch]: Regenerate.
4893 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4894 (hppa_gdbarch_init): Set it in the gdbarch vector.
4895 * i386-tdep.c (i386_fetch_pointer_argument): New
4896 (i386_gdbarch_init): Set it into gdbarch.
4897 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4898 (rs6000_gdbarch_init): Set it in gdbarch.
4899 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4900 (sparc_gdbarch_init): Set it in gdbarch.
4904 * defs.h (extract_address): Delete declaration.
4905 * findvar.c (extract_address): Delete function.
4906 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4907 extract_address with the inline equivalent,
4908 extract_unsigned_integer.
4909 (xstormy16_extract_struct_value_address): Ditto.
4910 (xstormy16_pointer_to_address): Ditto.
4911 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4912 * v850-tdep.c (v850_push_arguments): Ditto.
4913 (v850_extract_return_value): Ditto.
4914 (v850_extract_struct_value_address): Ditto.
4915 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4916 (sparcnbsd_get_longjmp_target_64): Ditto.
4917 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4918 (get_longjmp_target): Ditto.
4919 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4920 (sh64_extract_struct_value_address): Ditto.
4921 (sh_push_arguments): Ditto.
4922 (sh64_push_arguments): Ditto.
4923 * remote-vxsparc.c (vx_read_register): Ditto.
4924 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4925 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4926 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4927 * mipsv4-nat.c (get_longjmp_target): Ditto.
4928 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4929 * mips-nat.c (get_longjmp_target): Ditto.
4930 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4931 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4932 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4933 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4934 * irix5-nat.c (get_longjmp_target): Ditto.
4935 * irix4-nat.c (get_longjmp_target): Ditto.
4936 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4937 (ia64_push_arguments): Ditto.
4938 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4939 * h8300-tdep.c (h8300_push_arguments): Ditto.
4940 (h8300_store_return_value): Ditto.
4941 (h8300_extract_struct_value_address): Ditto.
4942 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4943 (frv_push_arguments): Ditto.
4944 * avr-tdep.c (avr_pointer_to_address): Ditto.
4945 (avr_push_arguments): Ditto.
4946 * arm-tdep.c (arm_push_dummy_call): Ditto.
4947 (arm_get_longjmp_target): Ditto.
4948 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4949 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4950 (alpha_get_longjmp_target): Ditto.
4952 * solib-irix.c (extract_mips_address): Inline extract_address,
4953 replacing it with extract_signed_integer.
4954 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4955 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4956 (first_link_map_member, open_symbol_file_object): Ditto.
4957 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4958 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4959 (LM_NEXT, LM_NAME): Ditto.
4963 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4964 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4965 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4966 (alpha_cannot_store_register): Likewise.
4967 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4968 * alpha-nat.c (supply_gregset): Likewise.
4969 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4973 * infcall.c (call_function_by_hand): Update comment on
4974 DEPRECATED_DUMMY_WRITE_SP.
4976 * mips-tdep.c (mips_gdbarch_init): Do not set
4977 deprecated_dummy_write_sp.
4978 (mips_eabi_push_dummy_call): Set the SP register.
4979 (mips_o64_push_dummy_call): Set the SP register.
4980 (mips_o32_push_dummy_call): Set the SP register.
4981 (mips_n32n64_push_dummy_call): Set the SP register.
4985 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4986 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4987 (supply_gregset): Likewise.
4988 * alpha-tdep.c (alpha_store_return_value): Likewise.
4989 (alpha_get_longjmp_target): Likewise.
4990 (alpha_register_name): Constify array.
4991 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4992 deprecated_register_size, deprecated_register_bytes,
4993 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4994 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4995 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4999 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5000 from arg_reg_buffer to regcache to avoid double conversion.
5004 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5006 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5007 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5011 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5012 (decode_frame_entry): Set it. Skip FDE augmentation.
5016 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5017 not overlapping PC_REGNUM.
5021 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5022 alpha_push_arguments. Don't dump argument register data to
5023 the target stack. Fix float and 128-bit long double semantics.
5024 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5025 (alpha_fix_call_dummy): Remove.
5026 (alpha_call_dummy_words): Remove.
5027 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5031 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5035 * mips-tdep.c (is_mips16_addr): New function.
5036 (make_mips16_addr, unmake_mips16_addr): New functions.
5037 (pc_is_mips16, mips_fetch_instruction): Use.
5038 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5039 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5040 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5041 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5043 * config/mips/tm-mips.h: Update copyright.
5044 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5045 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5046 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5047 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5048 (TM_PRINT_INSN_MACH): Delete.
5049 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5051 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5052 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5053 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5054 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5055 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5056 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5057 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5058 mips*-*-riscos* and mips*-*-sysv* onto mips.
5059 * config/mips/mips64.mt: New file.
5060 * config/mips/mips.mt: New file.
5061 * config/mips/littlemips.mt: Delete file.
5062 * config/mips/decstation.mt: Delete file.
5063 * config/mips/vr4300el.mt: Delete file.
5064 * config/mips/vr5000el.mt: Delete file.
5065 * config/mips/vr5000.mt: Delete file.
5066 * config/mips/vr4100.mt: Delete file.
5067 * config/mips/vr4xxxel.mt: Delete file.
5068 * config/mips/vr4300.mt: Delete file.
5069 * config/mips/vr4xxx.mt: Delete file.
5070 * config/mips/bigmips.mt: Delete file.
5071 * config/mips/bigmips64.mt: Delete file.
5072 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5073 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5074 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5075 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5076 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5078 * config/mips/tm-irix3.h: Ditto.
5079 * config/mips/tm-mipsv4.h: Ditto.
5080 * config/mips/tm-embed.h: Ditto.
5081 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5083 * config/mips/tm-vr5000el.h: Delete file.
5084 * config/mips/tm-tx39l.h: Delete file.
5085 * config/mips/tm-vr4300el.h: Delete file.
5086 * config/mips/tm-vr4xxxel.h: Delete file.
5087 * config/mips/tm-vr4300.h: Delete file.
5088 * config/mips/tm-vr4100.h: Delete file.
5089 * config/mips/tm-vr4xxx.h: Delete file.
5090 * config/mips/tm-vr5000.h: Delete file.
5091 * config/mips/tm-embedl64.h: Delete file.
5092 * config/mips/tm-embedl.h: Delete file.
5093 * config/mips/tm-embed64.h: Delete file.
5094 * config/mips/tm-bigmips64.h: Delete file.
5095 * config/mips/tm-bigmips.h: Delete file.
5100 * shnbsd-nat.c: Include "sh-tdep.h".
5103 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5107 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5108 forward declaration.
5109 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5110 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5111 (mips_find_saved_regs): Use set_reg_offset.
5112 (mips_frame_init_saved_regs): Delete function.
5113 (mips_pop_frame): Call mips_find_saved_regs instead of
5114 DEPRECATED_FRAME_INIT_SAVED_REGS.
5118 * mips-tdep.c (mips_gdbarch_init): Do not set
5119 deprecated_max_register_raw_size, register_virtual_size, and
5120 deprecated_max_register_virtual_size.
5124 * i386-tdep.c: Include "dwarf2-frame.h".
5125 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5126 * Makefile.in (i386-tdep.o): Update dependencies.
5128 * dwarf2-frame.c, dwarf2-frame.h: New files.
5129 * Makefile.in (SFILES): Add dwarf2-frame.c.
5130 (dwarf2_frame_h): Define.
5131 (COMMON_OBS): Add dwarf2-frame.o.
5132 (dwarf2-frame.o): Add dependencies.
5136 * x86-64-linux-nat.c: Fix comment.
5140 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5143 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5144 have a sigcontext_addr handler.
5145 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5146 sigcontext_addr handler.
5150 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5151 (print_fp_register_row): Replace do_fp_register_row.
5152 (mips_print_fp_register): Add "file" and "frame" parameters.
5153 (mips_print_register): Add "file" and "frame" parameters.
5154 (mips_print_registers_info): Replace mips_do_registers_info.
5155 (mips_gdbarch_init): Set print_registers_info instead of
5156 deprecated_do_registers_info.
5157 (mips_read_fp_register_single): Add "frame" parameter.
5158 (mips_read_fp_register_double): Add "frame" parameter.
5162 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5163 Fixes a bug where GDB would print the wrong register names for
5164 targets without SSE.
5166 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5167 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5170 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5171 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5172 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5176 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5178 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5179 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5180 I386_ST0_REGNUM): Move here from...
5181 * i386-tdep.c: ... here.
5182 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5183 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5184 registers if possible.
5185 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5186 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5188 (i386bsd_sc_reg_offset): New variable.
5189 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5190 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5192 (i386fbsd_sc_reg_offset): New variable.
5193 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5195 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5197 (i386fbsd4_sc_reg_offset): New variable.
5198 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5199 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5201 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5202 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5203 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5205 (i386nbsd_sc_reg_offset): New variable.
5206 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5207 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5209 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5211 (i386obsd_sc_reg_offset): New variable.
5212 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5213 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5215 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5216 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5217 for frame pointer offset in `struct sigcontext'.
5221 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5222 architecture methods call_dummy_words, sizeof_call_dummy_words,
5223 push_return_address, store_struct_return, and fix_call_dummy. Set
5224 push_dummy_call instead of deprecated_push_arguments.
5225 (mips_store_struct_return): Delete function.
5226 (mips_fix_call_dummy): Delete function.
5227 (mips_push_return_address): Delete function.
5228 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5229 RA_REGNUM and T9_REGNUM.
5230 (mips_n32n64_push_dummy_call): Ditto for
5231 mips_n32n64_push_arguments.
5232 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5233 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5237 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5238 "dummy_addr" to "bp_addr".
5239 * infcall.c (call_function_by_hand): Pass "funaddr" to
5240 gdbarch_push_dummy_call.
5241 * gdbarch.h, gdbarch.c: Re-generate.
5242 * i386-tdep.c (i386_push_dummy_call): Update.
5243 * arm-tdep.c (arm_push_dummy_call): Update.
5244 * d10v-tdep.c (d10v_push_dummy_call): Update.
5248 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5249 variable declarations.
5250 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5251 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5252 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5253 x86_64_init_frame_pc, x86_64_init_frame_pc,
5254 x86_64_function_has_prologue): Remove prototypes.
5255 (X86_64_NUM_GREGS): New define.
5256 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5257 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5258 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5259 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5260 XMM1_REGNUM): Remove defines.
5261 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5262 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5263 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5264 X86_64_XMM1_REGNUM): New defines.
5265 (struct x86_64_register_info): Renamed from `struct
5266 register_info'. Remove `size' member.
5267 (x86_64_register_info_table): Remove variable.
5268 (x86_64_register_info): New variable.
5269 (X86_64_NUM_REGS): New define.
5270 (X86_64_NUM_GREGS): Remove define.
5271 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5272 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5274 (x86_54_dwarf2_reg_to_regnum): Remove function.
5275 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5276 (x86_64_dwarf_reg_to_regnum): New function.
5277 (x86_64_register_name): Rewrite.
5278 (x86_64_register_raw_size): Remove function.
5279 (x86_64_register_byte_table): Remove variable.
5280 (x86_64_register_byte): Remove function.
5281 (x86_64_register_virtual_type): Remove function.
5282 (x86_64_register_type): New function.
5283 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5284 x86_64_register_convert_to_raw): Remove functions.
5285 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5286 (x86_64_use_struct_convention): Make static. Adjust for renamed
5288 (x86_64_frame_init_saved_regs): Remove function.
5289 (x86_64_push_arguments): Make static. Change to accept a regcache
5291 (x86_64_store_return_value, x86_64_extract_return_value): Make
5292 static. Rewrite based on i386 counterparts.
5293 (x86_64_push_dummy_call): New function.
5294 (X86_64_NUM_SAVED_REGS): New define.
5295 (x86_64_register_number): Remove function.
5296 (x86_64_store_struct_return): Remove function.
5297 (x86_64_frameless_function_invocation,
5298 x86_64_function_has_prologue): Remove functions.
5299 (PROLOG_BUFSIZE): Remove define.
5300 (struct x86_64_frame_cache): New structure.
5301 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5302 x86_64_frame_cache, x86_64_frame_this_id,
5303 x86_64_frame_prev_register, x86_64_frame_p,
5304 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5305 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5307 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5309 (x86_64_skip_prologue): Rewrite in terms of
5310 x86_64_analyze_prologue.
5311 (x86_64_frame_base_address): New function.
5312 (x86_64_frame_base): New variable.
5313 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5314 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5315 set deprecated_fp_regnum, deprecated_register_size,
5316 deprecated_register_bytes, register_raw_size, register_byte,
5317 register_virtual_type, register_convertiable,
5318 register_convert_to_virtual, convert_to_raw,
5319 deprecated_get_saved_register, deprecated_target_read_fp,
5320 deprecated_push_arguments, deprecated_push_return_address,
5321 deprecated_pop_frame, deprecated_store_struct_return,
5322 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5323 frameless_function_invocation, deprecated_frame_saved_pc,
5324 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5325 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5326 deprecated_init_frame_pc and virtual_frame_pointer. Call
5327 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5328 and x86_64_frame_p. Call frame_base_set_default to register
5330 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5331 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5332 (_initialize_x86_64_tdep): Remove function.
5333 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5334 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5335 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5337 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5338 (x86_64_linux_sigcontext_addr): Rewrite.
5339 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5340 x86_64_linux_frame_saved_pc): Remove functions.
5341 (x86_64_linux_pc_in_sigtramp): Renamed from
5342 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5344 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5346 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5347 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5348 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5349 (x86_64_regmap): Rename to regmap.
5350 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5352 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5354 (x86_64_fxsave_offset): Remove function.
5355 (supply_fpregset): Simply call x86_64_supply_fxsave.
5356 (fill_fpregset): Simply call x86_64_fill_fxsave.
5357 (fetch_inferior_registers, store_inferior_registers): Avoid
5358 asignment in if-statement.
5359 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5360 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5361 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5362 (fetch_core_registers): Remove function.
5363 (linux_elf_core_fns): Remove.
5364 (offsetoff): Don't define.
5365 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5366 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5367 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5369 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5370 protection against multiple includes instead of NM_X86_64_h. Add
5371 various comments. Include "config/nm-linux.h". Don't include
5373 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5374 GET_THREAD_SIGNALS): Remove defines.
5375 (x86_64_register_u_addr, kernel_u_size,
5376 lin_thread_get_thread_signals): Remove prototypes.
5377 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5378 [HAVE_LINK_H]: Don't include "solib.h".
5379 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5380 * config/i386/tm-x86-64linux.h: Fix comments.
5381 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5382 x86-64-tdep.o): Update dependencies.
5386 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5387 Change parameter type to a "struct regcache *".
5389 * gdbarch.sh: Regardless of the multi-arch level, always define
5390 the macro when not already defined.
5391 * gdbarch.h, gdbarch.c: Re-generate.
5395 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5396 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5397 (alpha_mdebug_frame_this_id): Likewise.
5398 (alpha_mdebug_frame_prev_register): Likewise.
5399 (alpha_mdebug_frame_base_address): Likewise.
5400 (alpha_mdebug_frame_locals_address): Likewise.
5401 (alpha_mdebug_frame_args_address): Likewise.
5402 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5403 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5404 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5406 (alpha_heuristic_frame_this_id): Make static.
5407 (alpha_heuristic_frame_prev_register): Likewise.
5408 (alpha_heuristic_frame_base_address): Likewise.
5409 * alpha-tdep.h: Update.
5413 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5414 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5416 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5417 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5418 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5419 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5420 I386_ST0_REGNUM): New defines.
5421 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5422 codestream_get): Remove define.
5423 (codestream_next_addr, condestream_addr, condestream_buf,
5424 codestream_off, codestream_cnt): Remove variables.
5425 (codestream_fill, codestream_seek, codestream_read): Remove
5427 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5429 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5430 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5431 i386_frame_saved_pc, i386_saved_pc_after_call,
5432 i386_frame_num_args, i386_frame_init_saved_regs,
5433 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5434 i386_push_arguments): Remove functions.
5435 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5436 functionality. Use i386_analyze_prologue instead of
5437 i386_get_frame_setup.
5438 (I386_NUM_SAVED_REGS): New define.
5439 (struct i386_frame_cache): New structure.
5440 (i386_alloc_frame_cache, i386_analyze_struct_return,
5441 i386_skip_probe, i386_analyze_frame_setup,
5442 i386_analyze_register_saves, i386_analyze_prologue,
5443 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5444 i386_frame_prev_register, i386_sigtramp_frame_cache,
5445 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5446 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5447 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5449 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5451 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5452 I386_EAX_REGNUM and I386_EDX_REGNUM.
5453 (i386_extract_return_value, i386_store_return_value): Use
5454 I386_ST0_REGNUM where appropriate.
5455 (i386_extract_struct_value_address): Rewrite to use extract_address.
5456 (i386_svr4_pc_in_sigtramp): Add comment.
5457 (i386_svr4_sigcontext_addr): Rewrite.
5458 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5460 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5461 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5462 of new defines. Set push_dummy_call, don't set
5463 deprecated_push_arguments, deprecated_push_return_address,
5464 deprecated_pop_frame. Don't set parm_boundary. Don't set
5465 deprecated_frame_chain, deprecated_frame_saved_pc,
5466 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5467 save_dummy_frame_tos, unwind_pc. Call
5468 frame_unwind_append_predicate and frame_base_set_default. Don't
5469 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5470 Don't set frameless_function_invocation. Don't set
5471 deprecated_register_bytes, deprecated_register_size,
5472 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5473 * i386-linux-tdep.c: Fix formatting in some comments.
5474 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5475 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5476 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5477 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5478 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5479 redundant parentheses.
5480 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5481 (i386_linux_sigcontext_addr): Use it. Rewrite.
5482 (find_minsym_and_objfile): Change name of second argument.
5483 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5484 changed. Use frame_pc_unwind instead of
5485 DEPRECATED_SAVED_PC_AFTER_CALL.
5486 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5487 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5488 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5490 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5492 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5493 (_initialize_i386_cygwin_tdep): New prototype.
5494 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5495 deprecated_frame_chain_valid.
5496 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5497 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5498 Rely on the SVR4 defaults.
5499 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5500 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5504 * infcall.c (call_function_by_hand): Always call
5505 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5509 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5514 Use gdbarch methods for solib stuff on PowerPC Linux.
5515 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5516 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5518 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5519 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5520 giving the same effect as the #definitions above.
5524 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5525 (find_implementation_from_class): Replace it with the standard
5526 case i.e. do nothing.
5530 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5531 (alpha_linux_sigtramp_offset): Use it. Make static.
5532 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5533 update for new frame model.
5534 * alpha-mdebug-tdep.c: New file.
5535 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5536 (alpha_osf1_init_abi): Install it.
5537 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5538 (linked_proc_desc_table): Remove.
5539 (alpha_frame_past_sigtramp_frame): Remove.
5540 (alpha_dynamic_sigtramp_offset): Remove.
5541 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5542 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5543 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5544 (push_sigtramp_desc): Remove.
5545 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5546 (alpha_cannot_store_register): Likewise.
5547 (alpha_sigcontext_addr): Remove.
5548 (alpha_find_saved_regs): Remove.
5549 (alpha_frame_init_saved_regs): Remove.
5550 (alpha_init_frame_pc_first): Remove.
5551 (read_next_frame_reg): Remove.
5552 (alpha_frame_saved_pc): Remove.
5553 (alpha_saved_pc_after_call): Remove.
5554 (temp_proc_desc, temp_saved_regs): Remove.
5555 (alpha_about_to_return): Remove.
5556 (cached_proc_desc): Remove.
5557 (alpha_frame_chain): Remove.
5558 (alpha_print_extra_frame_info): Remove.
5559 (alpha_init_extra_frame_info): Remove.
5560 (alpha_frame_locals_address): Remove.
5561 (alpha_frame_args_address): Remove.
5562 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5563 (alpha_push_dummy_frame): Remove.
5564 (alpha_pop_frame): Remove.
5565 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5566 (alpha_read_insn): New.
5567 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5568 for different insn encodings.
5569 (alpha_in_lenient_prologue): Remove.
5570 (struct alpha_sigtramp_unwind_cache): New.
5571 (alpha_sigtramp_frame_unwind_cache): New.
5572 (alpha_sigtramp_register_address): New.
5573 (alpha_sigtramp_frame_this_id): New.
5574 (alpha_sigtramp_frame_prev_register): New.
5575 (alpha_sigtramp_frame_unwind): New.
5576 (alpha_sigtramp_frame_p): New.
5577 (struct alpha_heuristic_unwind_cache): New.
5578 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5579 don't count nop insns that occur between functions.
5580 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5581 heuristic_proc_desc, but without the mdebug wrapping.
5582 (alpha_heuristic_frame_this_id): New.
5583 (alpha_heuristic_frame_prev_register): New.
5584 (alpha_heuristic_frame_unwind): New.
5585 (alpha_heuristic_frame_p): New.
5586 (alpha_heuristic_frame_base_address): New.
5587 (alpha_heuristic_frame_base): New.
5588 (alpha_unwind_dummy_id): New.
5589 (alpha_unwind_pc): New.
5590 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5591 frame related deprecated initializations; install replacements.
5592 (alpha_dump_tdep): Remove.
5593 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5594 (alpha_read_insn, alpha_after_prologue,
5595 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5596 alpha_heuristic_frame_prev_register,
5597 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5598 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5599 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5600 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5604 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5605 dependant on the availability of ASSERT_FUNCTION.
5606 (ASSERT_FUNCTION): Do not define when there is no function name.
5611 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5615 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5616 argument to ptrace to int; the system headers should give it the
5617 right type, and pointers don't fit in ints on powerpc64-*-*.
5621 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5626 * stabsread.c (dbx_lookup_type): Make static.
5628 (add_undefined_type): Ditto.
5629 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5634 * hpread.c (hpread_has_name): Make static.
5635 (hpread_psymtab_to_symtab): Ditto.
5636 (file_exists): Ditto.
5637 (hpread_call_pxdb): Ditto.
5638 (hpread_pxdb_needed): Ditto.
5639 (hpread_quick_traverse): Ditto.
5640 (hpread_get_header): Ditto.
5641 (hpread_get_lntt): Ditto.
5642 (hpread_get_slt): Ditto.
5647 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5648 stack_align and deprecated_extra_stack_alignment_needed.
5649 (m68k_stack_align): Delete.
5651 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5652 (m68k_register_virtual_size): Likewise.
5653 (altos_skip_prologue): Remove obsolete function.
5654 (isi_frame_num_args): Likewise.
5655 (news_frame_num_args): Likewise.
5656 (m68k_fix_call_dummy): Make static.
5657 (m68k_push_dummy_frame): Likewise.
5658 (m68k_pop_frame): Likewise.
5659 (m68k_skip_prologue): Likewise.
5660 (m68k_frame_init_saved_regs): Likewise.
5661 (m68k_saved_pc_after_call): Likewise.
5662 (m68k_get_longjmp_target): Make multi-arch.
5663 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5664 structure. Register m68k_get_longjmp_target if enabled.
5665 * m68k-tdep.h (struct gdbarch_tdep): Define.
5666 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5668 * Makefile.in (config.status): Also depend on configure.tgt
5670 (m68klinux-tdep.o): Update dependencies.
5671 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5672 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5673 (M68K_LINUX_JB_PC): Define.
5674 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5675 and take additional parameter.
5676 (m68k_linux_sigtramp_saved_pc): Update.
5677 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5678 m68k_linux_pc_in_sigtramp, in_plt_section,
5679 find_solib_trampoline_target.
5680 * config/m68k/tm-linux.h: Don't include any tm headers.
5681 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5682 (JB_ELEMENT_SIZE): Likewise.
5684 (GET_LONGJMP_TARGET): Likewise.
5685 (IN_SIGTRAMP): Likewise.
5686 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5690 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5691 (sparc32_push_arguments): Re-implement by calling
5692 sparc32_do_push_arguments.
5696 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5697 SPARC_O1_REGNUM): New defines.
5698 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5699 (sparc32_store_return_value): New function.
5700 (sparc_extract_struct_value_address): Rewrite to operate on a
5702 (sparc_gdbarch_init): Don't set
5703 deprecated_extract_struct_value_address. Set
5704 extract_struct_value_address instead. Don't set
5705 deprecated_extract_return_value and deprecated_store_return_value
5706 for 32-bit targets. Set extract_return_value and
5707 store_return_value instead.
5708 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5709 DEPRECTAED_EXTRACT_RETURN_VALUE,
5710 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5711 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5712 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5713 (sparc_store_return_value): Remove prototype.
5714 (sparc32_store_return_value): New prototype.
5715 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5720 * sparcnbsd-tdep.c: Include "gdb_string.h".
5724 * p-valprint.c (pascal_val_print): Replace extract_address with
5725 the inline equivalent extract_unsigned_integer.
5726 * jv-valprint.c (java_value_print): Ditto.
5727 * ada-valprint.c (ada_val_print_1): Ditto.
5728 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5732 * blockframe.c (frameless_look_for_prologue): Remove unused
5733 after_prologue variable.
5737 * blockframe.c (get_pc_function_start): Rewrite to avoid
5738 asignments in if-statements.
5743 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5744 files, don't relocate absolute symbols (and do use mst_abs).
5748 * objc-lang.c: Include "gdb_assert.h".
5749 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5750 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5751 (gdb_check, gdb_check_fatal): Delete functions.
5752 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5754 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5755 * Makefile.in (objc-lang.o): Update dependencies.
5759 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5760 with fprintf_filtered, not fprintf_unfiltered.
5764 * stack.c (frame_info): Inline extract_address, replacing it with
5765 extract_unsigned_integer.
5766 * findvar.c (unsigned_pointer_to_address): Ditto.
5767 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5768 * dwarf2expr.c (dwarf2_read_address): Ditto.
5769 * frame.c (frame_pc_unwind): Update comment.
5770 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5774 * infptrace.c (detach): Call print_sys_errmsg rather than
5775 perror_with_name to issue warning message when errno is non-zero
5776 after calling ptrace detach.
5780 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5781 macro definitions from here...
5782 * hppa-tdep.c: ...to there.
5786 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5787 register_ptrace_addr(). Fix all callers.
5791 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5793 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5795 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5796 (_initialize_m68k_linux_tdep): New function.
5797 (m68k_linux_frame_saved_pc): Make static.
5798 (m68k_linux_extract_return_value): Likewise.
5799 (m68k_linux_store_return_value): Likewise.
5800 (m68k_linux_extract_struct_value_address): Likewise.
5801 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5803 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5804 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5805 (DEPRECATED_FRAME_SAVED_PC): Remove.
5809 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5810 regset numbering rather than our own.
5814 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5818 Partial fix for PR c++/827.
5819 * cp-support.h: Include symtab.h.
5820 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5821 * cp-namespace.c: Update contributors.
5822 (cp_lookup_symbol_nonlocal): New.
5823 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5824 (lookup_symbol_file): Ditto.
5825 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5826 * block.h: Declare block_scope, block_using, block_global_block.
5827 * block.c (block_scope): New.
5828 (block_using, block_global_block): Ditto.
5829 * Makefile.in (cp_support_h): Depend on symtab_h.
5830 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5834 * language.h (struct language_defn): Add 'la_value_of_this'
5835 and 'la_lookup_symbol_nonlocal' members.
5836 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5837 lookup_symbol_static, lookup_symbol_global,
5838 lookup_symbol_aux_block.
5839 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5840 if we should search fields of this and how to do static/global
5842 (lookup_symbol_aux_block): Make extern.
5843 (basic_lookup_symbol_nonlocal): New.
5844 (lookup_symbol_static, lookup_symbol_global): Ditto.
5845 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5846 'la_lookup_symbol_nonlocal' members.
5847 * c-lang.c (c_language_defn, cplus_language_defn)
5848 (asm_language_defn, minimal_language_defn): Ditto.
5849 * jv-lang.c (java_language_defn): Ditto.
5850 * language.c (unknown_language_defn, auto_language_defn)
5851 (local_language_defn): Ditto.
5852 * m2-lang.c (m2_language_defn): Ditto.
5853 * objc-lang.c (objc_language_defn): Ditto.
5854 * scm-lang.c (scm_language_defn): Ditto.
5855 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5856 * p-lang.c (pascal_language_defn): Ditto for both.
5857 * Makefile.in (f-lang.o): Depend on value_h.
5862 * block.h: Declare block_static_block.
5863 * block.c (block_static_block): New.
5864 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5865 lookup_symbol_aux_local, calling block_static_block instead.
5866 (lookup_symbol_aux_local): Delete 'static_block' argument.
5870 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5874 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5875 register numbers mapping.
5879 * symtab.c (completion_list_objc_symbol): New function.
5880 (make_symbol_completion_list): Use it to add ObjC symbols
5881 when looking though the list.
5882 (language_search_unquoted_string): New function.
5883 (make_file_symbol_completion_list): Use it.
5887 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5889 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5890 as m68k_linux_extract_return_value.
5891 (DEPRECATED_STORE_RETURN_VALUE): Define as
5892 m68k_linux_store_return_value.
5893 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5894 m68k_linux_extract_struct_value_address.
5895 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5896 get_next_frame, get_frame_base, get_frame_pc.
5897 (m68k_linux_frame_saved_pc): Use get_frame_base.
5898 (m68k_linux_extract_return_value): New function.
5899 (m68k_linux_store_return_value): New function.
5900 (m68k_linux_extract_struct_value_address): New function.
5901 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5903 * c-exp.y (typebase): Remove duplicate occurence of
5904 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5905 of lookup_signed_typename.
5909 * dwarf2loc.c (find_location_expression): Change type of second
5910 argument to `size_t *'.
5911 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5916 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5917 'linkage_name'. Add comment.
5918 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5920 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5921 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5922 (lookup_block_symbol): Ditto.
5926 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5927 * gdbarch.h, gdbarch.c: Re-generate.
5928 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5929 * TODO (REGISTER_BYTES): Delete reference.
5930 * alpha-tdep.c (alpha_gdbarch_init): Update.
5931 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5932 * x86-64-tdep.c (x86_64_init_abi): Update.
5933 * vax-tdep.c (vax_gdbarch_init): Update.
5934 * v850-tdep.c (v850_gdbarch_init): Update.
5935 * sparc-tdep.c (sparc_gdbarch_init): Update.
5936 * sh-tdep.c (sh_gdbarch_init): Update.
5937 * s390-tdep.c (s390_gdbarch_init): Update.
5938 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5939 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5940 (ns32k_gdbarch_init_32382): Update.
5941 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5942 * mcore-tdep.c (mcore_gdbarch_init): Update.
5943 * m68k-tdep.c (m68k_gdbarch_init): Update.
5944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5945 * ia64-tdep.c (ia64_gdbarch_init): Update.
5946 * i386-tdep.c (i386_gdbarch_init): Update.
5947 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5948 * hppa-tdep.c (hppa_gdbarch_init): Update.
5949 * h8300-tdep.c (h8300_gdbarch_init): Update.
5950 * frv-tdep.c (frv_gdbarch_init): Update.
5951 * cris-tdep.c (cris_gdbarch_init): Update.
5952 * avr-tdep.c (avr_gdbarch_init): Update.
5953 * arm-tdep.c (arm_gdbarch_init): Update.
5954 * sparc-tdep.c (sparc_pop_frame): Update.
5955 * rs6000-tdep.c (rs6000_pop_frame): Update.
5956 * remote.c (init_remote_state): Update.
5957 (remote_prepare_to_store): Update.
5958 * remote-vx.c (vx_prepare_to_store): Update.
5959 * remote-sds.c (sds_fetch_registers): Update.
5960 (sds_prepare_to_store): Update.
5961 * remote-array.c: Update.
5962 * regcache.c (init_legacy_regcache_descr): Update.
5963 (init_regcache_descr): Update.
5964 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5965 (mips_o64_extract_return_value): Update.
5966 * irix5-nat.c (fetch_core_registers): Update.
5967 * irix4-nat.c (fetch_core_registers): Update.
5968 * i386-tdep.h: Update.
5969 * hppa-tdep.c (pa_do_registers_info): Update.
5970 (pa_do_strcat_registers_info): Update.
5971 * cris-tdep.c (cris_register_bytes_ok): Update.
5972 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5973 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5974 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5975 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5976 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5977 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5978 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5979 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5980 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5981 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5982 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5983 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5984 (REGISTER_BYTES_OK): Update.
5985 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5986 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5990 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5991 (vax_print_insn, print_insn_arg): Remove static functions.
5992 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5993 print_insn_vax from opcodes library.
5994 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5998 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5999 * target.h (memory_breakpoint_from_pc): Delete declaration.
6000 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6001 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6002 * monitor.c (monitor_insert_breakpoint): Use
6003 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6004 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6005 * gdbarch.h, gdbarch.c: Re-generate.
6006 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6007 (sparc_gdbarch_init): Set breakpoint_from_pc to
6008 sparc_breakpoint_from_pc.
6009 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6010 (BREAKPOINT_FROM_PC): Define.
6011 (sparc_breakpoint_from_pc): Declare.
6012 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6013 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6014 (BREAKPOINT_FROM_PC): Define.
6015 (BREAKPOINT): Delete macro.
6016 * target.h: Update comment.
6017 * s390-tdep.c (s390_gdbarch_init): Update comments.
6018 * remote.c: Update comments.
6019 * remote-mips.c: Update comments.
6020 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6021 * mem-break.c: Update comment.
6022 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6023 (ia64_memory_insert_breakpoint): Update.
6024 * config/sparc/tm-sparc.h: Update comment.
6025 * config/pa/tm-hppa64.h: Update comment.
6026 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6027 (rs6000_breakpoint_from_pc): Update.
6028 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6029 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6030 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6031 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6032 (mips_breakpoint_from_pc): Update.
6033 (mips_dump_tdep): Update.
6035 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6036 * minsyms.c (lookup_minimal_symbol): Inline
6037 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6039 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6040 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6041 * p-lang.c (pascal_printstr): Ditto.
6042 * objc-lang.c (objc_printstr): Ditto.
6043 * m2-lang.c (m2_printstr): Ditto.
6044 * jv-valprint.c (java_print_value_fields): Ditto.
6045 * f-lang.c (f_printstr): Ditto.
6046 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6047 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6048 for repeat_count_threshold.
6049 * Makefile.in (cp-valprint.o): Update dependencies.
6053 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6054 (examine_prologue): Support looking through leaf functions, knowing
6055 they start with mov r2,r12. Support skipping over indirect stores
6056 of the input registers. Upon hitting a non-nop branch instruction
6057 or predicated instruction, bail out by setting lim_pc to the current
6058 pc value in the loop. At the end, if the lim_pc value is still
6059 beyond our calculated value and we have trust_limit set,
6060 use the lim_pc value.
6064 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6065 generic_find_dummy_frame.
6066 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6067 (deprecated_generic_find_dummy_frame): Update.
6068 (deprecated_read_register_dummy): Update.
6069 * frame.c (deprecated_generic_get_saved_register): Update.
6073 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6074 (avr_gdbarch_init): Set breakpoint_from_pc method.
6078 * regcache.c (build_regcache): Set deprecated_register_valid
6080 (deprecated_grub_regcache_for_register_valid): Delete function.
6081 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6087 * symtab.c (lookup_symbol_aux): Delete calls to
6088 lookup_symbol_aux_minsyms.
6089 (lookup_symbol_aux_minsyms): Comment out function and
6090 prototype. Delete lookup by mangled name.
6094 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6095 correctly indicate an empty stack and ``stack_allocated'' to the
6096 indicate the number of elements initially allocated.
6097 (dwarf_expr_grow_stack): Simplify method for computing new
6098 stack size. Don't loop infinitely if ``stack_len'' is zero.
6099 (execute_stack_op): Move ``ctx->in_reg'' initialization
6100 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6101 be used in conjuction with DW_OP_piece. Revise error message
6106 * MAINTAINERS: Update my email address.
6107 * avr-tdep.c: Ditto.
6111 * symtab.h (enum domain_enum): Rename from namespace_enum.
6112 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6113 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6114 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6115 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6116 TYPES_NAMESPACE, METHODS_NAMESPACE.
6117 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6118 (struct symbol, struct partial_symbol): Rename field
6119 'namespace_enum namespace' to 'domain_enum domain'.
6120 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6121 Delete old define kludge for namespace.
6123 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6124 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6125 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6126 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6127 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6128 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6129 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6130 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6131 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6132 occurrences of the above.
6136 * Makefile.in (install-only): Use $(SHELL) when running
6141 * MAINTAINERS (write after approval): Add myself.
6143 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6144 second and third arguments.
6145 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6146 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6150 * defs.h (store_address): Delete declaration.
6151 findvar.c (store_address): Delete function.
6152 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6153 store_unsigned_integer.
6154 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6155 * v850-tdep.c (v850_push_arguments): Ditto.
6156 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6157 * sh-tdep.c (sh64_get_saved_register): Ditto.
6158 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6159 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6160 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6161 (mips_get_saved_register): Ditto.
6162 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6163 (find_func_descr, ia64_push_arguments): Ditto.
6164 * i386-tdep.c (i386_push_arguments): Ditto.
6165 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6166 * frv-tdep.c (frv_push_arguments): Ditto.
6167 * frame.c (legacy_saved_regs_prev_register): Ditto.
6168 (deprecated_generic_get_saved_register): Ditto.
6169 * findvar.c (unsigned_address_to_pointer): Ditto.
6170 * dwarf2read.c (dwarf2_const_value): Ditto.
6171 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6172 * alpha-tdep.c (alpha_push_arguments): Ditto.
6176 * NEWS: Mention that the hppa-hpux port has been partially
6177 multiarched (32bit ABIT only, so far).
6181 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6182 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6183 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6184 sim/testsuite/sim/arm/misaligned2.ms, and
6185 sim/testsuite/sim/arm/misaligned3.ms.
6186 * disasm.h (struct ui_file): Add opaque struct declaration.
6187 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6188 * frame.h (struct ui_file): Ditto.
6192 * value.h: Pretty print.
6196 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6200 * regcache.h (max_register_size): Delete declaration.
6201 * regcache.c (max_register_size): Delete function.
6202 (struct regcache_descr): Delete field "max_register_size".
6203 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6204 registers fit in MAX_REGISTER_SIZE.
6205 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6206 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6207 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6208 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6209 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6210 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6211 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6212 * dve3900-rom.c, hppa-tdep.c: Ditto.
6216 * valops.c (push_word): Fix typo.
6220 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6221 * gdbarch.h: Re-generate.
6222 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6223 (legacy_max_register_raw_size): Delete declaration.
6224 * regcache.c (legacy_max_register_raw_size): Delete function.
6225 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6226 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6227 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6228 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6229 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6230 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6231 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6232 * findvar.c, dwarf2cfi.c: Ditto.
6236 * mips-tdep.c (read_signed_register): New function, moved to here
6238 (read_signed_register_pid): Ditto.
6239 * regcache.c (read_signed_register_pid): Delete function, moved to
6241 (read_signed_register): Ditto.
6242 * regcache.h (read_signed_register): Delete declaration.
6243 (read_signed_register_pid): Delete declaration.
6247 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6248 * gdbarch.h: Re-generate.
6249 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6250 (legacy_max_register_virtual_size): Delete declaration.
6251 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6252 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6253 * tracepoint.c (memrange_sortmerge): Ditto.
6254 * sparc-tdep.c (sparc_print_registers): Ditto.
6255 * regcache.c (legacy_max_register_virtual_size): Delete function.
6259 * fork-child.c (escape_bang_in_quoted_argument): New function.
6260 (fork_inferior): Escape '!' characters in quoted arguments
6265 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6266 the language of the CU is not currently supported by GDB.
6270 * defs.h (language): Add language_minimal enum value.
6271 * c-lang.c (minimal_language_defn): New language definition.
6272 (_initialize_c_language): Add the new minimal language to the list
6273 of languages known to GDB.
6277 * frame.c (get_frame_type): Don't attempt to lazily initialize
6278 frame's unwinder for legacy frames.
6282 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6283 and "regcache" parameters.
6284 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6288 * dwarf2read.c (dwarf_decode_lines): Only use output of
6289 check_cu_functions() when calling record_line(). Do not update
6290 the current address.
6294 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6299 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6300 'maint info symtabs' and 'maint info psymtabs'.
6301 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6302 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6303 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6304 Declarations updated.
6305 * maint.c (maintenance_list_command): Delete.
6306 (_initialize_maint_cmds): Update calls to add_cmd.
6307 * gdbcmd.h (maintenancelistlist): Delete declaration.
6308 * cli/cli-cmds.c (maintenancelistlist): Delete.
6309 (init_cmd_lists): Don't initialize it.
6310 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6314 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6316 (d10v_print_registers_info): Update.
6317 (d10v_dmap_register, d10v_imap_register): Delete functions.
6318 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6319 and "imap_register".
6320 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6321 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6322 * arch-utils.c (generic_remote_translate_xfer_address): Add
6323 "regcache" and "gdbarch" parameters.
6324 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6325 parameter. Change class to multi-arch.
6326 * gdbarch.h, gdbarch.c: Re-generate.
6327 * remote.c (remote_xfer_memory): Use
6328 gdbarch_remote_translate_xfer_address.
6332 * infrun.c (prev_pc): Move declaration ahead of proceed().
6333 (proceed): Refresh prev_pc value before resuming.
6334 (stop_stepping): Remove code to refresh prev_pc.
6338 * nto-tdep.c: Removed stray comment.
6342 * i386-nto-tdep.c: Fix old K&R function definitions.
6343 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6344 Also change add_show_from_set() call to add_setshow_cmd().
6345 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6349 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6350 (fprint_dummy_frames): New function.
6351 (maintenance_print_dummy_frames): New function.
6352 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6353 * frame.c (fprint_frame_id): Make global.
6354 * frame.h (fprint_frame_id): Declare.
6355 * Makefile.in (dummy-frame.o): Update dependencies.
6359 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6360 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6361 SIZEOF_CALL_DUMMY_WORDS.
6362 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6363 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6364 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6365 CALL_DUMMY_BREAKPOINT_OFFSET.
6366 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6367 CALL_DUMMY_START_OFFSET.
6368 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6369 * gdbarch.h, gdbarch.c: Re-generate.
6370 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6371 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6372 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6373 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6374 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6375 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6376 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6377 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6378 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6379 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6380 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6381 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6382 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6383 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6384 * config/sparc/tm-sparc.h: Update.
6388 * configure.tgt: Add i[3456]86-*-nto*.
6389 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6390 * nto-tdep.c: New file. Neutrino target support routines.
6391 * nto-tdep.h: New file. Neutrino target header.
6392 * config/tm-qnxnto.h: New file.
6393 * config/i386/i386nto.mt: New file.
6394 * config/i386/tm-i386nto.h: New file.
6398 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6399 (load_infrun_state): Ditto.
6400 (struct thread_info): Drop "prev_func_name" field.
6401 * thread.c (load_infrun_state): Update.
6402 (save_infrun_state): Update.
6403 * infrun.c (prev_func_name): Delete variable.
6404 (init_wait_for_inferior): Do not clear prev_func_name.
6405 (stop_stepping, keep_going, context_switch): Do not swap
6407 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6408 instead of PC_IN_SIGTRAMP.
6412 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6413 REGISTER_BYTE with register_offset_hack.
6414 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6415 that REGISTER_BYTE is consistent with the regcache.
6416 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6417 * gdbarch.h, gdbarch.c: Regenerate.
6421 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6422 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6424 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6429 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6430 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6431 (mi-cmd-symbol.o): Add rule.
6435 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6436 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6437 * gdbarch.h, gdbarch.c: Re-generate.
6438 * d10v-tdep.c (d10v_push_dummy_code): New function.
6439 (d10v_gdbarch_init): Set push_dummy_code.
6440 * infcall.c (legacy_push_dummy_code): New function.
6441 (generic_push_dummy_code): New function.
6442 (push_dummy_code): New function.
6443 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6444 instead of dummy_addr, to push_dummy_call. Move call to
6445 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6447 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6451 * disasm.h (print_insn): Declare.
6452 * disasm.c (init_gdb_disassemble_info): New function.
6453 (gdb_disassembly): Call init_gdb_disassemble_info.
6454 (gdb_print_insn): New function.
6455 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6456 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6457 * mcore-tdep.c: Include "disasm.h"
6458 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6459 * d10v-tdep.c: Include "disasm.h".
6460 (display_trace): Call gdb_print_insn, instead of print_insn.
6461 (print_insn): Delete function.
6462 * printcmd.c: Include "disasm.h".
6463 (print_insn): Delete function.
6464 (print_formatted): Call gdb_print_insn, instead of print_insn.
6465 * Makefile.in (printcmd.o): Update dependencies.
6466 (mcore-tdep.o, d10v-tdep.o): Ditto.
6470 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6471 PC_REGNUM, re-indent.
6472 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6473 PC_REGNUM isn't set.
6475 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6476 * gdbarch.h, gdbarch.c: Re-generate.
6477 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6478 register_virtual_size, pc_regnum, or register_bytes.
6479 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6480 (d10v_register_type): Use D10V_PC_REGNUM.
6481 (d10v_print_registers_info, d10v_read_pc): Ditto.
6482 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6483 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6487 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6488 the name with mstrsave.
6492 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6493 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6494 (host_charset_name, target_charset_name): New vars for use by
6496 (host_charset_enum, target_charset_enum): New enums for set/show
6498 (set_charset_sfunc, set_host_charset_sfunc,
6499 set_target_charset_sfunc): New functions.
6500 (set_host_charset, set_target_charset): Make static.
6501 (list_charsets, set_host_charset_command,
6502 set_target_charset_command): Delete functions.
6503 (show_charset_command): Rewrite as....
6504 (show_charset): Hook this up with the set/show command mechanism.
6505 (_initialize_charset): Change names of charsets to match the
6506 set/show enums. Use host_charset_name and target_charset_name.
6507 Use set/show mechanism for charset, host-charset, target-charset
6508 commands. Do not make 'show host-charset' and 'show
6509 target-charset' be aliases of 'show charset'.
6511 * charset.h (set_host_charset, set_target_charset): Don't export,
6512 they are not used outside the file.
6516 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6517 (gdb_disassembly): Make "di" non static, always initialize and
6518 cleanup. Always use dis_asm_read_memory.
6519 (gdb_dis_asm_read_memory): Delete function.
6523 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6524 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6528 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6529 "tm_print_insn_info".
6530 (TARGET_PRINT_INSN_INFO): Delete macro.
6531 (dis_asm_read_memory): Delete function declaration.
6532 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6533 (tm_print_insn_info): Delete variable definition.
6534 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6535 * gdbarch.h, gdbarch.c: Re-generate.
6536 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6537 "deprecated_tm_print_insn_info".
6538 * mcore-tdep.c (mcore_dump_insn): Ditto.
6539 * mips-tdep.c (mips_gdbarch_init): Ditto.
6540 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6541 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6542 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6543 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6544 instead of TARGET_PRINT_INSN_INFO, add comment.
6545 * s390-tdep.c (s390_get_frame_info): Instead of
6546 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6547 (s390_check_function_end, s390_is_sigreturn): Ditto.
6548 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6549 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6550 * disasm.c: Include "gdbcore.h".
6551 (_initialize_disasm): New function, initialize
6552 "deprecated_tm_print_insn_info".
6553 (deprecated_tm_print_insn_info): New variable.
6554 (dis_asm_read_memory): Moved from "corefile.c", made static.
6555 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6556 * Makefile.in (disasm.o): Update dependencies.
6560 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6564 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6565 * infcall.c (find_function_addr): Make non-static.
6566 * infcall.h (find_function_addr): Declare.
6567 * Makefile.in (eval.o): Update dependencies.
6571 * symtab.c (symbol_find_demangled_name): Check for and demangle
6573 (symbol_init_demangled_name): Init for language_objc as well.
6577 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6578 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6579 * gdbarch.h, gdbarch.c: Re-generate.
6580 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6581 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6582 * inferior.h (deprecated_read_fp): Rename read_fp.
6583 (generic_target_read_fp): Delete declaration.
6584 * regcache.c (generic_target_read_fp): Delete function.
6585 (deprecated_read_fp): Replace read_fp, use
6586 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6587 * d10v-tdep.c (d10v_read_fp): Delete function.
6588 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6590 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6591 deprecated_target_read_fp to generic_target_read_fp.
6592 * sh-tdep.c (sh_gdbarch_init): Ditto.
6593 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6595 * frv-tdep.c (frv_gdbarch_init): Ditto.
6597 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6598 deprecated_fp_regnum.
6599 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6600 * vax-tdep.c (vax_gdbarch_init): Ditto.
6601 * v850-tdep.c (v850_gdbarch_init): Ditto.
6602 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6603 * sh-tdep.c (sh_gdbarch_init): Ditto.
6604 * s390-tdep.c (s390_gdbarch_init): Ditto.
6605 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6606 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6607 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6608 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6609 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6610 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6611 * i386-tdep.c (i386_gdbarch_init): Ditto.
6612 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6613 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6614 * frv-tdep.c (frv_gdbarch_init): Ditto.
6615 * cris-tdep.c (cris_gdbarch_init): Ditto.
6616 * avr-tdep.c (avr_gdbarch_init): Ditto.
6617 * arm-tdep.c (arm_gdbarch_init): Ditto.
6618 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6620 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6621 * v850-tdep.c (v850_gdbarch_init): Ditto.
6622 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6623 * sh-tdep.c (sh_gdbarch_init): Ditto.
6624 * s390-tdep.c (s390_gdbarch_init): Ditto.
6625 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6626 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6627 * mips-tdep.c (mips_gdbarch_init): Ditto.
6628 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6629 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6630 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6631 * frv-tdep.c (frv_gdbarch_init): Ditto.
6632 * avr-tdep.c (avr_gdbarch_init): Ditto.
6633 * arm-tdep.c (arm_gdbarch_init): Ditto.
6635 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6636 DEPRECATED_FP_REGNUM.
6637 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6638 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6639 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6640 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6641 (sparc32_register_virtual_type): Ditto.
6642 * sh-tdep.c (sh64_frame_chain): Ditto.
6643 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6644 (sh_nofp_frame_init_saved_regs): Ditto.
6645 (sh64_nofp_frame_init_saved_regs): Ditto.
6646 (sh_fp_frame_init_saved_regs): Ditto.
6647 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6648 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6649 * procfs.c (procfs_fetch_registers): Ditto.
6650 (procfs_store_registers): Ditto.
6651 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6652 (store_inferior_registers, fetch_core_registers): Ditto.
6653 (fetch_kcore_registers, clear_regs): Ditto.
6654 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6655 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6656 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6657 * nlm/i386.c (do_status): Ditto.
6658 * mipsv4-nat.c (supply_gregset): Ditto.
6659 * mips-tdep.c: Ditto for comments.
6660 * mips-nat.c (fetch_inferior_registers): Ditto.
6661 (store_inferior_registers, fetch_core_registers): Ditto.
6662 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6663 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6664 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6665 (i386_do_pop_frame, i386_register_type): Ditto.
6666 * hppa-tdep.c (hppa_frame_chain): Ditto.
6667 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6668 (hppa_pop_frame, hppa_read_fp): Ditto.
6669 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6670 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6671 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6672 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6673 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6674 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6675 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6676 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6677 * blockframe.c: Ditto for comments.
6678 * arch-utils.h: Ditto for comments.
6679 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6680 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6681 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6682 * alpha-tdep.h: Ditto for comments.
6683 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6684 (alpha_cannot_store_register): Ditto.
6685 (alpha_push_dummy_frame): Ditto.
6686 * alpha-nat.c (supply_gregset): Ditto.
6688 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6689 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6690 * config/sparc/tm-sparc.h: Update comment.
6692 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6693 deprecated_read_fp instead of TARGET_READ_FP.
6694 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6695 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6696 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6697 deprecated_read_fp instead of read_fp.
6698 * s390-tdep.c (s390_push_arguments): Ditto.
6699 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6700 * frame.h: Ditto in comments.
6701 * frame.c (legacy_get_prev_frame): Ditto.
6702 * dummy-frame.c (dummy_frame_this_id): Ditto.
6703 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6707 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6708 * gdbarch.h, gdbarch.c: Re-generate.
6709 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6710 * vax-tdep.c (_initialize_vax_tdep): Update.
6711 * v850-tdep.c (_initialize_v850_tdep): Update.
6712 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6713 * s390-tdep.c (_initialize_s390_tdep): Update.
6714 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6715 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6716 * mips-tdep.c (_initialize_mips_tdep): Update.
6717 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6718 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6719 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6720 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6721 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6722 * frv-tdep.c (_initialize_frv_tdep): Update.
6723 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6724 (_initialize_cris_tdep): Update.
6725 * arch-utils.c (legacy_print_insn): Update.
6726 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6730 * linespec.c (decode_objc): New function to decode ObjC calls
6731 (decode_line_1): Check for ObjC calls (using decode_objc)
6732 * Makefile (linespec.o): Update dependencies.
6736 * breakpoint.h (struct breakpoint_ops): New.
6737 (struct breakpoint): Add ops member.
6739 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6740 (mention): Use new breakpoint ops member.
6741 (set_raw_breakpoint): Initialize ops field to NULL.
6742 (print_exception_catchpoint, print_one_exception_catchpoint)
6743 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6744 (gnu_v3_exception_catchpoint_ops): New.
6745 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6749 * Makefile.in (COMMON_OBS): Add objc-lang.o
6753 * d10v-tdep.c (print_insn): Delete function.
6754 (display_trace): Use TARGET_PRINT_INSN.
6755 (_initialize_d10v_tdep): Do not set tm_print_insn.
6756 (d10v_gdbarch_init): Set print_insn.
6760 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6761 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6762 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6763 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6764 (nr_dmap_regs, a0_regnum): ... new functions.
6765 (d10v_print_registers_info): Use a0_regnum, use register_size.
6766 (d10v_register_byte): Delete function.
6767 (d10v_register_raw_size): Delete function.
6768 (d10v_register_type): Use a0_regnum.
6769 (d10v_print_registers_info): Use a0_regnum.
6770 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6771 (d10v_gdbarch_init): Do not set register_byte or
6772 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6773 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6775 (trace_command): Use XCALLOC.
6776 (print_insn): Delete reference to tm_print_insn.
6777 (saved_regs_unwinder): Use store_unsigned_integer instead of
6779 * frame.h (FRAME_OBSTACK_CALLOC): Define
6783 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6787 * objc-lang.c: Include "valprint.h"
6788 * Makefile.in (objc-lang.o): Update dependencies.
6792 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6793 architecture dependant compilation and mark as unimplemented
6794 (until they get put in the gdbarch vector).
6798 * cp-support.c (cp_find_first_component): Accept 'operator' in
6803 * infcall.c (call_function_by_hand): Eliminate redundant
6804 indentation. Move "saved_async" and "old_cleanups" to where they
6809 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6810 and "buffer". Move the "name" code to where it is needed.
6814 * infcall.c (call_function_by_hand): Move variables "start_sp",
6815 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6816 code to ON_STACK switch branch.
6820 * infcall.c (call_function_by_hand): Make declaration of "i",
6821 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6826 * infcall.c (call_function_by_hand): Delete variable
6827 "n_method_args". Localize "param_type"'s declaration to the loop
6828 that it is used. Reinstate code assigning to said variable -
6829 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6830 Rationalize code using "param_type".
6834 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6835 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6836 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6837 to DEPRECATED_PUSH_RETURN_ADDRESS.
6841 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6842 on the DWARF2 register number prior to fetching a register.
6846 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6847 Update all the tests using SOFT_FLOAT considering the fact that
6848 this macro was always set to 0.
6849 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6850 considering the fact that this macro was always set to 0.
6851 * hppa-tdep.h (hppa_store_return_value): Likewise.
6852 (hppa_extract_return_value): Likewise.
6856 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6857 the hppa-pro target only.
6861 Ongoing multi-arch conversion effort for HP/UX:
6862 * config/pa/tm-hppa.h: Move all macro that are no longer
6863 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6864 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6868 * config/pa/tm-hppa.h: Obsolete a section that was only used
6873 Ongoing multi-arch conversion for HP/UX.
6874 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6875 if already defined (allows hppa64 to stay non-multiarched for now).
6876 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6880 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6884 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6885 "i386_num_mmx_regs".
6889 * infcall.c: New file.
6890 * infcall.h: New file.
6891 * valarith.c: Include "infcall.h".
6892 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6893 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6894 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6895 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6896 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6897 (SFILES): Add "infcall.c"
6898 (COMMON_OBS): Add "infcall.o".
6899 (infcall.o): Specify dependencies.
6900 * value.h (call_function_by_hand): Delete declaration.
6901 * inferior.h (run_stack_dummy): Delete declaration.
6902 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6903 (run_stack_dummy): Move to "infcall.c", merged into
6904 call_function_by_hand.
6905 * valops.c (call_function_by_hand): Moved to "infcall.c".
6906 (find_function_addr, value_arg_coerce): Ditto.
6907 (unwindonsignal_p, coerce_float_to_double): Ditto.
6908 (_initialize_valops): Move "set/show coerce-float-to-double", and
6909 "set/show unwindonsignal" commands to "infcall.c".
6910 * v850-tdep.c, target.h: Update comments.
6911 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6912 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6913 (sh64_init_extra_frame_info): Update comments.
6914 * mn10300-tdep.c: Update comments.
6915 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6916 * config/sparc/tm-sparc.h: Update comments.
6917 * breakpoint.h: Update comments.
6918 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6919 * arm-tdep.c: Update comment.
6923 * i386-tdep.c (i386_num_register_names): New variable.
6924 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6925 (MM0_REGNUM): Remove redundant parentheses in define.
6926 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6927 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6928 i386_mxcsr_regnum_p): Remove redundant parentheses.
6929 (i386_register_name): Use i386_num_register_names.
6931 * i386-tdep.c (i386_extract_return_value,
6932 i386_store_return_value): Correct check for availability of
6933 floating-point registers.
6935 * i386-tdep.c (i386_frame_num_args): Remove function.
6936 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6938 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6939 mmx_regnum_to_fp_regnum. Adjust all callers.
6941 * i386-tdep.c (i386_get_longjmp_target): Use
6942 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6943 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6948 * core-regset.c: Update comments to reflect reality. Re-order
6950 (fetch_core_registers): Use switch instead of if. Remove
6951 redundant prototype.
6955 * s390-tdep.c (s390_frame_align): New function.
6956 (s390_gdbarch_init): Register it with the gdbarch object.
6960 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6966 * gdb_gcore.sh: New script to create a core dump of a process.
6970 * values.c (value_being_returned): Don't fetch the return
6971 value if the return type is void.
6975 * thread-db.c: Reindented.
6979 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6980 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7009 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7010 the size of ``long double'' to 16, instead of 8.
7014 * i386-linux-nat.c: Add some whitespace to make things more
7016 (fetch_register, store_register, fetch_inferior_registers,
7017 store_inferior_registers): Get rid of assignment in if-statement.
7018 (store_register): Fix typo in error message.
7022 * utils.c (xmmalloc): Always allocate something, matches
7023 libiberty/xmalloc's semantics.
7024 (xmrealloc, xmcalloc): Ditto.
7028 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7030 (get_frame_type): Initialize unwind and type when needed.
7031 (get_frame_id, frame_register_unwind): Ditto.
7035 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7037 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7038 * sparcl-stub.c: Obsolete file.
7039 * config/sparc/tm-sparclet.h: Obsolete file.
7040 * sparclet-stub.c: Obsolete file.
7041 * sparclet-rom.c: Obsolete file.
7042 * sparcl-tdep.c: Obsolete file.
7043 * config/sparc/tm-sparclite.h: Obsolete file.
7044 * config/sparc/sparclite.mt: Obsolete file.
7045 * config/sparc/sparclet.mt: Obsolete file.
7046 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7047 sparc86x-*-* obsolete.
7051 * Makefile.in (SFILES): Add cp-namespace.c.
7052 (COMMON_OBS): Add cp-namespace.o.
7053 (block.o): Depend on gdb_obstack_h and cp_support_h.
7054 (buildsym.o): Depend on cp_support_h.
7055 (cp-namespace.o): New.
7056 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7057 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7058 (dwarf2read.o): Depend on cp_support_h.
7059 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7060 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7061 processing_current_namespace.
7062 (read_namespace): Update processing_current_namespace; check for
7063 anonymous namespaces.
7064 (dwarf2_name): New function.
7065 (dwarf2_extension): Ditto.
7066 * cp-support.h: Update copyright, contributors.
7067 Add inclusion guards.
7068 Add opaque declaration for structs obstack, block, symbol.
7069 (struct using_direct): New struct.
7070 Add declarations for cp_find_first_component,
7071 cp_entire_prefix_len, processing_has_namespace_info,
7072 processing_current_namespace, cp_is_anonymous,
7073 cp_add_using_directive, cp_initialize_namespace,
7074 cp_finalize_namespace, cp_set_block_scope,
7075 cp_scan_for_anonymous_namespaces.
7076 * cp-namespace.c: New file.
7077 * cp-support.c: Update copyright.
7078 Include ctype.h, gdb_assert.h, gdbcmd.h.
7079 New variable maint_cplus_cmd_list.
7080 (cp_find_first_component): New function.
7081 (cp_entire_prefix_len, maint_cplus_command)
7082 (first_component_command, _initialize_cp_support): Ditto.
7083 * buildsym.c: Include cp-support.h.
7084 New variable using_list.
7085 (add_symbol_to_list): Check for anonymous namespaces.
7086 (finish_block): Set block's scope.
7087 (start_symtab): Initialize C++ namespace support.
7088 (end_symtab): Finalize C++ namespace support.
7089 * block.h: Add opaque declarations for structs
7090 block_namespace_info, using_direct, and obstack.
7091 Add declarations for block_set_scope and block_set_using.
7092 (struct block): Add 'language_specific' member.
7093 (BLOCK_NAMESPACE): New macro.
7094 * block.c: Include gdb_obstack.h and cp-support.h.
7095 (struct block_namespace_info): New struct.
7096 (block_set_scope): New function.
7097 (block_set_using, block_initialize_namespace): Ditto.
7101 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7102 (locate_base): Return early if there aren't any link map offsets.
7103 (svr4_solib_create_inferior_hook): Warn if shared library support
7108 * symtab.c (symbol_set_names): Add prefix when storing Java names
7109 in hash table. Fix for PR java/1039.
7113 * symtab.c (symbol_set_names): Rename 'name' arg to
7114 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7115 * symtab.h: Change 'name' argument in declaration of
7116 symbol_set_names to 'linkage_name'.
7117 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7121 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7122 return the fully sign-extended register value.
7123 (get_frame_pointer): Ditto.
7124 (mips_pop_frame): Initialize "proc_desc" after checking for a
7129 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7130 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7131 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7132 (mips_push_register): Delete function.
7133 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7138 * symmisc.c: #include "gdb_regex.h".
7139 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7141 * maint.c (maintenance_list_command): New function.
7142 (_initialize_maint_cmds): Register the above as commands.
7143 * symtab.h (maintenance_list_symtabs,
7144 maintenance_list_psymtabs): New declarations.
7145 * cli/cli-cmds.c (maintenancelistlist): New variable.
7146 (init_cmd_lists): Initialize it.
7147 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7148 * gdbcmd.h (maintenancelistlist): New declaration.
7149 * Makefile.in (symmisc.o): Update dependencies.
7153 * s390-nat.c: Include asm/types.h for addr_t.
7157 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7158 actually incoming type.
7162 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7163 get_next_frame and get_frame_saved_regs.
7167 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7168 of gdbarch_num_regs.
7172 * frame.h: Mention what replaced what in "struct frame_info".
7173 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7174 deprecated_update_frame_base_hack and
7175 deprecated_update_frame_pc_hack.
7176 * hppa-tdep.c: Ditto.
7180 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7181 to read_reg and update its comment. Remove regnum member.
7182 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7183 Don't call read_reg when setting in_reg. Call read_reg to get
7184 the frame base if it's in a register. Return the register number
7185 on the stack instead of in the context. Remove extra arguments
7187 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7188 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7189 the register number on the expression stack.
7190 (needs_frame_read_reg): Remove extra arguments.
7194 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7196 (execute_stack_op): All callers updated.
7197 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7198 * dwarf2loc.c (find_location_expression): New function.
7199 (dwarf_expr_frame_base): Call it.
7200 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7201 (dwarf2_tracepoint_var_ref): New function, broken out from
7202 locexpr_tracepoint_var_ref.
7203 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7205 (loclist_read_variable, loclist_read_needs_frame): New functions.
7206 (loclist_describe_location, loclist_tracepoint_var_ref): New
7208 (dwarf2_loclist_funcs): New struct location_funcs.
7209 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7210 (struct dwarf2_locexpr_baton): Add comments.
7211 (dwarf2_loclist_funcs): New extern.
7212 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7213 base_address and base_known.
7214 (dwarf_loc_buffer): New variable.
7215 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7216 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7217 (dwarf2_has_info): Initialize dwarf_loc_offset.
7218 (dwarf2_build_psymtabs): Read in .debug_loc.
7219 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7221 (psymtab_to_symtab_1): Likewise. Move base address calculation
7223 (dwarf2_get_pc_bounds): ... here. Use the base address from
7225 (dwarf2_symbol_mark_computed): Handle location lists.
7229 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7230 if the linkage name demangled successfully.
7234 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7235 disassmbly_flavour): Removed.
7237 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7241 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7245 * frame.h (struct frame_info): Move definition from here ...
7246 * frame.c (struct frame_info): ... to here.
7250 * gdbthread.h (save_infrun_state): Delete parameter
7252 (struct thread_info): Delete field "prev_func_start".
7253 (load_infrun_state): Ditto.
7254 * thread.c (load_infrun_state, save_infrun_state): Update.
7255 * infrun.c (prev_func_start): Delete variable.
7256 (context_switch, init_wait_for_inferior): Update.
7257 (stop_stepping, keep_going): Update.
7261 * gdbarch.sh: Add missing opaque declarations.
7262 * gdbarch.h: Regnerate.
7263 * symtab.h: Add missing opaque declarations.
7264 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7265 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7266 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7267 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7268 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7269 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7270 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7271 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7272 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7273 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7274 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7275 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7276 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7280 * frame.c (get_frame_id): Return this frame's "id".
7281 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7283 (legacy_saved_regs_this_id): Replace function body with
7285 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7286 FRAME_OBSTACK_ZALLOC.
7287 (create_new_frame): Mark the frame ID as valid.
7291 * Makefile.in (libbfd_h): Added missing setting.
7292 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7293 according to the selected ABI.
7297 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7301 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7302 SAVED_PC_AFTER_CALL.
7303 * gdbarch.h, gdbarch.c: Regenerate.
7304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7305 * x86-64-tdep.c (x86_64_init_abi): Update.
7306 * vax-tdep.c (vax_gdbarch_init): Update.
7307 * v850-tdep.c (v850_gdbarch_init): Update.
7308 * sparc-tdep.c (sparc_gdbarch_init): Update.
7309 * sh-tdep.c (sh_gdbarch_init): Update.
7310 * s390-tdep.c (s390_gdbarch_init): Update.
7311 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7312 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7313 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7314 * mips-tdep.c (mips_gdbarch_init): Update.
7315 * mcore-tdep.c (mcore_gdbarch_init): Update.
7316 * m68k-tdep.c (m68k_gdbarch_init): Update.
7317 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7318 * ia64-tdep.c (ia64_gdbarch_init): Update.
7319 (ia64_saved_pc_after_call): Update declaration.
7320 * i386ly-tdep.c (i386lynx_init_abi): Update.
7321 * i386-tdep.c (i386_gdbarch_init): Update.
7322 * hppa-tdep.c (hppa_gdbarch_init): Update.
7323 * h8300-tdep.c (h8300_gdbarch_init): Update.
7324 * frv-tdep.c (frv_gdbarch_init): Update.
7325 * cris-tdep.c (cris_gdbarch_init): Update.
7326 * avr-tdep.c (avr_gdbarch_init): Update.
7327 * arm-tdep.c (arm_gdbarch_init): Update.
7328 * alpha-tdep.c (alpha_gdbarch_init): Update.
7329 * ns32knbsd-nat.c (frame_num_args): Update.
7330 * ns32k-tdep.c (umax_frame_num_args): Update.
7331 * mips-tdep.c (mips_init_frame_pc_first): Update.
7332 * infrun.c (step_over_function): Update.
7333 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7334 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7335 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7336 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7337 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7338 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7339 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7340 * arch-utils.c (init_frame_pc_default): Update.
7341 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7342 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7347 * i387-tdep.c: Update copyright.
7348 (i387_to_double): Delete function.
7349 (double_to_i387): Delete function.
7353 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7354 frame's function's address. Simplify.
7355 (d10v_frame_unwind_cache): Check that the frame's function is
7360 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7361 call to set_gdbarch_deprecated_push_arguments.
7365 * frame.c (fprint_frame_id): New function.
7366 (fprint_frame_type, fprint_frame): New function.
7367 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7368 (create_sentinel_frame, get_frame_id): Ditto.
7369 (frame_id_p, frame_id_eq): Ditto.
7370 (frame_id_inner, create_new_frame): Ditto.
7371 (legacy_get_prev_frame, get_prev_frame): Ditto.
7372 (deprecated_update_frame_pc_hack): Ditto.
7373 (frame_register_unwind): Ditto.
7374 (deprecated_update_frame_base_hack): Ditto.
7378 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7379 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7380 frame_chain function.
7381 * Makefile.in: Add dependencies due to above change.
7385 * blockframe.c (legacy_frame_chain_valid): Move call to
7386 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7391 * frame.h (struct frame_id): Replace "pc" and "base" with
7392 "stack_addr" and "code_addr". Update comments.
7393 (frame_id_build): Update parameter names and comment.
7394 (struct frame_info): Replace "id_p" and "id" with "this_id".
7395 * dummy-frame.c (dummy_frame_this_id): Update.
7396 * breakpoint.c (print_one_breakpoint): Update.
7397 * frame.c (get_frame_id): Update.
7398 (get_frame_base, frame_id_build): Update.
7399 (create_sentinel_frame, legacy_get_prev_frame): Update.
7400 (deprecated_update_frame_base_hack): Update.
7401 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7402 (frame_id_inner): Ditto.
7406 * defs.h (gdb_print_host_address): Make "addr" parameter a
7408 * utils.c (gdb_print_host_address): Update.
7412 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7413 register number for R0 is 0.
7417 * frame.h (struct gdbarch): Add opaque structure definition
7418 to avoid a compilation warning on LynxOS 4.0.
7422 * frame.h (struct frame_info): Delete field "pc". Replace
7423 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7425 * frame.c (frame_pc_unwind): Update.
7426 (create_sentinel_frame): Do not set "pc".
7427 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7428 (get_frame_pc): Call frame_pc_unwind.
7429 (deprecated_update_frame_pc_hack): Update.
7430 (create_new_frame): Use "pc" not "->pc".
7434 * frame.c (get_frame_id): Eliminate code updating "frame".
7435 (legacy_get_prev_frame): Ditto.
7436 (get_frame_base): Return id.base directly.
7437 (deprecated_update_frame_base_hack): Update "id.base".
7438 * frame.h (struct frame_info): Delete field "frame".
7442 * NEWS: Mention that the "Sequent family" is obsolete.
7443 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7444 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7445 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7446 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7447 * config/i386/tm-ptx4.h: Obsolete file.
7448 * config/i386/tm-ptx.h: Obsolete file.
7449 * symm-tdep.c: Obsolete file.
7450 * config/i386/symmetry.mt: Obsolete file.
7451 * config/i386/tm-symmetry.h: Obsolete file.
7452 * symm-nat.c: Obsolete file.
7453 * config/i386/nm-symmetry.h: Obsolete file.
7454 * config/i386/xm-symmetry.h: Obsolete file.
7455 * config/i386/symmetry.mh: Obsolete file.
7456 * config/i386/nm-ptx4.h: Obsolete file.
7457 * config/i386/ptx4.mh: Obsolete file.
7458 * config/i386/ptx.mt: Obsolete file.
7459 * config/i386/ptx.mh: Obsolete file.
7460 * config/i386/xm-ptx4.h: Obsolete file.
7461 * config/i386/xm-ptx.h: Obsolete file.
7465 Obsolete mips*-*-mach3*.
7466 * NEWS: Mention that mips*-*-mach3* is obsolete.
7467 * m3-nat.c: Obsolete file.
7468 * config/nm-m3.h: Obsolete file.
7469 * config/mips/tm-mipsm3.h: Obsolete file.
7470 * config/mips/mipsm3.mt: Obsolete file.
7471 * config/mips/mipsm3.mh: Obsolete file.
7472 * config/mips/xm-mipsm3.h: Obsolete file.
7473 * mipsm3-nat.c: Obsolete file.
7474 * configure.host: Obsolete mips-dec-mach3*.
7475 * configure.tgt: Obsolete mips*-*-mach3*.
7479 * doublest.h: Update copyright.
7480 (deprecated_store_floating, deprecated_extract_floating): Rename
7481 store_floating and extract_floating. Update comments.
7482 * doublest.c: Update copyright.
7483 (extract_floating_by_length): Replace extract_floating.
7484 (store_floating_by_length): Replace store_floating.
7485 (deprecated_extract_floating): New function.
7486 (deprecated_store_floating): New function.
7487 (extract_typed_floating): Call extract_floating_by_length.
7488 (store_typed_floating): Call store_floating_by_length.
7489 * x86-64-tdep.c (x86_64_store_return_value): Update.
7490 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7491 (sh64_extract_return_value): Update.
7492 (sh_sh4_register_convert_to_virtual): Update.
7493 (sh_sh64_register_convert_to_virtual): Update.
7494 (sh_sh4_register_convert_to_raw): Update.
7495 (sh_sh64_register_convert_to_raw): Update.
7496 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7497 (rs6000_register_convert_to_raw): Update.
7498 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7499 (ia64_register_convert_to_raw): Update.
7500 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7501 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7502 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7503 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7504 (alpha_register_convert_to_raw): Update.
7508 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7509 * gdbarch.h, gdbarch.c: Re-generate.
7510 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7511 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7512 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7513 conditionally, use frame_pc_unwind as an alternative. Add
7515 * arch-utils.c (init_frame_pc_default): Only call
7516 SAVED_PC_AFTER_CALL when available.
7520 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7521 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7522 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7523 (start_remote): Ditto.
7524 (handle_inferior_event): Ditto.
7525 (save_inferior_status): Ditto.
7526 (restore_inferior_status): Ditto.
7527 * infcmd.c (attach_command): Ditto.
7528 * fork-child.c (startup_inferior): Ditto.
7529 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7530 * alpha-tdep.c (heuristic_proc_start): Ditto.
7531 * mips-tdep.c (heuristic_proc_start): Ditto.
7532 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7533 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7534 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7535 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7536 * remote-vx.c (vx_create_inferior): Ditto.
7540 * infrun.c (stop_soon_quietly): Make it an enum, to better
7541 override the default behavior of handle_inferior_event.
7542 (clear_proceed_status): Update uses of stop_soon_quietly to
7543 reflect that it is now an enum.
7544 (start_remote): Ditto.
7545 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7546 is set to handle the new GNU/Linux kernel behavior for
7547 attach/sigstop. Update uses of stop_soon_quietly.
7548 * inferior.h (enum stop_kind): New enum.
7549 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7550 Reset normal handle_inferior_event behavior, afterwards.
7551 * fork-child.c (startup_inferior): Update.
7552 * alpha-tdep.c (heuristic_proc_start): Update.
7553 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7554 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7555 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7556 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7557 * remote-vx.c (vx_create_inferior): Update.
7558 * mips-tdep.c (heuristic_proc_start): Update.
7562 * disasm.c (dump_insns): Move variables inside loop, or they will
7563 be freed more than once, causing wild memory corruptions.
7564 (gdb_disassembly): Look for the substring "-thread",
7565 instead of "-threads" in the target name, to make sure to find
7566 the 'multi-thread' target. Also, make sure we do the right thing
7567 with the "core" target.
7571 * mips-tdep.c (mips_print_fp_register): New function, created from
7572 do_fp_register_row(). Registers are now (also) printed as hex.
7573 Only one register is printed per row.
7574 (mips_print_register, do_fp_register_row): Print floating point
7575 registers with mips_print_fp_register().
7579 * valprint.h (inspect_it): Add extern declaration.
7580 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7581 (selectors_info, classes_info): Ditto.
7582 (find_objc_msgcall): Fix indentation.
7583 (objc_printstr): Delete extern declarations.
7585 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7589 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7591 * frame.c (legacy_saved_regs_this_id): Update.
7592 (legacy_get_prev_frame): Update.
7593 * xstormy16-tdep.c: Update comment.
7594 * sparc-tdep.c (sparc_frame_chain): Update comment.
7595 * blockframe.c (legacy_frame_chain_valid): Update.
7599 * valprint.c (val_print_type_code_int): Delete #ifdef
7600 PRINT_TYPELESS_INTEGER code.
7602 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7603 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7604 multi-arch definition.
7605 * gdbarch.h: Re-generate.
7609 Eliminate FRAME_FIND_SAVED_REGS.
7610 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7611 Change FSR parameter to a pointer.
7612 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7613 Assume FSR parameter is a pointer.
7614 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7616 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7617 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7618 saved_regs a pointer.
7619 (hppa_frame_saved_pc): Ditto.
7620 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7621 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7623 (restore_pc_queue): Make fsr a pointer.
7624 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7625 (hppa_frame_chain): Make saved_regs a pointer, call
7626 hppa_frame_init_saved_regs.
7627 * sparc-tdep.c: Include "gdb_assert.h".
7628 (sparc_frame_find_saved_regs): Replace internal_error with
7630 * remote-vxsparc.c (vx_read_register): Delete reference to
7631 FRAME_FIND_SAVED_REGS.
7632 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7633 * gdbarch.h: Regenerate.
7634 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7635 (deprecated_get_frame_saved_regs): Delete declaration.
7636 (struct frame_saved_regs): Delete definition.
7637 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7638 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7639 (hppa_frame_find_saved_regs): Delete declaration.
7640 (FRAME_FIND_SAVED_REGS): Delete macro.
7641 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7642 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7643 FRAME_FIND_SAVED_REGS in comment.
7647 * frame.c (frame_func_unwind, get_frame_func): New functions.
7648 * frame.h (get_frame_func, frame_func_unwind): Declare.
7649 (struct frame_info): Add field "prev_func" for caching the
7650 previous frame's function address.
7651 * arm-tdep.c (arm_frameless_function_invocation): Combine
7652 get_pc_function_start and get_frame_pc into get_frame_func.
7653 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7654 (sh64_nofp_frame_init_saved_regs): Ditto.
7655 * s390-tdep.c (s390_function_start): Ditto.
7656 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7657 (rs6000_frameless_function_invocation): Ditto.
7658 (rs6000_frame_saved_pc): Ditto.
7659 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7660 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7661 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7662 (i386_frame_init_saved_regs): Ditto.
7663 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7664 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7665 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7666 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7667 * blockframe.c (frameless_look_for_prologue): Ditto.
7671 * frame.c (legacy_get_prev_frame): Link prev to next at the
7672 function start. Update comments.
7676 * frame.c (get_frame_id): Update comment.
7677 (legacy_get_prev_frame): Update comment.
7678 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7679 * gdbarch.h: Regenerate.
7680 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7681 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7685 * stack.c (print_frame_info): Use get_frame_pc.
7689 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7690 the frame's type from the unwinder.
7691 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7692 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7693 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7694 (get_frame_base_address): Use get_frame_type.
7695 (get_frame_locals_address, get_frame_args_address): Ditto.
7696 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7697 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7698 (struct frame_info): Add comment explaining why the frame contains
7700 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7701 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7702 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7704 * frame-unwind.h: Include "frame.h".
7705 (struct frame_unwind): Add "type" field.
7706 * Makefile.in (frame_unwind_h): Add $(frame_h).
7710 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7711 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7712 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7714 (d10v_unwind_dummy_id): Use frame_id_build.
7715 * frame.c (find_frame_sal): Use get_frame_pc.
7716 (create_new_frame): Use deprecated_update_frame_pc_hack and
7717 deprecated_update_frame_base_hack.
7718 (create_sentinel_frame): Add comment about ->pc going away.
7719 (get_prev_frame): Add comment about ->pc going away.
7720 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7721 frame_id_build, deprecated_update_frame_pc_hack and
7722 deprecated_update_frame_base_hack.
7723 (select_frame): Use get_frame_pc.
7724 (legacy_saved_regs_this_id): Use frame_id_build.
7728 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7729 signed integer case.
7730 (classify_argument): Handle enumerations and references.
7734 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7739 * gdb/objc-lang.c (selectors_info): Replace calls to
7740 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7741 SYMBOL_NATURAL_NAME.
7742 (classes_info, find_methods): Likewise.
7746 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7747 ``mach'' to the value determined by bfd_default_set_arch_mach().
7751 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7752 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7753 (mi-cmd-file.o): Update dependencies.
7757 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7758 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7762 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7763 * language.h (struct language_defn): Add la_demangle.
7764 (language_demangle): Declare.
7765 * language.c (language_demangle): New function.
7766 (unk_lang_demangle): Likewise.
7767 (unknown_language_defn, auto_language_defn, local_language_defn):
7768 Add ukn_lang_demangle.
7769 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7770 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7771 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7772 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7773 * jv-lang.c (java_demangle): New function
7774 (java_language_defn): Use it for la_demangle element.
7775 * objc-lang.c (objc_demangle): Add options argument
7776 (objc_language_defn): Use objc_demangle for la_demangle element.
7777 * maint.c (maintenance_demangle): Replace switch with
7778 call to language_demangle.
7779 * utils.c (fprintf_symbol_filtered): Likewise.
7783 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7784 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7785 PRINT_TYPELESS_INTEGER.
7786 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7787 PUSH_RETURN_ADDRESS.
7791 * Makefile.in (d10v-tdep.o): Update dependencies.
7792 * d10v-tdep.c: Include "frame-base.h".
7793 (d10v_frame_unwind): Make constant.
7794 (d10v_frame_base_address): New function.
7795 (d10v_frame_base): New variable.
7796 (d10v_gdbarch_init): Set frame_base default.
7797 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7799 (d10v_frame_unwind_cache): Set and use "prev_sp".
7800 (d10v_frame_this_id): Use the previous frame's inner most stack
7801 address and this frame's func address for the frame ID. Use
7802 frame_id_build. Don't analyze beyond the current instruction.
7806 * frame.h (get_frame_locals_address, get_frame_args_address):
7807 Refer to the base address, instead of the address of the first
7812 Add frame debug info addresses:
7813 * frame-base.c: New file.
7814 * frame-base.h: New file.
7815 * frame.h (struct frame_base): Add opaque declaration.
7816 (get_frame_base): Update comment.
7817 (get_frame_base_address): Declare.
7818 (get_frame_locals_address): Declare.
7819 (get_frame_args_address): Declare.
7820 (struct frame_info): Add "base" and "base_cache". Update
7821 comments on the unwinder.
7822 * frame.c: Include "frame-base.h".
7823 (get_frame_locals_address): New function.
7824 (get_frame_base_address): New function.
7825 (get_frame_args_address): New function.
7826 * findvar.c (read_var_value): Use get_frame_locals_address and
7827 get_frame_args_address.
7828 * stack.c (frame_info): Use get_frame_locals_address and
7829 get_frame_args_address.
7830 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7831 moved to "frame-base.c".
7832 * printcmd.c (print_frame_nameless_args): Ditto.
7833 * symtab.h (address_class): Update comments.
7834 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7835 get_frame_base_address.
7836 * dwarf2expr.c (execute_stack_op): Ditto.
7837 * Makefile.in (frame_base_h): Define.
7838 (frame.o): Update dependencies.
7839 (frame-base.o): Add dependencies.
7840 (SFILES): Add frame-base.c.
7841 (COMMON_OBS): Add frame-base.o.
7845 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7846 CALL_DUMMY_LENGTH): Ditto.
7847 * gdbarch.c: Re-generate.
7848 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7849 (CALL_DUMMY_LENGTH): Delete macro.
7850 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7851 * arm-tdep.c (arm_gdbarch_init): Ditto.
7852 * avr-tdep.c (avr_gdbarch_init): Ditto.
7853 * cris-tdep.c (cris_gdbarch_init): Ditto.
7854 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7855 * frv-tdep.c (frv_gdbarch_init): Ditto.
7856 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7857 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7858 * i386-tdep.c (i386_gdbarch_init): Ditto.
7859 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7860 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7861 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7862 * mips-tdep.c (mips_gdbarch_init): Ditto.
7863 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7864 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7865 * s390-tdep.c (s390_gdbarch_init): Ditto.
7866 * sh-tdep.c (sh_gdbarch_init): Ditto.
7867 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7868 * v850-tdep.c (v850_gdbarch_init): Ditto.
7869 * vax-tdep.c (vax_gdbarch_init): Ditto.
7870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7874 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7878 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7879 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7880 * gdbarch.h, gdbarch.c: Re-generate.
7881 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7882 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7883 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7884 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7885 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7886 * infcmd.c (run_stack_dummy): Simplify assuming
7887 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7888 * infrun.c (handle_inferior_event): Ditto.
7889 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7890 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7891 * arm-tdep.c (arm_gdbarch_init): Ditto.
7892 * avr-tdep.c (avr_gdbarch_init): Ditto.
7893 * cris-tdep.c (cris_gdbarch_init): Ditto.
7894 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7895 * frv-tdep.c (frv_gdbarch_init): Ditto.
7896 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7897 * i386-tdep.c (i386_gdbarch_init): Ditto.
7898 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7899 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7900 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7901 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7902 * mips-tdep.c (mips_gdbarch_init): Ditto.
7903 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7904 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7905 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7906 * s390-tdep.c (s390_gdbarch_init): Ditto.
7907 * sh-tdep.c (sh_gdbarch_init): Ditto.
7908 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7909 * v850-tdep.c (v850_gdbarch_init): Ditto.
7910 * vax-tdep.c (vax_gdbarch_init): Ditto.
7911 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7915 * symfile.c (symfile_relocate_debug_section): Update call to
7916 bfd_simple_get_relocated_section_contents.
7920 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7921 * gdbarch.h, gdbarch.c: Regenerate.
7922 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7923 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7925 * frame.h (generic_fix_call_dummy): Delete declaration.
7926 * dummy-frame.h: Update comment.
7927 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7928 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7930 * sh-tdep.c (sh_gdbarch_init): Ditto.
7931 * s390-tdep.c (s390_gdbarch_init): Ditto.
7932 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7933 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7935 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7936 * i386-tdep.c (i386_gdbarch_init): Ditto.
7937 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7938 * frv-tdep.c (frv_gdbarch_init): Ditto.
7939 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7940 * cris-tdep.c (cris_gdbarch_init): Ditto.
7941 * avr-tdep.c (avr_gdbarch_init): Ditto.
7942 * arm-tdep.c (arm_gdbarch_init): Ditto.
7946 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7947 (INIT_FRAME_AP): Likewise.
7948 (EXTRA_FRAME_INFO): Likewise.
7952 * gdbarch.sh: Include "symfile.h".
7953 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7954 * gdbarch.h, gdbarch.c: Re-generate.
7955 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7956 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7957 call_dummy_address, the default is at entry_point_address.
7958 * v850-tdep.c (v850_gdbarch_init): Ditto.
7959 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7960 * sh-tdep.c (sh_gdbarch_init): Ditto.
7961 * s390-tdep.c (s390_gdbarch_init): Ditto.
7962 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7963 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7964 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7965 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7966 * i386-tdep.c (i386_gdbarch_init): Ditto.
7967 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7968 * frv-tdep.c (frv_gdbarch_init): Ditto.
7969 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7970 * cris-tdep.c (cris_gdbarch_init): Ditto.
7971 * arm-tdep.c (arm_gdbarch_init): Ditto.
7975 * gdbarch.sh (CALL_DUMMY_P): Delete.
7976 * gdbarch.h, gdbarch.c: Re-generate.
7977 * inferior.h (CALL_DUMMY_P): Delete macro.
7978 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7979 * vax-tdep.c (vax_gdbarch_init): Update.
7980 * v850-tdep.c (v850_gdbarch_init): Update.
7981 * sparc-tdep.c (sparc_gdbarch_init): Update.
7982 * sh-tdep.c (sh_gdbarch_init): Update.
7983 * s390-tdep.c (s390_gdbarch_init): Update.
7984 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7985 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7986 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7987 * mips-tdep.c (mips_gdbarch_init): Update.
7988 * mcore-tdep.c (mcore_gdbarch_init): Update.
7989 * m68k-tdep.c (m68k_gdbarch_init): Update.
7990 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7991 * ia64-tdep.c (ia64_gdbarch_init): Update.
7992 * i386-tdep.c (i386_gdbarch_init): Update.
7993 * h8300-tdep.c (h8300_gdbarch_init): Update.
7994 * frv-tdep.c (frv_gdbarch_init): Update.
7995 * d10v-tdep.c (d10v_gdbarch_init): Update.
7996 * cris-tdep.c (cris_gdbarch_init): Update.
7997 * breakpoint.c (deprecated_frame_in_dummy): Update.
7998 * avr-tdep.c (avr_gdbarch_init): Update.
7999 * alpha-tdep.c (alpha_gdbarch_init): Update.
8000 * arm-tdep.c (arm_gdbarch_init): Update.
8001 * dummy-frame.c (dummy_frame_this_id): Update comments.
8002 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8003 * frame.c (legacy_get_prev_frame): Ditto.
8004 * valops.c (call_function_by_hand): Delete function.
8005 (hand_function_call): Rename to call_function_by_hand
8010 * value.h (struct value): Update comment.
8014 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8016 (d10v_gdbarch_init): Do not set fp_regnum.
8018 * frame.c (get_frame_base): Force ID initialization.
8019 (get_prev_frame): Move computation of the frame ID from here ...
8020 (get_frame_id): ... to here.
8021 (legacy_get_prev_frame): Mark the frame ID as valid.
8022 * frame.h (struct frame_info): Add field "id_p".
8026 * i386-tdep.c (i386_store_struct_return): Removed.
8027 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8031 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8032 * gdbarch.h, gdbarch.c: Regenerate.
8033 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8035 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8036 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8037 * i386-tdep.c (i386_gdbarch_init): Ditto.
8038 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8039 * cris-tdep.c (cris_gdbarch_init): Ditto.
8040 * vax-tdep.c (vax_gdbarch_init): Ditto.
8041 * s390-tdep.c (s390_gdbarch_init): Ditto.
8042 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8043 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8044 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8045 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8046 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8047 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8048 * sparc-tdep.c (sparc_gdbarch_init): Update.
8049 * sh-tdep.c (sh_gdbarch_init): Update.
8050 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8051 * mips-tdep.c (mips_gdbarch_init): Update.
8052 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8053 * ia64-tdep.c (ia64_gdbarch_init): Update.
8054 * frv-tdep.c (frv_gdbarch_init): Update.
8055 * avr-tdep.c (avr_gdbarch_init): Update.
8056 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8057 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8058 instead of when push_dummy_call is not available.
8062 * infttrace.c: Include "gdbthread.h".
8063 (parent_attach_all): Fix function signature.
8064 (call_ptrace): Update call.
8065 * Makefile.in (infttrace.o): Update dependencies.
8069 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8070 PUSH_RETURN_ADDRESS.
8071 * gdbarch.h, gdbarch.c: Regenerate.
8072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8073 * x86-64-tdep.c (x86_64_init_abi): Update.
8074 * v850-tdep.c (v850_gdbarch_init): Update.
8075 * sparc-tdep.c (sparc_gdbarch_init): Update.
8076 * sh-tdep.c (sh_gdbarch_init): Update.
8077 * s390-tdep.c (s390_gdbarch_init): Update.
8078 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8079 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8080 * mips-tdep.c (mips_gdbarch_init): Update.
8081 * mcore-tdep.c (mcore_gdbarch_init): Update.
8082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8083 * ia64-tdep.c (ia64_gdbarch_init): Update.
8084 * i386-tdep.c (i386_gdbarch_init): Update.
8085 * h8300-tdep.c (h8300_gdbarch_init): Update.
8086 * frv-tdep.c (frv_gdbarch_init): Update.
8087 * cris-tdep.c (cris_gdbarch_init): Update.
8088 * avr-tdep.c (avr_gdbarch_init): Update.
8089 * arm-tdep.c (arm_gdbarch_init): Update.
8090 * valops.c (hand_function_call): Update.
8094 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8095 sizeof_call_dummy_words.
8096 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8098 * gdbarch.h: Regenerate.
8102 * infttrace.h: New file.
8103 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8104 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8105 (hpread_read_doc_function_type): Detect an initialized type1.
8106 (hpread_quick_traverse): Initialize mod_name_string.
8107 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8108 (som_solib_get_solib_by_pc): Declare.
8109 (so_lib_thread_start_addr): Declare.
8110 (no_shared_libraries): Declare.
8111 * somread.c (init_import_symbols): Make static. Add forward
8113 * config/pa/nm-hppah.h: Include "infttrace.h" for
8115 (hppa_insert_hw_watchpoint): Declare.
8116 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8117 * hppah-nat.c: Include "gdb_string.h".
8118 (parent_attach_all): Delete extern declaration, moved to
8120 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8122 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8123 * Makefile.in (infttrace_h): Define.
8124 (hpread.o): Update dependencies.
8125 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8126 * hppa-hpux-tdep.c: Include "gdb_string.h".
8127 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8128 * infrun.c (handle_inferior_event): Always initialize
8129 stepped_after_stopped_by_watchpoint. Add default and remove
8130 fallthrough in switch statement.
8131 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8133 (hppa_remove_hw_watchpoint): Ditto.
8137 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8142 * arm-tdep.c (arm_push_arguments): Delete.
8143 (struct stack_item): New type.
8144 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8145 (arm_store_struct_return): Delte.
8146 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8147 arm_push_arguments or arm_store_struct_return.
8151 * Makefile.in (d10v-tdep.o): Update dependencies.
8152 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8153 * d10v-tdep.c: Include "remote.h".
8154 (target_resume_hook): Delete extern declaration.
8155 (target_wait_loop_hook): Ditto.
8156 (tdisassemble_command): Eliminate assignment in "if" conditional.
8157 (d10v_ts2_register_sim_regno): Eliminate call to
8158 legacy_register_sim_regno.
8159 (d10v_ts3_register_sim_regno): Ditto.
8163 * thread.c: Reindented.
8165 * linux-proc.c: Ditto.
8169 * MAINTAINERS (write after approval): Add myself.
8173 * objc-exp.y: Add missing semi-colons.
8177 * regcache.c (write_sp): Delete function and references.
8178 * inferior.h (write_sp): Delete declaration.
8179 * valops.c (hand_function_call): Replace write_sp with
8181 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8182 (sparc_pop_frame): Ditto.
8186 * NEWS: Mention removal of support for hppa*-*-bsd* and
8187 hppa*-*-osf* natives, and hppa*-*-pro* target.
8188 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8189 * config/pa/xm-pa.h: Obsolete file.
8190 * config/pa/xm-hppab.h: Obsolete file.
8191 * config/pa/nm-hppab.h: Obsolete file.
8192 * config/pa/tm-hppab.h: Obsolete file.
8193 * config/pa/tm-hppao.h: Obsolete file.
8194 * config/pa/nm-hppao.h: Obsolete file.
8195 * config/pa/tm-pro.h: Obsolete file.
8196 * config/pa/hppaosf.mt: Obsolete file.
8197 * config/pa/hppaosf.mh: Obsolete file.
8198 * config/pa/hppapro.mt: Obsolete file.
8199 * config/pa/hppabsd.mt: Obsolete file.
8200 * config/pa/hppabsd.mh: Obsolete file.
8201 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8202 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8207 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8208 push_arguments. Don't set push_return_address or write_sp.
8209 (d10v_push_dummy_call): Replace d10v_push_arguments.
8210 (d10v_push_return_address, d10v_write_sp): Delete function,
8211 handled by push_dummy_call.
8215 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8216 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8217 regcache and dummy_addr parameters.
8218 * gdbarch.h, gdbarch.c: Re-generate.
8219 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8220 available; assume it will handle stack alignment and return
8221 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8222 legacy_push_arguments.
8223 (legacy_push_arguments): Rename default_push_arguments.
8224 * value.h (legacy_push_arguments): Rename default_push_arguments.
8225 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8226 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8227 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8228 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8229 * config/i386/tm-symmetry.h: Update.
8230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8231 * x86-64-tdep.c (x86_64_init_abi): Update.
8232 * v850-tdep.c (v850_gdbarch_init): Update.
8233 * sparc-tdep.c (sparc_gdbarch_init): Update.
8234 * sh-tdep.c (sh_gdbarch_init): Update.
8235 * s390-tdep.c (s390_gdbarch_init): Update.
8236 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8237 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8238 * mips-tdep.c (mips_gdbarch_init): Update.
8239 * mcore-tdep.c (mcore_gdbarch_init): Update.
8240 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8241 * ia64-tdep.c (ia64_gdbarch_init): Update.
8242 * i386-tdep.c (i386_gdbarch_init): Update.
8243 * hppa-tdep.c (hppa_gdbarch_init): Update.
8244 * h8300-tdep.c (h8300_gdbarch_init): Update.
8245 * frv-tdep.c (frv_gdbarch_init): Update.
8246 * d10v-tdep.c (d10v_gdbarch_init): Update.
8247 * cris-tdep.c (cris_gdbarch_init): Update.
8248 * avr-tdep.c (avr_gdbarch_init): Update.
8249 * arm-tdep.c (arm_gdbarch_init): Update.
8250 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8251 * alpha-tdep.c (alpha_gdbarch_init): Update.
8255 * signals/signals.c (do_target_signal_to_host): Correct realtime
8260 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8261 (struct sal_chain, map_catch_names): Remove.
8262 (catch_exception_command_1): Don't call
8263 handle_gnu_4_16_catch_command.
8268 * dwarf2cfi.c (read_2u): Increment pointer by two.
8272 * signals/signals.c: Fix typos in last change.
8276 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8277 not already defined. Use __SIGRTMIN if available.
8278 (target_signal_from_host): Remove SIGRTMIN block.
8279 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8280 the signal is within the realtime range.
8284 * Makefile.in (infrun.o): Add $(language_h)
8285 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8286 for language specific trampolines.
8287 * language.h (struct language_defn): Add skip_trampoline.
8288 (skip_language_trampoline): Declare.
8289 * language.c (unk_lang_trampoline, skip_language_trampoline):
8291 (unknown_language_defn, auto_language_defn, local_language_defn):
8292 Add ukn_lang_trampoline.
8293 * ada-lang.c (ada_language_defn): Add NULL for language
8294 specific skip_trampoline.
8295 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8296 scm-lang.c: Likewise.
8297 * objc-lang.c (objc_skip_trampoline): New function.
8298 (objc_language_defn): Add objc_skip_trampoline.
8302 * frame.c (get_prev_frame): Delay validating a frame's ID -
8303 non-NULL, didn't go backwards - until an attempt to unwind it to
8308 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8309 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8310 * gdbarch.h, gdbarch.c: Re-generate.
8311 * config/sparc/tm-sparc.h
8312 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8313 * sparc-tdep.c (sparc_gdbarch_init): Set
8314 deprecated_extra_stack_alignment_needed.
8315 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8317 extra_stack_alignment_needed.
8318 * v850-tdep.c (v850_gdbarch_init): Ditto.
8319 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8320 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8321 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8322 * cris-tdep.c (cris_gdbarch_init): Ditto.
8323 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8324 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8328 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8329 STORE_STRUCT_RETURN.
8330 * gdbarch.h, gdbarch.c: Regenerate.
8331 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8332 (d10v_push_arguments): Set the struct return register.
8333 (d10v_gdbarch_init): Update.
8334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8335 * x86-64-tdep.c (x86_64_init_abi): Update.
8336 * vax-tdep.c (vax_gdbarch_init): Update.
8337 * v850-tdep.c (v850_gdbarch_init): Update.
8338 * sparc-tdep.c (sparc_gdbarch_init): Update.
8339 * sh-tdep.c (sh_gdbarch_init): Update.
8340 * s390-tdep.c (s390_gdbarch_init): Update.
8341 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8342 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8343 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8344 * mips-tdep.c (mips_gdbarch_init): Update.
8345 * mcore-tdep.c (mcore_gdbarch_init): Update.
8346 * m68k-tdep.c (m68k_gdbarch_init): Update.
8347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8348 * ia64-tdep.c (ia64_gdbarch_init): Update.
8349 * i386-tdep.c (i386_gdbarch_init): Update.
8350 * hppa-tdep.c (hppa_gdbarch_init): Update.
8351 * h8300-tdep.c (h8300_gdbarch_init): Update.
8352 * frv-tdep.c (frv_gdbarch_init): Update.
8353 * cris-tdep.c (cris_gdbarch_init): Update.
8354 * avr-tdep.c (avr_gdbarch_init): Update.
8355 * arm-tdep.c (arm_gdbarch_init): Update.
8356 * alpha-tdep.c (alpha_gdbarch_init): Update.
8360 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8361 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8362 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8363 * gdbarch.h, gdbarch.c: Regenerate.
8364 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8365 call_dummy_stack_adjust_p.
8366 * vax-tdep.c (vax_gdbarch_init): Ditto.
8367 * v850-tdep.c (v850_gdbarch_init): Ditto.
8368 * sh-tdep.c (sh_gdbarch_init): Ditto.
8369 * s390-tdep.c (s390_gdbarch_init): Ditto.
8370 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8371 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8372 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8373 * mips-tdep.c (mips_gdbarch_init): Ditto.
8374 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8375 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8376 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8377 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8378 * i386-tdep.c (i386_gdbarch_init): Ditto.
8379 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8380 * frv-tdep.c (frv_gdbarch_init): Ditto.
8381 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8382 * cris-tdep.c (cris_gdbarch_init): Ditto.
8383 * avr-tdep.c (avr_gdbarch_init): Ditto.
8384 * arm-tdep.c (arm_gdbarch_init): Ditto.
8385 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8386 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8387 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8388 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8389 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8390 call_dummy_stack_adjust_p.
8391 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8392 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8393 * sparc-tdep.c (sparc32_push_arguments): Update.
8394 * valops.c (hand_function_call): Update.
8398 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8399 set_gdbarch_char_signed.
8404 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8408 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8409 (_initialize_arm_tdep): Don't set tm_print_insn.
8413 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8414 * objc-lang.h: Add multiple inclusion protection.
8415 (start_msglist, add_msglist, end_msglist): Additional declarations.
8419 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8420 value was renamed to ARM_FLOAT_SOFT_FPA.
8424 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8425 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8426 * gdbarch.h, gdbarch.c: Regenerate.
8427 * valops.c (hand_function_call): Update.
8428 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8429 * frame.c (legacy_saved_regs_this_id): Update.
8430 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8431 * dummy-frame.h: Update.
8432 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8433 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8434 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8435 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8436 * config/m68k/tm-sun3.h: Update.
8437 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8439 * x86-64-tdep.c (x86_64_init_abi): Update.
8440 * vax-tdep.c (vax_gdbarch_init): Update.
8441 * v850-tdep.c (v850_gdbarch_init): Update.
8442 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8443 * sh-tdep.c (sh_gdbarch_init): Update.
8444 * s390-tdep.c (s390_gdbarch_init): Update.
8445 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8446 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8447 (frame_get_saved_regs): Update.
8448 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8449 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8450 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8451 * mips-tdep.c (mips_gdbarch_init): Update.
8452 * mcore-tdep.c (mcore_gdbarch_init): Update.
8453 * m68k-tdep.c (m68k_gdbarch_init): Update.
8454 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8455 * ia64-tdep.c (ia64_gdbarch_init): Update.
8456 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8457 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8458 (i386_interix_back_one_frame): Update.
8459 * hppa-tdep.c (hppa_gdbarch_init): Update.
8460 (hppa_init_extra_frame_info): Update.
8461 * h8300-tdep.c (h8300_gdbarch_init): Update.
8462 * frv-tdep.c (frv_gdbarch_init): Update.
8463 * cris-tdep.c (cris_gdbarch_init): Update.
8464 * avr-tdep.c (avr_gdbarch_init): Update.
8465 * arm-tdep.c (arm_gdbarch_init): Update.
8466 * alpha-tdep.c (alpha_gdbarch_init): Update.
8470 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8471 (arm_get_fp_model): Declare.
8472 * arm-tdep.c (fp_model_strings): New string array.
8473 (arm_fp_model, current_fp_model): New variables.
8474 (arm_get_fp_model): New function.
8475 (arm_set_fp): New function.
8476 (set_fp_model_sfunc): New function.
8477 (show_fp_model): New function.
8478 (_initialize_arm_tdep): Add new command to set/show the FPU.
8479 (arm_extract_return_value): Use arm_get_fp_model.
8480 (arm_store_return_value): Likewise.
8481 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8482 to initialize the floating-point data types.
8483 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8488 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8489 the current setting of each value.
8490 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8491 new_set and new_show. Use add_setshow_cmd_full and
8492 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8493 commands and add new version as subcommands of "set/show arm".
8497 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8498 (set_arm_command, show_arm_command): New functions.
8499 (_initialize_arm_tdep): Add them.
8500 (num_disassembly_options): Renamed from num_flavor_options.
8501 (valid_disassembly_styles): Renamed from valid_flavors.
8502 (disassembly_style): Renamed from disassembly_flavor.
8503 (set_disassembly_style_sfunc): Renamed from
8504 set_disassembly_flavor_sfunc.
8505 (set_disassembly_style): Renamed from set_disassembly_flavor.
8506 (arm_othernames): Updated.
8507 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8508 command. Add "set/show arm disassembly" commands. Deprecate
8509 "othernames" command.
8513 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8514 (arm-tdep.o): Depend on elf_arm_h.
8518 * Makefile.in (coff_internal_h): Define.
8519 (arm-tdep.o): Update dependencies.
8523 * arm-tdep.c (prologue_cache): Delete.
8524 (check_prologue_cache, save_prologue_cache): Delete.
8525 (arm_scan_prologue): Don't check or update the prologue_cache.
8526 (arm_gdb_arch_init): Don't initialize it.
8527 (_initialize_arm_tdep): Likewise.
8531 * MAINTAINERS (tui): Maintainer of tui code.
8535 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8536 (i386-cygwin-tdep.o): Add dependencies.
8537 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8538 * i386-cygwin-tdep.c: New file.
8539 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8540 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8544 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8545 (handle_inferior_event): Remove code calling
8546 DYNAMIC_TRAMPOLINE_NEXTPC.
8548 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8549 already has a full path.
8551 * main.c (gdb_main): Return 1.
8552 (captured_main): Call error to report an invalid interpreter.
8554 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8555 * alpha-osf1-tdep.c: Include "gdb_string.h".
8559 Continuing work to convert the hppa targets to multiarch partial.
8561 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8562 method, now that hppa_push_dummy_frame has a conformant prototype.
8563 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8564 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8565 for the switch to multiarch partial.
8569 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8570 when iss is issNull.
8574 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8575 NUM_REGS bounds check.
8579 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8580 * mips-tdep.c (gdb_assert.h): Include.
8581 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8582 (mips_register_name): Handle integer registers explicitly. Add
8584 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8585 (mips_lsi33k_reg_names): Don't list integer registers; they're
8586 handled by mips_register_name() now.
8587 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8588 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8589 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8590 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8591 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8595 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8597 * gdbtypes.h (print_scalar_formatted): Update declaration.
8598 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8602 * infrun.c (observer.h): Add #include.
8603 (normal_stop): Add call to observer_notify_normal_stop.
8604 * Makefile.in (infrun.o): Add dependency on observer.h.
8608 Continuing work to convert the hppa targets to multiarch partial.
8609 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8610 parameter. Reformat comment.
8611 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8612 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8613 to match new profile.
8617 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8618 appear to be working in any case.
8622 * observer.c (observer_test_first_observer): New static variable.
8623 (observer_test_second_observer): Likewise.
8624 (observer_test_third_observer): Likewise.
8625 (observer_test_first_notification_function): New static function.
8626 (observer_test_second_notification_function): Likewise.
8627 (observer_test_third_notification_function): Likewise.
8631 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8632 * somsolib.c (gdb_assert.h): Likewise.
8633 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8634 (somsolib.o): Likewise.
8638 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8639 BFD. Simplify setting of di.endian.
8643 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8644 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8647 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8648 vector and floating-point parameters.
8649 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8651 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8655 * MAINTAINERS: Remove my name from several maintainership roles.
8659 Fix frame off-by-one bug.
8660 * frame-unwind.h (frame_this_id_ftype): Replace
8661 frame_unwind_id_ftype.
8662 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8663 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8664 with "prev_register".
8665 * frame-unwind.c (frame_unwind_find_by_pc): Return
8666 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8668 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8669 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8670 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8671 (dummy_frame_unwind): Update.
8672 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8673 sentinel_frame_register_unwind.
8674 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8675 (sentinel_frame_unwinder): Update.
8676 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8677 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8678 * frame.c (create_sentinel_frame): Update. Initialize
8679 "prologue_cache" instead of "unwind_cache".
8680 (frame_register_unwind): Call this frame's prev_register with the
8681 next frame and this frame's prologue cache.
8682 (get_prev_frame): Simplify. Always call prev frame's this_id with
8683 this frame and prev frame's prologue cache. Document that this
8684 call is shifted one to the left when compared to the
8685 frame_register_unwind call.
8686 (legacy_saved_regs_prev_register): Replace
8687 frame_saved_regs_register_unwind.
8688 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8689 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8690 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8691 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8692 (d10v_frame_unwind): Update.
8693 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8694 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8695 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8696 "saved_regs" with "this_saved_regs".
8700 * frame.c (frame_pop): Don't call target_store_registers. Fix
8701 problem reported by Mark Kettenis.
8705 * i386-tdep.c (i386_register_type): Renamed from
8706 i386_register_virtual_type. Adjust function signature.
8707 (i386_gdbarch_init): Set register_type instead of
8708 deprecated_max_register_raw_size,
8709 deprecated_max_register_virtual_size and register_virtual_type.
8713 * frame.c (get_prev_frame): When a legacy frame, always call
8714 legacy_get_prev_frame. Simplify unwind code using assumption that
8715 the unwinder is new.
8716 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8717 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8718 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8722 * frame.c (get_saved_register): Delete function.
8723 * frame.h (get_saved_register): Delete declaration.
8724 * xstormy16-tdep.c: Update comment.
8725 * regcache.h: Update comments.
8726 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8727 get_saved_register and extract_address, use
8728 frame_read_unsigned_register.
8729 (sparc_frame_saved_pc): Ditto.
8730 (sparc_get_saved_register): Instead of get_saved_register, use
8732 (sparc_pop_frame): Ditto.
8733 * findvar.c: Update comments.
8734 (value_of_register): Call frame_register instead of
8736 (value_from_register): Ditto.
8737 * config/sparc/tm-sparc.h: Update comment.
8738 * breakpoint.c: Update comment.
8742 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8744 * gdbarch.h, gdbarch.c: Re-generate.
8745 * frame.h: Update comments.
8746 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8747 * x86-64-tdep.c (x86_64_init_abi): Update.
8748 * sparc-tdep.c (sparc_gdbarch_init): Update.
8749 * sh-tdep.c (sh_gdbarch_init): Update.
8750 * mips-tdep.c (mips_gdbarch_init): Update.
8751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8752 * cris-tdep.c (cris_gdbarch_init): Update.
8753 * ia64-tdep.c (ia64_gdbarch_init): Update.
8754 * frame.c (frame_register): Update.
8755 (get_saved_register): Update.
8756 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8760 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8761 * gdbarch.h, gdbarch.c: Regenerate.
8762 * valops.c (hand_function_call): Update comment.
8763 * stack.c (return_command): Update comment.
8764 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8765 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8766 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8767 * x86-64-tdep.c (x86_64_init_abi): Update.
8768 * vax-tdep.c (vax_gdbarch_init): Update.
8769 * v850-tdep.c (v850_gdbarch_init): Update.
8770 * sparc-tdep.c (sparc_gdbarch_init): Update.
8771 * sh-tdep.c (sh_gdbarch_init): Update.
8772 * s390-tdep.c (s390_gdbarch_init): Update.
8773 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8774 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8775 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8776 * mips-tdep.c (mips_gdbarch_init): Update.
8777 * mcore-tdep.c (mcore_gdbarch_init): Update.
8778 * m68k-tdep.c (m68k_gdbarch_init): Update.
8779 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8780 * ia64-tdep.c (ia64_gdbarch_init): Update.
8781 * i386-tdep.c (i386_gdbarch_init): Update.
8782 * hppa-tdep.c (hppa_gdbarch_init): Update.
8783 * h8300-tdep.c (h8300_gdbarch_init): Update.
8784 * frv-tdep.c (frv_gdbarch_init): Update.
8785 * cris-tdep.c (cris_gdbarch_init): Update.
8786 * avr-tdep.c (avr_gdbarch_init): Update.
8787 * arm-tdep.c (arm_gdbarch_init): Update.
8788 * alpha-tdep.c (alpha_gdbarch_init): Update.
8792 * frame.c (legacy_frame_p): New function.
8793 (get_prev_frame): Use legacy_frame_p.
8794 * frame.h (legacy_frame_p): Declare.
8798 * MAINTAINERS (write after approval): Alphabetically
8803 * MAINTAINERS (write after approval): Add myself.
8807 * frame.c (get_prev_frame): Rename the frame parameter to
8809 (get_next_frame, legacy_get_prev_frame): Ditto.
8813 * frame.c (get_current_frame): Check target_has_registers before
8814 checking target_has_stack.
8815 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8816 instead of deprecated_selected_frame.
8817 * findvar.c (value_of_register): Pass "frame", not
8818 deprecated_selected_frame, to value_of_builtin_reg.
8822 * regcache.c (regcache_cooked_write_signed): New function.
8823 (regcache_cooked_write_unsigned): New function.
8824 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8825 (regcache_cooked_read_signed): Fix regnum in range assertion.
8826 * regcache.h (regcache_cooked_write_signed): Declare.
8827 (regcache_cooked_write_unsigned): Declare.
8831 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8832 * gdbarch.h, gdbarch.c: Re-generate.
8833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8834 * x86-64-tdep.h: Update.
8835 * x86-64-tdep.c (x86_64_init_abi): Update.
8836 * v850-tdep.c (v850_gdbarch_init): Update.
8837 * sparc-tdep.c (sparc_gdbarch_init): Update.
8838 * sh-tdep.c (sh_gdbarch_init): Update.
8839 * s390-tdep.c (s390_gdbarch_init): Update.
8840 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8841 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8842 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8843 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8844 * mips-tdep.c (mips_gdbarch_init): Update.
8845 * mcore-tdep.c (mcore_gdbarch_init): Update.
8846 * m68k-tdep.c (m68k_gdbarch_init): Update.
8847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8848 * ia64-tdep.c (ia64_gdbarch_init): Update.
8849 * i386-tdep.c (i386_gdbarch_init): Update.
8850 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8851 * hppa-tdep.c (hppa_gdbarch_init): Update.
8852 * h8300-tdep.c (h8300_gdbarch_init): Update.
8853 * frv-tdep.c (frv_gdbarch_init): Update.
8854 * cris-tdep.c (cris_gdbarch_init): Update.
8855 * avr-tdep.c (avr_gdbarch_init): Update.
8856 * arm-tdep.c (arm_gdbarch_init): Update.
8857 * alpha-tdep.c (alpha_gdbarch_init): Update.
8858 * sh-tdep.c (sh_init_extra_frame_info): Update.
8859 (sh64_init_extra_frame_info): Update.
8860 * ns32knbsd-nat.c (frame_num_args): Update.
8861 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8862 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8863 (xstormy16_frame_chain_valid): Update.
8864 * vax-tdep.c (vax_saved_pc_after_call): Update.
8865 * v850-tdep.c (v850_frame_chain): Update.
8866 (v850_pop_frame): Update.
8867 (v850_init_extra_frame_info): Update.
8868 * sparc-tdep.c (setup_arbitrary_frame): Update.
8869 * ns32k-tdep.c (umax_frame_num_args): Update.
8870 * s390-tdep.c (s390_pop_frame_regular): Update.
8871 * mn10300-tdep.c (mn10300_frame_chain): Update.
8872 (mn10300_pop_frame_regular): Update.
8873 (mn10300_init_extra_frame_info): Update.
8874 * mips-tdep.c (mips_init_frame_pc_first): Update.
8875 (mips_frame_chain): Update.
8876 (mips_pop_frame): Update.
8877 * mcore-tdep.c (mcore_frame_chain): Update.
8878 (mcore_pop_frame): Update.
8879 (mcore_init_extra_frame_info): Update.
8880 * arch-utils.c (init_frame_pc_default): Update.
8881 * m68k-tdep.c (isi_frame_num_args): Update.
8882 (delta68_frame_num_args): Update.
8883 (news_frame_num_args): Update.
8884 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8885 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8886 (alpha_frame_chain): Update.
8887 (alpha_pop_frame): Update.
8888 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8889 (hppa_init_extra_frame_info): Update.
8890 (hppa_frame_chain): Update.
8891 (hppa_frame_chain_valid): Update.
8892 * cris-tdep.c (cris_init_extra_frame_info): Update.
8893 * avr-tdep.c (avr_init_extra_frame_info): Update.
8894 * arm-tdep.c (arm_frame_chain_valid): Update.
8895 (arm_init_extra_frame_info): Update.
8896 (arm_pop_frame): Update.
8897 * frame.c (frame_pc_unwind): Update.
8898 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8899 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8900 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8901 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8902 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8903 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8907 Eliminate the need for POP_FRAME.
8908 * frame.c (do_frame_unwind_register): New function.
8909 (frame_pop): When no POP_FRAME, pop the frame using register
8910 unwind and a scratch regcache.
8911 (frame_saved_regs_pop): Delete function.
8912 (trad_frame_unwinder): Update.
8913 * d10v-tdep.c (d10v_frame_pop): Delete function.
8914 (d10v_frame_unwind): Update.
8915 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8916 (sentinel_frame_unwinder): Update.
8917 * dummy-frame.c (dummy_frame_pop): Delete function.
8918 (dummy_frame_unwind): Update.
8919 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8920 (struct frame_unwind): Update.
8924 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8925 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8926 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8927 Do range checks on register number obtained from debugging info.
8928 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8929 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8930 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8932 (do_fp_register_row): Fix typo which caused double type to be
8933 used when attempting to unpack a float.
8937 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8941 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8942 frame. Problem found by Corinna Vinschen.
8946 * doublest.c (floatformat_from_length): Accept also
8947 the real size of 'long double' type.
8952 * breakpoint.c (bpstat_copy): Copy the command lines as well
8953 as the old value, to match what is freed in bpstat_clear.
8957 * minsyms.c (add_minsym_to_hash_table): Replace
8958 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8959 (compare_minimal_symbols, compact_minimal_symbols)
8960 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8961 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8962 of DEPRECATED_SYMBOL_MATCHES_NAME.
8963 (lookup_minimal_symbol_solib_trampoline): Ditto.
8967 * regcache.h (regcache_cooked_read_ftype): Define.
8968 (regcache_save, regcache_restore): Add a cooked_read parameter.
8969 * regcache.c (regcache_save, regcache_restore): Update.
8970 (do_cooked_read): New function.
8971 (regcache_cpy): Pass do_cooked_read to regcache_save and
8976 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8977 * gdbarch.h, gdbarch.c: Re-generate.
8978 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8979 * x86-64-tdep.h: Update.
8980 * x86-64-tdep.c (x86_64_init_abi): Update.
8981 * v850-tdep.c (v850_gdbarch_init): Update.
8982 * sparc-tdep.c (sparc_gdbarch_init): Update.
8983 * sh-tdep.c (sh_gdbarch_init): Update.
8984 * s390-tdep.c (s390_gdbarch_init): Update.
8985 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8986 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8987 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8988 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8989 * mips-tdep.c (mips_gdbarch_init): Update.
8990 * mcore-tdep.c (mcore_gdbarch_init): Update.
8991 * m68k-tdep.c (m68k_gdbarch_init): Update.
8992 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8993 * ia64-tdep.c (ia64_gdbarch_init): Update.
8994 * i386-tdep.c (i386_gdbarch_init): Update.
8995 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8996 * hppa-tdep.c (hppa_gdbarch_init): Update.
8997 * h8300-tdep.c (h8300_gdbarch_init): Update.
8998 * frv-tdep.c (frv_gdbarch_init): Update.
8999 * cris-tdep.c (cris_gdbarch_init): Update.
9000 * avr-tdep.c (avr_gdbarch_init): Update.
9001 * arm-tdep.c (arm_gdbarch_init): Update.
9002 * alpha-tdep.c (alpha_gdbarch_init): Update.
9003 * sh-tdep.c (sh_init_extra_frame_info): Update.
9004 (sh64_init_extra_frame_info): Update.
9005 * ns32knbsd-nat.c (frame_num_args): Update.
9006 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9007 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9008 (xstormy16_frame_chain_valid): Update.
9009 * vax-tdep.c (vax_saved_pc_after_call): Update.
9010 * v850-tdep.c (v850_frame_chain): Update.
9011 (v850_pop_frame): Update.
9012 (v850_init_extra_frame_info): Update.
9013 * sparc-tdep.c (setup_arbitrary_frame): Update.
9014 * ns32k-tdep.c (umax_frame_num_args): Update.
9015 * s390-tdep.c (s390_pop_frame_regular): Update.
9016 * mn10300-tdep.c (mn10300_frame_chain): Update.
9017 (mn10300_pop_frame_regular): Update.
9018 (mn10300_init_extra_frame_info): Update.
9019 * mips-tdep.c (mips_init_frame_pc_first): Update.
9020 (mips_frame_chain): Update.
9021 (mips_pop_frame): Update.
9022 * mcore-tdep.c (mcore_frame_chain): Update.
9023 (mcore_pop_frame): Update.
9024 (mcore_init_extra_frame_info): Update.
9025 * arch-utils.c (init_frame_pc_default): Update.
9026 * m68k-tdep.c (isi_frame_num_args): Update.
9027 (delta68_frame_num_args): Update.
9028 (news_frame_num_args): Update.
9029 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9030 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9031 (alpha_frame_chain): Update.
9032 (alpha_pop_frame): Update.
9033 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9034 (hppa_init_extra_frame_info): Update.
9035 (hppa_frame_chain): Update.
9036 (hppa_frame_chain_valid): Update.
9037 * cris-tdep.c (cris_init_extra_frame_info): Update.
9038 * avr-tdep.c (avr_init_extra_frame_info): Update.
9039 * arm-tdep.c (arm_frame_chain_valid): Update.
9040 (arm_init_extra_frame_info): Update.
9041 (arm_pop_frame): Update.
9042 * frame.c (frame_pc_unwind): Update.
9043 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9044 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9045 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9046 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9047 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9048 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9052 * gdbarch.sh (gdbarch_unwind_pc): New method.
9053 * gdbarch.h, gdbarch.c: Regenerate.
9054 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9055 but use read_pc and FRAME_SAVED_PC as fall backs.
9056 (frame_saved_regs_pc_unwind): Delete function.
9057 (trad_frame_unwinder): Update.
9058 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9059 (struct frame_unwind): Update.
9060 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9061 (dummy_frame_unwind): Update.
9062 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9063 (sentinel_frame_unwinder): Update.
9064 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9065 (d10v_frame_unwind): Update.
9066 (d10v_unwind_pc): New function.
9067 (d10v_gdbarch_init): Set unwind_pc.
9071 * gdbarch.h: Re-generate.
9073 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9075 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9080 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9084 * cli-out.c: Update copyright.
9085 (cli_out_data): Define typedef. Use instead of ui_out_data.
9089 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9094 * gdbarch.sh: Don't generate two macro definitions when an
9095 undefined macro taking no arguments.
9096 * gdbarch.h: Regenerate.
9100 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9101 (x86_64_unwind_dummy_id): New functions.
9102 (x86_64_init_abi): Register these two new functions.
9106 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9107 (x86_64_skip_prologue): Move prologue detection to
9109 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9113 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9114 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9115 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9116 to use unwind_dummy_id when a dummy frame.
9117 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9119 * gdbarch.h, gdbarch.c: Regneerate.
9123 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9124 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9125 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9130 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9131 (struct d10v_unwind_cache): Delete field "frameless". Replace
9132 "next_addr" with "sp_offset". Add "r11_offset".
9133 (d10v_frame_unwind_cache): Update.
9134 (prologue_find_regs): Update. When "mv r11, sp", save the
9135 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9136 RN was saved in r11_offset.
9140 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9141 cached PC value in the next frame.
9145 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9146 "id_unwind_cache" with "id".
9147 (frame_id_unwind): Delete declaration.
9148 * frame.c (frame_id_unwind): Delete function.
9149 (get_prev_frame): Call the frame id unwind method directly. Store
9150 the returned next frame's ID value in NEXT_FRAME. Note that there
9151 is a problem with the wrong unwind ID being called with the wrong
9156 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9161 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9162 (auto_cp_abi): New variable.
9163 (current_cp_abi, num_cp_abis): Make static.
9164 (CP_ABI_MAX): Define.
9165 (cp_abis): Turn into an array.
9166 (value_virtual_fn_field): Fix formatting.
9167 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9169 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9170 (list_cp_abis, _initialize_cp_abi): New functions.
9171 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9172 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9173 switch_to_cp_abi. Update prototype for register_cp_abi.
9174 * Makefile.in (cp-abi.o): Update dependencies.
9175 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9176 instead of switch_to_cp_abi.
9177 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9179 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9181 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9185 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9186 * dwarf2loc.c: Include "regcache.h".
9187 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9189 * Makefile.in (dwarf2loc.o): Update dependencies.
9193 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9194 number of io registers reported by remote target is not a multiple of
9199 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9200 (lookup_symbol_aux_psymtabs): Update call to
9201 lookup_partial_symbol.
9202 (lookup_transparent_type, find_main_psymtab)
9203 (make_symbol_overload_list): Ditto.
9207 * MAINTAINERS (Write after approval): Update my email address.
9211 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9212 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9213 predicate. Replace MAX_REGISTER_RAW_SIZE.
9214 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9215 MAX_REGISTER_VIRTUAL_SIZE.
9216 * regcache.c (legacy_max_register_raw_size): New function.
9217 (legacy_max_register_virtual_size): New function.
9218 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9219 (MAX_REGISTER_RAW_SIZE): Define.
9220 (legacy_max_register_raw_size): Declare.
9221 (legacy_max_register_virtual_size): Declare.
9222 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9223 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9224 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9225 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9226 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9227 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9228 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9229 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9230 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9231 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9232 * vax-tdep.c (vax_gdbarch_init): Update.
9233 * v850-tdep.c (v850_gdbarch_init): Update.
9234 * sparc-tdep.c (sparc_gdbarch_init): Update.
9235 * sh-tdep.c (sh_gdbarch_init): Update.
9236 * s390-tdep.c (s390_gdbarch_init): Update.
9237 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9238 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9239 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9240 * mips-tdep.c (mips_gdbarch_init): Update.
9241 * mcore-tdep.c (mcore_gdbarch_init): Update.
9242 * m68k-tdep.c (m68k_gdbarch_init): Update.
9243 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9244 * ia64-tdep.c (ia64_gdbarch_init): Update.
9245 * i386-tdep.c (i386_gdbarch_init): Update.
9246 * hppa-tdep.c (hppa_gdbarch_init): Update.
9247 * h8300-tdep.c (h8300_gdbarch_init): Update.
9248 * frv-tdep.c (frv_gdbarch_init): Update.
9249 * cris-tdep.c (cris_gdbarch_init): Update.
9250 * avr-tdep.c (avr_gdbarch_init): Update.
9251 * arm-tdep.c (arm_gdbarch_init): Update.
9252 * alpha-tdep.c (alpha_gdbarch_init): Update.
9253 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9254 max_register_raw_size or max_register_virtual_size.
9258 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9259 SYMBOL_MATCHES_NAME, add comment.
9260 (SYMBOL_MATCHES_NATURAL_NAME): New.
9261 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9262 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9263 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9264 * symtab.c (lookup_partial_symbol): Use
9265 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9267 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9268 SYMBOL_MATCHES_NAME.
9273 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9274 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9275 by regexp matching against SYMBOL_NATURAL_NAME.
9279 * linespec.c (find_method): Extract code into collect_methods.
9280 (collect_methods): New.
9284 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9287 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9288 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9292 * arch-utils.c (generic_register_byte): Fix to use the loop index
9293 and not regnum when summing the size of all registers up to regnum.
9297 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9298 FRAME_INIT_SAVED_REGS.
9299 * gdbarch.h, gdbarch.c: Regenerate.
9300 * stack.c (frame_info): Update.
9301 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9302 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9303 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9304 * ns32k-tdep.c (ns32k_pop_frame): Update.
9305 * mips-tdep.c (mips_pop_frame): Update.
9306 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9307 * ia64-tdep.c (ia64_frame_chain): Update.
9308 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9309 (ia64_frameless_function_invocation): Update.
9310 (ia64_init_extra_frame_info): Update.
9311 (ia64_pop_frame_regular): Update.
9312 * frame.h (struct frame_info): Update comment.
9313 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9314 * frame.c (frame_saved_regs_register_unwind): Update.
9315 (frame_saved_regs_register_unwind): Update.
9316 (deprecated_generic_get_saved_register): Update.
9317 * cris-tdep.c: Update comment.
9318 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9321 * x86-64-tdep.c (x86_64_init_abi): Update.
9322 * vax-tdep.c (vax_gdbarch_init): Update.
9323 * v850-tdep.c (v850_gdbarch_init): Update.
9324 * sparc-tdep.c (sparc_gdbarch_init): Update.
9325 * sh-tdep.c (sh_gdbarch_init): Update.
9326 * s390-tdep.c (s390_gdbarch_init): Update.
9327 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9328 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9329 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9330 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9331 * mips-tdep.c (mips_gdbarch_init): Update.
9332 * mcore-tdep.c (mcore_gdbarch_init): Update.
9333 * m68k-tdep.c (m68k_gdbarch_init): Update.
9334 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9335 * ia64-tdep.c (ia64_gdbarch_init): Update.
9336 * i386-tdep.c (i386_gdbarch_init): Update.
9337 * frv-tdep.c (frv_gdbarch_init): Update.
9338 * avr-tdep.c (avr_gdbarch_init): Update.
9339 * arm-tdep.c (arm_gdbarch_init): Update.
9340 * alpha-tdep.c (alpha_gdbarch_init): Update.
9344 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9345 option enum and switch. When no windows, set the interpreter to
9350 * main.c (captured_main): Replace magic option characters with an
9355 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9356 INIT_EXTRA_FRAME_INFO.
9357 * gdbarch.h, gdbarch.c: Regenerate.
9358 * arm-tdep.c: Update comments.
9359 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9360 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9361 * frame.h, avr-tdep.c: Ditto.
9362 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9363 (create_new_frame, legacy_get_prev_frame): Ditto.
9364 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9365 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9366 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9367 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9368 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9369 * v850-tdep.c (v850_gdbarch_init): Ditto.
9370 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9371 * sh-tdep.c (sh_gdbarch_init): Ditto.
9372 * s390-tdep.c (s390_gdbarch_init): Ditto.
9373 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9374 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9375 * mips-tdep.c (mips_gdbarch_init): Ditto.
9376 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9378 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9379 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9380 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9381 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9382 * frv-tdep.c (frv_gdbarch_init): Ditto.
9383 * cris-tdep.c (cris_gdbarch_init): Ditto.
9384 * avr-tdep.c (avr_gdbarch_init): Ditto.
9385 * arm-tdep.c (arm_gdbarch_init): Ditto.
9386 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9387 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9391 * gdbarch.sh (register_type): New function with predicate.
9392 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9393 * gdbarch.h, gdbarch.c: Re-generate.
9394 * arch-utils.c (generic_register_byte): Use generic_register_size.
9395 (generic_register_size): When available, use
9396 gdbarch_register_type.
9397 * regcache.c (init_regcache_descr): When available, initialize the
9398 register type array using gdbarch_register_type. If the
9399 architecture supplies gdbarch_register_type, do not use the legacy
9401 * d10v-tdep.c (d10v_register_type): Replace
9402 d10v_register_virtual_type.
9403 (d10v_gdbarch_init): Set register_type instead of
9404 register_virtual_type.
9408 * Makefile.in (ax-gdb.o): Update dependencies.
9409 * ax-gdb.c: Include "regcache.h".
9410 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9411 * findvar.c (value_of_register): Ditto.
9412 * infcmd.c (default_print_registers_info): Ditto.
9416 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9417 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9421 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9426 * Makefile.in (dwarf2loc.o): Update dependencies.
9427 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9428 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9429 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9430 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9431 (locexpr_tracepoint_var_ref): New function.
9432 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9436 * regcache.c (register_size): New function.
9437 * regcache.h (register_size): Declare
9438 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9439 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9443 * linespec.c (decode_compound): Extract code into find_method.
9448 * Makefile.in: Add rules to build and link in observer.o.
9452 * observer.c: Minor comments edits.
9456 * observer.h, observer.c: New file.
9460 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9464 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9465 (M6812_OP_STS_EXT): Likewise.
9466 (m6811_prologue): Use the above to recognize prologue.
9467 (m6812_prologue): Likewise.
9471 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9473 (compare_psymbols): Ditto.
9474 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9478 * f-lang.c (build_fortran_types): New function.
9479 (_initialize_f_language): Gdbarch-register built-in fortran types.
9480 * doublest.c (extract_floating): Fix warning text.
9484 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9485 predicate. Replaces PUSH_DUMMY_FRAME.
9486 * gdbarch.h, gdbarch.c: Regnerate.
9487 * valops.c (hand_function_call): Update. Call
9488 generic_push_dummy_frame directly.
9489 * vax-tdep.c (vax_gdbarch_init): Update.
9490 * sparc-tdep.c (sparc_gdbarch_init): Update.
9491 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9492 * m68k-tdep.c (m68k_gdbarch_init): Update.
9493 * hppa-tdep.c (hppa_gdbarch_init): Update.
9494 * alpha-tdep.c (alpha_gdbarch_init): Update.
9495 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9496 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9497 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9498 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9499 push_dummy_frame to generic_push_dummy_frame.
9500 * v850-tdep.c (v850_gdbarch_init): Ditto.
9501 * sh-tdep.c (sh_gdbarch_init): Ditto.
9502 * s390-tdep.c (s390_gdbarch_init): Ditto.
9503 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9504 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9505 * mips-tdep.c (mips_gdbarch_init): Ditto.
9506 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9508 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9509 * i386-tdep.c (i386_gdbarch_init): Ditto.
9510 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9511 * frv-tdep.c (frv_gdbarch_init): Ditto.
9512 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9513 * cris-tdep.c (cris_gdbarch_init): Ditto.
9514 * avr-tdep.c (avr_gdbarch_init): Ditto.
9515 * arm-tdep.c (arm_gdbarch_init): Ditto.
9519 * mips-tdep.c (show_mips_abi): New function.
9520 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9521 command ``show mips abi''.
9526 * dbxread.c (process_one_symbol): Only record line 0 if one or
9527 more sline entries have been seen for the function.
9531 * configure: Regenerate with autoconf 000227.
9536 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9537 for old libc5/glibc.
9538 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9542 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9543 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9547 * configure.in: New variable HAVE_UINTPTR_T.
9548 * configure, config.in: Regenerated.
9553 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9557 * frame.c (get_prev_frame): Add comment on check for
9558 inside_entry_func. Only check for inside_entry_file when not a
9559 dummy and not a sentinel. Check that the new frame is not inner
9564 * frame.c (frame_debug): New variable.
9565 (_initialize_frame): Add "set/show debug frame" command.
9566 (get_prev_frame): When frame_debug, print reason why unwind
9571 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9572 to avoid uintptr_t definition problems.
9576 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9577 (SYMBOL_LINKAGE_NAME): Ditto.
9578 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9579 SYMBOL_LINKAGE_NAME.
9580 (struct general_symbol_info): Expand comment.
9581 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9582 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9583 (SYMBOL_MATCHES_REGEXP): Ditto.
9584 * symtab.c (symbol_natural_name): New function.
9585 * objfiles.h: Replace all uses of SYMBOL_NAME by
9586 DEPRECATED_SYMBOL_NAME.
9587 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9588 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9589 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9590 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9591 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9592 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9593 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9594 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9595 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9596 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9598 * ada-exp.y: Update copyright.
9599 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9600 * cp-valprint.c: Ditto.
9604 * infptrace.c (detach): Do not flag error if ptrace detach fails
9605 and errno is set to ESRCH.
9609 * infptrace.c (udot_info): Change type of udot_off to long. Use
9610 paddr when printing udot_off's value.
9614 * symtab.c (make_symbol_overload_list): Only read in partial
9615 symtabs containing a matching partial symbol.
9619 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9620 do the comparison, not strcmp.
9621 * symfile.c (compare_psymbols): Ditto.
9622 * defs.h: Declare strcmp_iw_ordered.
9623 * utils.c (strcmp_iw_ordered): New function.
9627 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9628 support, shared libs): Remove my name from here, to better reflect
9633 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9634 (target_ops): Add to_have_continuable_watchpoint.
9635 * target.c (update_current_target): Add INHERIT line for
9636 to_have_continuable_watchpoint.
9637 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9638 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9639 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9640 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9644 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9649 * solib.c (solib_open): Call target defined search function after
9650 failing with solib-search-path.
9651 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9652 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9656 * MAINTAINERS: Add myself to Write After section.
9660 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9664 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9665 (m68hc11_add_reggroups): New function.
9666 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9667 (m68hc11_gdbarch_init): Install the reggroups.
9668 (_initialize_m68hc11_tdep): Initialize them.
9672 * MAINTAINERS: Update my email address.
9676 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9681 * symtab.h: Add opaque declarations of struct axs_value and
9683 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9684 (struct location_funcs): New type.
9685 (struct symbol): Add "loc" to aux_value.
9686 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9687 * dwarf2read.c: Include "dwarf2expr.h".
9688 (dwarf2_symbol_mark_computed): New function.
9689 (read_func_scope): Use it.
9690 (var_decode_location): New function.
9691 (new_symbol): Use it.
9692 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9694 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9695 (dwarf2expr_h, dwarf2loc_h): New variables.
9696 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9697 (dwarf2expr.o, dwarf2loc.o): New rules.
9698 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9699 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9701 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9702 * m2-exp.y (yylex): Likewise.
9703 * printcmd.c (address_info, print_frame_args): Likewise.
9704 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9705 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9706 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9707 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9708 * symtab.c (lookup_block_symbol): Likewise.
9712 * symtab.h: Remove objc_specific struct
9713 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9714 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9715 Have language_objc use cplus_specific struct.
9719 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9720 TYPE_NAME, when printing a String value. PR java/1075.
9724 * objc-lang.h (find_methods): Remove declaration.
9725 * objc-lang.c (find_methods): Make static.
9729 * win32-nat.c (get_image_name): Check return value from
9731 (child_xfer_memory): Ditto.
9735 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9736 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9737 '${exec_prefix}' (in addition to the expansion thereof) as
9739 * configure: Rebuilt.
9743 * symtab.c (search_symbols): Revert the search_symbols part of my
9744 2002-12-23 patch. Add comment.
9748 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9749 * dbxread.c (elfstab_build_psymtabs): Don't call
9750 install_minimal_symbols.
9751 (stabsect_build_psymtabs): Likewise.
9752 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9754 * somread.c (som_symfile_read): Call install_minimal_symbols
9755 and do_cleanups earlier.
9756 * nlmread.c (nlm_symfile_read): Likewise.
9757 * mdebugread.c (elfmdebug_build_psymtabs): Call
9758 install_minimal_symbols and make appropriate cleanups.
9762 * solib.c (reload_shared_libraries): New function.
9763 (_initialize_solib): Add callbacks for ``set solib-search-path''
9764 and ``set solib-absolute-prefix''.
9768 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9770 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9771 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9772 * ada-typeprint.c (ada_typedef_print): Ditto.
9773 * ax-gdb.c (gen_var_ref): Ditto.
9774 * breakpoint.c (print_one_breakpoint): Ditto.
9775 * buildsym.c (finish_block): Ditto.
9776 * c-valprint.c (c_val_print): Ditto.
9777 * expprint.c (print_subexp): Ditto.
9778 * findvar.c (locate_var_value): Ditto.
9779 * infcmd.c (jump_command): Ditto.
9780 * linespec.c (decode_line_2, decode_compound): Ditto.
9781 * maint.c (maintenance_translate_address): Ditto.
9782 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9783 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9785 * p-valprint.c (pascal_val_print): Ditto.
9786 * stabsread.c (define_symbol): Ditto.
9787 * stack.c (print_frame, frame_info, print_block_frame_locals)
9788 (print_frame_arg_vars, return_command): Ditto.
9789 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9790 * symmisc.c (print_symbol): Ditto.
9791 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9792 (compare_search_syms, print_symbol_info, print_msymbol_info)
9793 (rbreak_command): Ditto.
9794 * tracepoint.c (tracepoints_info): Ditto.
9795 * typeprint.c (typedef_print): Ditto.
9796 * valops.c (value_of_variable, hand_function_call): Ditto.
9797 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9798 * ada-typeprint.c: Update Copyright.
9799 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9800 * tracepoint.c, cli/cli-cmds.c: Ditto.
9804 * frame.c (generic_unwind_get_saved_register): Make non-static.
9805 * frame.h (generic_unwind_get_saved_register): Declare.
9806 * mips-tdep.c (read_next_frame_reg): Fetch register from
9807 current regcache when frame is NULL.
9808 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9810 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9811 instead of frame_register_unwind().
9815 * remote-sim.c (gdbsim_insert_breakpoint)
9816 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9821 * remote.c (_initialize_remote): Add commands "set/show remote
9822 hardware-watchpoint-limit" and "set/show remote
9823 hardware-breakpoint-limit".
9824 (remote_hw_watchpoint_limit): Initialize to -1.
9825 (remote_hw_breakpoint_limit): Ditto.
9826 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9830 * coff-pe-read.c: New file - support reading of minimal symbols from a
9831 portable executable using the export table.
9832 * coff-pe-read.h: New file.
9833 * coffread.c: Include coff-pe-read.h.
9834 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9835 debugging symbols found.
9836 * Makefile.in (SFILES): Add coff-pe-read.o.
9837 (coff_pe_read_h): Define.
9838 (COMMON_OBS): Add coff-pe-read.o.
9839 (coffread.o): Add coff_pe_read_h dependency.
9840 (coff-pe-read.o): New target.
9844 * Makefile.in (SFILES): Add block.c.
9846 (COMMON_OBS): Add block.o.
9848 (x86-64-tdep.o): Add $(block_h).
9849 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9850 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9851 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9852 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9853 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9854 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9855 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9856 * value.h: Add opaque declaration for struct block.
9857 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9858 * ada-lang.h: Ditto.
9859 * x86-64-tdep.c: #include "block.h"
9860 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9861 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9862 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9863 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9864 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9865 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9866 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9867 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9868 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9869 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9870 * symtab.c (block_function): Ditto.
9871 (contained_in): Ditto.
9872 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9873 block.h. Add opaque declaration for struct block.
9874 * symtab.h: Move block_function and contained_in declarations to
9875 block.h. Add opaque declarations for struct block, struct
9877 (struct block): Move to block.h.
9878 (struct blockvector): Ditto.
9879 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9880 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9881 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9882 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9883 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9885 * block.c: New file.
9886 * block.h: New file.
9890 * avr-tdep.c (avr_extract_return_value): Remove function.
9891 (avr_store_return_value): Remove function.
9892 (avr_extract_struct_value_address): Remove function.
9893 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9897 * rs6000-tdep.c: Include "gdb_assert.h".
9898 (registers_e500): Add "acc" and "spefscr".
9899 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9900 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9901 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9903 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9907 * Makefile.in: Add gdbtk-interps.c.
9911 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9912 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9916 * symtab.h (struct objfile): Add opaque declaration.
9921 * dbxread.c (process_one_symbol): Use last_function_start rather
9922 than function_start_offset to find the real beginning of the
9923 current function. The latter is just the text section offset on
9924 some systems, the former is always the real function start.
9928 * configure.in: Revert ${target} != ${host}.
9932 * configure.in (Makefile): Use the test ${target} != ${host},
9933 instead of the absence of the "nm.h" file, to determine of the
9934 configuration non-native.
9935 * configure: Regenerate.
9941 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9942 conditionalize tui_active test.
9943 (lookup_cmd_1): Ditto.
9947 * configure.in: Add check for _etext.
9948 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9950 * config.in, configure: regenerated.
9954 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9958 * main.c (tui_version): Delete variable.
9959 (captured_main): When --tui, set interpreter_p to "tui" instead of
9960 enabling tui_version.
9961 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9963 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9964 * cli/cli-cmds.c (disassemble_command): Ditto.
9965 * defs.h (tui_version): Delete declaration.
9966 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9967 (tui-interp.o): Add rules.
9968 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9972 * win32-nat.c (register_loaded_dll): Correctly set address range for
9977 * symmisc.c (print_objfile_statistics): Include information about
9978 the number of psymtabs and symtabs in each object file.
9982 * main.h (struct captured_main_args): Add interpreter_p.
9983 * main.c (captured_main): Initialize interpreter_p from context.
9984 * gdb.c (main): Set interpreter_p argument.
9985 * Makefile.in (gdb.o): Add dependency for interps.h.
9989 * event-top.c (cli_command_loop): Delete declaration.
9990 (_initialize_event_loop): Delete function setting event_loop_hook.
9991 * event-top.h (cli_command_loop): Declare. Update copyright.
9992 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9993 * interps.c (current_interp_command_loop): When event_loop_p, call
9998 * interps.h (interp_command_loop_ftype): Change return type to
10003 * x86-64-tdep.c (x86_64_extract_return_value)
10004 (x86_64_store_return_value): Use regcache instead of regbuf.
10005 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10006 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10010 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10011 * aclocal.m4: Regenerate.
10012 * configure: Regenerate.
10014 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10015 TCL_LD_SEARCH_FLAGS.
10019 * dwarf2cfi.c: Reindented.
10023 * interps.c (clear_interpreter_hooks): Convert function definition
10028 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10032 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10033 (struct type): ...to here.
10034 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10036 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10037 (replace_type): Set length on all type variants for a given type.
10041 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10043 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10047 * Makefile.in (symm-nat.o): Update dependencies.
10048 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10049 (lynx-nat.o, ia64-linux-nat.): Ditto.
10050 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10051 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10052 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10054 * Makefile.in (inflow_h): Define.
10055 (procfs.o, inflow.o, procfs.o): Update dependencies.
10056 * inftarg.c (child_stop): Delete extern declaration of
10057 inferior_process_group. Include "inflow.h".
10058 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10059 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10060 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10061 (our_process_group, inferior_process_group): Extern declarations.
10063 * procfs.c: Include "gdb_assert.h".
10065 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10066 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10067 * jv-typeprint.c (java_type_print_base): Ditto.
10068 * typeprint.c (typedef_print): Eliminate STREQ.
10069 * cli/cli-script.c (define_command, define_command): Ditto.
10070 * main.c (captured_main): Ditto.
10071 * values.c (lookup_internalvar): Ditto.
10072 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10073 within `if' conditional.
10074 * linespec.c (decode_line_2): Ditto.
10075 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10076 (bfd_openw_with_cleanup): Ditto.
10080 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10081 legacy_extract_return_value and store_return_value to
10082 legacy_return_value.
10086 * win32-nat.c (get_relocated_section_addrs): New function. Find
10087 section load addresses for symbol handling in relocated DLLs.
10088 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10092 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10094 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10096 (angel_RDI_info): Ditto.
10097 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10099 (threads_continue_all_with_signals): Ditto.
10106 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10107 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10108 (SUBDIR_MI_OBS): Add "mi-interp.o".
10109 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10110 (SFILES): Add "interps.c".
10111 (COMMON_OBS): Add "interps.o".
10112 (interps_h, mi_main_h): Define.
10113 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10114 (mi-main.o, main.o, event-top.o): Update dependencies.
10115 * cli/cli-interp.c: New file.
10116 * interps.h, interps.c: New files.
10117 * top.c: (gdb_init): Don't install the default interpreter, handed
10119 * main.c: Include "interps.h".
10120 (interpreter_p): Note that it should malloc'ed.
10121 (captured_command_loop): Call current_interp_command_loop.
10122 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10123 xfree and xstrdup when updating interpreter_p. Install the
10124 default interpreter. Add hack to stop mi1's copyright notice
10126 * event-top.h (gdb_setup_readline): Declare.
10127 (gdb_disable_readline): Declare.
10128 * event-top.c: Include "interps.h".
10129 (display_gdb_prompt): Call current_interp_display_prompt_p.
10130 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10131 gdb_stdlog, and gdb_stdtarg.
10132 (_initialize_event_loop): Don't call gdb_setup_readline.
10133 * cli-out.c (cli_out_set_stream): New function.
10134 * cli-out.h (cli_out_set_stream): Declare.
10138 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10139 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10140 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10141 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10142 config/i386/i386v42mp.mt: Removed.
10146 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10151 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10152 2.12.1 and earlier versions.
10156 Remove orphaned hosts, targets and files.
10157 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10158 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10159 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10160 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10161 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10162 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10163 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10164 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10165 * config/sparc/tm-sp64sim.h: Delete.
10166 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10168 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10169 mips*-dec-mach3* targets.
10173 * NEWS: Fix typo: sepcifying -> specifying.
10177 * dwarfread.c: Add documentation on the state of dwarf-1,
10178 looking towards obsoletion.
10182 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10183 gdb/testsuite/gdb.c++/pr-1023.exp.
10187 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10188 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10190 * utils.c (init_page_info): Delete reference to MPW in comments.
10191 * main.c (captured_main): Delete #ifdef MPW.
10195 * NEWS: Note that the m32r-*-elf* is obsolete.
10196 * monitor.c (monitor_expect): Obsolete reference to m32r.
10197 * configure.tgt: Mark m32r-*-elf* as obsolete.
10198 * MAINTAINERS: Mark m32k as obsolete.
10199 * m32r-rom.c: Obsolete file.
10200 * config/m32r/m32r.mt: Obsolete file.
10201 * config/m32r/tm-m32r.h: Obsolete file.
10202 * m32r-stub.c: Obsolete file.
10203 * m32r-tdep.c: Obsolete file.
10207 * NEWS: Mention that the z8k-zilog-none is obsolete.
10208 * MAINTAINERS: Mark z8k as obsolete.
10209 * configure.tgt: Obsolete the z8k-*-coff* target.
10210 * config/z8k/z8k.mt: Obsolete file.
10211 * config/z8k/tm-z8k.h: Obsolete file.
10212 * z8k-tdep.c: Obsolete file.
10216 * NEWS: Mention that the mn10200-elf is obsolete.
10217 * configure.tgt: Obsolete mn10200-*-* target.
10218 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10219 mention that the mn10200 is obsolete.
10220 * breakpoint.h: Ditto.
10221 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10222 * config/mn10200/mn10200.mt: Obsolete file.
10223 * config/mn10200/tm-mn10200.h: Obsolete file.
10224 * mn10200-tdep.c: Obsolete file.
10228 * MAINTAINERS: Mark h8500 as obsolete.
10229 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10230 * findvar.c (value_from_register): Ditto.
10231 * h8500-tdep.c: Mark file as obsolete.
10232 * config/h8500/h8500.mt: Ditto.
10233 * config/h8500/tm-h8500.h: Ditto.
10234 * NEWS: Mention that h8500 is obsolete.
10238 * objfiles.c (allocate_objfile): Always set name. Add comment at
10240 * jv-lang.c (get_dynamics_objfile): Add comment.
10244 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10245 * printcmd.c (build_address_symbolic): Replace uses of
10246 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10247 SYMBOL_NAME, and asm_demangle.
10252 * linespec.c (decode_compound): Extract code into
10254 (lookup_prefix_sym): New function.
10258 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10259 FLOAT_COERCION_BADNESS.
10260 * gdbtypes.c (rank_one_type): Replace all uses of
10261 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10265 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10266 section, let dwarf_macinfo_section point to it, not
10272 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10273 (ppc_linux_at_sigtramp_return_path): Use it.
10277 * defs.h (streq): Add prototype.
10278 * utils.c (streq): New function.
10280 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10281 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10282 * mdebugread.c (new_symbol): Likewise.
10283 * stabsread.c (define_symbol): Likewise.
10284 * coffread.c (process_coff_symbol): Likewise.
10285 * dwarfread.c (new_symbol): Likewise.
10287 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10288 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10290 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10291 SYMBOL_INIT_DEMANGLED_NAME.
10292 * objfiles.c: Include "hashtab.h".
10293 (allocate_objfile): Call htab_set_functions_ex for the
10294 demangled_names_hash.
10295 (free_objfile): Call htab_delete for the demangled_names_hash.
10296 * objfiles.h (struct htab): Add declaration.
10297 (struct objfile): Add demangled_names_hash.
10298 * symfile.c: Include "hashtab.h".
10299 (reread_symbols): Call htab_delete for the demangled_names_hash.
10300 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10301 SYMBOL_NAME in the bcache.
10302 * symtab.c: Include "hashtab.h". Update comments.
10303 (create_demangled_names_hash, symbol_set_names): New functions.
10304 (symbol_find_demangled_name): New function, broken out from
10305 symbol_init_demangled_names.
10306 (symbol_init_demangled_names): Use it.
10307 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10308 (SYMBOL_SET_NAMES): New macro.
10309 (symbol_set_names): Add prototype.
10313 Use a single, consistent representation for an empty minimal
10314 symbol table in an objfile.
10315 * objfiles.c (terminate_minimal_symbol_table): New function.
10316 (allocate_objfile): Call it.
10317 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10318 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10320 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10321 objfile has minimal symbols, compare minimal_symbol_count to zero,
10322 instead of comparing msymbols with NULL.
10323 * objfiles.c (have_minimal_symbols): Same.
10324 * solib-sunos.c (solib_add_common_symbols): Call
10325 terminate_minimal_symbol_table.
10326 * symfile.c (reread_symbols): Same.
10330 * s390-tdep.c (s390_address_class_type_flags)
10331 (s390_address_class_type_flags_to_name)
10332 (s390_address_class_name_to_type_flags): New functions.
10333 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10334 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10338 * arm-tdep.c: Fix spell-o in comment.
10342 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10343 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10344 error messages to contain BFD filename.
10348 Fix PR gdb/742 gdb/743 gdb/877
10349 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10350 (do_mixed_source_and_assembly): Use
10351 make_cleanup_ui_out_tuple_begin_end and
10352 make_cleanup_ui_out_tuple_begin_end.
10353 (do_mixed_source_and_assembly): Ditto.
10354 * thread.c (do_captured_list_thread_ids): Ditto.
10355 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10356 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10357 ui_out_tuple_end): Delete prototypes.
10358 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10359 ui_out_list_end, ui_out_tuple_end): Delete.
10362 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10363 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10364 (do_cleanup_table_end): New functions.
10365 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10366 Use cleanups to invoke_ui_out_tuple_end().
10367 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10368 * cli/cli-setshow.c (cmd_show_list): Use
10369 make_cleanup_ui_out_tuple_begin_end.
10373 * frame.c (frame_unwind_register): New function.
10374 (frame_unwind_unsigned_register): Use.
10375 (frame_unwind_signed_register): Use.
10376 (frame_read_register): New function.
10377 * frame.h (frame_unwind_register): Declare.
10378 (frame_read_register): Declare.
10380 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10381 and frame_unwind_register instead of read_memory, write_register
10382 and deprecated_write_register_bytes.
10386 * frame.h: Note that namelen can be negative.
10387 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10390 * NEWS: Mention that the d10v's `regs' command is deprecated.
10391 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10392 (d10v_print_registers_info): New function.
10393 (show_regs): Call d10v_print_registers_info.
10394 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10398 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10399 lost in the previous patch.
10404 * stack.c (print_frame_info_base): Output complete FRAME tuple
10405 for synthesized frames.
10409 * mips-nat.c (zerobuf): Delete.
10410 (fetch_inferior_registers): Alloc local zerobuf.
10411 (fetch_core_registers): Alloc local zerobuf.
10412 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10413 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10414 * thread-db.c (thread_db_store_registers): Ditto.
10415 * sh-tdep.c (sh_do_register): Ditto.
10416 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10417 * remote-sim.c (gdbsim_store_register): Ditto.
10418 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10419 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10420 * monitor.c (monitor_supply_register): Ditto.
10421 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10422 * mips-nat.c (fetch_inferior_registers): Ditto.
10423 * m68klinux-nat.c (fetch_register): Ditto.
10424 * lynx-nat.c (fetch_inferior_registers): Ditto.
10425 (fetch_inferior_registers): Ditto.
10426 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10427 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10428 (hpux_thread_store_registers): Ditto.
10429 * hppah-nat.c (fetch_register): Ditto.
10430 * hppab-nat.c (fetch_register): Ditto.
10431 * hppa-tdep.c (pa_register_look_aside): Ditto.
10432 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10433 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10437 * gdbarch.sh: Explictly specify all method levels. When a
10438 variable with an empty level, provide a non-multi-arch default.
10439 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10440 * gdbarch.h: Re-generate.
10441 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10442 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10446 * defs.h (host_pointer_to_address): Delete declaration.
10447 (address_to_host_pointer): Delete declaration.
10448 * utils.c (host_pointer_to_address): Delete function.
10449 (address_to_host_pointer): Delete function.
10450 * procfs.c (procfs_address_to_host_pointer): New function.
10451 * procfs.c (proc_set_watchpoint): Use.
10452 (procfs_can_use_hw_breakpoint): Update comments.
10453 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10454 (som_solib_add): Use.
10455 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10456 * hppa-tdep.c (unwind_command): Use.
10460 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10463 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10464 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10465 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10466 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10467 (define_symbol): Update.
10468 * symfile.c (generic_load): Remove references to nindy.
10469 * symtab.c: Remove references to nindy.
10473 * infcmd.c (print_float_info): Delete code conditional on
10475 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10476 * config/m68k/nm-apollo68b.h: Ditto.
10477 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10478 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10479 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10483 * config/i386/tm-i386os9k.h: Removed.
10485 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10486 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10487 they're identical to i[3456]86-*-sysv* now.
10488 * config/i386/i386v32.mh: Removed.
10489 * config/i386/xm-i386v32.h: Removed.
10490 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10492 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10494 * config/i386/i386dgux.mh: Removed.
10495 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10497 * configure.in: Fix typo.
10498 * configure: Regenerated.
10502 * dwarf2read.c (dwarf2_locate_sections): Set
10503 dwarf_ranges_section.
10507 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10508 * utils.c: Update comments documenting legitimate uses of PTR.
10510 * utils.c: Re-indent.
10512 * config/djgpp/fnchange.lst: Delete nindy files.
10513 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10514 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10515 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10516 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10517 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10518 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10519 * Makefile.in (init.c): Remove nindy references.
10520 (saber_gdb): Delete rule.
10521 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10522 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10524 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10525 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10526 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10527 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10528 nindy-share/stop.h.
10529 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10530 * saber.suppress: Delete file.
10534 * dbxread.c (stabs_data): New static variable.
10535 (fill_symbuf): Support an in-memory buffer for stabs data.
10536 (stabs_seek): New function.
10537 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10538 (read_ofile_symtab): Use stabs_seek.
10539 (elfstab_build_psymtabs): Take an asection* instead of
10540 an offset and size. Relocate the stabs data if necessary.
10541 Save the section* for dbx_psymtab_to_symtab.
10542 * dwarf2read.c: Add section variables for each debug section.
10543 (dwarf2_locate_sections): Fill them in.
10544 (dwarf2_read_section): Take an asection* argument.
10545 Relocate the section contents if necessary.
10546 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10547 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10548 it to dwarf2_read_section.
10549 (dwarf2_build_frame_info): Update callers.
10550 * elfread.c (elf_symfile_read): Update call to
10551 elfstab_build_psymtabs.
10552 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10553 (DBX_STAB_SECTION): New macro.
10554 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10555 * symfile.c (symfile_dummy_outputs): New function.
10556 (symfile_relocate_debug_section): New function.
10557 * symfile.h (symfile_relocate_debug_section): Add prototype.
10561 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10562 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10563 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10564 * alpha-tdep.c (alpha_register_name): Add "unique".
10565 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10566 (ALPHA_UNIQUE_REGNUM): New.
10567 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10571 * README: Remove reference to Ericsson 1800 monitor.
10572 * Makefile.in (remote-es.o): Delete rule.
10573 (ALLDEPFILES): Delete remote-es.c.
10574 * remote-es.c: Delete file.
10575 * config/m68k/es1800.mt: Delete file.
10576 * config/djgpp/fnchange.lst: Update.
10577 * configure.tgt: Delete m68*-ericsson-* target.
10581 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10582 Remove duplicate/shadowing variable of same name.
10586 * symfile.c (find_separate_debug_file): Assert that the objfile's
10587 directory name we compute ends with a slash, and then assume that
10588 that's so everywhere we use it.
10592 * valops.c (value_assign): Flush frame cache after stores to memory
10597 * Makefile.in (mon960-rom.o): Delete rule.
10598 * mon960-rom.c: Delete file.
10602 * d10v-tdep.c: Include "frame-unwind.h".
10603 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10605 (next_addr, uses_frame): Delete.
10606 (struct d10v_unwind_cache): Define.
10607 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10608 Use info instead of next_addr and uses_frame globals.
10609 (d10v_frame_init_saved_regs): Delete function.
10610 (d10v_init_extra_frame_info): Delete function.
10611 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10612 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10613 init_frame_pc or frame_saved_pc.
10614 (d10v_pop_frame): Delete function.
10615 (do_d10v_pop_frame): Delete function.
10616 (d10v_frame_chain): Delete function.
10617 (d10v_frame_chain_valid): Delete function.
10618 (d10v_frame_pc_unwind): New function.
10619 (d10v_frame_id_unwind): New function.
10620 (saved_regs_unwinder): New function.
10621 (d10v_frame_register_unwind): New function.
10622 (d10v_frame_pop): New function.
10623 (d10v_frame_unwind): New variable.
10624 (d10v_frame_p): New function.
10625 (d10v_frame_saved_pc): Delete function.
10626 * Makefile.in (d10v-tdep.o): Update dependencies.
10630 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10631 causing some regressions due to a change in the default value
10639 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10641 (RANGES_SECTION): New.
10642 (dwarf_ranges_buffer): New variable.
10643 (struct comp_unit_head): Add member "die".
10644 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10645 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10646 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10647 (dwarf2_locate_sections): Likewise.
10648 (dwarf2_build_psymtabs): Read .debug_ranges.
10649 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10650 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10651 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10652 Look for DW_AT_ranges and return the bounding box.
10656 * win32-nat.c (cygwin_pid): Removed as unused.
10657 (child_attach): Try fall back to Cygwin pid.
10661 * objfiles.h (struct objfile): Doc fix.
10665 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10666 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10667 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10668 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10669 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10670 (FRAME_SAVED_PC): Change to a function with predicate.
10671 * gdbarch.h, gdbarch.c: Re-generate.
10675 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10677 * complaints.c (complain): Delete function.
10678 * complaints.h (struct deprecated_complaint): Delete definition.
10679 (complain): Delete declaration.
10683 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10688 * sentinel-frame.h, sentinel-frame.c: New files.
10689 * Makefile.in (frame.o): Update dependencies.
10690 (SFILES): Add sentinel-frame.c.
10691 (sentinel_frame_h): Define.
10692 (COMMON_OBS): Add sentinel-frame.o.
10693 (sentinel-frame.o): Specify dependencies.
10694 * frame.c: Include "sentinel-frame.h".
10695 (frame_register_unwind): Rewrite assuming that there is always a a
10697 (frame_register, generic_unwind_get_saved_register): Ditto.
10698 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10699 (create_sentinel_frame, unwind_to_current_frame): New functions.
10700 (get_current_frame): Rewrite using create_sentinel_frame and
10701 unwind_to_current_frame. When possible, always create a frame.
10702 (create_new_frame): Set next to the sentinel frame.
10703 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10704 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10705 ID cache when necessary.
10706 (frame_saved_regs_id_unwind): Use frame_relative_level.
10707 (deprecated_generic_get_saved_register): Use frame_relative_level,
10708 get_frame_saved_regs, get_frame_pc, get_frame_base and
10710 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10715 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10719 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10720 (maintenance_set_profile_cmd): Use error () instead of warning ().
10724 * configure.in: Check that -pg works if using --enable-profiling.
10725 Check for monstartup and _mcleanup regardless of --enable-profiling.
10726 * maint.c: Check for monstartup and _mcleanup before using them.
10727 * config.in: Regenerated.
10728 * configure: Regenerated.
10732 * Add sh2e support:
10736 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10737 (sh2e_show_regs): New.
10738 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10739 * config/sh/tm-sh.h: Added sh2e to comments.
10743 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10744 symbols found)" message here; we haven't checked for a separate
10745 debug info file yet, so we don't know yet.
10746 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10747 we've looked everywhere. Also, there's no need to print a special
10748 message when we're loading the separate debug info file: the one
10749 symbol_file_add prints is fine.
10754 Add support for executables whose debug info has been separated
10755 out into a separate file, leaving only a link behind.
10756 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10757 and separate_debug_objfile_backlink.
10758 (put_objfile_before): New declaration.
10759 * symfile.c: #include "filenames.h".
10760 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10761 debug info in a separate file, read that, too. Save the addrs
10762 argument, so we can use it again to read the separated debug info;
10763 syms_from_objfile modifies the table we pass it.
10764 (reread_symbols): After re-reading an objfile, call
10765 reread_separate_symbols to refresh its separate debug info
10766 objfile, if it has one.
10767 (reread_separate_symbols, find_separate_debug_file,
10768 get_debug_link_info, separate_debug_file_exists): New functions.
10769 (debug_file_directory): New global var.
10770 (_initialize_symfile): Initialize debug_file_directory, and
10771 provide the new `set debug-file-directory' command to let the user
10773 * objfiles.c (free_objfile): If this objfile has its debug info in
10774 a separate objfile, free that one too. If this is itself a
10775 separate debug info objfile, clear our parent's backlink.
10776 (put_objfile_before): New function.
10777 * utils.c (gnu_debuglink_crc32): New function.
10778 * defs.h (gnu_debuglink_crc32): New declaration.
10779 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10780 * configure.in: Handle --with-separate-debug-dir config option.
10781 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10782 * acconfig.h (DEBUGDIR): New macro.
10783 * configure, aclocal.m4, config.in: Regenerated.
10787 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10788 like the old symbol_file_add, but taking new arguments: you can
10789 now pass in either a `struct section_addr_info' list to say where
10790 each section is loaded, or a `struct section_offsets' table. Pass
10791 these new arguments through to syms_from_objfile as appropriate.
10792 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10793 with the appropriate quiescent values for the new arguments.
10795 * symfile.c: #include "gdb_assert.h".
10796 (syms_from_objfile): Add the ability to pass in a section offset
10797 table directly, as an alternative to the section_addr_info table.
10798 Document arguments better.
10799 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10800 * symfile.h (syms_from_objfile): Update declaration.
10801 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10803 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10809 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10810 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10811 * NEWS: Mention profiling.
10812 * configure.in (--enable-gdbtk): Fix typo.
10813 (--enable-profiling): New. Set PROFILE_CFLAGS.
10814 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10816 (profiling_state): New variable.
10817 (mcleanup_wrapper): New function.
10818 (_initialize_maint): Remove NOTYET, fix call to
10819 add_setshow_boolean_cmd for "maint set profile".
10820 * configure: Regenerated.
10824 * Makefile.in (install-gdbtk): Install PNG images too.
10828 * exec.c (text_start): Delete global variable.
10829 (exec_file_attach): Make text_start local to the function.
10830 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10831 * valops.c (hand_function_call): Delete code that handles
10832 BEFORE_TEXT_END and AFTER_TEXT_END.
10833 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10834 of CALL_DUMMY_LOCATION.
10835 * gdbarch.c: Regenerate.
10836 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10837 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10838 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10839 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10840 (text_end): Delete extern declaration.
10844 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10845 * blockframe.c (backtrace_below_main): Move to "frame.c".
10846 (frame_chain_valid): Delete check for backtrace_below_main.
10847 (_initialize_blockframe): Delete initialization, move ``set
10848 backtrace-below-main'' command to "frame.c".
10849 (do_flush_frames_sfunc): Delete function.
10850 * frame.c: Include "command.h" and "gdbcmd.h".
10851 (frame_type_from_pc): New function.
10852 (create_new_frame): Use frame_type_from_pc.
10853 (legacy_get_prev_frame): New function.
10854 (get_prev_frame): Rewrite. When an old style frame, call
10855 legacy_get_prev_frame. Otherwize, unwind the PC first.
10856 (_initialize_frame): Add ``set backtrace-below-main'' command.
10857 * Makefile.in (frame.o): Update dependencies.
10861 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10862 DEPRECATED_REGISTERS_INFO.
10866 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10867 Maintainers'. Update `Various Maintainers'.
10871 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10872 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10873 Suppress actual parameters when `-'.
10874 * gdbarch.h, gdbarch.c: Regenerate.
10878 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10879 code handling dummy frames.
10883 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10884 (struct frame_unwind): Add field pop.
10885 * frame.h (frame_pop): Declare.
10886 * frame.c (frame_saved_regs_pop): New function.
10887 (trad_frame_unwinder): Add frame_saved_regs_pop.
10888 (frame_pop): New function.
10889 * dummy-frame.c (dummy_frame_pop): New function.
10890 (discard_innermost_dummy): New function.
10891 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10892 (dummy_frame_unwind): Add dummy_frame_pop.
10893 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10894 * valops.c (hand_function_call): Ditto.
10895 * stack.c (return_command): Ditto.
10899 * cris-tdep.c: Fix function declaration indentation.
10900 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10901 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10902 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10903 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10904 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10905 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10909 * README (Unpacking and Installation -- quick overview):
10910 Warn against ".../gdb-5.3/gdb/configure".
10914 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10915 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10916 (struct frame_unwind): Declare opaque.
10917 (dummy_frame_p): Declare function.
10918 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10919 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10920 * dummy-frame.c: Include "frame-unwind.h".
10921 (dummy_frame_p): New function.
10922 (dummy_frame_unwind): New variable.
10923 * frame.c: Include "frame-unwind.h".
10924 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10925 to use the new unwind field.
10926 (set_unwind_by_pc): Delete function.
10927 (create_new_frame, get_prev_frame): Set unwind field using
10928 frame_unwind_find_by_pc.
10929 (trad_frame_unwind, trad_frame_unwinder): New variables.
10930 * frame.h (trad_frame_unwind): Declare variable.
10931 (frame_id_unwind_ftype): Delete declaration.
10932 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10933 (struct frame_unwind): Declare opaque.
10934 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10935 register_unwind with a single unwind pointer.
10936 * frame-unwind.h, frame-unwind.c: New files.
10937 * Makefile.in (SFILES): Add frame-unwind.c.
10938 (frame_unwind_h): Define.
10939 (COMMON_OBS): Add frame-unwind.o.
10940 (frame-unwind.o): Specify dependencies.
10941 (frame.o, dummy-frame.o): Update dependencies.
10945 * ada-valprint.c: Eliminate PTR.
10946 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10947 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10948 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10949 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10950 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10951 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10952 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10956 * main.c (captured_main): Don't use PTR.
10957 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10958 * gdbtypes.c (lookup_primitive_typename): Ditto.
10959 (lookup_struct_elt_type): Ditto.
10960 * f-valprint.c (info_common_command): Ditto.
10961 (list_all_visible_commons): Ditto.
10962 * jv-typeprint.c (java_type_print_base): Ditto.
10964 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10965 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10966 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10967 i386-interix-nat.c and i386-interix-tdep.c. Rename
10968 m68klinux-nat.c and m68klinux-tdep.c. Rename
10969 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10970 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10971 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10972 * main.c (captured_main): Use xfree, not free.
10976 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10977 ID back using a parameter.
10978 * frame.c (frame_id_unwind): Update call.
10979 (frame_saved_regs_id_unwind): Update.
10980 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10981 * dummy-frame.h (struct frame_id): Add opaque declaration.
10982 (dummy_frame_id_unwind): Update declaration.
10986 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10990 * MAINTAINERS (Stephen P. Smith): Updated email address.
10995 * breakpoint.c (until_break_command): Add new argument. Use it to
10996 decide whether to stop only at the current frame or not.
10997 * breakpoint.h (until_break_command): Update prototype.
10998 * infcmd.c (until_command): Add new argument to until_break_command
11000 (advance_command): New function.
11001 (_initialize_infcmd): Update help string for 'until' command.
11002 Add new 'advance' command.
11006 * linespec.c (decode_line_1): Normalize comments.
11007 (set_flags): Ditto.
11008 (locate_first_half): Ditto.
11009 (decode_compound): Ditto.
11010 (symtab_from_filename): Ditto.
11011 (decode_all_digits): Ditto.
11012 (decode_dollar): Ditto.
11013 (find_methods): Ditto.
11014 (find_toplevel_char): Ditto.
11018 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11019 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11020 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11021 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11022 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11023 * language.c, language.h, m32r-tdep.c: Update copyright.
11024 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11025 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11026 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11027 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11028 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11029 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11033 * stabsread.h (process_later, resolve_cfront_continuation):
11035 Update copyright years.
11036 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11037 Update copyright year.
11038 * dbxread.c(struct cont_elem): Obsolete.
11039 (process_later, process_now): Obsolete functions.
11040 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11041 Update copyright year.
11042 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11043 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11044 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11045 (parse_partial_symbols): Obsolete cfront support.
11047 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11049 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11050 read_cfront_baseclasses, read_cfront_member_functions,
11051 resolve_cfront_continuation,read_cfront_static_fields,
11052 copy_cfront_struct_fields): Obsolete functions.
11053 (define_symbol, read_one_struct_field): Obsolete cfront support.
11054 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11055 Update Copyright year.
11059 * stack.c (print_frame_info, print_stack_frame_base_stub,
11060 print_stack_frame_base, show_and_print_stack_frame_stub,
11061 show_and_print_stack_frame, print_only_stack_frame_stub,
11062 print_only_stack_frame): Delete functions.
11063 (print_stack_frame_stub): Call print_frame_info instead of
11064 print_frame_info_base.
11065 (print_frame_info_base): Rename to print_frame_info.
11066 (backtrace_command_1): Call print_frame_info, instead of
11067 print_frame_info_base.
11068 (current_frame_command): Call print_stack_frame, instead of
11069 print_only_stack_frame.
11070 (frame_command): Call print_stack_frame, instead of
11071 show_and_print_stack_frame.
11072 (up_command): Ditto.
11073 (down_command): Ditto.
11074 * frame.h (print_only_stack_frame): Delete prototype.
11075 * infrun.c (normal_stop): Call print_stack_frame, instead of
11076 show_and_print_stack_frame.
11077 * thread.c (info_threads_command): Call print_stack_frame, instead
11078 of print_only_stack_frame.
11082 * README (Graphical interface to GDB): Update URL. Point at
11085 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11090 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11095 * thread-db.c (attach_thread): Prototype.
11096 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11097 thread information (ti), and valid flags (th_valid, ti_valid).
11098 (attach_thread): Move target_pid_to_str call to after the thread
11099 is added to GDB's list. Initialize the cache.
11100 (thread_get_info_callback, thread_db_map_id2thr)
11101 (thread_db_get_info): New functions.
11102 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11103 (thread_db_store_registers, thread_db_thread_alive)
11104 (thread_db_get_thread_local_address): Use them.
11105 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11106 of calling error() for threads in unknown state.
11108 (clear_lwpid_callback): New function.
11109 (thread_db_resume): Use it to clear the cache.
11113 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11114 (resume_callback): Remove dead code.
11118 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11120 * gdbarch.h, gdbarch.c: Regenerate.
11121 * stack.c (frame_info): Only initialize the saved registers when
11122 FRAME_INIT_SAVED_REGS_P.
11123 * frame.c (frame_saved_regs_register_unwind): Assert
11124 FRAME_INIT_SAVED_REGS_P.
11125 (deprecated_generic_get_saved_register): Ditto.
11129 * source.c (openp): Squelch warning about "filename".
11133 * source.c (openp): If the file does not exist don't necessarily
11139 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11140 (integer_types_same_name_p): New function.
11141 (rank_one_type): Use it.
11142 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11146 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11148 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11149 * configure.in: Add --with-sysroot.
11150 * configure: Regenerated.
11151 * main.c (gdb_sysroot): New variable.
11152 (captured_main): Initialize gdb_sysroot.
11153 * defs.h (gdb_sysroot): New extern declaration.
11154 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11158 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11162 * top.c (print_gdb_version): Bump copyright year to 2003.
11166 * linespec.c (symtab_from_filename): Rename variable 's' to
11171 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11173 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11177 * d10v-tdep.c: Include "gdb_assert.h".
11178 (d10v_store_return_value): Rewrite to match current interface.
11179 (d10v_extract_struct_value_address): Ditto.
11180 (d10v_extract_return_value): Ditto.
11181 (d10v_gdbarch_init): Set store_restore_value,
11182 extract_struct_value_address and extract_return_value.
11186 * hpread.c (set_namestring): New procedure replacing the
11187 SET_NAMESTRING macro.
11188 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11189 by calls to set_namestring.
11193 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11194 a compilation warning.
11195 (hpread_process_one_debug_symbol): Likewise.
11199 * linespec.c (decode_line_1): Rename variable 's' to
11201 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11202 (decode_dollar): Ditto.
11203 (decode_variable): Ditto.
11204 (symbol_found): Ditto.
11208 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11212 * win32-nat.c (set_process_privilege): New function.
11213 (child_attach): Call set_process_privilege() to enable the
11214 SE_DEBUG_NAME user privilege if available in process token.
11218 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11219 compilation error in the previous revision.
11223 * linespec.c: Update copyright.
11227 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11228 than inferior_ptid.
11229 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11233 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11235 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11236 (frame_saved_regs_zalloc): Update.
11237 (frame_saved_regs_register_unwind): Update.
11238 (create_new_frame): Update.
11239 (get_prev_frame): Update.
11240 (frame_extra_info_zalloc): Update.
11241 (deprecated_get_frame_saved_regs): Update.
11242 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11243 * cris-tdep.c: Update comment.
11245 * somsolib.h: Fix function indentation.
11246 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11247 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11248 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11249 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11250 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11252 * infrun.c (follow_fork): Use ISO C definition.
11253 * expprint.c (print_subexp): Use xfree instead of free.
11254 * charset.c: Include "gdb_string.h" instead of <string.h>.
11255 (register_iconv_charsets): Use ISO C definition.
11256 (host_charset, target_charset): Ditto.
11257 * Makefile.in (charset.o): Update dependencies.
11258 (mi-cmd-env.o): Update dependencies.
11262 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11267 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11268 build directories. Save edited gdb output in Mbuild.log. If a
11269 build fails, remove any final GDB executable.
11273 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11274 replacing hex constants with function names and stripping leading
11275 file name directory prefixes.
11279 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11284 * linespec.c (decode_line_1): Move code into decode_variable.
11285 (decode_variable): New function.
11289 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11293 * cris-tdep.c (cris_frame_init_saved_regs): Use
11294 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11296 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11297 (sh64_nofp_frame_init_saved_regs): Ditto.
11298 (sh_fp_frame_init_saved_regs): Ditto.
11299 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11300 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11301 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11302 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11306 * minsyms.c (lookup_minimal_symbol): Update comment.
11307 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11308 (lookup_minimal_symbol_solib_trampoline): Likewise.
11312 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11313 frame_relative_level.
11315 * alpha-tdep.c: Use get_frame_extra_info.
11316 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11317 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11318 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11319 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11321 * alpha-tdep.c: Use get_next_frame.
11322 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11323 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11324 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11325 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11326 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11327 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11328 * xstormy16-tdep.c: Ditto.
11332 * alpha-tdep.c: Use get_frame_base.
11333 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11334 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11335 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11336 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11337 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11338 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11339 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11340 * config/sparc/tm-sparc.h: Ditto.
11344 * frame.c (deprecated_get_frame_context): New function.
11345 (deprecated_set_frame_context): New function.
11346 * frame.h (deprecated_get_frame_context): Declare.
11347 (deprecated_set_frame_context): Declare.
11348 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11349 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11353 * frame.c (deprecated_set_frame_next_hack): New function.
11354 (deprecated_set_frame_prev_hack): New function.
11355 * frame.h (deprecated_set_frame_next_hack): Declare.
11356 (deprecated_set_frame_prev_hack): Declare.
11357 * mcore-tdep.c (analyze_dummy_frame): Use
11358 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11359 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11363 * linespec.c (decode_line_1): Move code into decode_dollar.
11364 (decode_dollar): New function.
11368 * arm-tdep.c (arm_init_extra_frame_info): Use
11369 deprecated_update_frame_base_hack.
11370 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11371 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11372 (fix_frame_pointer): Ditto.
11373 (mn10300_analyze_prologue): Ditto.
11377 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11378 extra_info using frame_extra_info_zalloc.
11379 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11380 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11381 (sh64_init_extra_frame_info): Ditto.
11382 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11383 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11384 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11385 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11386 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11387 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11388 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11389 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11390 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11391 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11392 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11393 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11395 * mn10300-tdep.c (analyze_dummy_frame): Use
11396 deprecated_set_frame_extra_info_hack.
11397 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11401 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11402 class is not scText. These do not define "real" procedures.
11403 (parse_partial_symbols): Likewise.
11407 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11411 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11412 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11413 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11414 deprecated_frame_xmalloc_with_cleanup.
11415 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11416 deprecated_frame_xmalloc.
11417 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11418 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11422 * x86-64-linux-tdep.c: Include "osabi.h".
11423 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11425 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11429 * MAINTAINERS (Target Instruction Set Architectures): Update
11430 arm-elf. Can be built with -Werror, has been multiarched.
11432 * value.h (unpack_long): Make buffer parameter constant.
11433 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11434 * scm-lang.h (scm_parse): Ditto.
11435 * defs.h (extract_typed_address, extract_address): Ditto.
11436 (extract_long_unsigned_integer): Ditto.
11437 * inferior.h (unsigned_pointer_to_address): Ditto.
11438 (signed_pointer_to_address): Ditto.
11439 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11440 * gdbarch.h, gdbarch.c: Regenerate.
11441 * findvar.c (extract_long_unsigned_integer): Update.
11442 (extract_address): Update.
11443 (extract_typed_address): Update.
11444 (unsigned_pointer_to_address): Update.
11445 * values.c (unpack_long): Update.
11446 (unpack_double): Update.
11447 (unpack_pointer): Update.
11448 (unpack_field_as_long): Update.
11449 * d10v-tdep.c (d10v_pointer_to_address): Update.
11450 * avr-tdep.c (avr_pointer_to_address): Update.
11451 * scm-lang.c (scm_unpack): Update.
11452 * findvar.c (signed_pointer_to_address): Update.
11456 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11457 since it is in i386-tdep.c.
11461 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11462 failure introduced in the previous change.
11466 * README: Remove references to deleted remote-*.c files:
11467 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11468 remote-nrom.c, remote-os9k.c, remote-udi.c.
11472 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11473 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11474 i386_get_longjmp_target.
11478 * arm-tdep.c (prologue_cache): Change to a pointer.
11479 (_initialize_arm_tdep): Allocate prologue_cache.
11480 (check_prologue_cache): Update.
11481 (save_prologue_cache): Update.
11482 (arm_gdbarch_init): Update.
11486 * stabsread.c (update_method_name_from_physname): Call complaint()
11491 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11492 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11493 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11495 * blockframe.c: Include "gdbcmd.h" and "command.h".
11496 (backtrace_below_main): New variable.
11497 (file_frame_chain_valid, func_frame_chain_valid)
11498 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11499 (generic_func_frame_chain_valid): Remove functions.
11500 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11501 (_initialize_blockframe): New function.
11502 * Makefile.in (blockframe.o): Update dependencies.
11503 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11504 comment. Call frame_chain_valid ().
11505 * frame.h: Remove old prototypes. Add prototype for
11506 frame_chain_valid and update comments to match.
11507 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11508 Remove old comment.
11509 * gdbarch.h: Regenerated.
11510 * gdbarch.c: Regenerated.
11512 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11513 set_gdbarch_frame_chain_valid.
11514 * avr-tdep.c (avr_gdbarch_init): Likewise.
11515 * cris-tdep.c (cris_gdbarch_init): Likewise.
11516 * frv-tdep.c (frv_gdbarch_init): Likewise.
11517 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11518 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11519 (i386_nw_init_abi): Likewise.
11520 (i386_gdbarch_init): Likewise.
11521 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11523 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11524 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11525 * mips-tdep.c (mips_gdbarch_init): Likewise.
11526 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11527 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11528 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11529 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11530 * s390-tdep.c (s390_gdbarch_init): Likewise.
11531 * sh-tdep.c (sh_gdbarch_init): Likewise.
11532 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11533 * v850-tdep.c (v850_gdbarch_init): Likewise.
11534 * vax-tdep.c (vax_gdbarch_init): Likewise.
11535 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11537 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11538 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11539 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11540 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11541 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11542 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11543 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11544 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11548 * Makefile.in (acconfig_h): Remove incorrect macro.
11549 (config_h): Define.
11550 (osabi.o): Update dependencies.
11551 * configure.tgt: Set gdb_osabi based on target triplet.
11552 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11553 * configure: Regenerated.
11554 * config.in: Regenerated.
11555 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11556 (GDB_OSABI_DEFAULT): Define if not already defined.
11557 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11558 (set_osabi_string): New variables.
11559 (gdbarch_register_osabi): Add new OS ABI to
11560 gdb_osabi_available_names.
11561 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11562 (set_osabi, show_osabi): New functions.
11563 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11567 * arch-utils.c (gdbarch_info_init): Set osabi to
11568 GDB_OSABI_UNINITIALIZED.
11569 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11570 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11571 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11572 * gdbarch.c: Regenerated.
11573 * gdbarch.h: Regenerated.
11574 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11576 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11577 * osabi.h (enum gdb_osabi): Move to defs.h.
11578 (gdbarch_init_osabi): Update prototype.
11579 * defs.h (enum gdb_osabi): Moved here.
11580 * Makefile.in: Update dependencies.
11582 * alpha-tdep.h: Don't include "osabi.h".
11583 (struct gdbarch_tdep): Remove osabi member.
11584 * alpha-tdep.c: Include "osabi.h".
11585 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11586 iterate over arches. Update call to gdbarch_init_osabi.
11587 (alpha_dump_tdep): Don't dump osabi.
11588 * alpha-linux-tdep.c: Include "osabi.h".
11589 * alpha-osf1-tdep.c: Include "osabi.h".
11590 * alphafbsd-tdep.c: Include "osabi.h".
11591 * alphanbsd-tdep.c: Include "osabi.h".
11593 * arm-tdep.h: Don't include "osabi.h".
11594 (struct gdbarch_tdep): Remove osabi member.
11595 * arm-tdep.c: Include "osabi.h".
11596 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11597 iterate over arches. Update call to gdbarch_init_osabi.
11598 (arm_dump_tdep): Don't dump osabi.
11599 * arm-linux-tdep.c: Include "osabi.h".
11600 * armnbsd-tdep.c: Include "osabi.h".
11602 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11603 Update call to gdbarch_init_osabi.
11605 * i386-tdep.h: Don't include "osabi.h".
11606 (struct gdbarch_tdep): Remove osabi member.
11607 * i386-tdep.c: Include "osabi.h".
11608 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11609 iterate over arches. Update call to gdbarch_init_osabi.
11610 (i386_dump_tdep): Don't dump osabi.
11611 * i386-linux-tdep.c: Include "osabi.h".
11612 * i386-sol2-tdep.c: Include "osabi.h".
11613 * i386bsd-tdep.c: Include "osabi.h".
11614 * i386gnu-tdep.c: Include "osabi.h".
11615 * i386ly-tdep.c: Include "osabi.h".
11616 * i386nbsd-tdep.c: Include "osabi.h".
11617 * i386obsd-tdep.c: Include "osabi.h".
11619 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11620 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11621 check osabi when iterating over arches. Update call to
11622 gdbarch_init_osabi.
11623 (mips_dump_tdep): Don't dump osabi.
11625 * ns32k-tdep.h: Don't include "osabi.h".
11626 (struct gdbarch_tdep): Remove.
11627 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11628 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11629 allocate tdep. Update call to gdbarch_init_osabi.
11630 (ns32k_dump_tdep): Remove.
11631 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11632 * ns32knbsd-tdep.c: Include "osabi.h".
11634 * ppc-tdep.h: Don't include "osabi.h".
11635 (struct gdbarch_tdep): Remove osabi member.
11636 * rs6000-tdep.c: Include "osabi.h".
11637 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11638 osabi when iterating over arches. Update call to
11639 gdbarch_init_osabi.
11640 (rs6000_dump_tdep): Don't dump osabi.
11641 * ppc-linux-tdep.c: Include "osabi.h".
11642 * ppcnbsd-tdep.c: Include "osabi.h".
11644 * sh-tdep.h: Don't include "osabi.h".
11645 (struct gdbarch_tdep): Remove osabi member.
11646 * sh-tdep.c: Include "osabi.h".
11647 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11648 iterate over arches. Update call to gdbarch_init_osabi.
11649 (sh_dump_tdep): Don't dump osabi.
11650 * shnbsd-tdep.c: Include "osabi.h".
11652 * sparc-tdep.c: Include "osabi.h".
11653 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11654 iterate over arches. Update call to gdbarch_init_osabi.
11655 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11658 * vax-tdep.h: Don't include "osabi.h".
11659 (struct gdbarch_tdep): Remove.
11660 * vax-tdep.c: Include "osabi.h".
11661 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11662 iterate over arches. Don't allocate tdep. Update call
11663 to gdbarch_init_osabi.
11664 (vax_dump_tdep): Remove.
11665 (_initialize_vax_tdep): Update call to gdbarch_register.
11669 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11671 (breakpoint_re_set_one): Don't fetch the value for a disabled
11676 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11677 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11678 (COERCE_FLOAT_TO_DOUBLE): Remove.
11679 * gdbarch.c: Regenerate.
11680 * gdbarch.h: Regenerate.
11681 * Makefile.in: Remove value_h from gdbarch_h.
11682 * valops.c (coerce_float_to_double): New variable.
11683 (default_coerce_float_to_double): Remove.
11684 (standard_coerce_float_to_double): Remove.
11685 (value_arg_coerce): Use coerce_float_to_double.
11686 (_initialize_valops): Add "set coerce-float-to-double".
11687 * value.h (default_coerce_float_to_double): Remove prototype.
11688 (standard_coerce_float_to_double): Remove prototype.
11690 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11692 * mdebugread.c (parse_symbol): Likewise.
11693 * stabsread.c (define_symbol): Mark all functions as prototyped.
11695 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11696 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11697 set_gdbarch_coerce_float_to_double.
11698 * arm-tdep.c (arm_gdbarch_init): Likewise.
11699 * frv-tdep.c (frv_gdbarch_init): Likewise.
11700 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11701 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11702 * mips-tdep.c (mips_gdbarch_init): Likewise.
11703 (mips_coerce_float_to_double): Remove.
11704 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11705 (rs6000_coerce_float_to_double): Remove.
11706 * s390-tdep.c (s390_gdbarch_init): Likewise.
11707 * sh-tdep.c (sh_gdbarch_init): Likewise.
11708 (sh_coerce_float_to_double): Remove.
11709 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11710 (sparc_coerce_float_to_double): Remove.
11711 * v850-tdep.c (v850_gdbarch_init): Likewise.
11712 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11713 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11714 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11715 (hppa_coerce_float_to_double): Remove prototype.
11716 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11720 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11725 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11726 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11727 (c_type_print_varspec_suffix): Likewise.
11731 * configure.in: Don't set and AC_SUBST SUBDIRS.
11732 * configure: Regenerated.
11734 * configure.in: Remove code dealing with shared libraries.
11735 * Makefile.in: Remove HLDFLAGS and HLDENV.
11736 * configure: Regenerated.
11740 * frame.c (deprecated_frame_xmalloc): New function.
11741 (deprecated_set_frame_saved_regs_hack): New function.
11742 (deprecated_set_frame_extra_info_hack): New function.
11743 * frame.h (deprecated_frame_xmalloc): Declare.
11744 (deprecated_set_frame_saved_regs_hack): Declare.
11745 (deprecated_set_frame_extra_info_hack): Declare.
11749 * configure.in: Move code that provides the --enable-gdbtk option
11750 right after the code that handles the --enable-tui option, and
11751 polish it somewhat.
11752 * configure: Regenerated.
11754 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11755 AC_CHECK_FUNCS and remove the old check for pread64.
11756 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11757 * acconfig.h (_GNU_SOURCE): Add.
11758 (HAVE_PREAD64): Remove.
11759 * configure, aclocal.m4, config.in: Regenerated.
11763 * alpha-tdep.c: Use get_frame_saved_regs.
11764 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11765 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11766 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11767 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11768 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11772 * configure.in: Remove all use of the SUBDIRS variable; add
11773 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11774 code providing the --enable-multi-ice option, and move it right in
11775 front of the code that checks whether gdbserver is supported.
11777 * configure: Regenerated.
11778 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11783 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11784 * avr-tdep.c, cris-tdep.c: Ditto.
11785 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11786 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11790 * configure.in: Remove --enable-netrom option.
11791 * configure: Regenerated.
11795 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11796 declaration for `struct re_pattern_buffer' instead.
11797 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11801 * mdebugread.c (parse_symbol): Count until the stEnd matching
11802 the structure name.
11806 * configure.in: Remove --with-cpu option.
11807 subscripts. Remove evil changequotes here.
11808 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11809 * config.in, configure: Regenerated.
11811 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11812 * configure.in: Cleanup section that sources GDB and BFD configure
11813 subscripts. Remove evil changequotes here.
11814 * config.in, configure: Regenerated.
11818 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11819 frame accessor methods.
11820 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11821 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11822 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11823 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11824 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11825 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11826 * z8k-tdep.c: Ditto.
11830 * configure.in: Remove UI_OUT configuration code.
11831 * ada-lang.c: Update assuming UI_OUT is always true.
11832 * Makefile.in (UIOUT_CFLAGS): Remove.
11833 * configure: Regenerated.
11834 * TODO: Remove blurb about elimination of -DUI_OUT.
11836 * configure.in: Move code that provides the --enable-gdbcli,
11837 --enable-gdbmi options right before the code that handles the
11838 --enable-tui option. Polish a bit.
11839 * configure: Regenerated.
11841 * configure.in: Rewrite check for GNU regex and the
11842 --without-included regex option, and move it into the "Checks for
11843 library functions" section. This makes us use the system regex
11844 again by default on systems with version 2 of the GNU C library.
11845 This was apparently broken.
11846 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11847 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11848 * config.in, configure: Regenerated.
11850 * configure.in: Move code that provides the --enable-tui option
11851 before the "Checks for libraries" section. Polish the code
11852 somewhat and set need_curses to yes if we build the TUI. Rewrite
11853 code that looks for a library providing termcap functionality to
11854 match more closely what's done in the Readline library, and move
11855 it into to the "Checks for libraries" section.
11856 * configure: Regenerated.
11857 * Makefile.in (TERMCAP): Remove variable.
11858 * config/i386/go32.mh (TERMCAP): Remove variable.
11862 * MAINTAINERS: Mention gdb_mbuild.sh.
11863 * gdb_mbuild.sh: Rewrite.
11867 * configure.in: Fix typo in last change.
11868 * config.in, configure: Regenerated.
11872 * valarith.c (value_binop): Delete obsolete code and comments.
11873 * configure.host: Ditto.
11874 * buildsym.h (make_blockvector): Ditto.
11875 * buildsym.c (make_blockvector): Ditto.
11876 * defs.h (enum language): Ditto.
11877 (chill_demangle): Ditto.
11878 * elfread.c (elf_symtab_read): Ditto.
11879 * dwarfread.c (CHILL_PRODUCER): Ditto.
11880 (set_cu_language): Ditto.
11881 (handle_producer): Ditto.
11882 * expprint.c (print_subexp): Ditto.
11883 * gdbtypes.c (chill_varying_type): Ditto.
11884 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11885 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11886 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11887 (chill_varying_type): Ditto.
11888 * language.h (_LANG_chill): Ditto.
11889 * language.c (binop_result_type, integral_type): Ditto.
11890 (character_type, string_type, structured_type): Ditto.
11891 (lang_bool_type, binop_type_check): Ditto.
11892 * stabsread.h (os9k_stabs): Ditto.
11893 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11894 (define_symbol, read_type, read_struct_fields): Ditto.
11895 (read_array_type, read_enum_type, read_huge_number): Ditto.
11896 (read_range_type, start_stabs): Ditto.
11897 * symfile.c (init_filename_language_table): Ditto.
11898 (add_psymbol_with_dem_name_to_list): Ditto.
11899 * symtab.c (symbol_init_language_specific): Ditto.
11900 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11901 * symtab.h (struct general_symbol_info): Ditto.
11902 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11903 * typeprint.c (typedef_print): Ditto.
11904 * utils.c (fprintf_symbol_filtered): Ditto.
11905 * valops.c (value_cast, search_struct_field, value_slice): Delete
11907 (varying_to_slice): Delete function.
11908 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11909 (varying_to_slice): Delete declaration.
11910 * MAINTAINERS: Update.
11914 * configure.in: Reorganize "Checks for library functions section"
11915 a bit. Remove check for `btowc' and `isascii' functions.
11916 * configure: Regenerated.
11918 * acconfig.h (_MSE_INT_H): Remove.
11919 * configure.in: Create "Checks for header files" section, and move
11920 appropriate tests there. Don't check for objlist.h, wchar.h,
11921 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11922 misdetection fix. Also add "Checks for types", "Checks for
11923 compiler characteristics" and "Checks for library functions"
11925 * config.in, configure: Regenerated.
11927 * configure.in: Create "Checks for programs" section, and move
11928 appropriate tests there.
11932 * configure.in: Create "Checks for libraries" section, and move
11933 appropriate tests there. Cleanup check for wctype in libw. Use
11934 AC_SEARCH_LIBS to see whether we need libsocket.
11935 * configure: Regenerated.
11937 For older changes see ChangeLog-2002
11943 version-control: never