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

Re: Accessing local variables from ELF file

Subject: Re: Accessing local variables from ELF file
From: Andrei Voropaev <avorop@xxxxxxx>
Date: Tue, 1 Jul 2008 11:11:23 +0000 (UTC)
Newsgroups: gnu.gcc.help

On 2008-07-01, praveen <vpraveen84@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

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