This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb 5.3nb1 crashing when accessing elements in static libs
- From: "Nathan J. Williams" <nathanw at wasabisystems dot com>
- To: "Stuart Brooks" <stuartb at cat dot co dot za>
- Cc: <gdb at sources dot redhat dot com>
- Date: 04 Apr 2005 13:09:01 -0400
- Subject: Re: gdb 5.3nb1 crashing when accessing elements in static libs
- Organization: Wasabi Systems, Inc.
- References: <0f4601c538fc$30c35970$5e22a8c0@STU95>
"Stuart Brooks" <stuartb@cat.co.za> writes:
> I am experiencing problems when interrogating a core file - as soon as I
> try to access a global variable in a statically linked library or view
> the internals of a class/struct declared in a static lib gdb either says
> <unknown type>, gives garbage or segmentation faults. Details of my
> system are:
>
> OS: Netbsd 2.0
> gdb: 5.3nb1
> compiler: g++ 3.3
I'm assuming this is i386? You're going to be in some pain with C++ on
this combination; netbsd/i386 2.0 sets gcc to use the stabs debugging
format by default instead of dwarf-2, because of a bug in 3.3's dwarf
generation (netbsd PR #25094; equivalent to GCC bug #16788) [I'm not
at all sure that this is the right tradeoff for that bug].
- Nathan