Avoid crash in ravenscar_thread_target::wait
authorTom Tromey <tromey@adacore.com>
Fri, 7 Aug 2020 16:26:45 +0000 (10:26 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 7 Aug 2020 16:26:45 +0000 (10:26 -0600)
commite95465793dedc0a75406c159ad3180d55cd4a94d
tree2206bf09f482d44f2d857387760d8188226f6840
parent3d4470e5d482ba5908651feb246d110453c8f31b
Avoid crash in ravenscar_thread_target::wait

An earlier patch caused a Ravenscar regression in
ravenscar_thread_target::wait.  In particular, add_active_thread can
return NULL when the runtime is not initialized.

gdb/ChangeLog
2020-08-07  Tom Tromey  <tromey@adacore.com>

* ravenscar-thread.c (ravenscar_thread_target::wait): Check
runtime_initialized.
gdb/ChangeLog
gdb/ravenscar-thread.c