Difference between revisions of "Debugging"

From coreboot
Jump to navigation Jump to search
(4 intermediate revisions by the same user not shown)
Line 25: Line 25:
  85 call hardwaremain
  85 call hardwaremain
=== usefull tricks ===
Note that [https://git.kernel.org/cgit/utils/kernel/kgdb/agent-proxy.git/ agent-proxy] is capable of multiplexing GBD and the serial console.
==== Howto ====
./agent-proxy 5550^5551 0 /dev/ttyUSB0,115200
telnet localhost 5550
$ gdb
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
(gdb) file ./build/cbfs/normal/coreboot_ram.debug
Reading symbols from /home/gnutoo/x86/coreboot-X60/build/cbfs/normal/coreboot_ram.debug...done.
(gdb) target remote localhost:5551
Remote debugging using localhost:5551
_text () at src/arch/x86/lib/c_start.S:89
89 call main
(gdb) b set_boot_successful
Breakpoint 1 at 0x10a7b3: file src/arch/x86/include/arch/io.h, line 63.
(gdb) c

== Exceptions with GDB ==
== Exceptions with GDB ==

Latest revision as of 13:47, 2 November 2013