aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-main.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-25 21:05:11 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-25 21:05:11 +0000
commit45399be4ecf63f4de5779e2eb75f6a4978117bb3 (patch)
treedc11eca13fdf0cab244e0e0f0aa8751347b318d6 /gdb/mi/mi-main.c
parent80f43b40c54e53920c10478a87690ffeb45384a0 (diff)
downloadgdb-45399be4ecf63f4de5779e2eb75f6a4978117bb3.zip
gdb-45399be4ecf63f4de5779e2eb75f6a4978117bb3.tar.gz
gdb-45399be4ecf63f4de5779e2eb75f6a4978117bb3.tar.bz2
Update data-read-memory so that it outputs lists.
Diffstat (limited to 'gdb/mi/mi-main.c')
-rw-r--r--gdb/mi/mi-main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 1b7a19b..5187cb0 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -892,7 +892,7 @@ mi_cmd_data_read_memory (char *command, char **argv, int argc)
struct ui_stream *stream = ui_out_stream_new (uiout);
int row;
int row_byte;
- ui_out_tuple_begin (uiout, "memory");
+ ui_out_list_begin (uiout, "memory");
for (row = 0, row_byte = 0;
row < nr_rows;
row++, row_byte += nr_cols * word_size)
@@ -902,7 +902,7 @@ mi_cmd_data_read_memory (char *command, char **argv, int argc)
ui_out_tuple_begin (uiout, NULL);
ui_out_field_core_addr (uiout, "addr", addr + row_byte);
/* ui_out_field_core_addr_symbolic (uiout, "saddr", addr + row_byte); */
- ui_out_tuple_begin (uiout, "data");
+ ui_out_list_begin (uiout, "data");
for (col = 0, col_byte = row_byte;
col < nr_cols;
col++, col_byte += word_size)
@@ -919,7 +919,7 @@ mi_cmd_data_read_memory (char *command, char **argv, int argc)
ui_out_field_stream (uiout, NULL, stream);
}
}
- ui_out_tuple_end (uiout);
+ ui_out_list_end (uiout);
if (aschar)
{
int byte;
@@ -942,7 +942,7 @@ mi_cmd_data_read_memory (char *command, char **argv, int argc)
ui_out_tuple_end (uiout);
}
ui_out_stream_delete (stream);
- ui_out_tuple_end (uiout);
+ ui_out_list_end (uiout);
}
do_cleanups (cleanups);
return MI_CMD_DONE;