From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5222 invoked by alias); 24 Feb 2010 16:54:59 -0000 Received: (qmail 5193 invoked by uid 22791); 24 Feb 2010 16:54:57 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Feb 2010 16:54:53 +0000 Received: (qmail 14395 invoked from network); 24 Feb 2010 16:54:52 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 24 Feb 2010 16:54:52 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: How to show the file being executed? Date: Wed, 24 Feb 2010 17:26:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-19-generic; KDE/4.3.2; x86_64; ; ) Cc: ams@gnu.org, stefano.sabatini-lala@poste.it References: <20100220122449.GA9150@geppetto> <201002241646.42999.pedro@codesourcery.com> In-Reply-To: <201002241646.42999.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201002241654.50174.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00171.txt.bz2 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 (gdb) file ./gdb Reading symbols from /home/pedro/gdb/baseline/build/gdb/gdb...done. (gdb) info inferiors Num Description Executable * 1 /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