diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-04-12 12:37:41 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-04-12 12:37:41 +0000 |
commit | b74d5842f1c42f38d1ba056417282a9ecb610fb9 (patch) | |
tree | 189ed9ae9b36a584521215932ed7fd7d264dee2a | |
parent | f183e7c60eaef3f7c04572ab036e7eb35c9a0df3 (diff) |
Don't munge PID and TID together, since the way GDB displays them isn't very
helpful. Just provide the TID instead.
-rw-r--r-- | gnu/usr.bin/binutils/bfd/elf.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/bfd/elf.c b/gnu/usr.bin/binutils/bfd/elf.c index 5e1e5640829..b0cadb6ddec 100644 --- a/gnu/usr.bin/binutils/bfd/elf.c +++ b/gnu/usr.bin/binutils/bfd/elf.c @@ -6320,8 +6320,13 @@ _bfd_elf_rel_vtable_reloc_fn static int elfcore_make_pid (bfd *abfd) { - return ((elf_tdata (abfd)->core_lwpid << 16) - + (elf_tdata (abfd)->core_pid)); + int pid; + + pid = elf_tdata (abfd)->core_lwpid; + if (pid == 0) + pid = elf_tdata (abfd)->core_pid; + + return pid; } /* If there isn't a section called NAME, make one, using |