Running on macOS Monterey 12.6.2 on Intel.
I’ve been using JLink_V642, but since installing V784b (x86_64) semihosting no longer works as it did before.
I’ve been running with ioclient set to 2, and now gdb (GNU gdb 12.1) doesn’t recognise whatever command gdbserver sends to it; however, after setting ioclient to 1, telnet (nc) output to port 2333 works fine.
gdbserver starts off with
Display All
and when I run the program which attempts semihosting I see this at the gdbserver:
and in gdb:
I’ve been using JLink_V642, but since installing V784b (x86_64) semihosting no longer works as it did before.
I’ve been running with ioclient set to 2, and now gdb (GNU gdb 12.1) doesn’t recognise whatever command gdbserver sends to it; however, after setting ioclient to 1, telnet (nc) output to port 2333 works fine.
gdbserver starts off with
Source Code
- SEGGER J-Link GDB Server V7.84b Command Line Version
- JLinkARM.dll V7.84b (DLL compiled Jan 11 2023 16:37:12)
- Command line: -port 4242 -device stm32f405rg -endian little -if swd -ir -vd -localhostonly -halt
- -----GDB Server start settings-----
- GDBInit file: none
- GDB Server Listening port: 4242
- SWO raw output listening port: 2332
- Terminal I/O port: 2333
- Accept remote connection: localhost only
- Generate logfile: off
- Verify download: on
- Init regs on start: on
- Silent mode: off
- Single run mode: off
- Target connection timeout: 0 ms
- ------J-Link related settings------
- J-Link Host interface: USB
- J-Link script: none
- J-Link settings file: none
- ------Target related settings------
- Target device: stm32f405rg
- Target device parameters: none
- Target interface: SWD
- Target interface speed: 4000kHz
- Target endian: little
- Connecting to J-Link...
- J-Link is connected.
- Firmware: J-Link V9 compiled May 7 2021 16:26:12
- Hardware: V9.30
- S/N: 269302973
- OEM: SEGGER-EDU
- Feature(s): FlashBP, GDB
- Checking target voltage...
- Target voltage: 3.00 V
- Listening on TCP/IP port 4242
and when I run the program which attempts semihosting I see this at the gdbserver:
Source Code
- Starting target CPU...
- ...Target halted for semihosting operation @ 0x08030752
- ERROR: Semihosting SYS_WRITE0 operation: String length exceeds GDB Server buffer size (4096).
- Reading common registers: R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, SP, LR, PC, XPSR
- Removing breakpoint @ address 0x0802E4B2, Size = 2
- Read 4 bytes @ address 0x08030752 (Data = 0x4603BEAB)
- Reading 64 bytes @ address 0x20010CC0