* [PATCH] Move declaration of overload_debug to header
@ 2019-10-07 19:42 Christian Biesinger via gdb-patches
2019-10-08 12:47 ` Tom Tromey
0 siblings, 1 reply; 3+ messages in thread
From: Christian Biesinger via gdb-patches @ 2019-10-07 19:42 UTC (permalink / raw)
To: gdb-patches; +Cc: Christian Biesinger
gdb/ChangeLog:
2019-10-07 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/gdbtypes.c | 3 +--
gdb/gdbtypes.h | 5 +++++
gdb/valops.c | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index afda89e43f..a2b81c8690 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 c62b8a31ba..d431cb6fdd 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 fc7a4c5918..4c8efd90fb 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,
--
2.23.0.581.g78d2f28ef7-goog
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] Move declaration of overload_debug to header
2019-10-07 19:42 [PATCH] Move declaration of overload_debug to header Christian Biesinger via gdb-patches
@ 2019-10-08 12:47 ` Tom Tromey
2019-10-08 15:18 ` Christian Biesinger via gdb-patches
0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2019-10-08 12:47 UTC (permalink / raw)
To: Christian Biesinger via gdb-patches; +Cc: Christian Biesinger
>>>>> "Christian" == Christian Biesinger via gdb-patches <gdb-patches@sourceware.org> writes:
Christian> gdb/ChangeLog:
Christian> 2019-10-07 Christian Biesinger <cbiesinger@google.com>
Christian> * gdbtypes.c (overload_debug): Move comment to header.
Christian> * gdbtypes.h (overload_debug): Declare.
Christian> * valops.c: Remove declaration of overload_debug, instead
Christian> include gdbtypes.h.
Ok. Thank you.
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Move declaration of overload_debug to header
2019-10-08 12:47 ` Tom Tromey
@ 2019-10-08 15:18 ` Christian Biesinger via gdb-patches
0 siblings, 0 replies; 3+ messages in thread
From: Christian Biesinger via gdb-patches @ 2019-10-08 15:18 UTC (permalink / raw)
To: Tom Tromey; +Cc: Christian Biesinger via gdb-patches
On Tue, Oct 8, 2019 at 7:47 AM Tom Tromey <tom@tromey.com> wrote:
>
> >>>>> "Christian" == Christian Biesinger via gdb-patches <gdb-patches@sourceware.org> writes:
>
> Christian> gdb/ChangeLog:
> Christian> 2019-10-07 Christian Biesinger <cbiesinger@google.com>
>
> Christian> * gdbtypes.c (overload_debug): Move comment to header.
> Christian> * gdbtypes.h (overload_debug): Declare.
> Christian> * valops.c: Remove declaration of overload_debug, instead
> Christian> include gdbtypes.h.
>
> Ok. Thank you.
Thanks, pushed.
To ssh://sourceware.org/git/binutils-gdb.git
34916edc47..79bb1944d6 HEAD -> master
Christian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-08 15:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 19:42 [PATCH] Move declaration of overload_debug to header Christian Biesinger via gdb-patches
2019-10-08 12:47 ` Tom Tromey
2019-10-08 15:18 ` Christian Biesinger via gdb-patches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox