From Yu.Liu at freescale.com Mon Jul 20 10:04:11 2009 From: Yu.Liu at freescale.com (Liu Yu-B13201) Date: Mon, 20 Jul 2009 18:04:11 +0800 Subject: Gdb command watch issue hardware requests Message-ID: <0A1FE637C2C7E148B9573BB60CC630E53A294D@zch01exm26.fsl.freescale.net> Hi guys, I am now developing in gdb remote mode. 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) 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 anyone know something about this? From carlos at codesourcery.com Mon Jul 20 18:49:08 2009 From: carlos at codesourcery.com (Carlos O'Donell) Date: Mon, 20 Jul 2009 14:49:08 -0400 Subject: [power-gnu-discuss] Gdb command watch issue hardware requests In-Reply-To: <0A1FE637C2C7E148B9573BB60CC630E53A294D@zch01exm26.fsl.freescale.net> References: <0A1FE637C2C7E148B9573BB60CC630E53A294D@zch01exm26.fsl.freescale.net> Message-ID: <4A64BC24.8090200@codesourcery.com> 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