public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Move declaration of overload_resolution to value.h
@ 2019-09-20  0:19 Christian Biesinger
  0 siblings, 0 replies; only message in thread
From: Christian Biesinger @ 2019-09-20  0:19 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e4153ae630fcc779ba414fdcea960394cb479e04

commit e4153ae630fcc779ba414fdcea960394cb479e04
Author: Christian Biesinger <cbiesinger@google.com>
Date:   Thu Sep 19 13:40:15 2019 +0900

    Move declaration of overload_resolution to value.h
    
    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.

Diff:
---
 gdb/ChangeLog | 5 +++++
 gdb/eval.c    | 3 ---
 gdb/value.h   | 2 ++
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c7e724e..41a0024 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2019-09-19  Christian Biesinger  <cbiesinger@google.com>
 
+	* eval.c: Move declaration of overload_resolution to...
+	* value.h: ...here.
+
+2019-09-19  Christian Biesinger  <cbiesinger@google.com>
+
 	* arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
 	* arm-linux-tdep.c: Likewise.
 	* arm-nbsd-nat.c: Likewise.
diff --git a/gdb/eval.c b/gdb/eval.c
index f8915b9..70ba1f1 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 47bf672..0d75eaa 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-20  0:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-20  0:19 [binutils-gdb] Move declaration of overload_resolution to value.h Christian Biesinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).