This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] readelf & DW_CFA_register


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]