public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* What lib am I missing to make GDB shut up?
@ 2011-07-19 15:40 ANDY KENNEDY
  2011-07-20 17:22 ` Khem Raj
  0 siblings, 1 reply; 10+ messages in thread
From: ANDY KENNEDY @ 2011-07-19 15:40 UTC (permalink / raw)
  To: crossgcc

All,

The error:

Traceback (most recent call last):
  File "/opt/toolchains/mips/mips/mips-linux-gnu/sysroot/lib/libstdc++.so.6.0.15-gdb.py", line 59, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named libstdcxx.v6.printers
Stopped due to shared library event


I've looked around and found that this has something to do with the
Python "pretty print" libraries.  Now, granted, I'm working off a
(relatively) very old CrossTool-NG, however, I'm not above updating
if that is the fix.

Any ideas why I'm getting such an error?

Thanks,
Andy

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: What lib am I missing to make GDB shut up?
  2011-07-19 15:40 What lib am I missing to make GDB shut up? ANDY KENNEDY
@ 2011-07-20 17:22 ` Khem Raj
  2011-07-20 18:04   ` ANDY KENNEDY
  2011-07-20 18:48   ` Yann E. MORIN
  0 siblings, 2 replies; 10+ messages in thread
From: Khem Raj @ 2011-07-20 17:22 UTC (permalink / raw)
  To: crossgcc

On 07/19/2011 08:39 AM, ANDY KENNEDY wrote:
> All,
>
> The error:
>
> Traceback (most recent call last):
>    File "/opt/toolchains/mips/mips/mips-linux-gnu/sysroot/lib/libstdc++.so.6.0.15-gdb.py", line 59, in<module>
>      from libstdcxx.v6.printers import register_libstdcxx_printers
> ImportError: No module named libstdcxx.v6.printers
> Stopped due to shared library event
>
>
> I've looked around and found that this has something to do with the
> Python "pretty print" libraries.  Now, granted, I'm working off a
> (relatively) very old CrossTool-NG, however, I'm not above updating
> if that is the fix.
>
> Any ideas why I'm getting such an error?

cd $HOME
svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python

in .gdbinit add the path to it

python
import sys
sys.path.insert(0, '~/python')
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
end

Does that help

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* RE: What lib am I missing to make GDB shut up?
  2011-07-20 17:22 ` Khem Raj
@ 2011-07-20 18:04   ` ANDY KENNEDY
  2011-07-20 18:27     ` Khem Raj
  2011-07-20 18:48   ` Yann E. MORIN
  1 sibling, 1 reply; 10+ messages in thread
From: ANDY KENNEDY @ 2011-07-20 18:04 UTC (permalink / raw)
  To: Khem Raj, crossgcc

> On 07/19/2011 08:39 AM, ANDY KENNEDY wrote:
> > All,
> >
> > The error:
> >
> > Traceback (most recent call last):
> >    File "/opt/toolchains/mips/mips/mips-linux-
> gnu/sysroot/lib/libstdc++.so.6.0.15-gdb.py", line 59, in<module>
> >      from libstdcxx.v6.printers import
> register_libstdcxx_printers
> > ImportError: No module named libstdcxx.v6.printers
> > Stopped due to shared library event
> >
> >
> > I've looked around and found that this has something to do with
> the
> > Python "pretty print" libraries.  Now, granted, I'm working off a
> > (relatively) very old CrossTool-NG, however, I'm not above
> updating
> > if that is the fix.
> >
> > Any ideas why I'm getting such an error?
> 
> cd $HOME
> svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python
> 
> in .gdbinit add the path to it
> 
> python
> import sys
> sys.path.insert(0, '~/python')
> from libstdcxx.v6.printers import register_libstdcxx_printers
> register_libstdcxx_printers (None)
> end
> 
> Does that help

Cool!  Thanks for the help.  I don't actually use Eclipse (I'm a
vim/command line guy myself), but the guys that use it will
appreciated it I'm sure.

