]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/amd-dbgapi: pass amd_dbgapi_inferior_info to process_one_event
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 9 Jun 2025 16:09:00 +0000 (12:09 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 16 Jun 2025 14:23:12 +0000 (10:23 -0400)
commit606e490b9fddfb03282c7d04013b9b84109e2641
tree8daae7df3bfdc6531087d140d95e93f07c7689b6
parentb9d56892e5d1bf4bc081eb62c81f4a2329cfc7b0
gdb/amd-dbgapi: pass amd_dbgapi_inferior_info to process_one_event

Pass the amd_dbgapi_inferior_info object from process_event_queue to
process_one_event.  Since process_event_queue pulls events for one
specific inferior, we know for which inferior the event is.  This
removes the need for process_one_event to do two dbgapi calls to get the
relevant pid.  If also removes one inferior lookup.

Change-Id: I22927e4b6251513eb3be95785082058aa3d09954
Approved-by: Lancelot Six <lancelot.six@amd.com>
gdb/amd-dbgapi-target.c