This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix phantom frames on ppc
- From: Daniel Jacobowitz <drow at false dot org>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 10 Apr 2007 11:32:04 -0400
- Subject: Re: [PATCH] Fix phantom frames on ppc
- References: <jed52nonwy.fsf@sykes.suse.de>
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