Thanks for the info!.

Andy

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: What lib am I missing to make GDB shut up?
  2011-07-20 18:04   ` ANDY KENNEDY
@ 2011-07-20 18:27     ` Khem Raj
  2011-07-20 20:35       ` ANDY KENNEDY
  0 siblings, 1 reply; 10+ messages in thread
From: Khem Raj @ 2011-07-20 18:27 UTC (permalink / raw)
  To: ANDY KENNEDY; +Cc: crossgcc

On 07/20/2011 11:04 AM, ANDY KENNEDY wrote:
>> On 07/19/2011 08:39 AM, ANDY KENNEDY wrote:
>>> All,
>>>
>>> The error:
>>>
>>> Traceback (most recent call last):
>>>     File "/opt/toolchains/mips/mips/mips-linux-
>> gnu/sysroot/lib/libstdc++.so.6.0.15-gdb.py", line 59, in<module>
>>>       from libstdcxx.v6.printers import
>> register_libstdcxx_printers
>>> ImportError: No module named libstdcxx.v6.printers
>>> Stopped due to shared library event
>>>
>>>
>>> I've looked around and found that this has something to do with
>> the
>>> Python "pretty print" libraries.  Now, granted, I'm working off a
>>> (relatively) very old CrossTool-NG, however, I'm not above
>> updating
>>> if that is the fix.
>>>
>>> Any ideas why I'm getting such an error?
>>
>> cd $HOME
>> svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python
>>
>> in .gdbinit add the path to it
>>
>> python
>> import sys
>> sys.path.insert(0, '~/python')
>> from libstdcxx.v6.printers import register_libstdcxx_printers
>> register_libstdcxx_printers (None)
>> end
>>
>> Does that help
>
> Cool!  Thanks for the help.  I don't actually use Eclipse (I'm a
> vim/command line guy myself),

what does this has to do with eclipse ?


--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: What lib am I missing to make GDB shut up?
  2011-07-20 17:22 ` Khem Raj
  2011-07-20 18:04   ` ANDY KENNEDY
@ 2011-07-20 18:48   ` Yann E. MORIN
  2011-07-20 20:38     ` ANDY KENNEDY
  1 sibling, 1 reply; 10+ messages in thread
From: Yann E. MORIN @ 2011-07-20 18:48 UTC (permalink / raw)
  To: crossgcc; +Cc: Khem Raj

On Wednesday 20 July 2011 19:21:59 Khem Raj wrote:
> On 07/19/2011 08:39 AM, ANDY KENNEDY wrote:
> > Traceback (most recent call last):
> >    File "/opt/toolchains/mips/mips/mips-linux-gnu/sysroot/lib/libstdc++.so.6.0.15-gdb.py", line 59, in<module>
> >      from libstdcxx.v6.printers import register_libstdcxx_printers
> > ImportError: No module named libstdcxx.v6.printers
> > Stopped due to shared library event
> >
> >
> > I've looked around and found that this has something to do with the
> > Python "pretty print" libraries.  Now, granted, I'm working off a
> > (relatively) very old CrossTool-NG, however, I'm not above updating
> > if that is the fix.
> >
> > Any ideas why I'm getting such an error?
> 
> cd $HOME
> svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python
> 
> in .gdbinit add the path to it
> 
> python
> import sys
> sys.path.insert(0, '~/python')
> from libstdcxx.v6.printers import register_libstdcxx_printers
> register_libstdcxx_printers (None)
> end

It should be installed along with gcc in:
  ${prefix}/share/gcc-${gcc_version}/python

At least, it is on my gcc-4.6.1 toolchain:
 $ arm-unknown-linux-gnueabi-gcc --version
 arm-unknown-linux-gnueabi-gcc (crosstool-NG hg_default@2503_b5541f296b92 -
  20110604.14-yem) 4.6.1 20110506 (prerelease)

Maybe we could have gdb automatically locate this? Or prepare a template
.gdbinit that the user could install?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* RE: What lib am I missing to make GDB shut up?
  2011-07-20 18:27     ` Khem Raj
