This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]