Fix ravenscar-thread.c for multi-target
authorTom Tromey <tromey@adacore.com>
Wed, 22 Jan 2020 19:30:40 +0000 (12:30 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 31 Jan 2020 10:38:37 +0000 (11:38 +0100)
commitfd9faca826e6ee9178cf0b1c2486e3c662d6375a
treea36b2251db9885dcd2fa78bd9d68db3b348e7e6d
parent42330a681af23a80d3e1f201d2a65886875e74bd
Fix ravenscar-thread.c for multi-target

ravenscar-thread.c needed a change to adapt to multi-target:
ravenscar_thread_target::mourn_inferior called the mourn_inferior
method on the target beneat -- but when the target beneath was the
remote target, this resulted in the ravenscar target being deleted.

Switching the order of the calls to unpush_target and the beneath's
mourn_inferior fixes this problem.

gdb/ChangeLog
2020-01-31  Tom Tromey  <tromey@adacore.com>

* ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
Call beneath target's mourn_inferior after unpushing.

Change-Id: Ia80380515c403adc40505a6b3420c9cb35754370
gdb/ChangeLog
gdb/ravenscar-thread.c