forked from Imagelibrary/binutils-gdb
* ada-tasks.c (read_known_tasks_array): Use target_gdbarch instead
of current_gdbarch. * aix-thread.c (pd_enable): Likewise. * amd64-linux-nat.c (ps_get_thread_area): Likewise. * bsd-uthread.c (bsd_uthread_activate): Likewise. * linux-nat.c (linux_nat_info_proc_cmd): Likewise. * linux-thread-db.c (enable_thread_event): Likewise. * monitor.c (monitor_write_memory, monitor_read_memory): Likewise. * nto-procfs.c (procfs_open): Likewise. * procfs.c (invalidate_cache, procfs_insert_watchpoint, info_proc_mappings, info_mappings_callback): Likewise. * record.c (record_open): Likewise. * rs6000-nat.c (ARCH64): Likewise. * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise. (darwin_bfd_open): Likewise. * memattr.c (mem_info_command): Likewise. * windows-nat.c (win32_resume): Use current regcache architecture instead of current_gdbarch. * dbug-rom.c (dbug_regname): Remove check against number of registers in current_gdbarch. * solib-pa64.c (read_dynamic_info): Remove unused variable.
This commit is contained in:
@@ -404,7 +404,7 @@ i386_darwin_dr_get_status (void)
|
||||
void
|
||||
darwin_check_osabi (darwin_inferior *inf, thread_t thread)
|
||||
{
|
||||
if (gdbarch_osabi (current_gdbarch) == GDB_OSABI_UNKNOWN)
|
||||
if (gdbarch_osabi (target_gdbarch) == GDB_OSABI_UNKNOWN)
|
||||
{
|
||||
/* Attaching to a process. Let's figure out what kind it is. */
|
||||
x86_thread_state_t gp_regs;
|
||||
@@ -422,7 +422,7 @@ darwin_check_osabi (darwin_inferior *inf, thread_t thread)
|
||||
|
||||
gdbarch_info_init (&info);
|
||||
gdbarch_info_fill (&info);
|
||||
info.byte_order = gdbarch_byte_order (current_gdbarch);
|
||||
info.byte_order = gdbarch_byte_order (target_gdbarch);
|
||||
info.osabi = GDB_OSABI_DARWIN;
|
||||
if (gp_regs.tsh.flavor == x86_THREAD_STATE64)
|
||||
info.bfd_arch_info = bfd_lookup_arch (bfd_arch_i386,
|
||||
|
||||
Reference in New Issue
Block a user