This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Hardware breakpoint limitation issue during the gdb regression test

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.

Yao (éå)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]