diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2002-04-01 18:31:46 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2002-04-01 18:31:46 +0000 |
commit | adb0b2270855e175286388a1efeb23eef6e349d6 (patch) | |
tree | da2d36f447ba6acc98202fe8ed9c27c71801a3bc /bfd | |
parent | 05a287c453c59a6130b68ea332816d299ed28933 (diff) | |
download | gdb-adb0b2270855e175286388a1efeb23eef6e349d6.tar.gz |
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 97a58729897..d7f157c1440 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 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; |