public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: harish badrinath <harishbadrinath@gmail.com>
To: Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org>
Cc: gdb@sourceware.org
Subject: Re: binary debugging and generate source of which that running
Date: Thu, 07 Jul 2011 07:20:00 -0000	[thread overview]
Message-ID: <CAFUoqbe8O5YsEHJuR9Xi_Q9jGw3yV9Aki3gFG5g7beYTZc43JA@mail.gmail.com> (raw)
In-Reply-To: <1310013482.2302.9.camel@debian>

On Thu, Jul 7, 2011 at 10:08 AM, Mohsen Pahlevanzadeh
<mohsen@pahlevanzadeh.org> 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’t 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 required.

  reply	other threads:[~2011-07-07  7:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-06 20:52 see automatically source Mohsen Pahlevanzadeh
2011-07-07  4:38 ` binary debugging and generate source of which that running Mohsen Pahlevanzadeh
2011-07-07  7:20   ` harish badrinath [this message]
2011-07-07  8:46     ` Mohsen Pahlevanzadeh
2011-07-07  8:48       ` harish badrinath
2011-07-07  9:15         ` Mohsen Pahlevanzadeh
2011-07-07  9:23           ` Jan Kratochvil
2011-07-07  9:29             ` Mohsen Pahlevanzadeh
2011-07-07 12:33           ` Andrew Burgess
2011-07-07 13:47             ` Markus Duft
2011-07-07 15:24               ` Mohsen Pahlevanzadeh
2011-07-07 15:26             ` Mohsen Pahlevanzadeh
2011-07-08  5:15 ` see automatically source Paul Pluzhnikov

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=CAFUoqbe8O5YsEHJuR9Xi_Q9jGw3yV9Aki3gFG5g7beYTZc43JA@mail.gmail.com \
    --to=harishbadrinath@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=mohsen@pahlevanzadeh.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).