Hello,
I'm currently in the process of debugging a arm cortex m0 target using gdb and the Jlink debug server. My .gdbinit looks like this:
When I going through the program execution in some situations, I can not single step. One of such situations is a call to memset(). When I try to single step over the call, the debugger does not stop execution behind the function call. The output of the debug server in this case is: WARNING: No more breakpoint resources left
This is the output of the debug server after starting and attaching a gdb:
Display All
and here its some of the output during a debug session, until the problem occurs:
Display All
When I use "stepi" to get behind the memset() function call, I can use single steps again. So it's not wrong arguments to memset() that is causing my problems here.
Can someone of you spot what I'm missing here?
Kind regards and thanks in advance,
Torsten
I'm currently in the process of debugging a arm cortex m0 target using gdb and the Jlink debug server. My .gdbinit looks like this:
When I going through the program execution in some situations, I can not single step. One of such situations is a call to memset(). When I try to single step over the call, the debugger does not stop execution behind the function call. The output of the debug server in this case is: WARNING: No more breakpoint resources left
This is the output of the debug server after starting and attaching a gdb:
C Source Code
- SEGGER J-Link GDB Server V4.88a Command Line Version
- JLinkARM.dll V4.88a (DLL compiled Jul 17 2014 18:24:01)
- -----GDB Server start settings-----
- GDBInit file: none
- GDB Server Listening port: 2331
- SWO raw output listening port: 2332
- Terminal I/O port: 2333
- Accept remote connection: yes
- Generate logfile: off
- Verify download: off
- Init regs on start: on
- Silent mode: off
- Single run mode: off
- Target connection timeout: 5 sec.
- ------J-Link related settings------
- J-Link Host interface: USB
- J-Link script: none
- J-Link settings file: none
- ------Target related settings------
- Target device: nRF51422_xxAA
- Target interface: SWD
- Target interface speed: 1000kHz
- Target endian: little
- Connecting to J-Link...
- J-Link is connected.
- Firmware: J-Link OB-SAM3U128 V1 compiled Dec 11 2013 20:20:11
- Hardware: V1.00
- S/N: 480208075
- Checking target voltage...
- Target voltage: 3.30 V
- Listening on TCP/IP port 2331
- Connecting to target...Connected to target
- Waiting for GDB connection...Connected to 127.0.0.1
- Reading all registers
- Read 4 bytes @ address 0x00000000 (Data = 0x00000000)
- Target interface speed set to 1000 kHz
- Flash breakpoints enabled
- Flash download enabled
- Selecting device: nRF51422_xxAA
- Resetting target
- Read 2 bytes @ address 0x000200D6 (Data = 0xF000)
- Read 2 bytes @ address 0x000200D6 (Data = 0xF000)
- Read 2 bytes @ address 0x000200D6 (Data = 0xF000)
- Read 2 bytes @ address 0x00020A76 (Data = 0xE7FE)
- Read 2 bytes @ address 0x00020A76 (Data = 0xE7FE)
and here its some of the output during a debug session, until the problem occurs:
Source Code
- Removing breakpoint @ address 0x0002075E, Size = 2
- Removing breakpoint @ address 0x0002079C, Size = 2
- WARNING: Breakpoint @ address 0x0002079C not found
- Removing breakpoint @ address 0x000207B6, Size = 2
- WARNING: Breakpoint @ address 0x000207B6 not found
- Removing breakpoint @ address 0x00020A76, Size = 2
- WARNING: Breakpoint @ address 0x00020A76 not found
- Setting breakpoint @ address 0x000200D6, Size = 2, BPHandle = 0x0341
- Setting breakpoint @ address 0x00020144, Size = 2, BPHandle = 0x0342
- Setting breakpoint @ address 0x0002032E, Size = 2, BPHandle = 0x0343
- Setting breakpoint @ address 0x0002075E, Size = 2, BPHandle = 0x0344
- Setting breakpoint @ address 0x0002079C, Size = 2, BPHandle = 0x0000
- WARNING: No more breakpoint resources left
- Setting breakpoint @ address 0x000207B6, Size = 2, BPHandle = 0x0000
When I use "stepi" to get behind the memset() function call, I can use single steps again. So it's not wrong arguments to memset() that is causing my problems here.
Can someone of you spot what I'm missing here?
Kind regards and thanks in advance,
Torsten