This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Simplify varobj.c
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 22 Apr 2009 19:52:40 +0200
- Subject: [obv] Simplify varobj.c
Hi,
removed one code obfuscation.
No regressions on x86_64-unknown-linux-gnu (I did run it).
Regards,
Jan
http://sourceware.org/ml/gdb-cvs/2009-04/msg00164.html
2009-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
* varobj.c (free_variable): Replace free_current_contents by xfree.
--- src/gdb/varobj.c 2009/04/10 16:00:49 1.126
+++ src/gdb/varobj.c 2009/04/22 17:50:54 1.127
@@ -1517,7 +1517,7 @@
/* Free the expression if this is a root variable. */
if (is_root_p (var))
{
- free_current_contents (&var->root->exp);
+ xfree (var->root->exp);
xfree (var->root);
}