aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-04-20 18:43:16 +0000
committerDaniel Jacobowitz <drow@false.org>2005-04-20 18:43:16 +0000
commitae67fcb5e7e56b2900d5b6f8f546b5bf5287a253 (patch)
tree43659e42d76910cfe7bff01e754eae88d5c02982 /binutils
parente8be8da4fb838e46dacb307496567a08c882becd (diff)
downloadgdb-ae67fcb5e7e56b2900d5b6f8f546b5bf5287a253.zip
gdb-ae67fcb5e7e56b2900d5b6f8f546b5bf5287a253.tar.gz
gdb-ae67fcb5e7e56b2900d5b6f8f546b5bf5287a253.tar.bz2
* readelf.c (display_debug_frames): Use data factor for
DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 1156c15..05bd850 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-20 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * readelf.c (display_debug_frames): Use data factor for
+ DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
+
2005-04-19 H.J. Lu <hongjiu.lu@intel.com>
* objdump.c (dump_section_header): Skip linker created section.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 834ee2d..5d2f639 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -10709,6 +10709,7 @@ display_debug_frames (Elf_Internal_Shdr *section,
case DW_CFA_def_cfa_sf:
fc->cfa_reg = LEB ();
fc->cfa_offset = SLEB ();
+ fc->cfa_offset = fc->cfa_offset * fc->data_factor;
fc->cfa_exp = 0;
if (! do_debug_frames_interp)
printf (" DW_CFA_def_cfa_sf: r%d ofs %d\n",
@@ -10717,6 +10718,7 @@ display_debug_frames (Elf_Internal_Shdr *section,
case DW_CFA_def_cfa_offset_sf:
fc->cfa_offset = SLEB ();
+ fc->cfa_offset = fc->cfa_offset * fc->data_factor;
if (! do_debug_frames_interp)
printf (" DW_CFA_def_cfa_offset_sf: %d\n", fc->cfa_offset);
break;