This is the mail archive of the
mailing list for the GDB project.
Re: Lifetime of local variables
Martin Baulig <email@example.com> writes:
> Daniel Jacobowitz <firstname.lastname@example.org> 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".