[Buildroot] Enabling debugging symbols in packages..

Baruch Siach baruch at tkos.co.il
Wed May 2 05:25:26 UTC 2012


Hi Shawn,

On Tue, May 01, 2012 at 11:13:50PM -0600, Shawn Ferris wrote:
> > Target binaries get striped after build, thus removing debugging info. To
> > disabled this behaviour go to "Build options" -> "strip command for binaries
> > on target", and select "none".
> 
> Doh! That was it indeed.. is there a reason this isn't disabled
> automatically when debugging is enabled? Not that it matters now that
> I know it's there, just curious :D

Debugging is useful even when the target binaries are striped.  Quoting the 
help text of BR2_ENABLE_DEBUG:

          Build packages with debugging symbols enabled. All libraries
          and binaries in the 'staging' directory will have debugging
          symbols, which allows remote debugging even if libraries and
          binaries are stripped on the target. Whether libraries and
          binaries are stripped on the target is controlled by the
          BR2_STRIP_* options below.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the buildroot mailing list