All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] How to get debug symbols in xenomai libraries
@ 2014-09-05 18:43 Lennart Sorensen
  2014-09-05 19:10 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 22+ messages in thread
From: Lennart Sorensen @ 2014-09-05 18:43 UTC (permalink / raw)
  To: xenomai

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.

Any ideas?

-- 
Len Sorensen


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 18:43 [Xenomai] How to get debug symbols in xenomai libraries Lennart Sorensen
@ 2014-09-05 19:10 ` Gilles Chanteperdrix
  2014-09-05 19:14   ` Lennart Sorensen
  0 siblings, 1 reply; 22+ messages in thread
From: Gilles Chanteperdrix @ 2014-09-05 19:10 UTC (permalink / raw)
  To: Lennart Sorensen, xenomai

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.
> 
> Any ideas?
> 
run the "file" utility on the library to see whether or not it has
debugging information.

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 19:10 ` Gilles Chanteperdrix
@ 2014-09-05 19:14   ` Lennart Sorensen
  2014-09-05 20:15     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 22+ messages in thread
From: Lennart Sorensen @ 2014-09-05 19:14 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

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.

-- 
Len Sorensen


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 19:14   ` Lennart Sorensen
@ 2014-09-05 20:15     ` Gilles Chanteperdrix
  2014-09-05 20:21       ` Gilles Chanteperdrix
  0 siblings, 1 reply; 22+ messages in thread
From: Gilles Chanteperdrix @ 2014-09-05 20:15 UTC (permalink / raw)
  To: Lennart Sorensen; +Cc: xenomai

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.

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 20:15     ` Gilles Chanteperdrix
@ 2014-09-05 20:21       ` Gilles Chanteperdrix
  2014-09-05 20:31         ` Gilles Chanteperdrix
  0 siblings, 1 reply; 22+ messages in thread
From: Gilles Chanteperdrix @ 2014-09-05 20:21 UTC (permalink / raw)
  To: Lennart Sorensen; +Cc: xenomai

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.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 20:21       ` Gilles Chanteperdrix
@ 2014-09-05 20:31         ` Gilles Chanteperdrix
  2014-09-05 20:54           ` Lennart Sorensen
  0 siblings, 1 reply; 22+ messages in thread
From: Gilles Chanteperdrix @ 2014-09-05 20:31 UTC (permalink / raw)
  To: Lennart Sorensen; +Cc: xenomai

On 09/05/2014 10:21 PM, Gilles Chanteperdrix wrote:
> 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.
> 

Just tried a fresh build with minimal flags, simply:

configure --enable-debug CFLAGS="-fomit-frame-pointer"
--host=arm-linux-gnueabihf
make
arm-linux-gnueabihf-gdb src/skins/common/.libs/libxenomai.so.0.0.0

and gdb says it can find symbols. (-fomit-frame-pointer is needed with
the toolchain I use, otherwise gcc complains that it can not use the r7
register).

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 20:31         ` Gilles Chanteperdrix
@ 2014-09-05 20:54           ` Lennart Sorensen
  2014-09-05 20:57             ` Gilles Chanteperdrix
  0 siblings, 1 reply; 22+ messages in thread
From: Lennart Sorensen @ 2014-09-05 20:54 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

On Fri, Sep 05, 2014 at 10:31:35PM +0200, Gilles Chanteperdrix wrote:
> Just tried a fresh build with minimal flags, simply:
> 
> configure --enable-debug CFLAGS="-fomit-frame-pointer"
> --host=arm-linux-gnueabihf
> make
> arm-linux-gnueabihf-gdb src/skins/common/.libs/libxenomai.so.0.0.0
> 
> and gdb says it can find symbols. (-fomit-frame-pointer is needed with
> the toolchain I use, otherwise gcc complains that it can not use the r7
> register).

I tried adding that option, and still gdb says no symbols.

Toolchain is debian wheezy's gcc 4.6, and everything is natively compiled.

