diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-01-09 14:02:39 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-01-10 16:15:30 +0000 |
commit | 1ef8573cc77c91feeef3edab74d383d20809eb33 (patch) | |
tree | f2f67317d9c4cf33fe9130f622f2759ac1511e68 /gdb/mdebugread.c | |
parent | 59aa9b0be159002e2eb971176921dc1e9c8045cf (diff) | |
download | binutils-1ef8573cc77c91feeef3edab74d383d20809eb33.zip binutils-1ef8573cc77c91feeef3edab74d383d20809eb33.tar.gz binutils-1ef8573cc77c91feeef3edab74d383d20809eb33.tar.bz2 |
gdb: Improve scoped_switch_fork_info class
After committing this patch I got this feedback:
https://sourceware.org/ml/gdb-patches/2019-01/msg00181.html
This patch makes the constructor of scoped_switch_fork_info explicit,
and wraps the core of the destructor in a TRY/CATCH block.
I've run this through the testsuite on X86-64/GNU Linux, however, this
code is not exercised, so this patch is untested.
gdb/ChangeLog:
* linux-fork.c (scoped_switch_fork_info)
<scoped_switch_fork_info>: Make explicit.
<~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
Diffstat (limited to 'gdb/mdebugread.c')
0 files changed, 0 insertions, 0 deletions