Skip to contentSkip to conversation

which doc would explain how to generate .debug dir with symbol info?

DISCUSSION Robert P. J. Day 2 participants 3 messages Jul 24, 2024

lore
Share & tools
lore
#0 lore raw

sort of a docs question, but a colleague asked me how to configure a
debug build so that the binary files and associated gdb symbol files ended up with the following corresponding pairs of content:

symbols/dir/stripped_binary_file symbols/dir/.debug/same_filename_but_containing_only_symbols

i jumped over to the debugging manual but it's not clear from what is there how i would do this. is there a convenient table somewhere that maps:

various debugging output structures -> options/settings to use?

rday

#1 lore raw
Quoted 6 lines · Robert P. J. Day via lists.yoctoproject.org

  sort of a docs question, but a colleague asked me how to configure a
debug build so that the binary files and associated gdb symbol files ended up with the following corresponding pairs of content:

Quoted 8 lines

  symbols/dir/stripped_binary_file symbols/dir/.debug/same_filename_but_containing_only_symbols

i jumped over to the debugging manual but it's not clear from what is there how i would do this. is there a convenient table somewhere that maps:

  various debugging output structures -> options/settings to use?

I thought the builds did that by default, with the debug symbols in the -dbg package?

Cheers,

Richard

#2 lore raw
Quoted 11 lines · Richard Purdie
Quoted 9 lines · Robert P. J. Day via lists.yoctoproject.org

  sort of a docs question, but a colleague asked me how to configure a
debug build so that the binary files and associated gdb symbol files ended up with the following corresponding pairs of content:

  symbols/dir/stripped_binary_file symbols/dir/.debug/same_filename_but_containing_only_symbols

Quoted 8 lines
Quoted 5 lines

i jumped over to the debugging manual but it's not clear from what is there how i would do this. is there a convenient table somewhere that maps:

  various debugging output structures -> options/settings to use?

I thought the builds did that by default, with the debug symbols in the -dbg package?

i'm waiting for muh colleague to arrive to show me exactly what they
say is not doing what they want; in the meantime, i'm perusing:

https://docs.yoctoproject.org/ref-manual/variables.html#term-PACKAGE_DEBUG_SPLIT_STYLE

it may be that this person just did something wrong in terms of configuration. i'm betting on spelling mistake.

rday