-- 
Len Sorensen


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 20:54           ` Lennart Sorensen
@ 2014-09-05 20:57             ` Gilles Chanteperdrix
  2014-09-05 21:03               ` Lennart Sorensen
  0 siblings, 1 reply; 22+ messages in thread
From: Gilles Chanteperdrix @ 2014-09-05 20:57 UTC (permalink / raw)
  To: Lennart Sorensen; +Cc: xenomai

On 09/05/2014 10:54 PM, Lennart Sorensen wrote:
> On Fri, Sep 05, 2014 at 10:31:35PM +0200, Gilles Chanteperdrix wrote:
>> Just tried a fresh build with minimal flags, simply:
>>
>> configure --enable-debug CFLAGS="-fomit-frame-pointer"
>> --host=arm-linux-gnueabihf
>> make
>> arm-linux-gnueabihf-gdb src/skins/common/.libs/libxenomai.so.0.0.0
>>
>> and gdb says it can find symbols. (-fomit-frame-pointer is needed with
>> the toolchain I use, otherwise gcc complains that it can not use the r7
>> register).
> 
> I tried adding that option, and still gdb says no symbols.
> 
> Toolchain is debian wheezy's gcc 4.6, and everything is natively compiled.
> 

Do you build the package manually, like I just did? Or do you use the
debian/rules stuff?

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 20:57             ` Gilles Chanteperdrix
@ 2014-09-05 21:03               ` Lennart Sorensen
  2014-09-05 21:04                 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 22+ messages in thread
From: Lennart Sorensen @ 2014-09-05 21:03 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

On Fri, Sep 05, 2014 at 10:57:10PM +0200, Gilles Chanteperdrix wrote:
> On 09/05/2014 10:54 PM, Lennart Sorensen wrote:
> > On Fri, Sep 05, 2014 at 10:31:35PM +0200, Gilles Chanteperdrix wrote:
> >> Just tried a fresh build with minimal flags, simply:
> >>
> >> configure --enable-debug CFLAGS="-fomit-frame-pointer"
> >> --host=arm-linux-gnueabihf
> >> make
> >> arm-linux-gnueabihf-gdb src/skins/common/.libs/libxenomai.so.0.0.0
> >>
> >> and gdb says it can find symbols. (-fomit-frame-pointer is needed with
> >> the toolchain I use, otherwise gcc complains that it can not use the r7
> >> register).
> > 
> > I tried adding that option, and still gdb says no symbols.
> > 
> > Toolchain is debian wheezy's gcc 4.6, and everything is natively compiled.
> > 
> 
> Do you build the package manually, like I just did? Or do you use the
> debian/rules stuff?

I use the debian/rules, but I set DEB_CFLAGS_APPEND=-fomit-frame-pointer
and I added --enable-debug to the configure line in debian/rules and I
set DEB_BUILD_OPTIONS=nostrip

-- 
Len Sorensen


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 21:03               ` Lennart Sorensen
@ 2014-09-05 21:04                 ` Gilles Chanteperdrix
  2014-09-05 21:15                   ` Lennart Sorensen
  0 siblings, 1 reply; 22+ messages in thread
From: Gilles Chanteperdrix @ 2014-09-05 21:04 UTC (permalink / raw)
  To: Lennart Sorensen; +Cc: xenomai

On 09/05/2014 11:03 PM, Lennart Sorensen wrote:
> On Fri, Sep 05, 2014 at 10:57:10PM +0200, Gilles Chanteperdrix wrote:
>> On 09/05/2014 10:54 PM, Lennart Sorensen wrote:
>>> On Fri, Sep 05, 2014 at 10:31:35PM +0200, Gilles Chanteperdrix wrote:
>>>> Just tried a fresh build with minimal flags, simply:
>>>>
>>>> configure --enable-debug CFLAGS="-fomit-frame-pointer"
>>>> --host=arm-linux-gnueabihf
>>>> make
>>>> arm-linux-gnueabihf-gdb src/skins/common/.libs/libxenomai.so.0.0.0
>>>>
>>>> and gdb says it can find symbols. (-fomit-frame-pointer is needed with
>>>> the toolchain I use, otherwise gcc complains that it can not use the r7
>>>> register).
>>>
>>> I tried adding that option, and still gdb says no symbols.
>>>
>>> Toolchain is debian wheezy's gcc 4.6, and everything is natively compiled.
>>>
>>
>> Do you build the package manually, like I just did? Or do you use the
>> debian/rules stuff?
> 
> I use the debian/rules, but I set DEB_CFLAGS_APPEND=-fomit-frame-pointer
> and I added --enable-debug to the configure line in debian/rules and I
> set DEB_BUILD_OPTIONS=nostrip
> 
Could you try a manual build?

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 21:04                 ` Gilles Chanteperdrix
@ 2014-09-05 21:15                   ` Lennart Sorensen
  2014-09-05 21:17                     ` Gilles Chanteperdrix
  2014-09-05 21:21                     ` Paul
  0 siblings, 2 replies; 22+ messages in thread
From: Lennart Sorensen @ 2014-09-05 21:15 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

On Fri, Sep 05, 2014 at 11:04:35PM +0200, Gilles Chanteperdrix wrote:
> On 09/05/2014 11:03 PM, Lennart Sorensen wrote:
> > On Fri, Sep 05, 2014 at 10:57:10PM +0200, Gilles Chanteperdrix wrote:
> >> On 09/05/2014 10:54 PM, Lennart Sorensen wrote:
> >>> On Fri, Sep 05, 2014 at 10:31:35PM +0200, Gilles Chanteperdrix wrote:
> >>>> Just tried a fresh build with minimal flags, simply:
> >>>>
> >>>> configure --enable-debug CFLAGS="-fomit-frame-pointer"
> >>>> --host=arm-linux-gnueabihf
> >>>> make
> >>>> arm-linux-gnueabihf-gdb src/skins/common/.libs/libxenomai.so.0.0.0
> >>>>
> >>>> and gdb says it can find symbols. (-fomit-frame-pointer is needed with
> >>>> the toolchain I use, otherwise gcc complains that it can not use the r7
> >>>> register).
> >>>
> >>> I tried adding that option, and still gdb says no symbols.
> >>>
> >>> Toolchain is debian wheezy's gcc 4.6, and everything is natively compiled.
> >>>
> >>
> >> Do you build the package manually, like I just did? Or do you use the
> >> debian/rules stuff?
> > 
> > I use the debian/rules, but I set DEB_CFLAGS_APPEND=-fomit-frame-pointer
> > and I added --enable-debug to the configure line in debian/rules and I
> > set DEB_BUILD_OPTIONS=nostrip
> > 
> Could you try a manual build?

That makes installing such a pain and the gcc lines had all the right
arguments (-g -fomit-frame-pointer etc).  And we did want to debug with
as close to the normal runtime build as possible.

