diff options
Diffstat (limited to 'gdb/mi/mi-cmd-file.c')
-rw-r--r-- | gdb/mi/mi-cmd-file.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/mi/mi-cmd-file.c b/gdb/mi/mi-cmd-file.c index f2fe435..cf7991f 100644 --- a/gdb/mi/mi-cmd-file.c +++ b/gdb/mi/mi-cmd-file.c @@ -1,5 +1,5 @@ /* MI Command Set - file commands. - Copyright (C) 2000-2024 Free Software Foundation, Inc. + Copyright (C) 2000-2025 Free Software Foundation, Inc. Contributed by Cygnus Solutions (a Red Hat company). This file is part of GDB. @@ -20,13 +20,11 @@ #include "mi-cmds.h" #include "mi-getopt.h" #include "mi-interp.h" +#include "progspace.h" #include "ui-out.h" #include "symtab.h" #include "source.h" -#include "objfiles.h" #include "solib.h" -#include "solist.h" -#include "gdbsupport/gdb_regex.h" /* Return to the client the absolute path and line number of the current file being executed. */ @@ -164,10 +162,10 @@ mi_cmd_file_list_shared_libraries (const char *command, for (const solib &so : current_program_space->solibs ()) { - if (so.so_name.empty ()) + if (so.name.empty ()) continue; - if (pattern != nullptr && !re_exec (so.so_name.c_str ())) + if (pattern != nullptr && !re_exec (so.name.c_str ())) continue; ui_out_emit_tuple tuple_emitter (uiout, NULL); |