Hardware breakpoint limitation issue during the gdb regression test
Yao Qi
yao@codesourcery.com
Thu Aug 9 03:48:00 GMT 2012
On Wednesday, August 08, 2012 04:55:44 PM Terry Guo wrote:
> I managed to run gdb "make check" on a real arm cortex-m3 board.
> During this regression test, I saw many failures are caused by "Cannot
> insert hardware breakpoint 8" and "You may have requested too many
> hardware breakpoints/watchpoints". It's true that my arm board only
> supports limited number breakpoints. So how to workaround this
> limitation for regression test? Thanks.
You don't have to workaround this limitation. x86 also has a limited number
of hardware breakpoints and processor with unlimited hw breakpoints doesn't
exist at all :) If testsuite works for x86, it should work for your
configuration.
As you provide quite few information, I can't tell where the problem is. In
testsuite, it is regarded that target "arm*-*-*" supports both hardware
breakpoint and watchpoint (see skip_hw_breakpoint_tests and
skip_hw_watchpoint_tests in testsuite/lib/gdb.exp), so all hw watch/break
tests are run on your board.
You have to check whether your stub is able to handle hardware
breakpoint/watchpoint packets, and insert them correctly.
--
Yao (齐尧)
More information about the Gdb
mailing list