From: Yao Qi Date: Tue, 31 Jul 2012 07:12:28 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1467929f3fc301abb4d9e0c1746952d078595adb;p=binutils-gdb.git gdb/ * tracepoint.c: Add 'static' for some variables. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 661a0d6baa7..5c35d3646b2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-07-31 Yao Qi + + * tracepoint.c: Add 'static' for some variables. + 2012-07-31 Yao Qi * go32-nat.c: Declare _initialize_go32_nat. diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 8060971e316..e729d6da642 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,