aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-01-11 09:53:27 +0000
committerAlan Modra <amodra@gmail.com>2010-01-11 09:53:27 +0000
commit20b1d3e390598b37d4fd739b91a3c3ec20ac9e44 (patch)
treeba23b8de45dcc5c9685baca98c9529afbe1d8cb5 /bfd
parent94df17f2c8950c49bfdedced771bd55206d66b6b (diff)
downloadgdb-20b1d3e390598b37d4fd739b91a3c3ec20ac9e44.zip
gdb-20b1d3e390598b37d4fd739b91a3c3ec20ac9e44.tar.gz
gdb-20b1d3e390598b37d4fd739b91a3c3ec20ac9e44.tar.bz2
PR 11103
* dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/dwarf1.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ec184aa..554227f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2010-01-11 Alan Modra <amodra@gmail.com>
+ PR 11103
+ * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
+
+2010-01-11 Alan Modra <amodra@gmail.com>
+
PR 6832
* dwarf2.c (struct comp_unit): Add sec_info_ptr.
(find_abstract_instance_name): Use it.
diff --git a/bfd/dwarf1.c b/bfd/dwarf1.c
index 2674044..375f4cf 100644
--- a/bfd/dwarf1.c
+++ b/bfd/dwarf1.c
@@ -1,5 +1,5 @@
/* DWARF 1 find nearest line (_bfd_dwarf1_find_nearest_line).
- Copyright 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2008
+ Copyright 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
Written by Gavin Romig-Koch of Cygnus Solutions (gavin@cygnus.com).
@@ -251,8 +251,8 @@ parse_die (bfd * abfd,
break;
case FORM_STRING:
if (attr == AT_name)
- aDieInfo->name = (char *)xptr;
- xptr += strlen (aDieInfo->name) + 1;
+ aDieInfo->name = (char *) xptr;
+ xptr += strlen ((char *) xptr) + 1;
break;
}
}