This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: [PATCH] Fix phantom frames on ppc


On Sun, Apr 01, 2007 at 10:11:25PM +0200, Andreas Schwab wrote:
> On ppc the DWARF2 register 64 is the cr register.  But
> rs6000_dwarf2_reg_to_regnum failed to translate that to the gdb internal
> cr register number, causing it to be mistaken as the gdb internal pc
> register.  This resulted in phantom frames whenever a frame has the cr
> register saved.
> 
> Andreas.
> 
> 2007-04-01  Andreas Schwab  <schwab@suse.de>
> 
> 	* rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
> 	register.

Whoops!  This is OK.  That "default:" case does not seem like a really
good idea...

-- 
Daniel Jacobowitz
CodeSourcery


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