[Buildroot] uClibc debug symbols
Peter Seiderer
ps.report at gmx.net
Wed May 11 21:33:04 UTC 2016
Hello Luca,
On Wed, 11 May 2016 11:43:12 +0200, Luca Ellero <luca.ellero at brickedbrain.com> wrote:
> Hi everybody,
> I'm trying to debug uClibc with a debugger, but even if I enable "build
> packages with debugging symbols" it seems that debug symbols are not
> present in the final binaries.
>
> My .config reports:
> BR2_ENABLE_DEBUG=y
> BR2_DEBUG_2=y
>
> I'm using binaries in output/staging/lib (is this the correct place to go?)
>
> If I do "objdump -h | grep debug" on this libraries I get the following:
>
> $ arm-buildroot-linux-uclibcgnueabi-objdump -h ld-uClibc-1.0.12.so |
> grep debug
>
> $ arm-buildroot-linux-uclibcgnueabi-objdump -h libuClibc-1.0.12.so |
> grep debug
> 20 .debug_aranges 00000180 00000000 00000000 0004b310 2**3
> 21 .debug_info 00000c7a 00000000 00000000 0004b490 2**0
> 22 .debug_abbrev 00000353 00000000 00000000 0004c10a 2**0
> 23 .debug_line 000008ce 00000000 00000000 0004c45d 2**0
> 24 .debug_frame 00000124 00000000 00000000 0004cd2c 2**2
> 25 .debug_str 00000330 00000000 00000000 0004ce50 2**0
> 26 .debug_loc 0000068c 00000000 00000000 0004d180 2**0
> 27 .debug_ranges 00000038 00000000 00000000 0004d80c 2**0
>
> Could someone please tell me what is wrong with this approach?
>
For remote debugging this should work, the staging/sysroot libs
should have all debugging information, the libs on the target are
stripped until you enable:
# BR2_STRIP_strip is not set
BR2_STRIP_none=y
Worked for me with glibc/xserver etc. for local debugging on the
target, not tested with uClibc (do not forget to complete rebuild)...
Regards,
Peter
> Thanks
> Regards
> Luca
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
More information about the buildroot
mailing list