This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Remove 'extern int tracepoint_count'.
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Tue, 6 Nov 2012 20:10:19 +0800
- Subject: [obv] Remove 'extern int tracepoint_count'.
Hi,
variable 'tracepoint_count' is a static variable defined in
breakpoint.c, so 'extern int tracepoint_count' is not needed
in breakpoint.c:get_tracepoint_by_number. This patch is to
remove it.
This line of code was introduced by this patch,
[PATCH] Make tracepoints into breakpoints
http://sourceware.org/ml/gdb-patches/2009-03/msg00640.html
and it looks like an oversight. It is obvious, and I'll commit
it tomorrow.
gdb:
2012-11-06 Yao Qi <yao@codesourcery.com>
* breakpoint.c (get_tracepoint_by_number): Remove 'extern int
tracepoint_count'.
---
gdb/breakpoint.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 851dd86..07b9760 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -15347,7 +15347,6 @@ get_tracepoint_by_number (char **arg,
struct get_number_or_range_state *state,
int optional_p)
{
- extern int tracepoint_count;
struct breakpoint *t;
int tpnum;
char *instring = arg == NULL ? NULL : *arg;
--
1.7.7.6