diff options
Diffstat (limited to 'gdb/nto-procfs.c')
-rw-r--r-- | gdb/nto-procfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 61c18fd..08bb869 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -275,8 +275,9 @@ nto_procfs_target::open (const char *arg, int from_tty) else { if (sysinfo->type != - nto_map_arch_to_cputype (gdbarch_bfd_arch_info - (target_gdbarch ())->arch_name)) + nto_map_arch_to_cputype + (gdbarch_bfd_arch_info + (current_inferior ()->arch ())->arch_name)) error (_("Invalid target CPU.")); } } |