public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb@sourceware.org
Subject: Re: C++ related core dump
Date: Tue, 22 Nov 2005 14:01:00 -0000	[thread overview]
Message-ID: <20051122140124.GB15501@nevyn.them.org> (raw)
In-Reply-To: <200511220920.jAM9KVIv010228@elgar.sibelius.xs4all.nl>

On Tue, Nov 22, 2005 at 10:20:31AM +0100, Mark Kettenis wrote:
> > Date: Thu, 17 Nov 2005 09:04:52 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> > 
> > On Thu, Nov 17, 2005 at 10:45:11AM +0100, Mark Kettenis wrote:
> > > No, no, you misread that bit above.  antennac is an instance of class
> > > ROScalarColumn<int>.  So antennac(0) *is* an invocation of operator().
> > 
> > Oh.  Then what type IS the fsym?
> 
> Sorry, had a few days off at work.  Does this tell you enough?
> 
> p *fsym.type.main_type
> $5 = {code = TYPE_CODE_STRUCT, upper_bound_type = BOUND_SIMPLE, 
>   lower_bound_type = BOUND_SIMPLE, name = 0x0, 
>   tag_name = 0x347f230 "ROScalarColumn<int>", objfile = 0x313260, 
>   target_type = 0x0, flags = 4, nfields = 0, vptr_fieldno = -1, fields = 0x0, 
>   vptr_basetype = 0x0, type_specific = {cplus_stuff = 0x2c3358, 
>     floatformat = 0x2c3358}}

That's what I thought; it's the type.  But how'd we get that?  It ought
to be the operator.  And, we shouldn't be using it at all; "method"
should have been set.  Looks to me like evaluate_subexp_standard is
broken for operator().

I apologize for my misleading comment earlier in the thread - we do
support user defined operators, but I don't see this particular one in
the testsuite.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

      reply	other threads:[~2005-11-22 14:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-15 10:15 Mark Kettenis
2005-11-17  4:11 ` Daniel Jacobowitz
2005-11-17  9:46   ` Mark Kettenis
2005-11-17 14:04     ` Daniel Jacobowitz
2005-11-22  9:21       ` Mark Kettenis
2005-11-22 14:01         ` Daniel Jacobowitz [this message]

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=20051122140124.GB15501@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).