gdb/
authorYao Qi <yao@codesourcery.com>
Tue, 31 Jul 2012 07:12:28 +0000 (07:12 +0000)
committerYao Qi <yao@codesourcery.com>
Tue, 31 Jul 2012 07:12:28 +0000 (07:12 +0000)
* tracepoint.c: Add 'static' for some variables.

gdb/ChangeLog
gdb/tracepoint.c

index 661a0d6..5c35d36 100644 (file)
@@ -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'.
index 8060971..e729d6d 100644 (file)
@@ -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,