From: Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org>
To: harish badrinath <harishbadrinath@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: binary debugging and generate source of which that running
Date: Thu, 07 Jul 2011 08:46:00 -0000 [thread overview]
Message-ID: <1310028334.2302.15.camel@debian> (raw)
In-Reply-To: <CAFUoqbe8O5YsEHJuR9Xi_Q9jGw3yV9Aki3gFG5g7beYTZc43JA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 813 bytes --]
Yes, i'm using C and compiled with -g.I'm and run:
gdb myprog
(gdb)run
--mohsen
On Thu, 2011-07-07 at 12:50 +0530, harish badrinath wrote:
> 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.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
next prev parent reply other threads:[~2011-07-07 8:46 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
2011-07-07 8:46 ` Mohsen Pahlevanzadeh [this message]
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=1310028334.2302.15.camel@debian \
--to=mohsen@pahlevanzadeh.org \
--cc=gdb@sourceware.org \
--cc=harishbadrinath@gmail.com \
/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