This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Lifetime of local variables


Martin Baulig <martin@gnome.org> writes:

> Daniel Jacobowitz <drow@mvista.com> writes:
> > What business does the JIT have actually creating local variables
> > (rather than temporaries, which don't get names)?  I don't understand.
> 
> What's the difference between a local variable and a temporary variable ?

The difference is that the person who debugs a program generally wants
to look at the local variables and generally doesn't want to look at
compiler temporaries. For the latter case, registers/memory dump seems
appropriate or, for the case of CLI, the "evaluation stack" and the
"local variable array".

Regards,
-velco


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]