From: Jason Thorpe Date: Mon, 1 Apr 2002 18:47:48 +0000 (+0000) Subject: 2002-04-01 Nathan Williams X-Git-Tag: binutils-2_12_1~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1dd2bd5bdd64b55b22d9143cbb84615749ad3c27;p=thirdparty%2Fbinutils-gdb.git 2002-04-01 Nathan Williams * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error which caused the returned LWP ID to always be 0. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2e0df140c44..30e5ffeba31 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-04-01 Nathan Williams + + * 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 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New. diff --git a/bfd/elf.c b/bfd/elf.c index 3cc0dd5f18b..0def9618b2e 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;