[PATCH] add debug info when not stripping

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Sat Jan 16 17:22:50 UTC 2010


On Mon, Dec 28, 2009 at 06:15:57PM +0100, matthieu castet wrote:
>Hi,
>
>with this patch we can build an optimized version with more debug info.
>
>This is useful if you put a strip version on target but keep debug symbol for debugging with
>gdb on the host (gdbserver).

just set UCLIBC_EXTRA_CFLAGS='-g3 -ggdb3' (or whatever you want)
instead.

>Index: uClibc/Rules.mak
>===================================================================
>--- uClibc.orig/Rules.mak	2009-12-28 17:57:04.000000000 +0100
>+++ uClibc/Rules.mak	2009-12-28 18:14:16.000000000 +0100
>@@ -594,6 +594,7 @@
> ifeq ($(DOSTRIP),y)
> LDFLAGS += -Wl,-s
> else
>+CFLAGS += -g
> STRIPTOOL := true -Stripping_disabled
> endif
> 

>_______________________________________________
>uClibc mailing list
>uClibc at uclibc.org
>http://lists.busybox.net/mailman/listinfo/uclibc



More information about the uClibc mailing list