aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-10-18 07:26:30 +0000
committerAlan Modra <amodra@gmail.com>2004-10-18 07:26:30 +0000
commit7f67d4c98a7efc189145ba077f968ef626c9c748 (patch)
treef3a1ebd38e21ef82a70219fdeb0f625d6df2d95f
parent2bb2d727c1a0724b85265e77ecd174168ccc1593 (diff)
downloadgdb-7f67d4c98a7efc189145ba077f968ef626c9c748.zip
gdb-7f67d4c98a7efc189145ba077f968ef626c9c748.tar.gz
gdb-7f67d4c98a7efc189145ba077f968ef626c9c748.tar.bz2
* budemang.c (demangle): Fix thinko.
-rw-r--r--binutils/ChangeLog2
-rw-r--r--binutils/budemang.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 7ba39be..50cc69b 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,7 @@
2004-10-18 Alan Modra <amodra@bigpond.net.au>
+ * budemang.c (demangle): Fix thinko.
+
* budemang.c (demangle): Handle "@plt" suffix.
2004-10-14 Nick Clifton <nickc@redhat.com>
diff --git a/binutils/budemang.c b/binutils/budemang.c
index c992570..bd50083 100644
--- a/binutils/budemang.c
+++ b/binutils/budemang.c
@@ -52,7 +52,7 @@ demangle (bfd *abfd, const char *name)
pre = name;
while (*name == '.')
++name;
- pre_len = pre - name;
+ pre_len = name - pre;
alloc = NULL;
suf = strchr (name, '@');