From: Aditya Vidyadhar Kamath Date: Fri, 11 Aug 2023 08:43:23 +0000 (-0500) Subject: Fix AIX build break. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19c5c1bb327dbb5c88cd52571896c56296f5a308;p=binutils-gdb.git Fix AIX build break. In a recent commit the signature of the scoped_restore_current_inferior_for_memory function was changed and in AIX we did not update the same. This patch updates it in aix-thread.c file fixed the break and the thread debugging works alright as a result. --- diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index 8c45116f355..1f7b3c511cf 100644 --- a/gdb/aix-thread.c +++ b/gdb/aix-thread.c @@ -615,8 +615,7 @@ pdc_read_data (pthdb_user_t user_current_pid, void *buf, /* This is needed to eliminate the dependency of current thread which is null so that thread reads the correct target memory. */ { - scoped_restore_current_inferior_for_memory save_inferior - (inf, ptid_t (user_current_pid)); + scoped_restore_current_inferior_for_memory save_inferior (inf); status = target_read_memory (addr, (gdb_byte *) buf, len); } ret = status == 0 ? PDC_SUCCESS : PDC_FAILURE; @@ -643,8 +642,7 @@ pdc_write_data (pthdb_user_t user_current_pid, void *buf, user_current_pid, (long) buf, hex_string (addr), len); { - scoped_restore_current_inferior_for_memory save_inferior - (inf, ptid_t (user_current_pid)); + scoped_restore_current_inferior_for_memory save_inferior (inf); status = target_write_memory (addr, (gdb_byte *) buf, len); }