Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Chastain <mec.gnu@mindspring.com>
To: gdb@sources.redhat.com, Cenedese@indel.ch
Subject: Re: Release symbol file
Date: Wed, 22 Sep 2004 15:16:00 -0000	[thread overview]
Message-ID: <41519737.nailM2A11D1RE@mindspring.com> (raw)
In-Reply-To: <5.2.0.9.1.20040922162849.01d62158@NT_SERVER>

Fabian Cenedese <Cenedese@indel.ch> wrote:
> Thanks, but what about the MI? I can't give switches to e.g
> -file-exec-and-symbol, can I? I mean, once gdb is started. Or
> do I have to stop and restart gdb every time?

--readnow is a global flag.  It turns on the "read now" behavior
on all future calls to symbol_file_add_with_addrs_or_offsets.

  [mec.gnu@berman gdb]$ gdb-621 --readnow
  GNU gdb 6.2.1
  Copyright 2004 Free Software Foundation, Inc.
  GDB is free software, covered by the GNU General Public License, and you are
  welcome to change it and/or distribute copies of it under certain conditions.
  Type "show copying" to see the conditions.
  There is absolutely no warranty for GDB.  Type "show warranty" for details.
  This GDB was configured as "i686-pc-linux-gnu".
  (gdb) file /berman/migchain/install/target/native/gdb-6.2.1/bin/gdb
  Reading symbols from /berman/migchain/install/target/native/gdb-6.2.1/bin/gdb...expanding to full symbols...
  Using host libthread_db library "/lib/libthread_db.so.1".
  (gdb)

gdb does keep file descriptors open for the target program,
but it ought to have all the symbols in memory after
"expanding to full symbols".

Try it.

Michael


  reply	other threads:[~2004-09-22 15:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-22 11:11 Fabian Cenedese
2004-09-22 14:20 ` Michael Chastain
2004-09-22 14:30   ` Fabian Cenedese
2004-09-22 15:16     ` Michael Chastain [this message]
2004-09-23  6:29       ` Fabian Cenedese
2004-10-05 18:57         ` Andrew Cagney
2004-10-06  6:53           ` Fabian Cenedese

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=41519737.nailM2A11D1RE@mindspring.com \
    --to=mec.gnu@mindspring.com \
    --cc=Cenedese@indel.ch \
    --cc=gdb@sources.redhat.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