Move declaration of overload_debug to header
authorChristian Biesinger <cbiesinger@google.com>
Mon, 7 Oct 2019 19:40:32 +0000 (14:40 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Tue, 8 Oct 2019 15:16:48 +0000 (10:16 -0500)
gdb/ChangeLog:

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

* gdbtypes.c (overload_debug): Move comment to header.
* gdbtypes.h (overload_debug): Declare.
* valops.c: Remove declaration of overload_debug, instead
include gdbtypes.h.

gdb/ChangeLog
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/valops.c

index 20a001e370b448ec1e1056df1d19c22acb6a1c0c..49b468d69586ea30a41e95a5c2f3966af9ba549a 100644 (file)
@@ -1,3 +1,10 @@
+2019-10-08  Christian Biesinger  <cbiesinger@google.com>
+
+       * gdbtypes.c (overload_debug): Move comment to header.
+       * gdbtypes.h (overload_debug): Declare.
+       * valops.c: Remove declaration of overload_debug, instead
+       include gdbtypes.h.
+
 2019-10-08  Christian Biesinger  <cbiesinger@google.com>
 
        * language.c (show_language_command): Pass lang_frame_mismatch_warn
index afda89e43fc99b568370640bb9b2812aa4790959..a2b81c8690d6d443a47e28a481ea246d24772fec 100644 (file)
@@ -118,8 +118,7 @@ const struct floatformat *floatformats_ibm_long_double[BFD_ENDIAN_UNKNOWN] = {
 
 static bool opaque_type_resolution = true;
 
-/* A flag to enable printing of debugging information of C++
-   overloading.  */
+/* See gdbtypes.h.  */
 
 unsigned int overload_debug = 0;
 
index c62b8a31ba784347b394d55f27f9d50c15a5e2c4..d431cb6fdda25e4ffc8d1a889f283e316f6aacc2 100644 (file)
@@ -2146,4 +2146,9 @@ extern int type_not_allocated (const struct type *type);
 
 extern int type_not_associated (const struct type *type);
 
+/* A flag to enable printing of debugging information of C++
+   overloading.  */
+
+extern unsigned int overload_debug;
+
 #endif /* GDBTYPES_H */
index fc7a4c5918d977dccddee01f8a435bda6ddf8cee..4c8efd90fbbec9dc71dda8c9dc4e77497e081063 100644 (file)
@@ -39,9 +39,9 @@
 #include "observable.h"
 #include "objfiles.h"
 #include "extension.h"
+#include "gdbtypes.h"
 #include "gdbsupport/byte-vector.h"
 
-extern unsigned int overload_debug;
 /* Local functions.  */
 
 static int typecmp (int staticp, int varargs, int nargs,
This page took 0.033533 seconds and 4 git commands to generate.