aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-disas.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-23 20:43:56 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-23 20:43:56 +0000
commit70242e8df575ff285a379e6321fde12314147ba2 (patch)
tree1d8cb0392d32d407a99783c79ab2babb0cbe2819 /gdb/mi/mi-cmd-disas.c
parent7f32bebcaa57910d962b97014809f1937ff5c1fc (diff)
downloadgdb-70242e8df575ff285a379e6321fde12314147ba2.zip
gdb-70242e8df575ff285a379e6321fde12314147ba2.tar.gz
gdb-70242e8df575ff285a379e6321fde12314147ba2.tar.bz2
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.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/mi/mi-cmd-disas.c b/gdb/mi/mi-cmd-disas.c
index 021ee5e..0b51324 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);