@ 2011-07-20 20:35       ` ANDY KENNEDY
  2011-07-21  0:22         ` Khem Raj
  0 siblings, 1 reply; 10+ messages in thread
From: ANDY KENNEDY @ 2011-07-20 20:35 UTC (permalink / raw)
  To: Khem Raj; +Cc: crossgcc

> On 07/20/2011 11:04 AM, ANDY KENNEDY wrote:
> >> On 07/19/2011 08:39 AM, ANDY KENNEDY wrote:
> >>> All,
> >>>
> >>> The error:
> >>>
> >>> Traceback (most recent call last):
> >>>     File "/opt/toolchains/mips/mips/mips-linux-
> >> gnu/sysroot/lib/libstdc++.so.6.0.15-gdb.py", line 59, in<module>
> >>>       from libstdcxx.v6.printers import
> >> register_libstdcxx_printers
> >>> ImportError: No module named libstdcxx.v6.printers
> >>> Stopped due to shared library event
> >>>
> >>>
> >>> I've looked around and found that this has something to do with
> >> the
> >>> Python "pretty print" libraries.  Now, granted, I'm working off
> a
> >>> (relatively) very old CrossTool-NG, however, I'm not above
> >> updating
> >>> if that is the fix.
> >>>
> >>> Any ideas why I'm getting such an error?
> >>
> >> cd $HOME
> >> svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python
> >>
> >> in .gdbinit add the path to it
> >>
> >> python
> >> import sys
> >> sys.path.insert(0, '~/python')
> >> from libstdcxx.v6.printers import register_libstdcxx_printers
> >> register_libstdcxx_printers (None)
> >> end
> >>
> >> Does that help
> >
> > Cool!  Thanks for the help.  I don't actually use Eclipse (I'm a
> > vim/command line guy myself),
> 
> what does this has to do with eclipse ?

That is where they are running gdb from.

The only problem we had with your script is '~/python' didn't
evaluate to anything, but that is an easy work-around to fix 
another day.

Thanks for the help!

Andy

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* RE: What lib am I missing to make GDB shut up?
  2011-07-20 18:48   ` Yann E. MORIN
@ 2011-07-20 20:38     ` ANDY KENNEDY
  2011-07-24 23:09       ` Yann E. MORIN
  0 siblings, 1 reply; 10+ messages in thread
From: ANDY KENNEDY @ 2011-07-20 20:38 UTC (permalink / raw)
  To: Yann E. MORIN, crossgcc; +Cc: Khem Raj

> On Wednesday 20 July 2011 19:21:59 Khem Raj wrote:
> > On 07/19/2011 08:39 AM, ANDY KENNEDY wrote:
> > > Traceback (most recent call last):
> > >    File "/opt/toolchains/mips/mips/mips-linux-
> gnu/sysroot/lib/libstdc++.so.6.0.15-gdb.py", line 59, in<module>
> > >      from libstdcxx.v6.printers import
> register_libstdcxx_printers
> > > ImportError: No module named libstdcxx.v6.printers
> > > Stopped due to shared library event
> > >
> > >
> > > I've looked around and found that this has something to do with
> the
> > > Python "pretty print" libraries.  Now, granted, I'm working off
> a
> > > (relatively) very old CrossTool-NG, however, I'm not above
> updating
> > > if that is the fix.
> > >
> > > Any ideas why I'm getting such an error?
> >
> > cd $HOME
> > svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python
> >
> > in .gdbinit add the path to it
> >
> > python
> > import sys
> > sys.path.insert(0, '~/python')
> > from libstdcxx.v6.printers import register_libstdcxx_printers
> > register_libstdcxx_printers (None)
> > end
> 
> It should be installed along with gcc in:
>   ${prefix}/share/gcc-${gcc_version}/python
> 
> At least, it is on my gcc-4.6.1 toolchain:
>  $ arm-unknown-linux-gnueabi-gcc --version
>  arm-unknown-linux-gnueabi-gcc (crosstool-NG
> hg_default@2503_b5541f296b92 -
>   20110604.14-yem) 4.6.1 20110506 (prerelease)
> 
> Maybe we could have gdb automatically locate this? Or prepare a
> template
> .gdbinit that the user could install?

That could be useful.  If you or someone has the time to do it.

I don't know if I would be able to do it for all cases, but I do
have to prepare one for our case here.  I have lots on my plate
right now or I'd volunteer to do it.

Andy

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: What lib am I missing to make GDB shut up?
  2011-07-20 20:35       ` ANDY KENNEDY
