diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-10-07 14:40:32 -0500 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-10-08 10:16:48 -0500 |
commit | 79bb1944d63eb04f86cfacc62321c1062c292ac0 (patch) | |
tree | 928e36437834fbaa9ff7e67327b7d8a54d939d30 /gdb | |
parent | 34916edc47a26d591bf95784cd90fe1dcd533ab5 (diff) | |
download | gdb-79bb1944d63eb04f86cfacc62321c1062c292ac0.zip gdb-79bb1944d63eb04f86cfacc62321c1062c292ac0.tar.gz gdb-79bb1944d63eb04f86cfacc62321c1062c292ac0.tar.bz2 |
Move declaration of overload_debug to header
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/gdbtypes.c | 3 | ||||
-rw-r--r-- | gdb/gdbtypes.h | 5 | ||||
-rw-r--r-- | gdb/valops.c | 2 |
4 files changed, 14 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 20a001e..49b468d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 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 through _(). (lang_frame_mismatch_warn): Make const, mark with N_(), and diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index afda89e..a2b81c8 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -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; diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index c62b8a3..d431cb6 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -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 */ diff --git a/gdb/valops.c b/gdb/valops.c index fc7a4c5..4c8efd9 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -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, |