-- 
Len Sorensen


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 21:15                   ` Lennart Sorensen
@ 2014-09-05 21:17                     ` Gilles Chanteperdrix
  2014-09-05 21:25                       ` Paul
  2014-09-05 21:30                       ` Lennart Sorensen
  2014-09-05 21:21                     ` Paul
  1 sibling, 2 replies; 22+ messages in thread
From: Gilles Chanteperdrix @ 2014-09-05 21:17 UTC (permalink / raw)
  To: Lennart Sorensen; +Cc: xenomai

On 09/05/2014 11:15 PM, Lennart Sorensen wrote:
> On Fri, Sep 05, 2014 at 11:04:35PM +0200, Gilles Chanteperdrix wrote:
>> On 09/05/2014 11:03 PM, Lennart Sorensen wrote:
>>> On Fri, Sep 05, 2014 at 10:57:10PM +0200, Gilles Chanteperdrix wrote:
>>>> On 09/05/2014 10:54 PM, Lennart Sorensen wrote:
>>>>> On Fri, Sep 05, 2014 at 10:31:35PM +0200, Gilles Chanteperdrix wrote:
>>>>>> Just tried a fresh build with minimal flags, simply:
>>>>>>
>>>>>> configure --enable-debug CFLAGS="-fomit-frame-pointer"
>>>>>> --host=arm-linux-gnueabihf
>>>>>> make
>>>>>> arm-linux-gnueabihf-gdb src/skins/common/.libs/libxenomai.so.0.0.0
>>>>>>
>>>>>> and gdb says it can find symbols. (-fomit-frame-pointer is needed with
>>>>>> the toolchain I use, otherwise gcc complains that it can not use the r7
>>>>>> register).
>>>>>
>>>>> I tried adding that option, and still gdb says no symbols.
>>>>>
>>>>> Toolchain is debian wheezy's gcc 4.6, and everything is natively compiled.
>>>>>
>>>>
>>>> Do you build the package manually, like I just did? Or do you use the
>>>> debian/rules stuff?
>>>
>>> I use the debian/rules, but I set DEB_CFLAGS_APPEND=-fomit-frame-pointer
>>> and I added --enable-debug to the configure line in debian/rules and I
>>> set DEB_BUILD_OPTIONS=nostrip
>>>
>> Could you try a manual build?
> 
> That makes installing such a pain and the gcc lines had all the right
> arguments (-g -fomit-frame-pointer etc).  And we did want to debug with
> as close to the normal runtime build as possible.
> 
You do not need to run "make install"
Just run configure --enable-debug
Then make
Then try gdb on the compiled libxenomai.so.0.0.0

There are two layers of Makefileries, thee aim is to find where the
problem is coming from, not to use this as a solution.

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 21:15                   ` Lennart Sorensen
  2014-09-05 21:17                     ` Gilles Chanteperdrix
@ 2014-09-05 21:21                     ` Paul
  1 sibling, 0 replies; 22+ messages in thread
From: Paul @ 2014-09-05 21:21 UTC (permalink / raw)
  To: xenomai

On Friday 05 September 2014, Lennart Sorensen wrote:
> On Fri, Sep 05, 2014 at 11:04:35PM +0200, Gilles Chanteperdrix wrote:
> > On 09/05/2014 11:03 PM, Lennart Sorensen wrote:
> > > On Fri, Sep 05, 2014 at 10:57:10PM +0200, Gilles Chanteperdrix 
wrote:
> > >> On 09/05/2014 10:54 PM, Lennart Sorensen wrote:
> > >>> On Fri, Sep 05, 2014 at 10:31:35PM +0200, Gilles Chanteperdrix 
wrote:
> > >>>> Just tried a fresh build with minimal flags, simply:
> > >>>>
> > >>>> configure --enable-debug CFLAGS="-fomit-frame-pointer"
> > >>>> --host=arm-linux-gnueabihf
> > >>>> make
> > >>>> arm-linux-gnueabihf-gdb
> > >>>> src/skins/common/.libs/libxenomai.so.0.0.0
> > >>>>
> > >>>> and gdb says it can find symbols. (-fomit-frame-pointer is
> > >>>> needed with the toolchain I use, otherwise gcc complains that
> > >>>> it can not use the r7 register).
> > >>>
> > >>> I tried adding that option, and still gdb says no symbols.
> > >>>
> > >>> Toolchain is debian wheezy's gcc 4.6, and everything is
> > >>> natively compiled.
> > >>
> > >> Do you build the package manually, like I just did? Or do you
> > >> use the debian/rules stuff?
> > >
> > > I use the debian/rules, but I set
> > > DEB_CFLAGS_APPEND=-fomit-frame-pointer and I added --enable-debug
> > > to the configure line in debian/rules and I set
> > > DEB_BUILD_OPTIONS=nostrip
> >
> > Could you try a manual build?
>
> That makes installing such a pain and the gcc lines had all the right
> arguments (-g -fomit-frame-pointer etc).  And we did want to debug
> with as close to the normal runtime build as possible.

In which case, you will need to edit the debian/rules - Remove the 
dh_strip lines and you should retain the debug symbols.


Regards, Paul.




