gnu.gcc.help
[Top] [All Lists]

Re: Accessing local variables from ELF file

Subject: Re: Accessing local variables from ELF file
From: praveen <vpraveen84@xxxxxxxxx>
Date: Tue, 1 Jul 2008 09:46:56 -0700 (PDT)
Newsgroups: gnu.gcc.help

On Jul 1, 6:11 am, Andrei Voropaev <avo...@xxxxxxx> wrote:
> On 2008-07-01, praveen <vpravee...@xxxxxxxxx> wrote:
>
> > I need to access local variables from the ELF object file. How do I do
> > this ? I'm trying to use .symtab section, but it does not seem to
> > contain any info on local variables.
>
> Sorry. Your question does not make sense. Which "local" variables do you
> want to access? Auto variables in functions? Static variables? Global
> variables defined in that source file? Only the latter can be accessed,
> everything else is local to the object file and is not visible outside
> of it.
>
> --
> Minds, like parachutes, function best when open

sorry... what i meant was auto variables only !

<Prev in Thread] Current Thread [Next in Thread>