mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-27 02:14:04 +08:00
gdb/
* linux-nat.c (linux_nat_wait_1): Do not call linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or TARGET_WAITKIND_SIGNALLED.
This commit is contained in:
parent
3def43e060
commit
1e22549240
@ -1,3 +1,9 @@
|
||||
2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* linux-nat.c (linux_nat_wait_1): Do not call
|
||||
linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
|
||||
TARGET_WAITKIND_SIGNALLED.
|
||||
|
||||
2010-05-27 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* ada-lang.c (ada_inferior_data): New struct.
|
||||
|
@ -3626,7 +3626,13 @@ retry:
|
||||
fprintf_unfiltered (gdb_stdlog, "LLW: exit\n");
|
||||
|
||||
restore_child_signals_mask (&prev_mask);
|
||||
lp->core = linux_nat_core_of_thread_1 (lp->ptid);
|
||||
|
||||
if (ourstatus->kind == TARGET_WAITKIND_EXITED
|
||||
|| ourstatus->kind == TARGET_WAITKIND_SIGNALLED)
|
||||
lp->core = -1;
|
||||
else
|
||||
lp->core = linux_nat_core_of_thread_1 (lp->ptid);
|
||||
|
||||
return lp->ptid;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user