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

Re: Accessing local variables from ELF file

Subject: Re: Accessing local variables from ELF file
From: Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxx>
Date: Sat, 05 Jul 2008 13:21:48 -0700
Newsgroups: gnu.gcc.help

praveen <vpraveen84@xxxxxxxxx> writes:

>> > I need to access local variables from the ELF object file.
> sorry... what i meant was auto variables only !

Your question appears to imply that you do not understand how 'auto'
variables work.

They only exist for the duration of the invocation of containing
function, and there could be many instances of "the same" auto
variable (if containing function is recursive).

In any case, the short answer is that you certainly can't access
such variables "from the ELF object file".

You might want to try to explain what you are actually trying
to achieve.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.

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