diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-09-26 18:35:21 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-09-26 18:35:21 +0000 |
commit | b72b33ef9baf5c651101b4eef36c2f694258a9fb (patch) | |
tree | ddc30dd039dafd772ee1812b6cedf7970332ef13 /gdb/mi | |
parent | f15ab4a7d1f9b4df5376f568a634c0408b074cee (diff) | |
download | gdb-b72b33ef9baf5c651101b4eef36c2f694258a9fb.zip gdb-b72b33ef9baf5c651101b4eef36c2f694258a9fb.tar.gz gdb-b72b33ef9baf5c651101b4eef36c2f694258a9fb.tar.bz2 |
2002-09-26 Elena Zannoni <ezannoni@redhat.com>
* mi-cmd-disas.c (dump_insns): Add text only output for CLI.
(do_mixed_source_and_assembly): Ditto.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mi/mi-cmd-disas.c | 5 |
2 files changed, 10 insertions, 0 deletions
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 <ezannoni@redhat.com> + + * mi-cmd-disas.c (dump_insns): Add text only output for CLI. + (do_mixed_source_and_assembly): Ditto. + 2002-09-11 Keith Seitz <keiths@redhat.com> * 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) |