Kernel debugging using Remote GDB on ARM

Dmitry Salychev dsl at mcusim.org
Fri Oct 30 20:21:11 UTC 2020


Hi,

Is it possible to debug kernel with remote GDB on an ARM target? I'm talking
about BeagleBone Black. I've tried to compile with:

	options KDB
	options DDB
	options GDB

but there's only DDB available:

	# sysctl debug.kdb.available
	debug.kdb.available: ddb

I've also tried to follow [1], but never seen
"Next trap will enter GDB remote protocol mode". Am I missing something?

Regards,
Dmitry

[1] https://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-online-gdb.html


More information about the freebsd-hackers mailing list