diff options
author | Daniel Jacobowitz <drow@false.org> | 2005-06-13 02:41:51 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2005-06-13 02:41:51 +0000 |
commit | 589e074d2e7ed4f075e1eb8193610770db6489be (patch) | |
tree | 8b75b52f7e8b787c7f2e01075abc1bec4e8e6841 /gdb/mi | |
parent | f450004a28a0ca9548117ae78d5ad554a3e32c69 (diff) | |
download | gdb-589e074d2e7ed4f075e1eb8193610770db6489be.zip gdb-589e074d2e7ed4f075e1eb8193610770db6489be.tar.gz gdb-589e074d2e7ed4f075e1eb8193610770db6489be.tar.bz2 |
gdb/
* mi/mi-main.c (register_changed_p, get_register): Use
get_selected_frame.
(mi_execute_command): Call mi_out_rewind after an error.
testsuite/
* gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Don't expect
excess MI output after an error.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 1fa79ce..e30901e 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -388,7 +388,7 @@ register_changed_p (int regnum) { gdb_byte raw_buffer[MAX_REGISTER_SIZE]; - if (! frame_register_read (deprecated_selected_frame, regnum, raw_buffer)) + if (! frame_register_read (get_selected_frame (NULL), regnum, raw_buffer)) return -1; if (memcmp (&old_regs[DEPRECATED_REGISTER_BYTE (regnum)], raw_buffer, @@ -509,7 +509,7 @@ get_register (int regnum, int format) if (format == 'N') format = 0; - frame_register (deprecated_selected_frame, regnum, &optim, &lval, &addr, + frame_register (get_selected_frame (NULL), regnum, &optim, &lval, &addr, &realnum, buffer); if (optim) @@ -1174,11 +1174,12 @@ mi_execute_command (char *cmd, int from_tty) if (result.reason < 0) { /* The command execution failed and error() was called - somewhere */ + somewhere. */ fputs_unfiltered (command->token, raw_stdout); fputs_unfiltered ("^error,msg=\"", raw_stdout); fputstr_unfiltered (result.message, '"', raw_stdout); fputs_unfiltered ("\"\n", raw_stdout); + mi_out_rewind (uiout); } mi_parse_free (command); } |