This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] findvar.c: support LOC_BASEREG[_ARG] on Harvard archs
- To: ac131313 at cygnus dot com
- Subject: Re: [RFA] findvar.c: support LOC_BASEREG[_ARG] on Harvard archs
- From: Nick Duffek <nsd at redhat dot com>
- Date: Mon, 16 Jul 2001 19:12:55 -0400
- CC: gdb-patches at sources dot redhat dot com, ezannoni at cygnus dot com, jimb at cygnus dot com, taylor at candd dot org
- References: <3B536F7B.7060106@cygnus.com>
On 16-Jul-2001, Andrew Cagney wrote:
>value_ptr is really ``struct value *'' so ...
>I suspect you need xfree() or the like.
Nope, the value_ptr gets garbage-collected. value_from_register()
allocates the value_ptr using allocate_value(), which stores the pointer
in all_values to be freed later by free_all_values().
Nick