On Fri, Jul 16, 2021 at 12:10 PM Robert P. J. Day <rpj...@crashcourse.ca> wrote: > > > colleague just asked me what it would take to generate an image > where the executables and libraries contain all the gdb-related > debugging info in the same files (that is, not broken out in the > .debug directories). > > i pointed out that this would increase the size of the installable > target image substantially but, apparently, that is of no concern. > > said colleague pointed me here as to what they were perusing: > > https://developer.ridgerun.com/wiki/index.php?title=Preparing_Yocto_Development_Environment_for_Debugging > > so, once i finish this current task, i'm going to take a shot at > testing whether the following would do it: > > # Specifies to build packages with debugging information > DEBUG_BUILD = "1" > # Do not remove debug symbols > INHIBIT_PACKAGE_STRIP = "1" > # OPTIONAL: Do not split debug symbols in a separate file > INHIBIT_PACKAGE_DEBUG_SPLIT= "1" > > am i on the right track? this seems straightforward enough, i'll just > have to confirm those variables still exist, and that they do what i > want. > > thoughts? is this as simple as i think it should be?
I think you should try EXTRA_IMAGE_FEATURES_append = " tools-debug dbg-pkgs" this should get you all needed debug info and tools on target then if you want to make optimization levels to favor debug info generation set DEBUG_BUILD = "1" > > rday > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#153945): https://lists.openembedded.org/g/openembedded-core/message/153945 Mute This Topic: https://lists.openembedded.org/mt/84256404/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-