OSDN Git Service

2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
authorthorpej <thorpej>
Mon, 1 Apr 2002 18:31:45 +0000 (18:31 +0000)
committerthorpej <thorpej>
Mon, 1 Apr 2002 18:31:45 +0000 (18:31 +0000)
* elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one erro
which caused the returned LWP ID to always be 0.

bfd/ChangeLog
bfd/elf.c

index 97a5872..d7f157c 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 3cc0dd5..0def961 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;