Hello,
I am working on Ubuntu 20.04 with Eclipse on a NXP LPC1830 chip. I am using a JLink Pro probe.
I have noticed that when debugging and if I try to read 'this' in a C++ function, I am losing the connection to GDB and debugging stops.
I have attached the JLink log file (middle removed else it was too big to be attached)
And here is the JLink GDB server output (cut also in some place)
Don't know what I can do more to investigate this issue...
---------------------------------------------------------------------------------------------------
SEGGER J-Link GDB Server V7.52d GUI Version
JLinkARM.dll V7.52d (DLL compiled Aug 17 2021 17:14:32)
-----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: localhost only
Generate logfile: off
Verify download: off
Init regs on start: off
Silent mode: off
Single run mode: off
Target connection timeout: 5000 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: LPC1830
Target interface: SWD
Target interface speed: 4000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link ARM-Pro V3.x compiled Jun 6 2014 16:00:09
Hardware: V3.00
S/N: 173001256
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
Checking target voltage...
Target voltage: 2.80 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 2 bytes @ address 0x2821BE0C (Data = 0xE8B0)
...
Read 4 bytes @ address 0x2815F04C (Data = 0x4B04BD10)
Read 4 bytes @ address 0x2815F04C (Data = 0x4B04BD10)
Reading 64 bytes @ address 0x2931A5C0
Received monitor command: reset
Resetting target
Received monitor command: go
Starting target CPU...
Received monitor command: sleep 3000
Sleep 3000ms
Read 4 bytes @ address 0x2815F0C0 (Data = 0xF1B01A24)
...
Read 4 bytes @ address 0x294FD810 (Data = 0x294FDC88)
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x2821A510)
Writing register (SP = 0x29fe7000)
Reading all registers
Read 4 bytes @ address 0x2821A510 (Data = 0x050BF101)
...
Read 4 bytes @ address 0x2821A510 (Data = 0x050BF101)
Reading 64 bytes @ address 0x29FE7000
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
WARNING: Failed to read memory @ address 0xFFFFFFFC
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
WARNING: Failed to read memory @ address 0xFFFFFFFC
Read 2 bytes @ address 0x00000000 (Data = 0x8000)
WARNING: Failed to read memory @ address 0xFFFFFFFE
WARNING: Failed to read memory @ address 0xFFFFFFFC
Read 2 bytes @ address 0x00000000 (Data = 0x8000)
WARNING: Failed to read memory @ address 0xFFFFFFFE
WARNING: Failed to read memory @ address 0xFFFFFFFC
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
WARNING: Failed to read memory @ address 0xFFFFFFFC
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
WARNING: Failed to read memory @ address 0xFFFFFFFC
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
Received monitor command: reset
Resetting target
Received monitor command: semihosting enable
Semi-hosting enabled (Handle on BKPT)
Received monitor command: semihosting IOClient 3
Semihosting I/O set to TELNET and GDB Client
Downloading 4 bytes @ address 0x40050018
Reading all registers
Read 4 bytes @ address 0x800001A4 (Data = 0xF8DFB672)
...
Read 2 bytes @ address 0x800001A4 (Data = 0xB672)
Received monitor command: SWO GetMaxSpeed 120000000
Maximum supported SWO speed is 6000000 Hz.
Received monitor command: SWO GetSpeedInfo
Base frequency: 6000000Hz, MinDiv: 1
Received monitor command: SWO Start 0 6000000
SWO started.
Received monitor command: SWO EnableTarget 120000000 6000000 1 0
SWO enabled successfully.
Read 4 bytes @ address 0x10400BB0 (Data = 0x0000E7FE)
...
Read 2 bytes @ address 0x10400BB0 (Data = 0xE7FE)
Downloading 16224 bytes @ address 0x28000000
...
Downloading 9476 bytes @ address 0x28404370
Writing register (PC = 0x28000180)
Read 2 bytes @ address 0x2821BE0C (Data = 0xE8B0)
...
Read 2 bytes @ address 0x2800DE34 (Data = 0xB510)
Setting breakpoint @ address 0x2800DE34, Size = 2, BPHandle = 0x0001
Read 2 bytes @ address 0x280DD30C (Data = 0x2401)
Setting breakpoint @ address 0x280DD30C, Size = 2, BPHandle = 0x0002
Read 2 bytes @ address 0x280DD490 (Data = 0xF1B8)
Setting breakpoint @ address 0x280DD490, Size = 4, BPHandle = 0x0003
Read 2 bytes @ address 0x280DD570 (Data = 0x4B14)
Setting breakpoint @ address 0x280DD570, Size = 2, BPHandle = 0x0004
Starting target CPU...
...Breakpoint reached @ address 0x2800DE34
Reading all registers
Removing breakpoint @ address 0x2800DE34, Size = 2
Removing breakpoint @ address 0x280DD30C, Size = 2
Removing breakpoint @ address 0x280DD490, Size = 4
Removing breakpoint @ address 0x280DD570, Size = 2
Read 4 bytes @ address 0x2800DE34 (Data = 0xB0D0B510)
...
Read 1 bytes @ address 0x289EB424 (Data = 0x00)
Read 2 bytes @ address 0x280DD30C (Data = 0x2401)
Setting breakpoint @ address 0x280DD30C, Size = 2, BPHandle = 0x0005
Read 2 bytes @ address 0x280DD490 (Data = 0xF1B8)
Setting breakpoint @ address 0x280DD490, Size = 4, BPHandle = 0x0006
Read 2 bytes @ address 0x280DD570 (Data = 0x4B14)
Setting breakpoint @ address 0x280DD570, Size = 2, BPHandle = 0x0007
Starting target CPU...
...Breakpoint reached @ address 0x280DD30C
Reading all registers
Removing breakpoint @ address 0x280DD30C, Size = 2
Removing breakpoint @ address 0x280DD490, Size = 4
Removing breakpoint @ address 0x280DD570, Size = 2
Read 4 bytes @ address 0x280DD30C (Data = 0xF04F2401)
...
Read 4 bytes @ address 0x281AEE5C (Data = 0xB0B5B530)
Read 4 bytes @ address 0x281AEE5C (Data = 0xB0B5B530)
Reading 64 bytes @ address 0x2943B400
WARNING: Failed to read memory @ address 0xAAAAAAAA
...
WARNING: Failed to read memory @ address 0xAAAAAAAA
Read 4 bytes @ address 0x28416190 (Data = 0x00000000)
...
Read 4 bytes @ address 0x28273158 (Data = 0x00000000)
GDB closed TCP/IP connection (Socket 16)
I am working on Ubuntu 20.04 with Eclipse on a NXP LPC1830 chip. I am using a JLink Pro probe.
I have noticed that when debugging and if I try to read 'this' in a C++ function, I am losing the connection to GDB and debugging stops.
I have attached the JLink log file (middle removed else it was too big to be attached)
And here is the JLink GDB server output (cut also in some place)
Don't know what I can do more to investigate this issue...
---------------------------------------------------------------------------------------------------
SEGGER J-Link GDB Server V7.52d GUI Version
JLinkARM.dll V7.52d (DLL compiled Aug 17 2021 17:14:32)
-----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: localhost only
Generate logfile: off
Verify download: off
Init regs on start: off
Silent mode: off
Single run mode: off
Target connection timeout: 5000 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: LPC1830
Target interface: SWD
Target interface speed: 4000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link ARM-Pro V3.x compiled Jun 6 2014 16:00:09
Hardware: V3.00
S/N: 173001256
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
Checking target voltage...
Target voltage: 2.80 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 2 bytes @ address 0x2821BE0C (Data = 0xE8B0)
...
Read 4 bytes @ address 0x2815F04C (Data = 0x4B04BD10)
Read 4 bytes @ address 0x2815F04C (Data = 0x4B04BD10)
Reading 64 bytes @ address 0x2931A5C0
Received monitor command: reset
Resetting target
Received monitor command: go
Starting target CPU...
Received monitor command: sleep 3000
Sleep 3000ms
Read 4 bytes @ address 0x2815F0C0 (Data = 0xF1B01A24)
...
Read 4 bytes @ address 0x294FD810 (Data = 0x294FDC88)
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x2821A510)
Writing register (SP = 0x29fe7000)
Reading all registers
Read 4 bytes @ address 0x2821A510 (Data = 0x050BF101)
...
Read 4 bytes @ address 0x2821A510 (Data = 0x050BF101)
Reading 64 bytes @ address 0x29FE7000
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
WARNING: Failed to read memory @ address 0xFFFFFFFC
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
WARNING: Failed to read memory @ address 0xFFFFFFFC
Read 2 bytes @ address 0x00000000 (Data = 0x8000)
WARNING: Failed to read memory @ address 0xFFFFFFFE
WARNING: Failed to read memory @ address 0xFFFFFFFC
Read 2 bytes @ address 0x00000000 (Data = 0x8000)
WARNING: Failed to read memory @ address 0xFFFFFFFE
WARNING: Failed to read memory @ address 0xFFFFFFFC
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
WARNING: Failed to read memory @ address 0xFFFFFFFC
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
WARNING: Failed to read memory @ address 0xFFFFFFFC
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
Read 4 bytes @ address 0x00000000 (Data = 0x10018000)
Received monitor command: reset
Resetting target
Received monitor command: semihosting enable
Semi-hosting enabled (Handle on BKPT)
Received monitor command: semihosting IOClient 3
Semihosting I/O set to TELNET and GDB Client
Downloading 4 bytes @ address 0x40050018
Reading all registers
Read 4 bytes @ address 0x800001A4 (Data = 0xF8DFB672)
...
Read 2 bytes @ address 0x800001A4 (Data = 0xB672)
Received monitor command: SWO GetMaxSpeed 120000000
Maximum supported SWO speed is 6000000 Hz.
Received monitor command: SWO GetSpeedInfo
Base frequency: 6000000Hz, MinDiv: 1
Received monitor command: SWO Start 0 6000000
SWO started.
Received monitor command: SWO EnableTarget 120000000 6000000 1 0
SWO enabled successfully.
Read 4 bytes @ address 0x10400BB0 (Data = 0x0000E7FE)
...
Read 2 bytes @ address 0x10400BB0 (Data = 0xE7FE)
Downloading 16224 bytes @ address 0x28000000
...
Downloading 9476 bytes @ address 0x28404370
Writing register (PC = 0x28000180)
Read 2 bytes @ address 0x2821BE0C (Data = 0xE8B0)
...
Read 2 bytes @ address 0x2800DE34 (Data = 0xB510)
Setting breakpoint @ address 0x2800DE34, Size = 2, BPHandle = 0x0001
Read 2 bytes @ address 0x280DD30C (Data = 0x2401)
Setting breakpoint @ address 0x280DD30C, Size = 2, BPHandle = 0x0002
Read 2 bytes @ address 0x280DD490 (Data = 0xF1B8)
Setting breakpoint @ address 0x280DD490, Size = 4, BPHandle = 0x0003
Read 2 bytes @ address 0x280DD570 (Data = 0x4B14)
Setting breakpoint @ address 0x280DD570, Size = 2, BPHandle = 0x0004
Starting target CPU...
...Breakpoint reached @ address 0x2800DE34
Reading all registers
Removing breakpoint @ address 0x2800DE34, Size = 2
Removing breakpoint @ address 0x280DD30C, Size = 2
Removing breakpoint @ address 0x280DD490, Size = 4
Removing breakpoint @ address 0x280DD570, Size = 2
Read 4 bytes @ address 0x2800DE34 (Data = 0xB0D0B510)
...
Read 1 bytes @ address 0x289EB424 (Data = 0x00)
Read 2 bytes @ address 0x280DD30C (Data = 0x2401)
Setting breakpoint @ address 0x280DD30C, Size = 2, BPHandle = 0x0005
Read 2 bytes @ address 0x280DD490 (Data = 0xF1B8)
Setting breakpoint @ address 0x280DD490, Size = 4, BPHandle = 0x0006
Read 2 bytes @ address 0x280DD570 (Data = 0x4B14)
Setting breakpoint @ address 0x280DD570, Size = 2, BPHandle = 0x0007
Starting target CPU...
...Breakpoint reached @ address 0x280DD30C
Reading all registers
Removing breakpoint @ address 0x280DD30C, Size = 2
Removing breakpoint @ address 0x280DD490, Size = 4
Removing breakpoint @ address 0x280DD570, Size = 2
Read 4 bytes @ address 0x280DD30C (Data = 0xF04F2401)
...
Read 4 bytes @ address 0x281AEE5C (Data = 0xB0B5B530)
Read 4 bytes @ address 0x281AEE5C (Data = 0xB0B5B530)
Reading 64 bytes @ address 0x2943B400
WARNING: Failed to read memory @ address 0xAAAAAAAA
...
WARNING: Failed to read memory @ address 0xAAAAAAAA
Read 4 bytes @ address 0x28416190 (Data = 0x00000000)
...
Read 4 bytes @ address 0x28273158 (Data = 0x00000000)
GDB closed TCP/IP connection (Socket 16)