Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: John Martin <jmartin@larraioz.com>
Cc: gdb@sourceware.org
Subject: Re: GDB and GDB/MI different reponses....
Date: Thu, 04 Apr 2013 10:15:00 -0000	[thread overview]
Message-ID: <515D52C3.7090404@redhat.com> (raw)
In-Reply-To: <515D425E.90001@larraioz.com>

On 04/04/2013 10:05 AM, John Martin wrote:

> Perhaps it isn't enough information.
> 
> I have fixed the problem but I don't understand  how to do it.
> 
> If I execute the follow command:
> "gdb --interpreter=mi --readnow"  then I have several anonimous structs.
> 
> But if I call gdb without "--readnow" argument, then GDB/MI return me correct structs types.

Okay, then MI seems to be a red herring.  You should see the
same (--readnow vs no --readnow) with the CLI?

> What is "--readnow"?

From gdb --help:

  --readnow          Fully read symbol files on first access.

Reading debug info is a slow process, and without that switch (the
default), GDB will read in debug info lazily, as necessary.
It is not advisable to use --readnow.  It's mostly useful for
debugging/testing gdb's debug info read speed.

In principle, that switch should not cause user visible behavior
change.  But if you have more than one variable with the same name
in your program, reading in all debug info preemptively could
change which variable happens to find first (this is the kind of
thing I was referring to as "phase of the moon", btw).  I think
we have bug reports open around this.

-- 
Pedro Alves


      parent reply	other threads:[~2013-04-04 10:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAFTqdrNmXCMTaJ8vHngQ3n9WMQy98TUoT7JO4MEU0j=JmKJ+yg@mail.gmail.com>
2013-03-21 16:30 ` webquinty quinty
2013-04-04  9:35   ` Pedro Alves
     [not found]     ` <515D425E.90001@larraioz.com>
2013-04-04 10:15       ` Pedro Alves [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=515D52C3.7090404@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=jmartin@larraioz.com \
    /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