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.
This commit is contained in:
Jason Thorpe 2002-04-01 18:31:46 +00:00
parent e36f7d5326
commit d2b645005b
2 changed files with 6 additions and 1 deletions

View 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.

View file

@ -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;