Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [commit/Ada] Use our builtin type when evaluating conditional 	expressions
Date: Tue, 17 Mar 2009 20:12:00 -0000	[thread overview]
Message-ID: <m3tz5rlxry.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20090313012134.GA11284@adacore.com> (Joel Brobecker's message of "Thu\, 12 Mar 2009 18\:21\:34 -0700")

>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel>     (gdb) p null /= null

Jerome> The problem comes from the fact that GDB casts "null /= null"
Jerome> into the language boolean type (i.e. "standard.boolean"). And
Jerome> it lookups the boolean type into the debug info of the
Jerome> application. As type boolean is defined in every compilation
Jerome> unit, every psymtabs matchs; as a consequence, all the
Jerome> corresponding symtabs are built. This roughly means that the
Jerome> debugger loads every symbols when evaluating a conditional
Jerome> expression.

I'm curious whether this will be a problem for any language defining
bool_type_symbol.  If so, perhaps a language-neutral fix could be
found.  If not, what is it that makes this specific to Ada?

Tom


  reply	other threads:[~2009-03-17 20:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-13  1:35 Joel Brobecker
2009-03-17 20:12 ` Tom Tromey [this message]
2009-03-17 20:13   ` Joel Brobecker

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=m3tz5rlxry.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /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