aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2003-04-082003-04-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-0/+6
* gdb792.exp: Skip when C++.
2003-04-082003-04-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-3/+6
* gdbint.texinfo (Target Architecture Definition): Delete references to EXTRA_FRAME_INFO.
2003-04-082003-04-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-5/+5
* gdbint.texinfo (Target Architecture Definition): Delete PRINT_TYPELESS_INTEGER.
2003-04-082003-04-08 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni12-33/+75
* infrun.c (stop_soon): Rename from stop_soon_quietly. (struct inferior_status): Rename stop_soon_quietly field to stop_soon. (clear_proceed_status): Rename stop_soon_quietly to stop_soon. (start_remote): Ditto. (handle_inferior_event): Ditto. (save_inferior_status): Ditto. (restore_inferior_status): Ditto. * infcmd.c (attach_command): Ditto. * fork-child.c (startup_inferior): Ditto. * inferior.h (stop_soon): Rename from stop_soon_quietly. * alpha-tdep.c (heuristic_proc_start): Ditto. * mips-tdep.c (heuristic_proc_start): Ditto. * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto. * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto. * solib-osf.c (osf_solib_create_inferior_hook): Ditto. * solib-irix.c (irix_solib_create_inferior_hook): Ditto. * remote-vx.c (vx_create_inferior): Ditto.
2003-04-082003-04-08 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni11-27/+75
* infrun.c (stop_soon_quietly): Make it an enum, to better override the default behavior of handle_inferior_event. (clear_proceed_status): Update uses of stop_soon_quietly to reflect that it is now an enum. (start_remote): Ditto. (handle_inferior_event): Change logic a bit if stop_soon_quietly is set to handle the new GNU/Linux kernel behavior for attach/sigstop. Update uses of stop_soon_quietly. * inferior.h (enum stop_kind): New enum. * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP. Reset normal handle_inferior_event behavior, afterwards. * fork-child.c (startup_inferior): Update. * alpha-tdep.c (heuristic_proc_start): Update. * solib-svr4.c (svr4_solib_create_inferior_hook): Update. * solib-sunos.c (sunos_solib_create_inferior_hook): Update. * solib-osf.c (osf_solib_create_inferior_hook): Update. * solib-irix.c (irix_solib_create_inferior_hook): Update. * remote-vx.c (vx_create_inferior): Update. * mips-tdep.c (heuristic_proc_start): Update.
2003-04-082003-04-04 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-3/+14
* disasm.c (dump_insns): Move variables inside loop, or they will be freed more than once, causing wild memory corruptions. (gdb_disassembly): Look for the substring "-thread", instead of "-threads" in the target name, to make sure to find the 'multi-thread' target. Also, make sure we do the right thing with the "core" target.
2003-04-08*** empty log message ***gdbadmin1-1/+1
2003-04-07 * mips-tdep.c (mips_print_fp_register): New function, created fromKevin Buettner2-111/+91
do_fp_register_row(). Registers are now (also) printed as hex. Only one register is printed per row. (mips_print_register, do_fp_register_row): Print floating point registers with mips_print_fp_register().
2003-04-07*** empty log message ***gdbadmin1-1/+1
2003-04-062003-04-06 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-9/+30
* valprint.h (inspect_it): Add extern declaration. * objc-lang.c (value_nsstring): Avoid assignment inside of "if". (selectors_info, classes_info): Ditto. (find_objc_msgcall): Fix indentation. (objc_printstr): Delete extern declarations.
2003-04-062003-04-06 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-1/+5
* arm-tdep.c (arm_frameless_function_invocation): Fix typo.
2003-04-062003-04-06 Andrew Cagney <cagney@redhat.com>Andrew Cagney6-23/+37
* frame.h (legacy_frame_chain_valid): Rename frame_chain_valid. Update comment. * frame.c (legacy_saved_regs_this_id): Update. (legacy_get_prev_frame): Update. * xstormy16-tdep.c: Update comment. * sparc-tdep.c (sparc_frame_chain): Update comment. * blockframe.c (legacy_frame_chain_valid): Update.
2003-04-062003-04-06 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-4/+3
* valprint.c (val_print_type_code_int): Delete #ifdef PRINT_TYPELESS_INTEGER code.
2003-04-062003-04-06 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-15/+18
* gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES) (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial multi-arch definition. * gdbarch.h: Re-generate.
2003-04-062003-04-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney14-181/+160
Eliminate FRAME_FIND_SAVED_REGS. * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp): Change FSR parameter to a pointer. * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Assume FSR parameter is a pointer. * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp): Make fsr a pointer. * hppa-tdep.c (hppa_frame_find_saved_regs): New function. (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make saved_regs a pointer. (hppa_frame_saved_pc): Ditto. (find_dummy_frame_regs): Make frame_saved_regs a pointer (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a pointer. (restore_pc_queue): Make fsr a pointer. (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer. (hppa_frame_chain): Make saved_regs a pointer, call hppa_frame_init_saved_regs. * sparc-tdep.c: Include "gdb_assert.h". (sparc_frame_find_saved_regs): Replace internal_error with gdb_assert. * remote-vxsparc.c (vx_read_register): Delete reference to FRAME_FIND_SAVED_REGS. * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS. * gdbarch.h: Regenerate. * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro. (deprecated_get_frame_saved_regs): Delete declaration. (struct frame_saved_regs): Delete definition. * frame.c (deprecated_get_frame_saved_regs): Delete function. * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare. (hppa_frame_find_saved_regs): Delete declaration. (FRAME_FIND_SAVED_REGS): Delete macro. (DEPRECATED_FRAME_INIT_SAVED_REGS): Define. * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete FRAME_FIND_SAVED_REGS in comment.
2003-04-06*** empty log message ***gdbadmin1-1/+1
2003-04-052003-04-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney14-20/+72
* frame.c (frame_func_unwind, get_frame_func): New functions. * frame.h (get_frame_func, frame_func_unwind): Declare. (struct frame_info): Add field "prev_func" for caching the previous frame's function address. * arm-tdep.c (arm_frameless_function_invocation): Combine get_pc_function_start and get_frame_pc into get_frame_func. * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto. (sh64_nofp_frame_init_saved_regs): Ditto. * s390-tdep.c (s390_function_start): Ditto. * rs6000-tdep.c (rs6000_pop_frame): Ditto. (rs6000_frameless_function_invocation): Ditto. (rs6000_frame_saved_pc): Ditto. * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto. * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto. * i386-tdep.c (i386_frameless_signal_p): Ditto. (i386_frame_init_saved_regs): Ditto. * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto. * d10v-tdep.c (d10v_frame_unwind_cache): Combine get_pc_function_start and frame_pc_unwind into frame_func_unwind. * cris-tdep.c (cris_frame_init_saved_regs): Ditto. * blockframe.c (frameless_look_for_prologue): Ditto.
2003-04-052003-04-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-6/+17
* frame.c (legacy_get_prev_frame): Link prev to next at the function start. Update comments.
2003-04-052003-04-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney6-73/+12
* frame.c (get_frame_id): Update comment. (legacy_get_prev_frame): Update comment. * gdbarch.sh: Delete check for EXTRA_FRAME_INFO. * gdbarch.h: Regenerate. * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete. * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
2003-04-052003-04-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-1/+5
* stack.c (print_frame_info): Use get_frame_pc.
2003-04-05 * gdb.base/break.exp: marker4() is defined at line 46 when compiledStephane Carrez2-0/+9
with -DPROTOTYPES.
2003-04-05 * gdb.base/break.exp: Revert last patch.Stephane Carrez2-4/+4
2003-04-052003-04-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney8-16/+85
* frame.c (get_prev_frame): Do not call frame_type_from_pc. Set the frame's type from the unwinder. (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME. (create_new_frame, legacy_get_prev_frame): When the unwinder's type isn't UNKNOWN_FRAME, initalize "type" from the unwinder. (get_frame_base_address): Use get_frame_type. (get_frame_locals_address, get_frame_args_address): Ditto. (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE. * frame.h (enum frame_type): Add UNKNOWN_FRAME. (struct frame_info): Add comment explaining why the frame contains a "type" field. * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME. * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME. * sentinel-frame.c (sentinel_frame_unwinder): Set the type to NORMAL_FRAME. * frame-unwind.h: Include "frame.h". (struct frame_unwind): Add "type" field. * Makefile.in (frame_unwind_h): Add $(frame_h).
2003-04-05*** empty log message ***gdbadmin1-1/+1
2003-04-042003-04-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney5-42/+62
* x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build. * dummy-frame.c (dummy_frame_this_id): Use frame_id_build. * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and get_frame_base. (d10v_unwind_dummy_id): Use frame_id_build. * frame.c (find_frame_sal): Use get_frame_pc. (create_new_frame): Use deprecated_update_frame_pc_hack and deprecated_update_frame_base_hack. (create_sentinel_frame): Add comment about ->pc going away. (get_prev_frame): Add comment about ->pc going away. (legacy_get_prev_frame): Use get_frame_base, get_frame_pc, frame_id_build, deprecated_update_frame_pc_hack and deprecated_update_frame_base_hack. (select_frame): Use get_frame_pc. (legacy_saved_regs_this_id): Use frame_id_build.
2003-04-04 * gdb.base/break.exp: marker4() is defined at line 46 when compiledStephane Carrez2-0/+9
with -DPROTOTYPES.
2003-04-042003-04-04 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-5/+19
* x86-64-tdep.c (x86_64_push_arguments): Handle correctly the signed integer case. (classify_argument): Handle enumerations and references.
2003-04-042003-04-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-0/+9
* frame.c (create_sentinel_frame): Initialize the sentinel frame's ID to NULL.
2003-04-04* arm-tdep.c (push_stack_item): Use xmalloc.Richard Earnshaw1-1/+1
2003-04-04* gdb/objc-lang.c (selectors_info): Replace calls toAdam Fedor2-24/+15
SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with SYMBOL_NATURAL_NAME. (classes_info, find_methods): Likewise.
2003-04-04*** empty log message ***gdbadmin1-1/+1
2003-04-03 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, setKevin Buettner2-2/+7
``mach'' to the value determined by bfd_default_set_arch_mach().
2003-04-032003-04-02 Andrew Cagney <cagney@redhat.com>Andrew Cagney7-37/+63
* gdb.base/callfuncs.exp: Make "print add" messages unique. * gdb.base/ending-run.exp: Put spaces around "breakpoint" to stop matching directories by the name breakpoint. * gdb.base/pointers.exp: Make "ptype pppC" message consistent. Make "continue to marker1" consistent. * gdb.base/call-rt-st.exp: Make "finish out from loop_count" message consistent. * lib/gdb.exp: Put "the program is no longer running", and "the program exited" in parenthesis. * lib/mi-support.exp: Ditto.
2003-04-03 * observer.texi (GDB Observers): Adjust the documentation for theJoel Brobecker2-6/+18
normal_stop notification to better describe reality. Fix a couple of minor typos.
2003-04-03Fixing Changelog for Makefile.in that I just committedBob Rossi1-0/+6
2003-04-03*** empty log message ***gdbadmin1-1/+1
2003-04-02I broke my first ChangeLog :), fixing it.Bob Rossi4-11/+18
2003-04-02Adding -file-list-exec-source-file command to MIBob Rossi9-2/+213
2003-04-02 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)Kevin Buettner2-0/+13
(mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
2003-04-02* Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).Adam Fedor15-32/+81
* language.h (struct language_defn): Add la_demangle. (language_demangle): Declare. * language.c (language_demangle): New function. (unk_lang_demangle): Likewise. (unknown_language_defn, auto_language_defn, local_language_defn): Add ukn_lang_demangle. * ada-lang.c (ada_language_defn): Add NULL for la_demangle element. * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise. * c-lang.c (c_language_defn, asm_language_defn): Likewise. (cplus_language_defn): Add cplus_demangle for la_demangle element. * jv-lang.c (java_demangle): New function (java_language_defn): Use it for la_demangle element. * objc-lang.c (objc_demangle): Add options argument (objc_language_defn): Use objc_demangle for la_demangle element. * maint.c (maintenance_demangle): Replace switch with call to language_demangle. * utils.c (fprintf_symbol_filtered): Likewise.
2003-04-02*** empty log message ***gdbadmin1-1/+1
2003-04-012003-04-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-18/+11
* printcmd.c (print_frame_nameless_args): Delete #ifdef NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and PRINT_TYPELESS_INTEGER. * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename PUSH_RETURN_ADDRESS.
2003-04-012003-04-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-20/+51
* Makefile.in (d10v-tdep.o): Update dependencies. * d10v-tdep.c: Include "frame-base.h". (d10v_frame_unwind): Make constant. (d10v_frame_base_address): New function. (d10v_frame_base): New variable. (d10v_gdbarch_init): Set frame_base default. (struct d10v_unwind_cache): Add the field "prev_sp". Update comment for base. (d10v_frame_unwind_cache): Set and use "prev_sp". (d10v_frame_this_id): Use the previous frame's inner most stack address and this frame's func address for the frame ID. Use frame_id_build. Don't analyze beyond the current instruction.
2003-04-012003-04-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-6/+12
* frame.h (get_frame_locals_address, get_frame_args_address): Refer to the base address, instead of the address of the first local or parameter.
2003-04-012003-04-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney11-64/+403
Add frame debug info addresses: * frame-base.c: New file. * frame-base.h: New file. * frame.h (struct frame_base): Add opaque declaration. (get_frame_base): Update comment. (get_frame_base_address): Declare. (get_frame_locals_address): Declare. (get_frame_args_address): Declare. (struct frame_info): Add "base" and "base_cache". Update comments on the unwinder. * frame.c: Include "frame-base.h". (get_frame_locals_address): New function. (get_frame_base_address): New function. (get_frame_args_address): New function. * findvar.c (read_var_value): Use get_frame_locals_address and get_frame_args_address. * stack.c (frame_info): Use get_frame_locals_address and get_frame_args_address. (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro, moved to "frame-base.c". * printcmd.c (print_frame_nameless_args): Ditto. * symtab.h (address_class): Update comments. * dwarf2loc.c (dwarf_expr_frame_base): Add note about get_frame_base_address. * dwarf2expr.c (execute_stack_op): Ditto. * Makefile.in (frame_base_h): Define. (frame.o): Update dependencies. (frame-base.o): Add dependencies. (SFILES): Add frame-base.c. (COMMON_OBS): Add frame-base.o.
2003-04-012003-04-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney26-81/+37
* gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero. CALL_DUMMY_LENGTH): Ditto. * gdbarch.c: Re-generate. * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro. (CALL_DUMMY_LENGTH): Delete macro. * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero. * arm-tdep.c (arm_gdbarch_init): Ditto. * avr-tdep.c (avr_gdbarch_init): Ditto. * cris-tdep.c (cris_gdbarch_init): Ditto. * d10v-tdep.c (d10v_gdbarch_init): Ditto. * frv-tdep.c (frv_gdbarch_init): Ditto. * h8300-tdep.c (h8300_gdbarch_init): Ditto. * hppa-tdep.c (hppa_gdbarch_init): Ditto. * i386-tdep.c (i386_gdbarch_init): Ditto. * ia64-tdep.c (ia64_gdbarch_init): Ditto. * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. * mcore-tdep.c (mcore_gdbarch_init): Ditto. * mips-tdep.c (mips_gdbarch_init): Ditto. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. * s390-tdep.c (s390_gdbarch_init): Ditto. * sh-tdep.c (sh_gdbarch_init): Ditto. * sparc-tdep.c (sparc_gdbarch_init): Ditto. * v850-tdep.c (v850_gdbarch_init): Ditto. * vax-tdep.c (vax_gdbarch_init): Ditto. * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2003-04-01 * frame.c (get_prev_frame): Disable call to inside_entry_file().Corinna Vinschen2-0/+15
2003-04-012003-04-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney31-194/+92
* gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero. (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete. * gdbarch.h, gdbarch.c: Re-generate. * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete. (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete. * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete. * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete. (CALL_DUMMY_BREAKPOINT_OFFSET): Delete. * infcmd.c (run_stack_dummy): Simplify assuming CALL_DUMMY_BREAKPOINT_OFFSET_P. * infrun.c (handle_inferior_event): Ditto. * alpha-tdep.c (alpha_gdbarch_init): Do not set call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p. * arm-tdep.c (arm_gdbarch_init): Ditto. * avr-tdep.c (avr_gdbarch_init): Ditto. * cris-tdep.c (cris_gdbarch_init): Ditto. * d10v-tdep.c (d10v_gdbarch_init): Ditto. * frv-tdep.c (frv_gdbarch_init): Ditto. * h8300-tdep.c (h8300_gdbarch_init): Ditto. * i386-tdep.c (i386_gdbarch_init): Ditto. * ia64-tdep.c (ia64_gdbarch_init): Ditto. * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. * m68k-tdep.c (m68k_gdbarch_init): Ditto. * mcore-tdep.c (mcore_gdbarch_init): Ditto. * mips-tdep.c (mips_gdbarch_init): Ditto. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. * ns32k-tdep.c (ns32k_gdbarch_init): Ditto. * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. * s390-tdep.c (s390_gdbarch_init): Ditto. * sh-tdep.c (sh_gdbarch_init): Ditto. * sparc-tdep.c (sparc_gdbarch_init): Ditto. * v850-tdep.c (v850_gdbarch_init): Ditto. * vax-tdep.c (vax_gdbarch_init): Ditto. * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2003-04-01 * symfile.c (symfile_relocate_debug_section): Update call toDaniel Jacobowitz2-1/+6
bfd_simple_get_relocated_section_contents.
2003-04-01*** empty log message ***gdbadmin1-1/+1