[OpenWrt-Devel] [RFC] openwrt: Allow extraction of debuginfo from all binaries

Helmut Schaa helmut.schaa at googlemail.com
Mon Aug 4 03:53:36 EDT 2014


Hi Felix,

On Fri, Aug 1, 2014 at 1:27 PM, Felix Fietkau <nbd at openwrt.org> wrote:
> On 2014-07-24 17:26, Helmut Schaa wrote:
>> Introduce a new config symbol EXTRACT_DEBUGINFO to extract debuginfo
>> from all binaries. This depends on USE_STRIP and DEBUG.
>>
>> The debuginfo of all packages will be extracted from the binary
>> and copied into "bin/$platform/debuginfo".
>>
>> This allows better debugging of coredumps by loading the debuginfo
>> into gdb.
>>
>> Signed-off-by: Helmut Schaa <helmut.schaa at googlemail.com>
> How does this patch help with debugging? Debug info is already staged in
> staging_dir/target-*/root-*. This path is used by scripts/remote-gdb,
> which also accepts corefiles.

Hmm, didn't know about this till now :(

So, the staging root contains all non-stripped binaries, correct?
Hence building with -g3 and strip should create a staging root with
full debuginfo
but the resulting image will still have stripped binaries without debuginfo?

If this is the case my patch is superfluous :)

Helmut
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list