This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] gdb: Make lines_to_list variable static.


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

commit f43f85715ac097b6ff4bfaed00879eb541428c1a
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date:   Thu Nov 12 09:48:32 2015 +0000

    gdb: Make lines_to_list variable static.
    
    Small clean up, make variable static.
    
    gdb/ChangeLog:
    
    	* source.c (lines_to_list): Make static.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/source.c  | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 03ae010..90644d8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+	* source.c (lines_to_list): Make static.
+
 2015-12-10  Antoine Tremblay  <antoine.tremblay@ericsson.com>
 
 	* linux-thread-db.c (find_new_threads_callback): Use record_thread.
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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]