From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22294 invoked by alias); 20 Feb 2010 12:37:27 -0000 Received: (qmail 22285 invoked by uid 22791); 20 Feb 2010 12:37:27 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 20 Feb 2010 12:37:23 +0000 Received: from ams by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NioaI-0006be-0D; Sat, 20 Feb 2010 07:37:22 -0500 From: "Alfred M. Szmidt" To: Stefano Sabatini CC: gdb@sources.redhat.com In-reply-to: <20100220122449.GA9150@geppetto> (message from Stefano Sabatini on Sat, 20 Feb 2010 13:24:49 +0100) Subject: Re: How to show the file being executed? Reply-to: ams@gnu.org References: <20100220122449.GA9150@geppetto> Message-Id: Date: Sat, 20 Feb 2010 12:37:00 -0000 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/msg00148.txt.bz2 (gdb) info target Symbols from "/home/stefano/src/PROGRAM". Unix child process: Using the running image of child Thread 0xb5f33b70 (LWP 8998). While running this, GDB does not access memory from... Local exec file: `/home/stefano/src/PROGRAM', file type elf32-i386. Entry point: 0x804bc70 0x08048134 - 0x08048147 is .interp 0x08048148 - 0x08048168 is .note.ABI-tag 0x08048168 - 0x0804818c is .note.gnu.build-id [...] There is some way to show *only* this information?, otherwise I suggest to implement a show file command. You can use readelf to get most of that information.