diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-12-05 21:14:49 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-12-05 21:14:49 +0000 |
commit | 2af2aeb01d35bef158d942c1c1e285f7b934c853 (patch) | |
tree | b058f9534b54339069acca50f066f6a5bf90de7c /gdb | |
parent | 2acb89ed54605dbf9170091b74d430cf26c1bd28 (diff) | |
download | gdb-2af2aeb01d35bef158d942c1c1e285f7b934c853.zip gdb-2af2aeb01d35bef158d942c1c1e285f7b934c853.tar.gz gdb-2af2aeb01d35bef158d942c1c1e285f7b934c853.tar.bz2 |
From Ulrich Weigand <weigand@informatik.uni-erlangen.de>:
* dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
column instead of translating it.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/dwarf2-frame.c | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index da73f77..a898867 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2003-12-05 Mark Kettenis <kettenis@gnu.org> + + From Ulrich Weigand <weigand@informatik.uni-erlangen.de>: + * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA + column instead of translating it. + 2003-12-04 Michael Chastain <mec.gnu@mindspring.com> Partial fix for PR c++/1465. diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index 34b21f8..59f4481 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -618,14 +618,13 @@ dwarf2_frame_cache (struct frame_info *next_frame, void **this_cache) } else { - int reg = DWARF2_REG_TO_REGNUM (fs->retaddr_column); - if (reg != PC_REGNUM) + if (DWARF2_REG_TO_REGNUM (fs->retaddr_column) != PC_REGNUM) { /* See comment above about PC_REGNUM being negative. If this assertion fails, it's a problem with this code and not the architecture. */ gdb_assert (PC_REGNUM >= 0); - cache->reg[PC_REGNUM].loc.reg = reg; + cache->reg[PC_REGNUM].loc.reg = fs->retaddr_column; cache->reg[PC_REGNUM].how = REG_SAVED_REG; } } |