]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ravenscar: update inferior ptid with event ptid
authorJerome Guitton <guitton@adacore.com>
Tue, 21 Nov 2017 22:10:01 +0000 (14:10 -0800)
committerJoel Brobecker <brobecker@adacore.com>
Tue, 21 Nov 2017 22:34:30 +0000 (14:34 -0800)
commit3b1b69bffe522f22d269723856d2caa901041819
tree816a0470eab36a5e3a5c930021f8230366db95de
parent54aa6c67f5a0d52dabd428cc40ce02781032acd3
ravenscar: update inferior ptid with event ptid

When debugging a program using a ravenscar runtime, the thread
layer sometimes gets confused, and even missing some threads.
This was traced to an assumption that ravenscar_wait was making,
which is that calling the "to_wait" target_ops method would
set the inferior_ptid, so that we could then use that assumption
to update our thread_list and current ptid. However, this has not
been the case for quite a while now. This patch fixes the problem
by assigning inferior_ptid the ptid returned by "to_wait".

gdb/ChangeLog:

* ravenscar-thread.c (ravenscar_wait): Update inferior ptid
with event ptid from the lower layer before doing the
ravenscar-specific update.
gdb/ChangeLog
gdb/ravenscar-thread.c