diff options
Diffstat (limited to 'gdb/python/py-objfile.c')
-rw-r--r-- | gdb/python/py-objfile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/python/py-objfile.c b/gdb/python/py-objfile.c index ad72f3f..bb5d0d9 100644 --- a/gdb/python/py-objfile.c +++ b/gdb/python/py-objfile.c @@ -25,6 +25,7 @@ #include "build-id.h" #include "symtab.h" #include "python.h" +#include "inferior.h" struct objfile_object { @@ -618,7 +619,7 @@ gdbpy_lookup_objfile (PyObject *self, PyObject *args, PyObject *kw) struct objfile *objfile = nullptr; if (by_build_id) gdbarch_iterate_over_objfiles_in_search_order - (target_gdbarch (), + (current_inferior ()->arch (), [&objfile, name] (struct objfile *obj) { /* Don't return separate debug files. */ @@ -641,7 +642,7 @@ gdbpy_lookup_objfile (PyObject *self, PyObject *args, PyObject *kw) }, gdbpy_current_objfile); else gdbarch_iterate_over_objfiles_in_search_order - (target_gdbarch (), + (current_inferior ()->arch (), [&objfile, name] (struct objfile *obj) { /* Don't return separate debug files. */ |