diff options
Diffstat (limited to 'gdb/d-namespace.c')
-rw-r--r-- | gdb/d-namespace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/d-namespace.c b/gdb/d-namespace.c index 6153e5b..69474ba 100644 --- a/gdb/d-namespace.c +++ b/gdb/d-namespace.c @@ -25,6 +25,7 @@ #include "d-lang.h" #include "gdbsupport/gdb_obstack.h" #include "gdbarch.h" +#include "inferior.h" /* This returns the length of first component of NAME, which should be the demangled name of a D variable/function/method/etc. @@ -92,7 +93,7 @@ d_lookup_symbol (const struct language_defn *langdef, struct gdbarch *gdbarch; if (block == NULL) - gdbarch = target_gdbarch (); + gdbarch = current_inferior ()->arch (); else gdbarch = block->gdbarch (); sym.symbol |