From: Pedro Alves <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: ams@gnu.org, stefano.sabatini-lala@poste.it
Subject: Re: How to show the file being executed?
Date: Wed, 24 Feb 2010 17:26:00 -0000 [thread overview]
Message-ID: <201002241654.50174.pedro@codesourcery.com> (raw)
In-Reply-To: <201002241646.42999.pedro@codesourcery.com>
On Wednesday 24 February 2010 16:46:42, Pedro Alves wrote:
> On Wednesday 24 February 2010 16:41:38, Alfred M. Szmidt wrote:
> > (top-gdb) info inferiors
> > Num Description Executable
> > * 1 process 25218 /home/pedro/gdb/baseline/build/gdb/gdb
> >
> > The original poster wanted the information from `file' as I understood
> > it.
Oh, maybe you're thinking that `info inferiors' wouldn't
work for this until the program was running. That was true
on 7.0, no longer on 7.1:
$./gdb
:
(gdb) info inferiors
Num Description Executable
* 1 <null>
(gdb) file ./gdb
Reading symbols from /home/pedro/gdb/baseline/build/gdb/gdb...done.
(gdb) info inferiors
Num Description Executable
* 1 <null> /home/pedro/gdb/baseline/build/gdb/gdb
(gdb) start
:
Temporary breakpoint 1, main (argc=1, argv=0x7fffffffe168) at ../../src/gdb/gdb.c:28
28 memset (&args, 0, sizeof args);
(gdb) info inferiors
Num Description Executable
* 1 process 26761 /home/pedro/gdb/baseline/build/gdb/gdb
--
Pedro Alves
next prev parent reply other threads:[~2010-02-24 16:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-20 12:26 Stefano Sabatini
2010-02-20 12:37 ` Alfred M. Szmidt
2010-02-20 14:06 ` Stefano Sabatini
2010-02-23 19:25 ` Alfred M. Szmidt
2010-02-23 19:35 ` Pedro Alves
2010-02-23 20:51 ` Pedro Alves
2010-02-24 16:54 ` Alfred M. Szmidt
2010-02-24 16:46 ` Alfred M. Szmidt
2010-02-24 17:01 ` Pedro Alves
2010-02-24 17:26 ` Pedro Alves [this message]
2010-02-25 15:28 ` Alfred M. Szmidt
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=201002241654.50174.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=ams@gnu.org \
--cc=gdb@sourceware.org \
--cc=stefano.sabatini-lala@poste.it \
/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