From: Daniel Jacobowitz Date: Wed, 20 Apr 2005 18:44:06 +0000 (+0000) Subject: * readelf.c (display_debug_frames): Use data factor for X-Git-Tag: binutils-2_16~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=832d620adbbdafec3d2f335199e2f9c3039bb3fe;p=thirdparty%2Fbinutils-gdb.git * readelf.c (display_debug_frames): Use data factor for DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index a8a3801824c..afe1d53d6ef 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2005-04-20 Daniel Jacobowitz + + * readelf.c (display_debug_frames): Use data factor for + DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf. + 2005-04-20 H.J. Lu * doc/binutils.texi: Document new readelf option, diff --git a/binutils/readelf.c b/binutils/readelf.c index 018728b3a21..2681d560e72 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -10643,6 +10643,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", @@ -10651,6 +10652,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;