[U-Boot] remote debug u-boot through serial port
Ding, ChiX
chix.ding at intel.com
Tue Aug 23 16:24:38 CEST 2016
Hi there
I'm learning how to remote debug u-boot through serial port.
In menuconfig general setup, I selected "enable debug information for tools".
It adds -g in gcc flag. After built is over, I got u-boot, u-boot.sym, u-boot.map and a few other files.
When I run objdump -trS u-boot, it does show the source code and the symbols.
However in gdb, when I tried to load the ELF executable file, I got this error
(gdb) file u-boot
Reading symbols from u-boot...BFD: /root/work/cid_iafw_opensource-coreboot/payloads/external/U-Boot/u-boot/u-boot: attempt to load strings from a non-string section (number 0)
BFD: /root/work/cid_iafw_opensource-coreboot/payloads/external/U-Boot/u-boot/u-boot: attempt to load strings from a non-string section (number 0)
Anything I missed and caused this issue?
Also I wonder if I want to enable remote debugging of u-boot through serial port, what shall I do in the configuration?
I didn't see such option in menuconfig. Is it enabled by default or shall I enable CONFIG_CMD_KGDB in my board config file ?
Thanks,
Chi
--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.
More information about the U-Boot
mailing list