/* 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;
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);
}