This is the mail archive of the
mailing list for the GDB project.
Re: Hardware breakpoint limitation issue during the gdb regression test
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Terry Guo <flameroc at gmail dot com>, <gdb at sourceware dot org>
- Date: Thu, 9 Aug 2012 11:47:56 +0800
- Subject: Re: Hardware breakpoint limitation issue during the gdb regression test
- References: <CAGbRaL4uR0MZJHwre7j16ybiEViO5ChRp8QXa4HTEDz9ikiT2A@mail.gmail.com>
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
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.