From: Andrew Burgess <andrew.burgess@embecosm.com>
To: gdb-patches@sourceware.org
Cc: Andrew Burgess <andrew.burgess@embecosm.com>
Subject: [PATCH 1/7] gdb: Make lines_to_list variable static.
Date: Wed, 25 Nov 2015 00:34:00 -0000 [thread overview]
Message-ID: <0b147ff4cb1d01690156562abacd8d36f2126f1e.1448411121.git.andrew.burgess@embecosm.com> (raw)
In-Reply-To: <cover.1448411121.git.andrew.burgess@embecosm.com>
In-Reply-To: <cover.1448411121.git.andrew.burgess@embecosm.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
next prev parent reply other threads:[~2015-11-25 0:34 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 0:34 [PATCH 0/7] Minor changes to 'list' command Andrew Burgess
2015-11-25 0:34 ` [PATCH 3/7] gdb: Small code restructure for list_command Andrew Burgess
2015-11-26 12:37 ` Pedro Alves
2015-11-25 0:34 ` Andrew Burgess [this message]
2015-11-26 12:37 ` [PATCH 1/7] gdb: Make lines_to_list variable static Pedro Alves
2015-11-25 0:34 ` [PATCH 4/7] gdb: Make test names unique in list.exp Andrew Burgess
2015-11-26 12:37 ` Pedro Alves
2015-11-25 0:34 ` [PATCH 7/7] gdb: Extend help text for 'list' command Andrew Burgess
2015-11-26 12:38 ` Pedro Alves
2015-12-10 10:08 ` Andrew Burgess
2015-12-10 16:24 ` Eli Zaretskii
2015-11-25 0:34 ` [PATCH 6/7] gdb: Add an error when 'list -' reaches the start of a file Andrew Burgess
2015-11-26 12:38 ` Pedro Alves
2015-11-25 0:34 ` [PATCH 2/7] gdb: Use NULL instead of 0 for pointer comparison Andrew Burgess
2015-11-26 12:37 ` Pedro Alves
2015-11-25 0:34 ` [PATCH 5/7] gdb: 'list' command, tweak handling of +/- arguments Andrew Burgess
2015-11-26 12:38 ` Pedro Alves
2015-12-11 23:28 ` [PATCH 0/7] Minor changes to 'list' command Andrew Burgess
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0b147ff4cb1d01690156562abacd8d36f2126f1e.1448411121.git.andrew.burgess@embecosm.com \
--to=andrew.burgess@embecosm.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox