From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14511 invoked by alias); 7 Jul 2011 07:20:34 -0000 Received: (qmail 14502 invoked by uid 22791); 7 Jul 2011 07:20:33 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-iw0-f169.google.com (HELO mail-iw0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Jul 2011 07:20:19 +0000 Received: by iwn8 with SMTP id 8so712480iwn.0 for ; Thu, 07 Jul 2011 00:20:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.229.10 with SMTP id jg10mr495651icb.286.1310023219164; Thu, 07 Jul 2011 00:20:19 -0700 (PDT) Received: by 10.231.156.208 with HTTP; Thu, 7 Jul 2011 00:20:19 -0700 (PDT) In-Reply-To: <1310013482.2302.9.camel@debian> References: <1309985511.4202.15.camel@debian> <1310013482.2302.9.camel@debian> Date: Thu, 07 Jul 2011 07:20:00 -0000 Message-ID: Subject: Re: binary debugging and generate source of which that running From: harish badrinath To: Mohsen Pahlevanzadeh Cc: gdb@sourceware.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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: 2011-07/txt/msg00043.txt.bz2 On Thu, Jul 7, 2011 at 10:08 AM, Mohsen Pahlevanzadeh wrote: > Dear all, > > I have a binary file what i compile it with -g.So i need to perform a > set of action in my computer and see behavior of my file, This mean , i > need to see functions of run when i perform those set of actions, So i > need to tell to gdb : Please print source of which peace of program that > running. > How i do it? You are using C ?? I don=92t think you can assume you have read access to a file that you are trying to executing, apart from that why cant you just use GDB to do that whenever it is require= d.