diff options
Diffstat (limited to 'gdb/mi/mi-cmd-file.c')
-rw-r--r-- | gdb/mi/mi-cmd-file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/mi/mi-cmd-file.c b/gdb/mi/mi-cmd-file.c index 0150ca0..22cb995 100644 --- a/gdb/mi/mi-cmd-file.c +++ b/gdb/mi/mi-cmd-file.c @@ -34,6 +34,7 @@ void mi_cmd_file_list_exec_source_file (char *command, char **argv, int argc) { struct symtab_and_line st; + struct ui_out *uiout = current_uiout; if (!mi_valid_noargs ("-file-list-exec-source-file", argc, argv)) error (_("-file-list-exec-source-file: Usage: No args")); @@ -67,6 +68,8 @@ static void print_partial_file_name (const char *filename, const char *fullname, void *ignore) { + struct ui_out *uiout = current_uiout; + ui_out_begin (uiout, ui_out_type_tuple, NULL); ui_out_field_string (uiout, "file", filename); @@ -80,6 +83,7 @@ print_partial_file_name (const char *filename, const char *fullname, void mi_cmd_file_list_exec_source_files (char *command, char **argv, int argc) { + struct ui_out *uiout = current_uiout; struct symtab *s; struct objfile *objfile; |