[power-gnu-discuss] Gdb command watch issue hardware requests

Carlos O'Donell carlos at codesourcery.com
Mon Jul 20 18:49:08 UTC 2009


Liu Yu-B13201 wrote:
> I am now developing in gdb remote mode.

What hardware are you using for debugging?

> I heard from someone that 'hbreak' and 'watch' should make the gdb frontend issue requests for hardware break/watchpoints.
> (gdb >= 6.8 for hardware breakpoint over remote connections)

That is correct, but only if the ICE and CPU support hardware 
break/watchpoints.

> I checked that 'hbreak' indeed issue hardware breakpoint request but 'watch' still use software breakpoint and single step.
> The toolchain version I used is gcc-4.3.74-eglibc-2.8.74-5 in which gdb version is 6.8.50.20080821-cvs. Does it not enough to support hardware assistant watch?

Does your hardware, both ICE and CPU, support hardware watchpoints?

Cheers,
Carlos.
-- 
Carlos O'Donell
CodeSourcery
carlos at codesourcery.com
(650) 331-3385 x716



More information about the power-gnu-discuss mailing list