aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-07-31 07:12:28 +0000
committerYao Qi <yao@codesourcery.com>2012-07-31 07:12:28 +0000
commit1467929f3fc301abb4d9e0c1746952d078595adb (patch)
treed1fab5e6c81dcd9ba3058cd4c212ea124ade0e7a /gdb
parent70976b65519d4f91bb0345335d7419f2f69eec8c (diff)
downloadgdb-1467929f3fc301abb4d9e0c1746952d078595adb.zip
gdb-1467929f3fc301abb4d9e0c1746952d078595adb.tar.gz
gdb-1467929f3fc301abb4d9e0c1746952d078595adb.tar.bz2
gdb/
* tracepoint.c: Add 'static' for some variables.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/tracepoint.c12
2 files changed, 10 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 661a0d6..5c35d36 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2012-07-31 Yao Qi <yao@codesourcery.com>
+ * tracepoint.c: Add 'static' for some variables.
+
+2012-07-31 Yao Qi <yao@codesourcery.com>
+
* go32-nat.c: Declare _initialize_go32_nat.
* ser-go32.c: Declare _initialize_ser_dos.
* top.c (do_chdir_cleanup): Add 'static'.
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 8060971..e729d6d 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -3613,17 +3613,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,