From 40d5d7e983f35d344244ed0d8700e45b86b21adc Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 25 Jun 2001 18:34:25 +0000 Subject: [PATCH] data-list-changed-registers outputs a list of registers. --- gdb/mi/ChangeLog | 7 +++++++ gdb/mi/gdbmi.texinfo | 4 ++-- gdb/mi/mi-main.c | 4 ++-- gdb/testsuite/gdb.mi/ChangeLog | 5 +++++ gdb/testsuite/gdb.mi/mi-regs.exp | 2 +- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog index 87c8725..0f2ab50 100644 --- a/gdb/mi/ChangeLog +++ b/gdb/mi/ChangeLog @@ -1,5 +1,12 @@ 2001-06-23 Andrew Cagney + * mi-main.c (mi_cmd_data_list_changed_registers): Output a list of + register numbers. + * gdbmi.texinfo (data-list-changed-registers): Update + documentation. + +2001-06-23 Andrew Cagney + * gdbmi.texinfo (data-disassemble): Update documentation of output. Produces a list of instructions and a list of source lines. diff --git a/gdb/mi/gdbmi.texinfo b/gdb/mi/gdbmi.texinfo index 74b774b..3fdad0f 100644 --- a/gdb/mi/gdbmi.texinfo +++ b/gdb/mi/gdbmi.texinfo @@ -1234,9 +1234,9 @@ On a PPC MBX board: args=@{@},file="try.c",line="5"@} (@value{GDBP}) -data-list-changed-registers -^done,changed-registers=@{"0","1","2","4","5","6","7","8","9", +^done,changed-registers=["0","1","2","4","5","6","7","8","9", "10","11","13","14","15","16","17","18","19","20","21","22","23", -"24","25","26","27","28","30","31","64","65","66","67","69"@} +"24","25","26","27","28","30","31","64","65","66","67","69"] (@value{GDBP}) @end smallexample diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 5f73ddf..4ef68a7 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -323,7 +323,7 @@ mi_cmd_data_list_changed_registers (char *command, char **argv, int argc) numregs = NUM_REGS; - ui_out_tuple_begin (uiout, "changed-registers"); + ui_out_list_begin (uiout, "changed-registers"); if (argc == 0) /* No args, just do all the regs */ { @@ -372,7 +372,7 @@ mi_cmd_data_list_changed_registers (char *command, char **argv, int argc) return MI_CMD_ERROR; } } - ui_out_tuple_end (uiout); + ui_out_list_end (uiout); return MI_CMD_DONE; } diff --git a/gdb/testsuite/gdb.mi/ChangeLog b/gdb/testsuite/gdb.mi/ChangeLog index 5258a38..d6a1162 100644 --- a/gdb/testsuite/gdb.mi/ChangeLog +++ b/gdb/testsuite/gdb.mi/ChangeLog @@ -1,3 +1,8 @@ +2001-06-25 Andrew Cagney + + * mi-regs.exp: Update patterns matching changed-registers. Now + outputs a list. + 2001-06-23 Andrew Cagney * ChangeLog-mi: Rename to ChangeLog. diff --git a/gdb/testsuite/gdb.mi/mi-regs.exp b/gdb/testsuite/gdb.mi/mi-regs.exp index b4b0141..9a60f8d 100644 --- a/gdb/testsuite/gdb.mi/mi-regs.exp +++ b/gdb/testsuite/gdb.mi/mi-regs.exp @@ -160,7 +160,7 @@ proc sparc_register_tests { } { # Don't know how useful this test is mi_gdb_test "002-data-list-changed-registers" \ - "002\\^done,changed-registers=\{\"1\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"23\",\"24\",\"25\",\"26\",\"27\",\"28\",\"30\",\"31\",\"65\",\"68\",\"69\"\}" \ + "002\\^done,changed-registers=\\\[\"1\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"23\",\"24\",\"25\",\"26\",\"27\",\"28\",\"30\",\"31\",\"65\",\"68\",\"69\"\\\]" \ "list changed registers" } -- 2.7.4