diff options
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/mi/mi-cmd-file.c b/gdb/mi/mi-cmd-file.c index b5835a5..3b0261c 100644 --- a/gdb/mi/mi-cmd-file.c +++ b/gdb/mi/mi-cmd-file.c @@ -121,7 +121,6 @@ mi_cmd_file_list_shared_libraries (const char *command, char **argv, int argc) { struct ui_out *uiout = current_uiout; const char *pattern; - struct so_list *so = NULL; switch (argc) { @@ -148,7 +147,7 @@ mi_cmd_file_list_shared_libraries (const char *command, char **argv, int argc) /* Print the table header. */ ui_out_emit_list list_emitter (uiout, "shared-libraries"); - ALL_SO_LIBS (so) + for (struct so_list *so : current_program_space->solibs ()) { if (so->so_name[0] == '\0') continue; |