This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[COMMIT PATCH] Move pagination_enabled declaration to a proper place.
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 28 Jun 2013 18:20:51 +0100
- Subject: [COMMIT PATCH] Move pagination_enabled declaration to a proper place.
Declare it close to other related declarations in utils.h, and remove
local extern declaration hack.
gdb/
2013-06-28 Pedro Alves <palves@redhat.com>
* infrun.c (set_observer_mode): Don't declare pagination_enabled
here.
* utils.h (pagination_enabled): Declare.
---
gdb/infrun.c | 2 --
gdb/utils.h | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/infrun.c b/gdb/infrun.c
index e95f81f..dc1036d 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -219,8 +219,6 @@ static void
set_observer_mode (char *args, int from_tty,
struct cmd_list_element *c)
{
- extern int pagination_enabled;
-
if (target_has_execution)
{
observer_mode_1 = observer_mode;
diff --git a/gdb/utils.h b/gdb/utils.h
index 9356658..0f6bb06 100644
--- a/gdb/utils.h
+++ b/gdb/utils.h
@@ -150,6 +150,8 @@ extern void wrap_here (char *);
extern void reinitialize_more_filter (void);
+extern int pagination_enabled;
+
/* Global ui_file streams. These are all defined in main.c. */
/* Normal results */
extern struct ui_file *gdb_stdout;