aboutsummaryrefslogtreecommitdiff
path: root/gdb/x86-64-tdep.c
diff options
context:
space:
mode:
authorJiri Smid <smid@suse.cz>2001-12-07 12:10:15 +0000
committerJiri Smid <smid@suse.cz>2001-12-07 12:10:15 +0000
commitb6af0555b58f4a5996fd3590f2cb40d3664136f7 (patch)
tree9b7a4ced0b51e81f780db2bf5cf41bc7ba9c281d /gdb/x86-64-tdep.c
parent1fbc4a84a3764dd04760128c5666348c0fa070eb (diff)
downloadgdb-b6af0555b58f4a5996fd3590f2cb40d3664136f7.zip
gdb-b6af0555b58f4a5996fd3590f2cb40d3664136f7.tar.gz
gdb-b6af0555b58f4a5996fd3590f2cb40d3664136f7.tar.bz2
* dwarf2cfi.c: New file.
* dwarf2cfi.h: New file. * dwarf2read.c (dwarf_frame_offset, dwarf_frame_size): New variables. (dwarf_eh_frame_offset, dwarf_eh_frame_size): New variables. (dwarf2_read_section): Change to non static. (dwarf2_locate_sections): Add .debug_frame and .eh_frame section recognition. (FRAME_SECTION, EH_FRAME_SECTION): New define. * elfread.c (elf_symfile_read): Add call of frame informations build. * frame.h (frame_info): Add pointer to unwind_context. * symfile.h (dwarf2_build_frame_info): Add declaration. * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Add. * gdbarch.h, gdbarch.c: Regenerate. * Makefile.in: Add dwarf2cfi_h, dwarf2cfi.o * x86-64-tdep.c (i386_gdbarch_init): Initialize target vector to use debug frame info.
Diffstat (limited to 'gdb/x86-64-tdep.c')
-rw-r--r--gdb/x86-64-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c
index 8a64552..dcf5ffd 100644
--- a/gdb/x86-64-tdep.c
+++ b/gdb/x86-64-tdep.c
@@ -974,6 +974,8 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
number of bytes in BREAKPOINT but not always. */
set_gdbarch_decr_pc_after_break (gdbarch, 1);
+/* Use dwarf2 debug frame informations. */
+ set_gdbarch_dwarf2_build_frame_info (gdbarch, dwarf2_build_frame_info);
return gdbarch;
}