From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <540A1B2C.2050309@xenomai.org> Date: Fri, 05 Sep 2014 22:21:00 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <20140905184346.GN17690@csclub.uwaterloo.ca> <540A0A92.2000405@xenomai.org> <20140905191447.GO17690@csclub.uwaterloo.ca> <540A19DC.10507@xenomai.org> In-Reply-To: <540A19DC.10507@xenomai.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] How to get debug symbols in xenomai libraries List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lennart Sorensen Cc: xenomai@xenomai.org On 09/05/2014 10:15 PM, Gilles Chanteperdrix wrote: > On 09/05/2014 09:14 PM, Lennart Sorensen wrote: >> On Fri, Sep 05, 2014 at 09:10:10PM +0200, Gilles Chanteperdrix wrote: >>> On 09/05/2014 08:43 PM, Lennart Sorensen wrote: >>>> I tried using --enable-debug with configure and it claims it did it, >>>> but according to gdb, the resulting libraries do not have debug symbols. >>>> >>>> I see -g added to the gcc line all over the place, except when libtool >>>> does the final linking where for some reason it has disappeared (while >>>> all other options appear to have made it through). >>>> >>>> This is on powerpc. >> >> I should have said 'this is armhf'. Too many systems in use. >> >>>> Any ideas? >>>> >>> run the "file" utility on the library to see whether or not it has >>> debugging information. >> >> file says 'dynamically linked, not stripped'. >> >> gdb says 'no debug symbols' for the xenomai libraries, but it does see >> them for libc and others. >> > Confirmed, I have the same problem, even on arm soft float and x86. Will > try and understand what happens. > No, in fact the libraries have the debug symbols, only file does not print it. But the crossed gcc finds them. -- Gilles.