aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-04-01 18:31:46 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-04-01 18:31:46 +0000
commitd2b645005b08c5a9ac48b4e1f5266a25c7716ed4 (patch)
tree3bf4bc93108cd7d6fe0c1d68ce88bbd1d39a70e9
parente36f7d53260cec6075ceb05e036782a85257739b (diff)
downloadgdb-d2b645005b08c5a9ac48b4e1f5266a25c7716ed4.zip
gdb-d2b645005b08c5a9ac48b4e1f5266a25c7716ed4.tar.gz
gdb-d2b645005b08c5a9ac48b4e1f5266a25c7716ed4.tar.bz2
2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
* elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one erro which caused the returned LWP ID to always be 0.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 97a5872..d7f157c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
+
+ * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
+ which caused the returned LWP ID to always be 0.
+
2002-04-01 Richard Henderson <rth@redhat.com>
* elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
diff --git a/bfd/elf.c b/bfd/elf.c
index 3cc0dd5..0def961 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6441,7 +6441,7 @@ elfcore_netbsd_get_lwpid (note, lwpidp)
cp = strchr (note->namedata, '@');
if (cp != NULL)
{
- *lwpidp = atoi(cp);
+ *lwpidp = atoi(cp + 1);
return true;
}
return false;