/* Use this scoped-restore because we want to be able to read
memory from an unwinder. */
scoped_restore_current_inferior_for_memory restore_inferior
- (inf->inferior, any_thread_of_inferior (inf->inferior)->ptid);
+ (inf->inferior);
buffer.reset ((gdb_byte *) xmalloc (length));
still used here, just to keep the code similar to other code
in this file. */
scoped_restore_current_inferior_for_memory restore_inferior
- (inf->inferior, any_thread_of_inferior (inf->inferior)->ptid);
+ (inf->inferior);
write_memory_with_notification (addr, buffer, length);
}
still used here, just to keep the code similar to other code
in this file. */
scoped_restore_current_inferior_for_memory restore_inferior
- (inf->inferior, any_thread_of_inferior (inf->inferior)->ptid);
+ (inf->inferior);
found = target_search_memory (start_addr, length,
buffer, pattern_size,
still used, just to keep the code similar to other code in
this file. */
scoped_restore_current_inferior_for_memory restore_inferior
- (inf->inferior, any_thread_of_inferior (inf->inferior)->ptid);
+ (inf->inferior);
name = main_name ();
}