From b72b33ef9baf5c651101b4eef36c2f694258a9fb Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Thu, 26 Sep 2002 18:35:21 +0000 Subject: 2002-09-26 Elena Zannoni * mi-cmd-disas.c (dump_insns): Add text only output for CLI. (do_mixed_source_and_assembly): Ditto. --- gdb/mi/ChangeLog | 5 +++++ gdb/mi/mi-cmd-disas.c | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'gdb') diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog index 51d9973..5e844e6 100644 --- a/gdb/mi/ChangeLog +++ b/gdb/mi/ChangeLog @@ -1,3 +1,8 @@ +2002-09-26 Elena Zannoni + + * mi-cmd-disas.c (dump_insns): Add text only output for CLI. + (do_mixed_source_and_assembly): Ditto. + 2002-09-11 Keith Seitz * mi-main.c (mi_cmd_data_list_register_names): Use cleanups diff --git a/gdb/mi/mi-cmd-disas.c b/gdb/mi/mi-cmd-disas.c index 028dc07..85328d7 100644 --- a/gdb/mi/mi-cmd-disas.c +++ b/gdb/mi/mi-cmd-disas.c @@ -115,8 +115,11 @@ dump_insns (disassemble_info * di, CORE_ADDR low, CORE_ADDR high, { /* We don't care now about line, filename and unmapped. But we might in the future. */ + ui_out_text (uiout, " <"); ui_out_field_string (uiout, "func-name", name); + ui_out_text (uiout, "+"); ui_out_field_int (uiout, "offset", offset); + ui_out_text (uiout, ">:\t"); } if (filename != NULL) xfree (filename); @@ -128,6 +131,7 @@ dump_insns (disassemble_info * di, CORE_ADDR low, CORE_ADDR high, ui_out_field_stream (uiout, "inst", stb); ui_file_rewind (stb->stream); ui_out_tuple_end (uiout); + ui_out_text (uiout, "\n"); } return num_displayed; } @@ -257,6 +261,7 @@ do_mixed_source_and_assembly (struct disassemble_info *di, int nlines, { ui_out_list_end (uiout); ui_out_tuple_end (uiout); + ui_out_text (uiout, "\n"); close_list = 0; } if (how_many >= 0) -- cgit v1.1