diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-06-23 20:43:56 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-06-23 20:43:56 +0000 |
commit | 6bbd0310476b18b4032d99d45b8857a4e8b13bed (patch) | |
tree | d97e187a8ed25fcb64e3085ae82e1161fe152476 /gdb/mi/mi-cmd-disas.c | |
parent | 3690bddb2055ca15b44ea0440972a8c7191e27ba (diff) | |
download | gdb-6bbd0310476b18b4032d99d45b8857a4e8b13bed.tar.gz |
Change mi/data-disassemble command output to a list ([]) instead of
({}).
Diffstat (limited to 'gdb/mi/mi-cmd-disas.c')
-rw-r--r-- | gdb/mi/mi-cmd-disas.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/mi/mi-cmd-disas.c b/gdb/mi/mi-cmd-disas.c index 021ee5e6d94..0b513244c6b 100644 --- a/gdb/mi/mi-cmd-disas.c +++ b/gdb/mi/mi-cmd-disas.c @@ -364,7 +364,7 @@ mi_cmd_disassemble (char *command, char **argv, int argc) for that line. */ next_line = 0; /* Force out first line */ - ui_out_tuple_begin (uiout, "asm_insns"); + ui_out_list_begin (uiout, "asm_insns"); num_displayed = 0; for (i = 0; i < newlines; i++) { @@ -387,8 +387,8 @@ mi_cmd_disassemble (char *command, char **argv, int argc) { ui_out_tuple_begin (uiout, "src_and_asm_line"); print_source_lines (symtab, next_line, mle[i].line + 1, 0); - ui_out_tuple_begin (uiout, "line_asm_insn"); - ui_out_tuple_end (uiout); + ui_out_list_begin (uiout, "line_asm_insn"); + ui_out_list_end (uiout); ui_out_tuple_end (uiout); } /* Print the last line and leave list open for @@ -404,7 +404,7 @@ mi_cmd_disassemble (char *command, char **argv, int argc) } next_line = mle[i].line + 1; - ui_out_tuple_begin (uiout, "line_asm_insn"); + ui_out_list_begin (uiout, "line_asm_insn"); if (i + 1 < newlines && mle[i + 1].line <= mle[i].line) close_list = 0; } @@ -441,7 +441,7 @@ mi_cmd_disassemble (char *command, char **argv, int argc) } if (close_list) { - ui_out_tuple_end (uiout); + ui_out_list_end (uiout); ui_out_tuple_end (uiout); close_list = 0; } @@ -449,12 +449,12 @@ mi_cmd_disassemble (char *command, char **argv, int argc) if (num_displayed >= how_many) break; } - ui_out_tuple_end (uiout); + ui_out_list_end (uiout); } else { assembly_only: - ui_out_tuple_begin (uiout, "asm_insns"); + ui_out_list_begin (uiout, "asm_insns"); num_displayed = 0; for (pc = low; pc < high;) { @@ -487,7 +487,7 @@ mi_cmd_disassemble (char *command, char **argv, int argc) ui_file_rewind (stb->stream); ui_out_tuple_end (uiout); } - ui_out_tuple_end (uiout); + ui_out_list_end (uiout); } gdb_flush (gdb_stdout); |