This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

[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);
     }
 


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