On Fri, 16 Jul 2021, Khem Raj wrote: > On Fri, Jul 16, 2021 at 12:10 PM Robert P. J. Day <[email protected]> > 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"
pretty sure you don't need both "EXTRA_" and "_append". :-) > 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" i'm ... not convinced (i'll be trying this later), but to be clear, i don't want separate .debug content, i want a single image with all the debug info right in the binaries and executables. i'll try some things later and we'll see what happens. rday
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#153946): https://lists.openembedded.org/g/openembedded-core/message/153946 Mute This Topic: https://lists.openembedded.org/mt/84256404/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
