aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2-frame.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-11-05 15:16:44 +0000
committerMark Kettenis <kettenis@gnu.org>2004-11-05 15:16:44 +0000
commitf724bf08b779063ee490120d00b271a023342145 (patch)
treefeeff69384d8cf78ca9d4c5f31a5bdc6f4440732 /gdb/dwarf2-frame.c
parentdcd46b4e95fd8c051918eb80fbb71f83977897ea (diff)
downloadgdb-f724bf08b779063ee490120d00b271a023342145.zip
gdb-f724bf08b779063ee490120d00b271a023342145.tar.gz
gdb-f724bf08b779063ee490120d00b271a023342145.tar.bz2
* dwarf2-frame.c (decode_frame_entry_1): Correctly skip
personality routine in a CIE augmentation.
Diffstat (limited to 'gdb/dwarf2-frame.c')
-rw-r--r--gdb/dwarf2-frame.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c
index ba96927..39722cc 100644
--- a/gdb/dwarf2-frame.c
+++ b/gdb/dwarf2-frame.c
@@ -1381,7 +1381,9 @@ decode_frame_entry_1 (struct comp_unit *unit, char *start, int eh_frame_p)
else if (*augmentation == 'P')
{
/* Skip. */
- buf += size_of_encoded_value (*buf++);
+ unsigned char encoding = *buf++;
+ read_encoded_value (unit, encoding, buf, &bytes_read);
+ buf += bytes_read;
augmentation++;
}