diff options
Diffstat (limited to 'gdb/mi/mi-cmd-file.c')
-rw-r--r-- | gdb/mi/mi-cmd-file.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/mi/mi-cmd-file.c b/gdb/mi/mi-cmd-file.c index 5119e21..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. @@ -25,7 +25,6 @@ #include "symtab.h" #include "source.h" #include "solib.h" -#include "solist.h" /* Return to the client the absolute path and line number of the current file being executed. */ @@ -163,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); |