@ 2011-07-21  0:22         ` Khem Raj
  2011-07-21 14:40           ` ANDY KENNEDY
  0 siblings, 1 reply; 10+ messages in thread
From: Khem Raj @ 2011-07-21  0:22 UTC (permalink / raw)
  To: ANDY KENNEDY; +Cc: crossgcc

On 07/20/2011 01:34 PM, ANDY KENNEDY wrote:
>> On 07/20/2011 11:04 AM, ANDY KENNEDY wrote:
>>>> On 07/19/2011 08:39 AM, ANDY KENNEDY wrote:
>>>>> All,
>>>>>
>>>>> The error:
>>>>>
>>>>> Traceback (most recent call last):
>>>>>      File "/opt/toolchains/mips/mips/mips-linux-
>>>> gnu/sysroot/lib/libstdc++.so.6.0.15-gdb.py", line 59, in<module>
>>>>>        from libstdcxx.v6.printers import
>>>> register_libstdcxx_printers
>>>>> ImportError: No module named libstdcxx.v6.printers
>>>>> Stopped due to shared library event
>>>>>
>>>>>
>>>>> I've looked around and found that this has something to do with
>>>> the
>>>>> Python "pretty print" libraries.  Now, granted, I'm working off
>> a
>>>>> (relatively) very old CrossTool-NG, however, I'm not above
>>>> updating
>>>>> if that is the fix.
>>>>>
>>>>> Any ideas why I'm getting such an error?
>>>>
>>>> cd $HOME
>>>> svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python
>>>>
>>>> in .gdbinit add the path to it
>>>>
>>>> python
>>>> import sys
>>>> sys.path.insert(0, '~/python')
>>>> from libstdcxx.v6.printers import register_libstdcxx_printers
>>>> register_libstdcxx_printers (None)
>>>> end
>>>>
>>>> Does that help
>>>
>>> Cool!  Thanks for the help.  I don't actually use Eclipse (I'm a
>>> vim/command line guy myself),
>>
>> what does this has to do with eclipse ?
>
> That is where they are running gdb from.

who are they ?

>
> The only problem we had with your script is '~/python' didn't
> evaluate to anything, but that is an easy work-around to fix
> another day.

yes you have to use absolute path.
>
> Thanks for the help!
>
> Andy


--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* RE: What lib am I missing to make GDB shut up?
  2011-07-21  0:22         ` Khem Raj
@ 2011-07-21 14:40           ` ANDY KENNEDY
  0 siblings, 0 replies; 10+ messages in thread
From: ANDY KENNEDY @ 2011-07-21 14:40 UTC (permalink / raw)
  To: Khem Raj; +Cc: crossgcc

