aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2003-07-19*** empty log message ***gdbadmin1-1/+1
2003-07-182003-07-18 Andrew Cagney <cagney@redhat.com>Andrew Cagney7-90/+14
* gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method. * gdbarch.h, gdbarch.c: Re-generate. * i386-tdep.c (i386_gdbarch_init): Do not set DWARF2_BUILD_FRAME_INFO. * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info unconditionally. * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set DWARF2_BUILD_FRAME_INFO.
2003-07-182003-07-18 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-0/+6
From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>: * disasm.c (gdb_disassemble_info): Initilize di.arch.
2003-07-182003-07-18 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-18/+17
* dwarf2-frame.c (dwarf2_frame_sniffer): Use frame_unwind_address_in_block, instead of frame_pc_unwind. (dwarf2_frame_cache): Ditto.
2003-07-182003-07-18 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-1/+9
* user-regs.h (struct gdbarch): Declare opaque. * ui-out.h (struct ui_file): Declare opaque. * dwarf2-frame.h (struct frame_info): Declare opaque.
2003-07-182003-07-18 Kris Warkentin <kewarken@qnx.com>Kris Warkentin2-4/+11
* nto-procfs.c: Clean ARI hits. Change #include <..> to #include .... (procfs_meminfo): Change strerror to safe_strerror. (procfs_can_run): Remove K&R badness.
2003-07-182003-07-17 Michael Snyder <msnyder@redhat.com>Michael Snyder2-2/+6
* remote-sim.c: Comment typo fix.
2003-07-18*** empty log message ***gdbadmin1-1/+1
2003-07-172003-07-17 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-11/+11
* defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by configure. * sparc-tdep.c (sparc_intreg_size): Make non-static. * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_PARTIAL.
2003-07-172003-07-17 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni3-1/+48
* Makefile.in (x86-64-linux-nat.o): Update dependencies. * x86-64-linux-nat.c (ps_get_thread_area): New function. Add include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2003-07-17*** empty log message ***gdbadmin1-1/+1
2003-07-16* avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue found.Theodore A. Roth2-76/+69
(avr_frame_unwind_cache): Don't unwind FP for main. Update a comment. Save the computed prev_sp. (avr_saved_regs_unwinder): Remove function. (avr_frame_prev_register): Use PC unwind logic from avr_saved_regs_unwinder, otherwise use trad_frame_prev_register.
2003-07-162003-07-16 Andrew Cagney <cagney@redhat.com>Andrew Cagney16-116/+107
* frame-base.h (frame_base_p_ftype): Delete definition. (frame_base_append_predicate): Delete declaration. * frame-unwind.h (frame_unwind_p_ftype): Delete definition. (frame_unwind_append_predicate): Delete declaration. * frame-unwind.c (struct frame_unwind_table): Delete field "p". (append_predicate): Delete parameter "p". (frame_unwind_append_predicate): Delete function. (frame_unwind_append_sniffer): Update call to append_predicate. (frame_unwind_free): Delete function. (_initialize_frame_unwind): Pass NULL as "free" to register_gdbarch_data. (frame_unwind_init): Append the dummy_frame_sniffer. (frame_unwind_find_by_frame): Simplify. * frame-base.c (struct frame_base_table): Delete field "p". (append_predicate): Delete parameter "p". (frame_base_append_predicate): Delete function. (frame_base_append_sniffer): Update call to append_predicate. (frame_base_free): Delete function. (frame_base_find_by_frame): Simplify. (_initialize_frame_base): Pass NULL as "free" to register_gdbarch_data. * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p". (x86_64_sigtramp_frame_sniffer): Replace "x86_64_sigtramp_frame_p". (x86_64_init_abi): Set the frame unwind sniffers. * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p". (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p" (m68k_gdbarch_init): Set the frame unwind sniffers. * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace "i386_sigtramp_frame_p". (i386_frame_sniffer): Replace "i386_frame_p". (i386_gdbarch_init): Set the frame unwind sniffers. * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer". (avr_gdbarch_init): Set the frame unwind sniffers. * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace "alpha_sigtramp_frame_p" (alpha_heuristic_frame_sniffer): Replace "alpha_heuristic_frame_p". (alpha_gdbarch_init): Set the frame unwind sniffers. (alpha_dwarf2_init_abi): Ditto. * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace "alpha_debug_frame_p". (alpha_mdebug_frame_base_sniffer): Replace "alpha_mdebug_frame_base_p". (alpha_mdebug_init_abi): Set the frame unwind sniffers. * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p". (d10v_gdbarch_init): Set the frame unwind sniffer. * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p". (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p". * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p". (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p". * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p". * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2003-07-16 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dspCorinna Vinschen2-320/+364
should go thru sh_dsp_register_sim_regno, else the dsp regs will not get the right values. * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to deprecated_store_floating by call to store_typed_floating. (sh_sh4_register_convert_to_raw): Substitute call to deprecated_extract_floating by call to extract_typed_floating. * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e. * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to register_size and calls to REGISTER_VIRTUAL_TYPE by calls to gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch as possible. (do_pseudo_register): Remove. (sh_push_dummy_code): New function. (sh64_store_struct_return): Rename from sh_store_struct_return. Only called for sh64 now. (sh_extract_struct_value_address): Regcache'ify. (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify and accomodate new tasks. (sh64_push_return_address): Rename from sh_push_return_address. Only called for sh64 now. (sh_default_extract_return_value): Rename from sh_extract_return_value. Regcache'ify. (sh3e_sh4_extract_return_value): Regcache'ify. (sh_default_store_return_value): Ditto. (sh3e_sh4_store_return_value): Ditto. (sh_default_register_byte): Remove. (sh_sh4_register_byte): Remove. (sh_default_register_raw_size): Remove. (sh_sh4_register_raw_size): Remove. (sh_register_virtual_size): Remove. (sh_sh3e_register_virtual_type): Remove. (sh_sh3e_register_type): New function. (sh_sh4_register_virtual_type): Remove. (sh_sh4_register_type): New function. (sh_default_register_virtual_type): Remove. (sh_default_register_type): New function. (do_fv_register_info): Add parameters to accomodate call from sh_print_registers_info. (do_dr_register_info): Ditto. (sh_print_pseudo_register): Rename from sh_do_pseudo_register. Add parameters to accomodate call from sh_print_registers_info. (sh_do_fp_register): Ditto. (sh64_do_pseudo_register): Call do_dr_register_info, do_fv_register_info and sh_do_fp_register with default parameters. (sh_do_register): Add parameters to accomodate call from sh_print_registers_info. (sh_print_register): Ditto. (sh_print_registers_info): Rename from sh_do_registers_info. Add parameters to be used as gdbarch_print_registers_info implementation. Accomodate removed do_pseudo_register function pointer. (sh_compact_do_registers_info): Accomodate removed do_pseudo_register function pointer. Call sh_print_register with default parameters. (sh64_do_registers_info): Call sh_print_registers_info instead of sh_do_registers_info. (sh_gdbarch_init): Rearrange to cleanup and to allow easier detection of deprecated vs. non-deprecated functionality. Rename sh_call_dummy_words to sh64_call_dummy_words. Remove function pointer assignments by direct function calls.
2003-07-16*** empty log message ***gdbadmin1-1/+1
2003-07-152003-07-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney6-63/+142
* frame.c (get_frame_id): Use frame_unwind_find_by_frame. (frame_register_unwind, create_new_frame): Ditto. (legacy_get_prev_frame, get_frame_type): Ditto. (get_frame_base_address): Use frame_base_find_by_frame. (get_frame_locals_address): Use frame_base_find_by_frame. (get_frame_args_address): Use frame_base_find_by_frame. * frame-base.h (frame_base_sniffer_ftype): Declare. (frame_base_append_sniffer): Declare. (frame_base_find_by_frame): Replace frame_base_find_by_pc. * frame-base.c (append_predicate): Add a "sniffer" parameter. (frame_base_append_sniffer): New function. (frame_base_append_predicate): Add a NULL sniffer. (frame_base_find_by_frame): Replace "frame_base_find_by_pc". (struct frame_base_table): Add "sniffer". (frame_base_free): Free the "sniffer" table. * frame-unwind.h (frame_unwind_sniffer_ftype): Define. (frame_unwind_append_sniffer): Declare. (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc. * frame-unwind.c (frame_unwind_free): Free the "sniffer" table. (struct frame_unwind_table): Add "sniffer", delete "middle". (append_predicate): Add "sniffer" parameter, append the sniffer. (frame_unwind_init): Update append_predicate call. (frame_unwind_append_sniffer): New function. (frame_unwind_append_predicate): Update append_predicate call. (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2003-07-152003-07-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney6-30/+94
* frame.c (get_prev_frame): Move disabled inside_entry_func to before code inhibiting repeated unwind attempts. Add to commentary on that test's problems. * blockframe.c (inside_main_func): Look for "main" in the minimal symbol table. * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are identical. Index: testsuite/ChangeLog 2003-07-15 Andrew Cagney <cagney@redhat.com> * gdb.asm/asm-source.exp: Do not allow "start" in the backtrace.
2003-07-152003-07-15 Michael Chastain <mec@shout.net>Michael Chastain3-0/+142
* gdb.base/gdb1250.exp: New file. * gdb.base/gdb1250.c: New file.
2003-07-152003-07-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-11/+29
* complaints.c (struct explanation): Define. (struct complaints): Change type of "explanation" to "struct explanation". (symfile_explanations): Convert to a "struct explanation" table. (vcomplaint): Update.
2003-07-15Oops, forgot to add x86-64-linux-tdep.h in previous commit.Michal Ludvig1-0/+39
2003-07-152003-07-15 Michal Ludvig <mludvig@suse.cz>Michal Ludvig5-32/+134
* x86-64-linux-nat.c (regmap): Removed. (supply_gregset, fill_gregset): Call x86_64_linux_(fill,supply)_gregset functions. * x86-64-linux-tdep.c (USER_*): New defines. (user_to_gdb_regmap, x86_64_core_fns): New structure. (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset): New functions. (fetch_core_registers): Ditto. (_initialize_x86_64_linux_tdep): Call add_core_fns(). * x86-64-linux-tdep.h: New file. * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o and core-regset.o. * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2003-07-15*** empty log message ***gdbadmin1-1/+1
2003-07-14*** empty log message ***gdbadmin1-1/+1
2003-07-13Fix last Changelog entry to reflect reality.Mark Kettenis1-2/+2
2003-07-13*** empty log message ***Mark Kettenis1-1/+2
2003-07-13* x86-64-tdep.c (x86_64_store_return_value): Use an intermediateMark Kettenis2-1/+4
buffer when storing double and float varibles into %xmm0.
2003-07-13* configure.host: Add x86_64-*-freebsd*.Mark Kettenis9-0/+478
* configure.tgt: Add x86_64-*-freebsd*. * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets. * amd64fbsd-nat.c: New file. * amd64fbsd-tdep.c: New file. * config/i386/nm-fbsd64.h: New file. * config/i386/fbsd64.mh: New file. * config/i386/fbsd64.mt: New file.
2003-07-13*** empty log message ***gdbadmin1-1/+1
2003-07-12*** empty log message ***gdbadmin1-1/+1
2003-07-11* alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',Mark Kettenis4-19/+80
`sc_regs_offset' and `sc_fpregs_offset'. * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF, SIGFRAME_FPREGSAVE_OFF): Remove defines. (alpha_sigtramp_register_address): Rewrite to use new members of `struct gdbarch_tdep'. (alpha_gdbarch_init): Initialize new members of struct gdbarch_tdep'. * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE. (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables. (alphafbsd_pc_in_sigtramp): Implement. (alphafbsd_sigtramp_offset): New function. (alphafbsd_sigcontext_addr): New function. (alphafbsd_init_abi): Initialize signal trampoline related members of `struct gdbarch_tdep'. (_initialize_alphafbsd_tdep): Add prototype.
2003-07-11Fix my previous entry to denote the rule I changed.Theodore A. Roth1-1/+2
2003-07-11* Makefile.in: Quote sed expression when generating transformed_name.Theodore A. Roth2-1/+5
2003-07-11 * Makefile.in (dwarf2-frame.o): Add complaints_h.Richard Henderson3-18/+138
* dwarf2-frame.c: Include complaints.h. (decode_frame_entry_1): Rename from decode_frame_entry; tidy variable initialization; return NULL on error. (decode_frame_entry): New.
2003-07-112003-07-11 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-35/+12
* frame.h (frame_address_in_block): Delete declaration. * blockframe.c (frame_address_in_block): Delete function. (get_frame_block): Use get_frame_address_in_block. (block_innermost_frame): Ditto. * stack.c (print_frame, backtrace_command_1): Ditto.
2003-07-11Oops, revert unintended commit. Next patch will do this properly.Andrew Cagney2-6/+6
2003-07-112003-07-11 Andrew Cagney <cagney@redhat.com>Andrew Cagney5-6/+58
* frame.h (get_frame_address_in_block): Declare. (frame_unwind_address_in_block): Declare. * frame.c (frame_unwind_address_in_block): New function. (get_frame_address_in_block): New function.
2003-07-112003-07-09 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2-2/+7
* gdb.c++/templates.exp (test_ptype_of_templates): Recognize expansion of size_t to 'unsigned long', not only to 'unsigned'.
2003-07-112003-07-10 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-46/+42
* gdbarch.sh: Simplify predicate methods. Remove need to provide pre-default. Note: re-generate has no effect.
2003-07-112003-07-10 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-4/+14
* gdbarch.sh: When a variable, but not a function, compare against 0. Fix problem in previous patch. * gdbarch.c: Re-generate.
2003-07-11*** empty log message ***gdbadmin1-1/+1
2003-07-102003-07-10 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-396/+186
* gdbarch.sh: Use gdb_assert instead of internal_error. Compare functions against NULL, not 0. * gdbarch.c: Re-generate.
2003-07-10 2003-07-10 Fred Fish <fnf@ninemoons.com>Fred Fish3-4/+10
* coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a null string instead of a null pointer. * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto. (Also updated copyrights)
2003-07-10*** empty log message ***gdbadmin1-1/+1
2003-07-092003-07-09 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+5
* sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2003-07-09* x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,Mark Kettenis3-12/+22
X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ... * x86-64-tdep.c: ... from here.
2003-07-09 * m68k-tdep.h (enum struct_return): Define.Andreas Schwab4-6/+52
(struct gdbarch_tdep): Add struct_return. * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4 bytes are padded to the right, not to the left. Pass struct value address in register %a1, not on stack. (m68k_use_struct_convention): New function. (m68k_gdbarch_init): Set use_struct_convention. Initialize struct_return in tdep to pcc_struct_return. * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to reg_struct_return.
2003-07-09 * somread.c (som_symfile_offsets): Fix compilation error.Joel Brobecker2-1/+5
2003-07-092003-07-09 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-1/+9
* regcache.c (register_size): Only check REGISTER_RAW_SIZE once. Add comments about the checks.
2003-07-092003-07-09 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-5/+28
* gdb.base/annota1.exp: Make sure that we properly escape the full path of the source file. Xfail more permissive patterns, due to a compiler debug info problem.
2003-07-09*** empty log message ***gdbadmin1-1/+1