mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 19:44:11 +08:00
* mi-main.c (mi_cmd_thread_select): Only return MI_CMD_CAUGHT_ERROR
when we really did catch an error(). If we got GDB_RC_FAIL, return MI_CMD_ERROR instead.
This commit is contained in:
parent
7ed1d3463e
commit
99615eb88f
@ -1,3 +1,9 @@
|
||||
2002-10-22 Keith Seitz <keiths@redhat.com>
|
||||
|
||||
* mi-main.c (mi_cmd_thread_select): Only return MI_CMD_CAUGHT_ERROR
|
||||
when we really did catch an error(). If we got GDB_RC_FAIL, return
|
||||
MI_CMD_ERROR instead.
|
||||
|
||||
2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* gdbmi.texinfo: Fix examples that show frames to remove
|
||||
|
@ -240,8 +240,12 @@ mi_cmd_thread_select (char *command, char **argv, int argc)
|
||||
else
|
||||
rc = gdb_thread_select (uiout, argv[0]);
|
||||
|
||||
if (rc == GDB_RC_FAIL)
|
||||
/* RC is enum gdb_rc if it is successful (>=0)
|
||||
enum return_reason if not (<0). */
|
||||
if ((int) rc < 0 && (enum return_reason) rc == RETURN_ERROR)
|
||||
return MI_CMD_CAUGHT_ERROR;
|
||||
else if ((int) rc >= 0 && rc == GDB_RC_FAIL)
|
||||
return MI_CMD_ERROR;
|
||||
else
|
||||
return MI_CMD_DONE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user