Fix Windows crash from stop_pc change
authorTom Tromey <tromey@adacore.com>
Tue, 28 Sep 2021 19:13:06 +0000 (13:13 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 30 Sep 2021 17:17:09 +0000 (11:17 -0600)
commit9279eb5c2c4421329822186ed86b48faa9d310e6
treeaf22e8c8d6e95e7659eaa20e8c933090999d9578
parent7264ba83317a0cdb8ffd9e07dda7892bf0f6fcf2
Fix Windows crash from stop_pc change

The "make thread_suspend_state::stop_pc optional" patch caused a
regression on Windows when using shared libraries.  I tracked this
down to an unguarded use of stop_pc() in the TARGET_WAITKIND_LOADED
case of handle_inferior_event.  This patch fixes the bug by ensuring
that the stop PC is set at this point.
gdb/infrun.c