aboutsummaryrefslogtreecommitdiff
path: root/gdb/aix-thread.c
diff options
context:
space:
mode:
authorAditya Vidyadhar Kamath <Aditya.Kamath1@ibm.com>2023-08-11 03:43:23 -0500
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2023-08-11 11:42:00 +0200
commit19c5c1bb327dbb5c88cd52571896c56296f5a308 (patch)
treea9dfe920f7c0254424b28965b7f0cb8ad9c2cf11 /gdb/aix-thread.c
parentcca56b22a33bc279db358adca68f704329e5f0a3 (diff)
downloadgdb-19c5c1bb327dbb5c88cd52571896c56296f5a308.zip
gdb-19c5c1bb327dbb5c88cd52571896c56296f5a308.tar.gz
gdb-19c5c1bb327dbb5c88cd52571896c56296f5a308.tar.bz2
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.
Diffstat (limited to 'gdb/aix-thread.c')
-rw-r--r--gdb/aix-thread.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index 8c45116..1f7b3c5 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);
}