mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 05:00:01 +00:00
Do not overwite the core signal if it has already been set by another thread.
This commit is contained in:
parent
1000a02a29
commit
fa49d2248e
@ -1,3 +1,8 @@
|
||||
2001-11-29 "Peter.Schauer" <Peter.Schauer@regent.e-technik.tu-muenchen.de>
|
||||
|
||||
* elf.c (elfcore_grok_prstatus): Do not overwite the core signal
|
||||
if it has already been set by another thread.
|
||||
|
||||
2001-11-28 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* elf64-alpha.c (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Defined.
|
||||
|
10
bfd/elf.c
10
bfd/elf.c
@ -5753,7 +5753,10 @@ elfcore_grok_prstatus (abfd, note)
|
||||
offset = offsetof (prstatus_t, pr_reg);
|
||||
memcpy (&prstat, note->descdata, sizeof (prstat));
|
||||
|
||||
elf_tdata (abfd)->core_signal = prstat.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 = prstat.pr_cursig;
|
||||
elf_tdata (abfd)->core_pid = prstat.pr_pid;
|
||||
|
||||
/* pr_who exists on:
|
||||
@ -5776,7 +5779,10 @@ elfcore_grok_prstatus (abfd, note)
|
||||
offset = offsetof (prstatus32_t, pr_reg);
|
||||
memcpy (&prstat, note->descdata, sizeof (prstat));
|
||||
|
||||
elf_tdata (abfd)->core_signal = prstat.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 = prstat.pr_cursig;
|
||||
elf_tdata (abfd)->core_pid = prstat.pr_pid;
|
||||
|
||||
/* pr_who exists on:
|
||||
|
Loading…
Reference in New Issue
Block a user