Move declaration of varobjdebug to header

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.
This commit is contained in:
Christian Biesinger 2019-10-09 23:06:14 -05:00
parent 6dfc004112
commit c2c440a903
4 changed files with 12 additions and 3 deletions

View 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

View 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);

View 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

View 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,