diff options
author | Pavel Labath <labath@google.com> | 2017-07-07 11:42:34 +0100 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-07-10 12:52:35 +0000 |
commit | 95d8fb1e843bee1b94df7027ac21d8ef570c7740 (patch) | |
tree | 94ef63462e5f8089002a0d2ebf617e0c7351e1bf /libc/stdio/stdio.cpp | |
parent | ddefae7ba92c40d60f2401e010e7789bee6f260d (diff) |
sys_ptrace_test: Better detect missing HW support
If the hardware debug support is missing from the CPU, the kernel can
end up in the state where it reports that it supports N(>0) watchpoints,
but the "maximum supported watchpoint size" is zero.
This is not a really sensible API, but it is what we have. I'm going to
speak to folks upstream about whether we can have it report something
more sensible, but that will take a while (if ever).
So, for the time being, detect this situation and treat it as if no
hardware watchtpoints/breakpoints are supported.
Test: bionic-unit-tests --gtest_filter="sys_ptrace.*"
Change-Id: Id6a013c9bec8d8b450b4a36c28431f6b7fd15879
Bug: 63116544
Diffstat (limited to 'libc/stdio/stdio.cpp')
0 files changed, 0 insertions, 0 deletions