]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
authorJason Thorpe <thorpej@netbsd.org>
Mon, 1 Apr 2002 18:47:48 +0000 (18:47 +0000)
committerJason Thorpe <thorpej@netbsd.org>
Mon, 1 Apr 2002 18:47:48 +0000 (18:47 +0000)
* elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
which caused the returned LWP ID to always be 0.

bfd/ChangeLog
bfd/elf.c

index 2e0df140c447eee01a363505f01e7f822dd48b1d..30e5ffeba31fd82a1da1abfd78c69f189059e8bc 100644 (file)
@@ -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.
index 3cc0dd5f18b7363dde3eb8d51327e107f9c33920..0def9618b2e0f3e8d13a27396a5d52613eae3f07 100644 (file)
--- 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;