Remove unnecessary inferior lookup in infrun:handle_one
authorPedro Alves <pedro@palves.net>
Mon, 7 Mar 2022 16:09:41 +0000 (16:09 +0000)
committerPedro Alves <pedro@palves.net>
Mon, 7 Mar 2022 16:28:57 +0000 (16:28 +0000)
commit3db1354160aa48995ff37f032310213f0b1cf768
tree90da7735fd22d33eeab42b7b56a3780c15a4d74a
parentaacf24b4db3422632d6b62d473faf71f4e737072
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
gdb/infrun.c