^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 21:17                     ` Gilles Chanteperdrix
@ 2014-09-05 21:25                       ` Paul
  2014-09-06 13:16                         ` Gilles Chanteperdrix
  2014-09-06 16:55                         ` Lennart Sorensen
  2014-09-05 21:30                       ` Lennart Sorensen
  1 sibling, 2 replies; 22+ messages in thread
From: Paul @ 2014-09-05 21:25 UTC (permalink / raw)
  To: xenomai

On Friday 05 September 2014, Gilles Chanteperdrix wrote:
> On 09/05/2014 11:15 PM, Lennart Sorensen wrote:
> > On Fri, Sep 05, 2014 at 11:04:35PM +0200, Gilles Chanteperdrix 
wrote:
> >> On 09/05/2014 11:03 PM, Lennart Sorensen wrote:
> >>> On Fri, Sep 05, 2014 at 10:57:10PM +0200, Gilles Chanteperdrix 
wrote:
> >>>> On 09/05/2014 10:54 PM, Lennart Sorensen wrote:
> >>>>> On Fri, Sep 05, 2014 at 10:31:35PM +0200, Gilles Chanteperdrix 
wrote:
> >>>>>> Just tried a fresh build with minimal flags, simply:
> >>>>>>
> >>>>>> configure --enable-debug CFLAGS="-fomit-frame-pointer"
> >>>>>> --host=arm-linux-gnueabihf
> >>>>>> make
> >>>>>> arm-linux-gnueabihf-gdb
> >>>>>> src/skins/common/.libs/libxenomai.so.0.0.0
> >>>>>>
> >>>>>> and gdb says it can find symbols. (-fomit-frame-pointer is
> >>>>>> needed with the toolchain I use, otherwise gcc complains that
> >>>>>> it can not use the r7 register).
> >>>>>
> >>>>> I tried adding that option, and still gdb says no symbols.
> >>>>>
> >>>>> Toolchain is debian wheezy's gcc 4.6, and everything is
> >>>>> natively compiled.
> >>>>
> >>>> Do you build the package manually, like I just did? Or do you
> >>>> use the debian/rules stuff?
> >>>
> >>> I use the debian/rules, but I set
> >>> DEB_CFLAGS_APPEND=-fomit-frame-pointer and I added --enable-debug
> >>> to the configure line in debian/rules and I set
> >>> DEB_BUILD_OPTIONS=nostrip
> >>
> >> Could you try a manual build?
> >
> > That makes installing such a pain and the gcc lines had all the
> > right arguments (-g -fomit-frame-pointer etc).  And we did want to
> > debug with as close to the normal runtime build as possible.
>
> You do not need to run "make install"
> Just run configure --enable-debug
> Then make
> Then try gdb on the compiled libxenomai.so.0.0.0
>
> There are two layers of Makefileries, thee aim is to find where the
> problem is coming from, not to use this as a solution.

dh_strip in debian/rules is the guilty party here - It is responsible 
for stripping debug symbols from binary executables and libraries.


Regards, Paul.



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 21:17                     ` Gilles Chanteperdrix
  2014-09-05 21:25                       ` Paul
@ 2014-09-05 21:30                       ` Lennart Sorensen
  2014-09-05 21:31                         ` Gilles Chanteperdrix
  1 sibling, 1 reply; 22+ messages in thread
From: Lennart Sorensen @ 2014-09-05 21:30 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

On Fri, Sep 05, 2014 at 11:17:32PM +0200, Gilles Chanteperdrix wrote:
> You do not need to run "make install"
> Just run configure --enable-debug
> Then make
> Then try gdb on the compiled libxenomai.so.0.0.0
> 
> There are two layers of Makefileries, thee aim is to find where the
> problem is coming from, not to use this as a solution.

Well we can give that a try.

Of course I hate libtool.  It's stupid .libs thing makes it so annying
to find the actual library.

-- 
Len Sorensen


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 21:30                       ` Lennart Sorensen
@ 2014-09-05 21:31                         ` Gilles Chanteperdrix
  0 siblings, 0 replies; 22+ messages in thread
From: Gilles Chanteperdrix @ 2014-09-05 21:31 UTC (permalink / raw)
  To: Lennart Sorensen; +Cc: xenomai

On 09/05/2014 11:30 PM, Lennart Sorensen wrote:
> On Fri, Sep 05, 2014 at 11:17:32PM +0200, Gilles Chanteperdrix wrote:
>> You do not need to run "make install"
>> Just run configure --enable-debug
>> Then make
>> Then try gdb on the compiled libxenomai.so.0.0.0
>>
>> There are two layers of Makefileries, thee aim is to find where the
>> problem is coming from, not to use this as a solution.
> 
> Well we can give that a try.
> 
> Of course I hate libtool.  It's stupid .libs thing makes it so annying
> to find the actual library.
> 

It is:
src/skins/common/.libs/libxenomai.so.0.0.0

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 21:25                       ` Paul
@ 2014-09-06 13:16                         ` Gilles Chanteperdrix
  2014-09-06 15:16                           ` Paul
  2014-09-06 16:55                         ` Lennart Sorensen
  1 sibling, 1 reply; 22+ messages in thread
From: Gilles Chanteperdrix @ 2014-09-06 13:16 UTC (permalink / raw)
  To: Paul, xenomai

On 09/05/2014 11:25 PM, Paul wrote:
> On Friday 05 September 2014, Gilles Chanteperdrix wrote:
>> On 09/05/2014 11:15 PM, Lennart Sorensen wrote:
>>> On Fri, Sep 05, 2014 at 11:04:35PM +0200, Gilles Chanteperdrix 
> wrote:
>>>> On 09/05/2014 11:03 PM, Lennart Sorensen wrote:
>>>>> On Fri, Sep 05, 2014 at 10:57:10PM +0200, Gilles Chanteperdrix 
> wrote:
>>>>>> On 09/05/2014 10:54 PM, Lennart Sorensen wrote:
>>>>>>> On Fri, Sep 05, 2014 at 10:31:35PM +0200, Gilles Chanteperdrix 
> wrote:
>>>>>>>> Just tried a fresh build with minimal flags, simply:
>>>>>>>>
>>>>>>>> configure --enable-debug CFLAGS="-fomit-frame-pointer"
>>>>>>>> --host=arm-linux-gnueabihf
>>>>>>>> make
>>>>>>>> arm-linux-gnueabihf-gdb
>>>>>>>> src/skins/common/.libs/libxenomai.so.0.0.0
>>>>>>>>
>>>>>>>> and gdb says it can find symbols. (-fomit-frame-pointer is
>>>>>>>> needed with the toolchain I use, otherwise gcc complains that
>>>>>>>> it can not use the r7 register).
>>>>>>>
>>>>>>> I tried adding that option, and still gdb says no symbols.
>>>>>>>
>>>>>>> Toolchain is debian wheezy's gcc 4.6, and everything is
>>>>>>> natively compiled.
>>>>>>
>>>>>> Do you build the package manually, like I just did? Or do you
>>>>>> use the debian/rules stuff?
>>>>>
>>>>> I use the debian/rules, but I set
>>>>> DEB_CFLAGS_APPEND=-fomit-frame-pointer and I added --enable-debug
>>>>> to the configure line in debian/rules and I set
>>>>> DEB_BUILD_OPTIONS=nostrip
>>>>
>>>> Could you try a manual build?
>>>
>>> That makes installing such a pain and the gcc lines had all the
>>> right arguments (-g -fomit-frame-pointer etc).  And we did want to
>>> debug with as close to the normal runtime build as possible.
>>
>> You do not need to run "make install"
>> Just run configure --enable-debug
>> Then make
>> Then try gdb on the compiled libxenomai.so.0.0.0
>>
>> There are two layers of Makefileries, thee aim is to find where the
>> problem is coming from, not to use this as a solution.
> 
> dh_strip in debian/rules is the guilty party here - It is responsible 
> for stripping debug symbols from binary executables and libraries.

I am not sure this is the issue, since Lennart passes the "nostrip"
directive, and says that the file utility says that the libraries are
not stripped.

Anyway, packages like libc6 have debug symbols in a separate package
from the main binary package. Is this complicated to achieve?


-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-06 13:16                         ` Gilles Chanteperdrix
@ 2014-09-06 15:16                           ` Paul
  2014-09-06 16:50                             ` Gilles Chanteperdrix
  2014-09-18 13:53                             ` Lennart Sorensen
  0 siblings, 2 replies; 22+ messages in thread
From: Paul @ 2014-09-06 15:16 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

On Saturday 06 September 2014, Gilles Chanteperdrix wrote:
> On 09/05/2014 11:25 PM, Paul wrote:
> > On Friday 05 September 2014, Gilles Chanteperdrix wrote:
> >> On 09/05/2014 11:15 PM, Lennart Sorensen wrote:
> >>> On Fri, Sep 05, 2014 at 11:04:35PM +0200, Gilles Chanteperdrix
> >
> > wrote:
> >>>> On 09/05/2014 11:03 PM, Lennart Sorensen wrote:
> >>>>> On Fri, Sep 05, 2014 at 10:57:10PM +0200, Gilles Chanteperdrix
> >
> > wrote:
> >>>>>> On 09/05/2014 10:54 PM, Lennart Sorensen wrote:
> >>>>>>> On Fri, Sep 05, 2014 at 10:31:35PM +0200, Gilles
> >>>>>>> Chanteperdrix
> >
> > wrote:
> >>>>>>>> Just tried a fresh build with minimal flags, simply:
> >>>>>>>>
> >>>>>>>> configure --enable-debug CFLAGS="-fomit-frame-pointer"
> >>>>>>>> --host=arm-linux-gnueabihf
> >>>>>>>> make
> >>>>>>>> arm-linux-gnueabihf-gdb
> >>>>>>>> src/skins/common/.libs/libxenomai.so.0.0.0
> >>>>>>>>
> >>>>>>>> and gdb says it can find symbols. (-fomit-frame-pointer is
> >>>>>>>> needed with the toolchain I use, otherwise gcc complains
> >>>>>>>> that it can not use the r7 register).
> >>>>>>>
> >>>>>>> I tried adding that option, and still gdb says no symbols.
> >>>>>>>
> >>>>>>> Toolchain is debian wheezy's gcc 4.6, and everything is
> >>>>>>> natively compiled.
> >>>>>>
> >>>>>> Do you build the package manually, like I just did? Or do you
> >>>>>> use the debian/rules stuff?
> >>>>>
> >>>>> I use the debian/rules, but I set
> >>>>> DEB_CFLAGS_APPEND=-fomit-frame-pointer and I added
> >>>>> --enable-debug to the configure line in debian/rules and I set
> >>>>> DEB_BUILD_OPTIONS=nostrip
> >>>>
> >>>> Could you try a manual build?
> >>>
> >>> That makes installing such a pain and the gcc lines had all the
> >>> right arguments (-g -fomit-frame-pointer etc).  And we did want
> >>> to debug with as close to the normal runtime build as possible.
> >>
> >> You do not need to run "make install"
> >> Just run configure --enable-debug
> >> Then make
> >> Then try gdb on the compiled libxenomai.so.0.0.0
> >>
> >> There are two layers of Makefileries, thee aim is to find where
> >> the problem is coming from, not to use this as a solution.
> >
> > dh_strip in debian/rules is the guilty party here - It is
> > responsible for stripping debug symbols from binary executables and
> > libraries.
>
> I am not sure this is the issue, since Lennart passes the "nostrip"
> directive, and says that the file utility says that the libraries are
> not stripped.

Apologies - Missed the bit about passing nostrip via DEB_BUILD_OPTIONS.

> Anyway, packages like libc6 have debug symbols in a separate package
> from the main binary package. Is this complicated to achieve?

Very simple to achieve. The bulk of it is a cut'n'paste job in 
debian/control plus a couple of lines in debian/rules. Please see 
attached patch.


Regards, Paul.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-debug-packages-to-debian-for-library-and-runtime.patch
Type: text/x-diff
Size: 3289 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140906/37876aab/attachment.patch>

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-06 15:16                           ` Paul
@ 2014-09-06 16:50                             ` Gilles Chanteperdrix
  2014-09-06 16:56                               ` Lennart Sorensen
  2014-09-18 13:53                             ` Lennart Sorensen
  1 sibling, 1 reply; 22+ messages in thread
From: Gilles Chanteperdrix @ 2014-09-06 16:50 UTC (permalink / raw)
  To: Paul; +Cc: xenomai

On 09/06/2014 05:16 PM, Paul wrote:
> On Saturday 06 September 2014, Gilles Chanteperdrix wrote:
>> On 09/05/2014 11:25 PM, Paul wrote:
>>> On Friday 05 September 2014, Gilles Chanteperdrix wrote:
>>>> On 09/05/2014 11:15 PM, Lennart Sorensen wrote:
>>>>> On Fri, Sep 05, 2014 at 11:04:35PM +0200, Gilles Chanteperdrix
>>>
>>> wrote:
>>>>>> On 09/05/2014 11:03 PM, Lennart Sorensen wrote:
>>>>>>> On Fri, Sep 05, 2014 at 10:57:10PM +0200, Gilles Chanteperdrix
>>>
>>> wrote:
>>>>>>>> On 09/05/2014 10:54 PM, Lennart Sorensen wrote:
>>>>>>>>> On Fri, Sep 05, 2014 at 10:31:35PM +0200, Gilles
>>>>>>>>> Chanteperdrix
>>>
>>> wrote:
>>>>>>>>>> Just tried a fresh build with minimal flags, simply:
>>>>>>>>>>
>>>>>>>>>> configure --enable-debug CFLAGS="-fomit-frame-pointer"
>>>>>>>>>> --host=arm-linux-gnueabihf
>>>>>>>>>> make
>>>>>>>>>> arm-linux-gnueabihf-gdb
>>>>>>>>>> src/skins/common/.libs/libxenomai.so.0.0.0
>>>>>>>>>>
>>>>>>>>>> and gdb says it can find symbols. (-fomit-frame-pointer is
>>>>>>>>>> needed with the toolchain I use, otherwise gcc complains
>>>>>>>>>> that it can not use the r7 register).
>>>>>>>>>
>>>>>>>>> I tried adding that option, and still gdb says no symbols.
>>>>>>>>>
>>>>>>>>> Toolchain is debian wheezy's gcc 4.6, and everything is
>>>>>>>>> natively compiled.
>>>>>>>>
>>>>>>>> Do you build the package manually, like I just did? Or do you
>>>>>>>> use the debian/rules stuff?
>>>>>>>
>>>>>>> I use the debian/rules, but I set
>>>>>>> DEB_CFLAGS_APPEND=-fomit-frame-pointer and I added
>>>>>>> --enable-debug to the configure line in debian/rules and I set
>>>>>>> DEB_BUILD_OPTIONS=nostrip
>>>>>>
>>>>>> Could you try a manual build?
>>>>>
>>>>> That makes installing such a pain and the gcc lines had all the
>>>>> right arguments (-g -fomit-frame-pointer etc).  And we did want
>>>>> to debug with as close to the normal runtime build as possible.
>>>>
>>>> You do not need to run "make install"
>>>> Just run configure --enable-debug
>>>> Then make
>>>> Then try gdb on the compiled libxenomai.so.0.0.0
>>>>
>>>> There are two layers of Makefileries, thee aim is to find where
>>>> the problem is coming from, not to use this as a solution.
>>>
>>> dh_strip in debian/rules is the guilty party here - It is
>>> responsible for stripping debug symbols from binary executables and
>>> libraries.
>>
>> I am not sure this is the issue, since Lennart passes the "nostrip"
>> directive, and says that the file utility says that the libraries are
>> not stripped.
> 
> Apologies - Missed the bit about passing nostrip via DEB_BUILD_OPTIONS.
> 
>> Anyway, packages like libc6 have debug symbols in a separate package
>> from the main binary package. Is this complicated to achieve?
> 
> Very simple to achieve. The bulk of it is a cut'n'paste job in 
> debian/control plus a couple of lines in debian/rules. Please see 
> attached patch.

Merged, thanks a lot. Lennart, could you check whether it works in your
case?

Regards.

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-05 21:25                       ` Paul
  2014-09-06 13:16                         ` Gilles Chanteperdrix
@ 2014-09-06 16:55                         ` Lennart Sorensen
  1 sibling, 0 replies; 22+ messages in thread
From: Lennart Sorensen @ 2014-09-06 16:55 UTC (permalink / raw)
  To: Paul; +Cc: xenomai

On Fri, Sep 05, 2014 at 10:25:59PM +0100, Paul wrote:
> dh_strip in debian/rules is the guilty party here - It is responsible 
> for stripping debug symbols from binary executables and libraries.

Not when you set DEB_BUILD_OPTIONS to nostrip.

-- 
Len Sorensen


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-06 16:50                             ` Gilles Chanteperdrix
@ 2014-09-06 16:56                               ` Lennart Sorensen
  0 siblings, 0 replies; 22+ messages in thread
From: Lennart Sorensen @ 2014-09-06 16:56 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

On Sat, Sep 06, 2014 at 06:50:01PM +0200, Gilles Chanteperdrix wrote:
> Merged, thanks a lot. Lennart, could you check whether it works in your
> case?

I will give that a try Monday.

-- 
Len Sorensen


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [Xenomai] How to get debug symbols in xenomai libraries
  2014-09-06 15:16                           ` Paul
  2014-09-06 16:50                             ` Gilles Chanteperdrix
@ 2014-09-18 13:53                             ` Lennart Sorensen
  1 sibling, 0 replies; 22+ messages in thread
From: Lennart Sorensen @ 2014-09-18 13:53 UTC (permalink / raw)
  To: Paul; +Cc: xenomai

On Sat, Sep 06, 2014 at 04:16:45PM +0100, Paul wrote:
> On Saturday 06 September 2014, Gilles Chanteperdrix wrote:
> > On 09/05/2014 11:25 PM, Paul wrote:
> > > On Friday 05 September 2014, Gilles Chanteperdrix wrote:
> > >> On 09/05/2014 11:15 PM, Lennart Sorensen wrote:
> > >>> On Fri, Sep 05, 2014 at 11:04:35PM +0200, Gilles Chanteperdrix
> > >
> > > wrote:
> > >>>> On 09/05/2014 11:03 PM, Lennart Sorensen wrote:
> > >>>>> On Fri, Sep 05, 2014 at 10:57:10PM +0200, Gilles Chanteperdrix
> > >
> > > wrote:
> > >>>>>> On 09/05/2014 10:54 PM, Lennart Sorensen wrote:
> > >>>>>>> On Fri, Sep 05, 2014 at 10:31:35PM +0200, Gilles
> > >>>>>>> Chanteperdrix
> > >
> > > wrote:
> > >>>>>>>> Just tried a fresh build with minimal flags, simply:
> > >>>>>>>>
> > >>>>>>>> configure --enable-debug CFLAGS="-fomit-frame-pointer"
> > >>>>>>>> --host=arm-linux-gnueabihf
> > >>>>>>>> make
> > >>>>>>>> arm-linux-gnueabihf-gdb
> > >>>>>>>> src/skins/common/.libs/libxenomai.so.0.0.0
> > >>>>>>>>
> > >>>>>>>> and gdb says it can find symbols. (-fomit-frame-pointer is
> > >>>>>>>> needed with the toolchain I use, otherwise gcc complains
> > >>>>>>>> that it can not use the r7 register).
> > >>>>>>>
> > >>>>>>> I tried adding that option, and still gdb says no symbols.
> > >>>>>>>
> > >>>>>>> Toolchain is debian wheezy's gcc 4.6, and everything is
> > >>>>>>> natively compiled.
> > >>>>>>
> > >>>>>> Do you build the package manually, like I just did? Or do you
> > >>>>>> use the debian/rules stuff?
> > >>>>>
> > >>>>> I use the debian/rules, but I set
> > >>>>> DEB_CFLAGS_APPEND=-fomit-frame-pointer and I added
> > >>>>> --enable-debug to the configure line in debian/rules and I set
> > >>>>> DEB_BUILD_OPTIONS=nostrip
> > >>>>
> > >>>> Could you try a manual build?
> > >>>
> > >>> That makes installing such a pain and the gcc lines had all the
> > >>> right arguments (-g -fomit-frame-pointer etc).  And we did want
> > >>> to debug with as close to the normal runtime build as possible.
> > >>
> > >> You do not need to run "make install"
> > >> Just run configure --enable-debug
> > >> Then make
> > >> Then try gdb on the compiled libxenomai.so.0.0.0
> > >>
> > >> There are two layers of Makefileries, thee aim is to find where
> > >> the problem is coming from, not to use this as a solution.
> > >
> > > dh_strip in debian/rules is the guilty party here - It is
> > > responsible for stripping debug symbols from binary executables and
> > > libraries.
> >
> > I am not sure this is the issue, since Lennart passes the "nostrip"
> > directive, and says that the file utility says that the libraries are
> > not stripped.
> 
> Apologies - Missed the bit about passing nostrip via DEB_BUILD_OPTIONS.
> 
> > Anyway, packages like libc6 have debug symbols in a separate package
> > from the main binary package. Is this complicated to achieve?
> 
> Very simple to achieve. The bulk of it is a cut'n'paste job in 
> debian/control plus a couple of lines in debian/rules. Please see 
> attached patch.
> 
> 
> Regards, Paul.
> 

> From 2680ee4171ef29770a6aa275aa2576c20cc7bd79 Mon Sep 17 00:00:00 2001
> From: Paul Corner <paul_c@tuxcnc.org>
> Date: Sat, 6 Sep 2014 16:08:39 +0100
> Subject: [PATCH] Add debug packages to debian for library and runtime
>  packages.
> 
> ---
>  debian/control | 29 +++++++++++++++++++++++++++++
>  debian/rules   |  6 ++++--
>  2 files changed, 33 insertions(+), 2 deletions(-)
> 
> diff --git a/debian/control b/debian/control
> index 56fe0b1..a15adbe 100644
> --- a/debian/control
> +++ b/debian/control
> @@ -24,6 +24,21 @@ Description: Xenomai runtime utilities
>   This package contains the runtime programs and the testsuite for the Xenomai
>   realtime system.
>  
> +Package: xenomai-runtime-dbg
> +Section: debug
> +Architecture: amd64 arm armeb armel armhf i386 powerpc powerpcspe
> +Depends: xenomai-runtime (=${binary:Version}), ${misc:Depends}
> +Description: debugging symbols for Xenomai runtime utilities
> + Xenomai is a real-time development framework cooperating with the Linux
> + kernel in order to provide a pervasive, interface-agnostic, hard real-time
> + support to user-space applications, seamlessly integrated into the GNU/Linux
> + environment. Xenomai provides its own API and emulation layers ("skins") to
> + make migration from other RTOS easier. Examples are: pSOS+, VxWorks, VRTX,
> + uiTRON, RTAI, POSIX.
> + .
> + This package contains the debug symbols for the runtime programs and testsuite
> + for Xenomai realtime system.
> +
>  Package: xenomai-kernel-source
>  Section: kernel
>  Architecture: all
> @@ -62,6 +77,20 @@ Description: Shared libraries for Xenomai
>   .
>   This package contains the shared libraries.
>  
> +Package: libxenomai1-dbg
> +Section: debug
> +Architecture: amd64 arm armeb armel armhf i386 powerpc powerpcspe
> +Depends: libxenomai1 (=${binary:Version}), ${misc:Depends}
> +Description: Debugging symbols for libxenomai1
> + Xenomai is a real-time development framework cooperating with the Linux
> + kernel in order to provide a pervasive, interface-agnostic, hard real-time
> + support to user-space applications, seamlessly integrated into the GNU/Linux
> + environment. Xenomai provides its own API and emulation layers ("skins") to
> + make migration from other RTOS easier. Examples are: pSOS+, VxWorks, VRTX,
> + uiTRON, RTAI, POSIX.
> + .
> + This package contains the debug symbols for libxenomai1.
> +
>  Package: libxenomai-dev
>  Section: libdevel
>  Architecture: amd64 arm armeb armel armhf i386 powerpc powerpcspe
> diff --git a/debian/rules b/debian/rules
> index a91958f..edcd265 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -16,7 +16,8 @@ DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
>  CONFIG_OPTS = --prefix=/usr \
>              --includedir=/usr/include/xenomai \
>              --mandir=/usr/share/man \
> -	    --with-testdir=/usr/lib/xenomai/testsuite
> +	    --with-testdir=/usr/lib/xenomai/testsuite \
> +	    --enable-debug
>  
>  ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
>  	CONFIG_OPTS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
> @@ -99,7 +100,8 @@ binary-arch: build install
>  	dh_installdocs -s -A CREDITS README.INSTALL TROUBLESHOOTING
>  	dh_link -s
>  	dh_installchangelogs -s
> -	dh_strip -s
> +	dh_strip -pxenomai-runtime --dbg-package=xenomai-runtime-dbg
> +	dh_strip -plibxenomai1 --dbg-package=libxenomai1-dbg
>  	dh_compress -s
>  	dh_fixperms -s
>  	dh_makeshlibs -s

That seems to work great.  Thanks.

-- 
Len Sorensen


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2014-09-18 13:53 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-05 18:43 [Xenomai] How to get debug symbols in xenomai libraries Lennart Sorensen
2014-09-05 19:10 ` Gilles Chanteperdrix
2014-09-05 19:14   ` Lennart Sorensen
2014-09-05 20:15     ` Gilles Chanteperdrix
2014-09-05 20:21       ` Gilles Chanteperdrix
2014-09-05 20:31         ` Gilles Chanteperdrix
2014-09-05 20:54           ` Lennart Sorensen
2014-09-05 20:57             ` Gilles Chanteperdrix
2014-09-05 21:03               ` Lennart Sorensen
2014-09-05 21:04                 ` Gilles Chanteperdrix
2014-09-05 21:15                   ` Lennart Sorensen
2014-09-05 21:17                     ` Gilles Chanteperdrix
2014-09-05 21:25                       ` Paul
2014-09-06 13:16                         ` Gilles Chanteperdrix
2014-09-06 15:16                           ` Paul
2014-09-06 16:50                             ` Gilles Chanteperdrix
2014-09-06 16:56                               ` Lennart Sorensen
2014-09-18 13:53                             ` Lennart Sorensen
2014-09-06 16:55                         ` Lennart Sorensen
2014-09-05 21:30                       ` Lennart Sorensen
2014-09-05 21:31                         ` Gilles Chanteperdrix
2014-09-05 21:21                     ` Paul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.