diff options
author | Yao Qi <yao.qi@linaro.org> | 2018-01-16 09:05:39 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2018-01-16 09:05:39 +0000 |
commit | 9a70f35c8d872bb5542e98e34b8b044228dcb844 (patch) | |
tree | d900716170178ddf74ebc25b7308aa5a998063ff /binutils | |
parent | 46a7082471545e05e7161737fa3b6f597e150b72 (diff) | |
download | gdb-9a70f35c8d872bb5542e98e34b8b044228dcb844.zip gdb-9a70f35c8d872bb5542e98e34b8b044228dcb844.tar.gz gdb-9a70f35c8d872bb5542e98e34b8b044228dcb844.tar.bz2 |
Mark register unavailable when PTRACE_PEEKUSER fails
As described in PR 18749, GDB/GDBserver may get an error on accessing
memory or register because the thread may disappear. However, some
path doesn't expect the error. This patch fixes this problem by
marking the register unavailable when PTRACE_PEEKUSER fails instead
of throwing error.
gdb/gdbserver:
2018-01-16 Yao Qi <yao.qi@linaro.org>
PR gdb/18749
* linux-low.c (fetch_register): Call supply_register instead of
error.
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions