Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Nathan J. Williams" <nathanw@wasabisystems.com>
To: "Stuart Brooks" <stuartb@cat.co.za>
Cc: <gdb@sources.redhat.com>
Subject: Re: gdb 5.3nb1 crashing when accessing elements in static libs
Date: Mon, 04 Apr 2005 17:09:00 -0000	[thread overview]
Message-ID: <mtu1x9qtqoi.fsf@contents-vnder-pressvre.mit.edu> (raw)
In-Reply-To: <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


  parent reply	other threads:[~2005-04-04 17:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-04  9:54 Stuart Brooks
2005-04-04 13:39 ` Daniel Jacobowitz
2005-04-04 17:09 ` Nathan J. Williams [this message]
2005-04-05  5:40   ` Stuart Brooks
2005-04-05  7:51     ` Stuart Brooks

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mtu1x9qtqoi.fsf@contents-vnder-pressvre.mit.edu \
    --to=nathanw@wasabisystems.com \
    --cc=gdb@sources.redhat.com \
    --cc=stuartb@cat.co.za \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox