Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Move declaration of overload_resolution to value.h
@ 2019-09-19  4:42 Christian Biesinger via gdb-patches
  2019-09-19 11:05 ` Simon Marchi
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Biesinger via gdb-patches @ 2019-09-19  4:42 UTC (permalink / raw)
  To: gdb-patches; +Cc: Christian Biesinger

The variable is defined in valops.c and has an extern decl in
eval.c; move it to the header file.

gdb/ChangeLog:

2019-09-19  Christian Biesinger  <cbiesinger@google.com>

	* eval.c: Move declaration of overload_resolution to...
	* value.h: ...here.
---
 gdb/eval.c  | 3 ---
 gdb/value.h | 2 ++
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/gdb/eval.c b/gdb/eval.c
index f8915b99578..70ba1f1e3fc 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -42,9 +42,6 @@
 #include "typeprint.h"
 #include <ctype.h>
 
-/* This is defined in valops.c */
-extern bool overload_resolution;
-
 /* Prototypes for local functions.  */
 
 static struct value *evaluate_subexp_for_sizeof (struct expression *, int *,
diff --git a/gdb/value.h b/gdb/value.h
index 47bf672eb5d..0d75eaa5b21 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -81,6 +81,8 @@ struct value_print_options;
   value_contents_eq for more info.
 */
 
+extern bool overload_resolution;
+
 /* The structure which defines the type of a value.  It should never
    be possible for a program lval value to survive over a call to the
    inferior (i.e. to be put into the history list or an internal
-- 
2.23.0.351.gc4317032e6-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Move declaration of overload_resolution to value.h
  2019-09-19  4:42 [PATCH] Move declaration of overload_resolution to value.h Christian Biesinger via gdb-patches
@ 2019-09-19 11:05 ` Simon Marchi
  2019-09-20  0:20   ` Christian Biesinger via gdb-patches
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Marchi @ 2019-09-19 11:05 UTC (permalink / raw)
  To: Christian Biesinger, gdb-patches

On 2019-09-19 12:42 a.m., Christian Biesinger via gdb-patches wrote:
> The variable is defined in valops.c and has an extern decl in
> eval.c; move it to the header file.

LGTM, thanks for doing these changes.

Simon


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Move declaration of overload_resolution to value.h
  2019-09-19 11:05 ` Simon Marchi
@ 2019-09-20  0:20   ` Christian Biesinger via gdb-patches
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Biesinger via gdb-patches @ 2019-09-20  0:20 UTC (permalink / raw)
  To: Simon Marchi; +Cc: gdb-patches

On Thu, Sep 19, 2019 at 8:05 PM Simon Marchi <simark@simark.ca> wrote:
>
> On 2019-09-19 12:42 a.m., Christian Biesinger via gdb-patches wrote:
> > The variable is defined in valops.c and has an extern decl in
> > eval.c; move it to the header file.
>
> LGTM, thanks for doing these changes.

Thanks, pushed.

To ssh://sourceware.org/git/binutils-gdb.git
   c7ae7675cf7..e4153ae630f  HEAD -> master

Christian


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-20  0:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-19  4:42 [PATCH] Move declaration of overload_resolution to value.h Christian Biesinger via gdb-patches
2019-09-19 11:05 ` Simon Marchi
2019-09-20  0:20   ` 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