aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-disas.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-05-12 04:08:24 +0000
committerAndrew Cagney <cagney@redhat.com>2001-05-12 04:08:24 +0000
commit666547aa9ebfac79a2f7607e0621f6a55c8c6f30 (patch)
tree9dbf9e34710e03caaccc11bedddbf124c5f2448c /gdb/mi/mi-cmd-disas.c
parent30c98d84cd2c82265d56de5e3bc6a25b291ff65c (diff)
downloadgdb-666547aa9ebfac79a2f7607e0621f6a55c8c6f30.zip
gdb-666547aa9ebfac79a2f7607e0621f6a55c8c6f30.tar.gz
gdb-666547aa9ebfac79a2f7607e0621f6a55c8c6f30.tar.bz2
s/ui_out_list/ui_out_tupple/
Diffstat (limited to 'gdb/mi/mi-cmd-disas.c')
-rw-r--r--gdb/mi/mi-cmd-disas.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/gdb/mi/mi-cmd-disas.c b/gdb/mi/mi-cmd-disas.c
index 1937eb0..021ee5e 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_list_begin (uiout, "asm_insns");
+ ui_out_tuple_begin (uiout, "asm_insns");
num_displayed = 0;
for (i = 0; i < newlines; i++)
{
@@ -377,7 +377,7 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
/* Just one line to print. */
if (next_line == mle[i].line)
{
- ui_out_list_begin (uiout, "src_and_asm_line");
+ ui_out_tuple_begin (uiout, "src_and_asm_line");
print_source_lines (symtab, next_line, mle[i].line + 1, 0);
}
else
@@ -385,26 +385,26 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
/* Several source lines w/o asm instructions associated. */
for (; next_line < mle[i].line; next_line++)
{
- ui_out_list_begin (uiout, "src_and_asm_line");
+ ui_out_tuple_begin (uiout, "src_and_asm_line");
print_source_lines (symtab, next_line, mle[i].line + 1, 0);
- ui_out_list_begin (uiout, "line_asm_insn");
- ui_out_list_end (uiout);
- ui_out_list_end (uiout);
+ ui_out_tuple_begin (uiout, "line_asm_insn");
+ ui_out_tuple_end (uiout);
+ ui_out_tuple_end (uiout);
}
/* Print the last line and leave list open for
asm instructions to be added. */
- ui_out_list_begin (uiout, "src_and_asm_line");
+ ui_out_tuple_begin (uiout, "src_and_asm_line");
print_source_lines (symtab, next_line, mle[i].line + 1, 0);
}
}
else
{
- ui_out_list_begin (uiout, "src_and_asm_line");
+ ui_out_tuple_begin (uiout, "src_and_asm_line");
print_source_lines (symtab, mle[i].line, mle[i].line + 1, 0);
}
next_line = mle[i].line + 1;
- ui_out_list_begin (uiout, "line_asm_insn");
+ ui_out_tuple_begin (uiout, "line_asm_insn");
if (i + 1 < newlines && mle[i + 1].line <= mle[i].line)
close_list = 0;
}
@@ -418,7 +418,7 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
else
num_displayed++;
}
- ui_out_list_begin (uiout, NULL);
+ ui_out_tuple_begin (uiout, NULL);
ui_out_field_core_addr (uiout, "address", pc);
if (!build_address_symbolic (pc, 0, &name, &offset, &filename, &line, &unmapped))
@@ -437,24 +437,24 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
pc += (*tm_print_insn) (pc, &di);
ui_out_field_stream (uiout, "inst", stb);
ui_file_rewind (stb->stream);
- ui_out_list_end (uiout);
+ ui_out_tuple_end (uiout);
}
if (close_list)
{
- ui_out_list_end (uiout);
- ui_out_list_end (uiout);
+ ui_out_tuple_end (uiout);
+ ui_out_tuple_end (uiout);
close_list = 0;
}
if (how_many >= 0)
if (num_displayed >= how_many)
break;
}
- ui_out_list_end (uiout);
+ ui_out_tuple_end (uiout);
}
else
{
assembly_only:
- ui_out_list_begin (uiout, "asm_insns");
+ ui_out_tuple_begin (uiout, "asm_insns");
num_displayed = 0;
for (pc = low; pc < high;)
{
@@ -466,7 +466,7 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
else
num_displayed++;
}
- ui_out_list_begin (uiout, NULL);
+ ui_out_tuple_begin (uiout, NULL);
ui_out_field_core_addr (uiout, "address", pc);
if (!build_address_symbolic (pc, 0, &name, &offset, &filename, &line, &unmapped))
@@ -485,9 +485,9 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
pc += (*tm_print_insn) (pc, &di);
ui_out_field_stream (uiout, "inst", stb);
ui_file_rewind (stb->stream);
- ui_out_list_end (uiout);
+ ui_out_tuple_end (uiout);
}
- ui_out_list_end (uiout);
+ ui_out_tuple_end (uiout);
}
gdb_flush (gdb_stdout);