diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-01-29 04:33:00 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-01-29 04:33:00 +0000 |
commit | a1504221ad15cfb08f22fd5548835d33f3d041de (patch) | |
tree | 2b3b6ff6997679dc333056bcbc1b1b330e5c9d63 /bfd/elf.c | |
parent | 18c2a94fb07723b57c6c087ab9e6f8ae847f9335 (diff) | |
download | gdb-a1504221ad15cfb08f22fd5548835d33f3d041de.zip gdb-a1504221ad15cfb08f22fd5548835d33f3d041de.tar.gz gdb-a1504221ad15cfb08f22fd5548835d33f3d041de.tar.bz2 |
core files: wrong signal number with threaded program on sparc-solaris.
* elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
if it has already been set.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -7800,7 +7800,10 @@ elfcore_grok_lwpstatus (bfd *abfd, Elf_Internal_Note *note) memcpy (&lwpstat, note->descdata, sizeof (lwpstat)); elf_tdata (abfd)->core_lwpid = lwpstat.pr_lwpid; - elf_tdata (abfd)->core_signal = lwpstat.pr_cursig; + /* Do not overwrite the core signal if it has already been set by + another thread. */ + if (elf_tdata (abfd)->core_signal == 0) + elf_tdata (abfd)->core_signal = lwpstat.pr_cursig; /* Make a ".reg/999" section. */ |