[PATCH]: read var leak

Nathan Sidwell nathan@codesourcery.com
Wed Feb 9 14:12:00 GMT 2005


hi,
this patch fixes a leak of value objects.  When a value's symbol is
LOC_COMPUTED or ARG_LOC_COMPUTED, the symbol's read_variable method
allocates the value object.  The current ordering in read_var_value
has already created a value object for the value, so we end up with
an empty value object on the value chain.  This isn't fatal, but
is confusing.

built & tested on i686-pc-linux-gnu and an unreleased architecture, ok?

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: findvar-leak.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20050209/a34dabb8/attachment.ksh>


More information about the Gdb-patches mailing list