Move declaration of varobjdebug to header
authorChristian Biesinger <cbiesinger@google.com>
Thu, 10 Oct 2019 04:06:14 +0000 (23:06 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Thu, 10 Oct 2019 17:37:47 +0000 (12:37 -0500)
gdb/ChangeLog:

2019-10-10  Christian Biesinger  <cbiesinger@google.com>

* mi/mi-cmd-var.c (varobjdebug): Remove declaration.
* varobj.c (varobjdebug): Move comment to...
* varobj.h (varobjdebug): ...here, and declare.

gdb/ChangeLog
gdb/mi/mi-cmd-var.c
gdb/varobj.c
gdb/varobj.h

index a5504a9c00babe02d951646eaff5d912939df8a6..2abae432dfe8ed0004d9bf9939ff56dcad42647f 100644 (file)
@@ -1,3 +1,9 @@
+2019-10-10  Christian Biesinger  <cbiesinger@google.com>
+
+       * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
+       * varobj.c (varobjdebug): Move comment to...
+       * varobj.h (varobjdebug): ...here, and declare.
+
 2019-10-09  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-regs.c (tui_data_window::show_registers): Don't call
index f5219e0f9b2861ee1a646b978aece30fd4e8fb81..d1de382af774cac445a64553cf05554ff66e336d 100644 (file)
@@ -33,8 +33,6 @@
 #include "gdbsupport/gdb_optional.h"
 #include "inferior.h"
 
-extern unsigned int varobjdebug;               /* defined in varobj.c.  */
-
 static void varobj_update_one (struct varobj *var,
                               enum print_values print_values,
                               bool is_explicit);
index 809006827f219cdea0d60749dce66a191144f92f..827a1b0c0f05a8bd27b34953898180f0c0c4ba36 100644 (file)
@@ -40,7 +40,7 @@
 typedef int PyObject;
 #endif
 
-/* Non-zero if we want to see trace of varobj level stuff.  */
+/* See varobj.h.  */
 
 unsigned int varobjdebug = 0;
 static void
index 9067d2d6beb7f8c99e0ad05da79f16c4da47216e..8f00d780d47a9b303a97ed3701700ebe172bb133 100644 (file)
@@ -235,6 +235,11 @@ extern const struct lang_varobj_ops cplus_varobj_ops;
 extern const struct lang_varobj_ops ada_varobj_ops;
 
 #define default_varobj_ops c_varobj_ops
+
+/* Non-zero if we want to see trace of varobj level stuff.  */
+
+extern unsigned int varobjdebug;
+
 /* API functions */
 
 extern struct varobj *varobj_create (const char *objname,
This page took 0.032283 seconds and 4 git commands to generate.