diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-01-27 18:20:35 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-01-28 20:04:48 +0000 |
commit | 0f93c3a25bbfbdfeea92f27f591c88e7daeb9a70 (patch) | |
tree | 00e62ee66218a7247d296c5ea6c8a0126cded1a9 /bfd | |
parent | f237f998d1168139d599c550d54169cd8f94052d (diff) | |
download | binutils-0f93c3a25bbfbdfeea92f27f591c88e7daeb9a70.zip binutils-0f93c3a25bbfbdfeea92f27f591c88e7daeb9a70.tar.gz binutils-0f93c3a25bbfbdfeea92f27f591c88e7daeb9a70.tar.bz2 |
gdb: remove unneeded switch_to_thread from thr_try_catch_cmd
I spotted that every time thr_try_catch_cmd is called GDB has already
switched to the required thread. The call to switch_to_thread at the
head of thr_try_catch_cmd is therefore redundant.
This commit replaces the call to switch_to_thread with an assertion
that we already have the required thread selected.
I also extended the header comment on thr_try_catch_cmd to make it
clearer when this function could throw an exception.
There should be no user visible changes after this commit.
gdb/ChangeLog:
* thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
assert. Extend the header comment.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions