Kernel : Linux raspberrypi4-64 6.6.22-v8
I tried debugging LInux with KGDB, I managed to configure kgdb in the kernel configs:
Symbol: STRICT_KERNEL_RWX [=n]
Trigger kgdb : connect via toolchain's gdb : Now I try to set a breakpoint : I connected to the board via ssh, but could not break into ksys_sync after running the sync command. I have tried breaking into many other functions but gdb could not stop at those breakpoints.
I tried debugging LInux with KGDB, I managed to configure kgdb in the kernel configs:
Symbol: STRICT_KERNEL_RWX [=n]
Code:
--- KGDB: kernel debugger │ │ │ │ [*] KGDB: use kprobe blocklist to prohibit unsafe breakpoints │ │ │ │ <*> KGDB: use kgdb over the serial console │ │ │ │ [ ] KGDB: internal test suite │ │ │ │ [*] KGDB_KDB: include kdb frontend for kgdb │ │ │ │ (0x1) KDB: Select kdb command functions to be enabled by default │ │ │ │ [*] KGDB_KDB: keyboard as input device │ │ │ │ (0) KDB: continue after catastrophic errors Code:
[Target] echo ttyS0,115200 > /sys/module/kgdboc/parameters/kgdboc [Target] echo g >/proc/sysrq-triggerCode:
<path>/aarch64-poky-linux-gdb vmlinuxset baud rate 115200target remote /dev/ttyUSB0Code:
b sys_sync # cannot find this is the symbol fileb ksys_sync # could find this one, but could not break in itcStatistics: Posted by sof — Wed May 14, 2025 6:28 pm — Replies 0 — Views 41