This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Add static for some variables
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Tue, 31 Jul 2012 15:12:56 +0800
- Subject: [obv] Add static for some variables
Hi,
These variables in tracepoint.c are not used outside of this file, so
'static' is added to them. Applied as obvious.
gdb:
2012-07-31 Yao Qi <yao@codesourcery.com>
* tracepoint.c: Add 'static' for some variables.
---
gdb/tracepoint.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index cc531fb..32407d1 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -3623,17 +3623,17 @@ merge_uploaded_trace_state_variables (struct uploaded_tsv **uploaded_tsvs)
/* target tfile command */
-struct target_ops tfile_ops;
+static struct target_ops tfile_ops;
/* Fill in tfile_ops with its defined operations and properties. */
#define TRACE_HEADER_SIZE 8
-char *trace_filename;
-int trace_fd = -1;
-off_t trace_frames_offset;
-off_t cur_offset;
-int cur_data_size;
+static char *trace_filename;
+static int trace_fd = -1;
+static off_t trace_frames_offset;
+static off_t cur_offset;
+static int cur_data_size;
int trace_regblock_size;
static void tfile_interp_line (char *line,
--
1.7.7.6