This is the mail archive of the gdb-patches@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]

Re: [RFA] findvar.c: support LOC_BASEREG[_ARG] on Harvard archs


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


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