diff options
author | Hui Zhu <teawater@gmail.com> | 2011-07-07 13:32:55 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2011-07-07 13:32:55 +0000 |
commit | 26afc0d7031bc2041ea17a4c25b04454b4e4feab (patch) | |
tree | dc4d9c155635214de37835f606358ce9cf688f3b /gdb/remote.c | |
parent | cff32a7c64a02339aed9f2d5f88d33e1396dad1d (diff) | |
download | gdb-26afc0d7031bc2041ea17a4c25b04454b4e4feab.zip gdb-26afc0d7031bc2041ea17a4c25b04454b4e4feab.tar.gz gdb-26afc0d7031bc2041ea17a4c25b04454b4e4feab.tar.bz2 |
2011-07-07 Hui Zhu <teawater@gmail.com>
Revert:
2011-07-06 Hui Zhu <teawater@gmail.com>
* remote.c (remote_start_remote): Add TRY_CATCH for
remote_get_trace_status.
* tracepoint.c (disconnect_tracing): Ditto.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index b03ef59..19cc0b6 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3146,8 +3146,6 @@ remote_start_remote (int from_tty, struct target_ops *target, int extended_p) struct remote_state *rs = get_remote_state (); struct packet_config *noack_config; char *wait_status = NULL; - int ret = 0; - volatile struct gdb_exception ex; immediate_quit++; /* Allow user to interrupt it. */ @@ -3391,16 +3389,7 @@ remote_start_remote (int from_tty, struct target_ops *target, int extended_p) /* Possibly the target has been engaged in a trace run started previously; find out where things are at. */ - TRY_CATCH (ex, RETURN_MASK_ERROR) - { - ret = remote_get_trace_status (current_trace_status ()); - } - if (ex.reason < 0) - { - warning (_("%s"), ex.message); - ret = -1; - } - if (ret != -1) + if (remote_get_trace_status (current_trace_status ()) != -1) { struct uploaded_tp *uploaded_tps = NULL; struct uploaded_tsv *uploaded_tsvs = NULL; |