linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* KGDB/KDB running over internet as serial connection isn't possible
@ 2025-01-13 13:42 Muhammad Usama Anjum
  2025-01-13 17:13 ` Stephen Brennan
  0 siblings, 1 reply; 2+ messages in thread
From: Muhammad Usama Anjum @ 2025-01-13 13:42 UTC (permalink / raw)
  To: linux-debuggers, linux-serial, kgdb-bugreport, LKML; +Cc: Usama.Anjum

Hi,

I'm new to trying KGDB/KDB. My test machine doesn't have serial port.
I've been trying to run it over internet. I get following dmesg log:
KGDB: Registered I/O driver kgdboc

On test machine command line:
kgdboc=kbd
sudo sh -c "echo g > /proc/sysrq-trigger" # Launch KGDB

System freezes at this point meaning the debugger got activated
correctly. But I'm unable to connect from host side:
gdb vmlinux
set debug remote 1
target remote <test_machine_ip>:2012

I may be missing something trivial. Please can someone point/correct
me how to connect correctly?

PS: kgdboe [2] seems like a out of tree module for help. But it doesn't
seem to be supported anymore.

Is it possible to connect from another machine over internet and debug
the target?

[1] https://docs.kernel.org/dev-tools/kgdb.html
[2] https://github.com/sysprogs/kgdboe
-- 
BR,
Muhammad Usama Anjum


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-13 17:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-13 13:42 KGDB/KDB running over internet as serial connection isn't possible Muhammad Usama Anjum
2025-01-13 17:13 ` Stephen Brennan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).