This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[RFA] readelf & DW_CFA_register
- From: Michal Ludvig <mludvig at suse dot cz>
- To: binutils at sources dot redhat dot com
- Date: Mon, 19 May 2003 17:30:04 +0200
- Subject: [RFA] readelf & DW_CFA_register
- Organization: SuSE CR, s.r.o.
Hi,
the attached simple patch fixes readelf to print both involved registers
on 'readelf -wf' for DW_CFA_register.
OK to apply?
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* (+420) 296.545.373 * http://www.suse.cz
2003-05-19 Michal Ludvig <mludvig@suse.cz>
* readelf.c (display_debug_frames): Print both registers
for DW_CFA_register.
--- readelf.c 2002-10-10 06:09:41.000000000 +0200
+++ readelf.c 2003-05-19 17:26:14.000000000 +0200
@@ -8792,7 +8792,7 @@ display_debug_frames (section, start, fi
reg = LEB ();
roffs = LEB ();
if (! do_debug_frames_interp)
- printf (" DW_CFA_register: r%ld\n", reg);
+ printf (" DW_CFA_register: r%ld in r%ld\n", reg, roffs);
fc->col_type[reg] = DW_CFA_register;
fc->col_offset[reg] = roffs;
break;