Denis Carikli (GNUtoo@no-log.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1134
-gerrit
commit edaf818e15cc2d36b57ae25a73257cfa761657b8 Author: Denis 'GNUtoo' Carikli GNUtoo@no-log.org Date: Fri Jun 22 15:56:37 2012 +0200
Wait for gdb connection if the gdb stub configuration is chosen.
Here's a quick demonstration on how to use it(tested on M4A785T-M). (gdb) file ./build/cbfs/fallback/coreboot_ram.debug Reading symbols from [...]/build/cbfs/fallback/coreboot_ram.debug...done. (gdb) set remotebaud 115200 (gdb) target remote /dev/ttyUSB0 Remote debugging using /dev/ttyUSB0 _text () at src/arch/x86/lib/c_start.S:85 85 call hardwaremain
Change-Id: Ia49cbecc41deb061433bc39f5b81715da49edc98 Signed-off-by: Denis 'GNUtoo' Carikli GNUtoo@no-log.org --- src/arch/x86/lib/c_start.S | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/arch/x86/lib/c_start.S b/src/arch/x86/lib/c_start.S index 005ac33..4e532d8 100644 --- a/src/arch/x86/lib/c_start.S +++ b/src/arch/x86/lib/c_start.S @@ -78,6 +78,9 @@ _start: /* Restore the stack location */ movl %ebp, %esp
+#if CONFIG_GDB_STUB == 1 + call gdb_stub_breakpoint +#endif /* The boot_complete flag has already been pushed */ call hardwaremain /* NOTREACHED */