Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Frédéric Riss" <frederic.riss@gmail.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: Frederic RISS <frederic.riss@st.com>,
	Michael Veksler <mveksler@techunix.technion.ac.il>,
	gdb@sourceware.org
Subject: Re: Get versioned minsyms from dynamic symtab (Was: 	Re:	How	to	call operator<< functions?)
Date: Thu, 31 Aug 2006 17:41:00 -0000	[thread overview]
Message-ID: <1157046081.25005.18.camel@funkylaptop> (raw)
In-Reply-To: <20060831165738.GA6529@nevyn.them.org>

Le jeudi 31 août 2006 à 12:57 -0400, Daniel Jacobowitz a écrit :
> > GDB tries to compare to incomplete types and of
> > course it fails...
> 
> This is a problem with GDB, that I've always been amazed we didn't
> hit more often.  It's a very difficult problem and I don't really know
> what we should be doing about it.  I don't know if there's a standard
> term for this, but I've called it type unification in the past.
> 
> We need some way to figure out that these are the same type, to the
> best of our knowledge.

In the case of C++ classes (not POD objects, but classes with methods),
the One Definition Rule gives us a way to identify those, doesn't it? I
mean both classes are named basic_ostream<char,std::char_traits<char> >
and live in the std namespace. All this is clearly described by the
Dwarf tree structure.
Of course in this case, we're speaking about incomplete types here, and
we don't know they're really not simple structures. Thus applying this
unification logic would is a bit dangerous.



  reply	other threads:[~2006-08-31 17:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-30 10:11 How to call operator<< functions? Michael Veksler
2006-08-30 11:13 ` Frederic RISS
2006-08-30 13:30   ` Frederic RISS
2006-08-30 13:40     ` Breakpoint Handling in GDB Veenu Verma (AS/EAB)
2006-08-30 13:43       ` Daniel Jacobowitz
2006-08-30 20:30       ` Michael Snyder
2006-08-31 11:34     ` Get versioned minsyms from dynamic symtab (Was: Re: How to call operator<< functions?) Frederic RISS
2006-08-31 12:09       ` Michael Veksler
2006-08-31 12:26         ` Frederic RISS
2006-08-31 13:02           ` Michael Veksler
2006-08-31 13:23             ` Frederic RISS
2006-08-31 16:48               ` Frederic RISS
2006-08-31 16:57                 ` Daniel Jacobowitz
2006-08-31 17:41                   ` Frédéric Riss [this message]
2006-08-31 17:45                     ` Daniel Jacobowitz
2006-08-31 19:48                   ` Michael Veksler
2006-08-31 19:52                     ` Daniel Jacobowitz
2006-08-30 12:46 ` How to call operator<< functions? Daniel Jacobowitz
2006-08-30 20:05   ` Michael Veksler
2006-08-30 20:24     ` Daniel Jacobowitz
2006-08-30 20:45       ` Michael Veksler
2006-08-30 20:54         ` Daniel Jacobowitz
2006-08-31 12:05           ` Michael Veksler

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=1157046081.25005.18.camel@funkylaptop \
    --to=frederic.riss@gmail.com \
    --cc=drow@false.org \
    --cc=frederic.riss@st.com \
    --cc=gdb@sourceware.org \
    --cc=mveksler@techunix.technion.ac.il \
    /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