mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +08:00
Remove unnecessary inferior lookup in infrun:handle_one
infrun.c:handle_one calls find_inferior_ptid unnecessarily, since we already have a thread pointer handy, and the thread has a pointer to the inferior. This commit removes the unnecessary lookup. Change-Id: I2ae18601dd75346c6c91068e9a4f9a6484fb3339
This commit is contained in:
@ -4845,8 +4845,7 @@ handle_one (const wait_one_event &event)
|
||||
|
||||
/* This may be the first time we see the inferior report
|
||||
a stop. */
|
||||
inferior *inf = find_inferior_ptid (event.target, event.ptid);
|
||||
if (inf->needs_setup)
|
||||
if (t->inf->needs_setup)
|
||||
{
|
||||
switch_to_thread_no_regs (t);
|
||||
setup_inferior (0);
|
||||
|
Reference in New Issue
Block a user