OpenBMC Source-Level Debugging

James Feist james.feist at
Sat Jan 18 08:54:47 AEDT 2020

On 1/14/20 5:02 AM, John Chung wrote:
> Hi All,
> I am doing a personal study on OpenBMC recently. And I am wondering that 
> how to do source-level debugging via gdb, especially in vscode (Not sure 
> it is possible or not).

This is how I get gdb running, there may be (probably are) better ways:

1. Add IMAGE_INSTALL_append +=  "gdb" to the end of your local.conf to 
get gdb in the image.
2. devtool modify 'package' to modify package
3. scp 
onto image to get symbols.
4. gdb pacakge
5. symbol-file <file you just scpd>

Not sure about vscode usage.


> If anyone has any experience or documentation, please kindly let me know.
> Very appreciated for the help.
> Thanks,
> John

More information about the openbmc mailing list