This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 1/7] gdb: Make lines_to_list variable static.
- From: Andrew Burgess <andrew dot burgess at embecosm dot com>
- To: gdb-patches at sourceware dot org
- Cc: Andrew Burgess <andrew dot burgess at embecosm dot com>
- Date: Wed, 25 Nov 2015 00:34:26 +0000
- Subject: [PATCH 1/7] gdb: Make lines_to_list variable static.
- Authentication-results: sourceware.org; auth=none
- References: <cover dot 1448411121 dot git dot andrew dot burgess at embecosm dot com>
- References: <cover dot 1448411121 dot git dot andrew dot burgess at embecosm dot com>
Small clean up, make variable static.
gdb/ChangeLog:
* source.c (lines_to_list): Make static.
---
gdb/ChangeLog | 4 ++++
gdb/source.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bc1a29e..d1e6cbf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2015-11-24 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * source.c (lines_to_list): Make static.
+
2015-11-23 Simon Marchi <simon.marchi@ericsson.com>
* breakpoint.c (tracepoint_print_recreate): Fix logic error
diff --git a/gdb/source.c b/gdb/source.c
index 8358033..e5412bd 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -95,7 +95,7 @@ static struct program_space *current_source_pspace;
and friends should be rewritten to count characters and see where
things are wrapping, but that would be a fair amount of work. */
-int lines_to_list = 10;
+static int lines_to_list = 10;
static void
show_lines_to_list (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
--
2.5.1