> On 07/20/2011 01:34 PM, ANDY KENNEDY wrote:
> >> On 07/20/2011 11:04 AM, ANDY KENNEDY wrote:
> >>>> On 07/19/2011 08:39 AM, ANDY KENNEDY wrote:
> >>>>> All,
> >>>>>
> >>>>> The error:
> >>>>>
> >>>>> Traceback (most recent call last):
> >>>>>      File "/opt/toolchains/mips/mips/mips-linux-
> >>>> gnu/sysroot/lib/libstdc++.so.6.0.15-gdb.py", line 59,
> in<module>
> >>>>>        from libstdcxx.v6.printers import
> >>>> register_libstdcxx_printers
> >>>>> ImportError: No module named libstdcxx.v6.printers
> >>>>> Stopped due to shared library event
> >>>>>
> >>>>>
> >>>>> I've looked around and found that this has something to do
> with
> >>>> the
> >>>>> Python "pretty print" libraries.  Now, granted, I'm working
> off
> >> a
> >>>>> (relatively) very old CrossTool-NG, however, I'm not above
> >>>> updating
> >>>>> if that is the fix.
> >>>>>
> >>>>> Any ideas why I'm getting such an error?
> >>>>
> >>>> cd $HOME
> >>>> svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python
> >>>>
> >>>> in .gdbinit add the path to it
> >>>>
> >>>> python
> >>>> import sys
> >>>> sys.path.insert(0, '~/python')
> >>>> from libstdcxx.v6.printers import register_libstdcxx_printers
> >>>> register_libstdcxx_printers (None)
> >>>> end
> >>>>
> >>>> Does that help
> >>>
> >>> Cool!  Thanks for the help.  I don't actually use Eclipse (I'm
> a
> >>> vim/command line guy myself),
> >>
> >> what does this has to do with eclipse ?
> >
> > That is where they are running gdb from.
> 
> who are they ?

They are the mystical people that use Eclipse. . . ppl I work with.
I'm the only odd-ball here.  I don't like a GUI IDE.  I also only
work with the kernel, RFS, and compiler.  I don't use debuggers that
much, though, I do (as the compiler guy) have to build one that works
for them to use.  I mean, do you want names? ;)

> 
> >
> > The only problem we had with your script is '~/python' didn't
> > evaluate to anything, but that is an easy work-around to fix
> > another day.
> 
> yes you have to use absolute path.

Okay, not a problem.  Unless someone adds it into CTNG, I can throw
something into my build system go generate a file like that.

Again,
Thanks for the help!

Andy

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: What lib am I missing to make GDB shut up?
  2011-07-20 20:38     ` ANDY KENNEDY
@ 2011-07-24 23:09       ` Yann E. MORIN
  0 siblings, 0 replies; 10+ messages in thread
From: Yann E. MORIN @ 2011-07-24 23:09 UTC (permalink / raw)
  To: crossgcc; +Cc: ANDY KENNEDY, Khem Raj

Andy, Khem, All,

On Wednesday 20 July 2011 22:37:35 ANDY KENNEDY wrote:
> > On Wednesday 20 July 2011 19:21:59 Khem Raj wrote:
> > > in .gdbinit add the path to it
> > >
> > > python
> > > import sys
> > > sys.path.insert(0, '~/python')
> > > from libstdcxx.v6.printers import register_libstdcxx_printers
> > > register_libstdcxx_printers (None)
> > > end
[--SNIP--]
> > Maybe we could have gdb automatically locate this? Or prepare a
> > template
> > .gdbinit that the user could install?
> 
> That could be useful.  If you or someone has the time to do it.
> 
> I don't know if I would be able to do it for all cases, but I do
> have to prepare one for our case here.  I have lots on my plate
> right now or I'd volunteer to do it.

I've just pushed #2651341cc084 which installs a template gdbinit in:
    ${prefix}/share/gdb/gdbinit

Care to see if that fits?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

end of thread, other threads:[~2011-07-24 23:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-19 15:40 What lib am I missing to make GDB shut up? ANDY KENNEDY
2011-07-20 17:22 ` Khem Raj
2011-07-20 18:04   ` ANDY KENNEDY
2011-07-20 18:27     ` Khem Raj
2011-07-20 20:35       ` ANDY KENNEDY
2011-07-21  0:22         ` Khem Raj
2011-07-21 14:40           ` ANDY KENNEDY
2011-07-20 18:48   ` Yann E. MORIN
2011-07-20 20:38     ` ANDY KENNEDY
2011-07-24 23:09       ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).