This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
potential gdb/insight problem with settings hardware breakpoints
- From: "Nenad Lazovic" <nlazovic at sympatico dot ca>
- To: <gdb at sources dot redhat dot com>
- Date: Wed, 14 Apr 2004 11:06:42 -0400
- Subject: potential gdb/insight problem with settings hardware breakpoints
- Reply-to: <nlazovic at sympatico dot ca>
I am using arm-elf-gdb or arm-elf-insight together with OCDLibRemote is a
utility from
www.macraigor.comto debug ARM7 (Philips LPC2106).
I am having a problem setting hardware breakpoints. Following is the typical
session:
(gdb) target remote localhost:2000
Remote debugging using localhost:2000
_start () at ../../../arm_ucos/lpc210x/src/gcc/init.S:83
83 b ResetHandler
(gdb) info breakpoints
Num Type Disp Enb Address What
1 hw breakpoint keep y 0x00000138
../../../arm_ucos/lpc210x/src/gcc/init.S:175
(gdb) delete
Delete all breakpoints? (y or n) y
(gdb) hbreak 175
Hardware assisted breakpoint 2 at 0x138: file
../../../arm_ucos/lpc210x/src/gcc/init.S, line 175.
(gdb) info breakpoints
Num Type Disp Enb Address What
2 hw breakpoint keep y 0x00000138
../../../arm_ucos/lpc210x/src/gcc/init.S:175
(gdb) n
Warning:
Cannot insert hardware breakpoint 2.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.
(gdb) s
Can't set hardware breakpoint without the 'Z1' (hardware-breakpoint) packet
(gdb) n
Can't set hardware breakpoint without the 'Z1' (hardware-breakpoint) packet
(gdb) c
Continuing.
Can't set hardware breakpoint without the 'Z1' (hardware-breakpoint) packet
(gdb) set remote hardware-breakpoint-packet on
(gdb) hbreak 175
Note: breakpoint 2 also set at pc 0x138.
Hardware assisted breakpoint 3 at 0x138: file
../../../arm_ucos/lpc210x/src/gcc/init.S, line 175.
(gdb) info breakpoints
Num Type Disp Enb Address What
2 hw breakpoint keep y 0x00000138
../../../arm_ucos/lpc210x/src/gcc/init.S:175
3 hw breakpoint keep y 0x00000138
../../../arm_ucos/lpc210x/src/gcc/init.S:175
(gdb) delete
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) hbreak 175
Hardware assisted breakpoint 4 at 0x138: file
../../../arm_ucos/lpc210x/src/gcc/init.S, line 175.
(gdb) s
Enabled packet Z1 (hardware-breakpoint) not recognized by stub
(gdb) s
Enabled packet Z1 (hardware-breakpoint) not recognized by stub
(gdb)
Am I missing something ?
Are hardware breakpoints supported ? If not, any plans ?
Thanks,
Nenad