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]

[commit/obvious] Remove unused vars introduced by stap patches


Hi,

This commit is obvious, it removes unused variables introduce by my
series of patches which implement the SystemTap integration.

Checked in:

    
-- 
Sergio

Index: gdb/ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.14191
diff -u -p -r1.14191 ChangeLog
--- gdb/ChangeLog	1 May 2012 03:00:35 -0000	1.14191
+++ gdb/ChangeLog	2 May 2012 04:39:34 -0000
@@ -1,3 +1,12 @@
+2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
+
+	* i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
+	variable.
+	* stap-probe.c (stap_parse_single_operand) <reg_suffix,
+	reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
+	(stap_parse_argument) <e>: Likewise.
+	(handle_stap_probe) <byte_order>: Likewise.
+
 2012-04-30  Doug Evans  <dje@google.com>
 
 	* dwarf2read.c (init_cutu_and_read_dies): Renamed from
Index: gdb/i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.347
diff -u -p -r1.347 i386-tdep.c
--- gdb/i386-tdep.c	27 Apr 2012 20:47:54 -0000	1.347
+++ gdb/i386-tdep.c	2 May 2012 04:39:34 -0000
@@ -3392,8 +3392,6 @@ int
 i386_stap_parse_special_token (struct gdbarch *gdbarch,
 			       struct stap_parse_info *p)
 {
-  const char *s = p->arg;
-
   /* In order to parse special tokens, we use a state-machine that go
      through every known token and try to get a match.  */
   enum
Index: gdb/stap-probe.c
===================================================================
RCS file: /cvs/src/src/gdb/stap-probe.c,v
retrieving revision 1.1
diff -u -p -r1.1 stap-probe.c
--- gdb/stap-probe.c	27 Apr 2012 20:47:56 -0000	1.1
+++ gdb/stap-probe.c	2 May 2012 04:39:34 -0000
@@ -562,12 +562,7 @@ stap_parse_single_operand (struct stap_p
 
   /* Suffixes for the parser.  */
   const char *const_suffix = gdbarch_stap_integer_suffix (gdbarch);
-  const char *reg_suffix = gdbarch_stap_register_suffix (gdbarch);
-  const char *reg_ind_suffix
-    = gdbarch_stap_register_indirection_suffix (gdbarch);
   int const_suffix_len = const_suffix ? strlen (const_suffix) : 0;
-  int reg_suffix_len = reg_suffix ? strlen (reg_suffix) : 0;
-  int reg_ind_suffix_len = reg_ind_suffix ? strlen (reg_ind_suffix) : 0;
 
   /* We first try to parse this token as a "special token".  */
   if (gdbarch_stap_parse_special_token_p (gdbarch))
@@ -867,7 +862,6 @@ stap_parse_argument (const char **arg, s
 		     struct gdbarch *gdbarch)
 {
   struct stap_parse_info p;
-  volatile struct gdb_exception e;
   struct cleanup *back_to;
 
   /* We need to initialize the expression buffer, in order to begin
@@ -1275,7 +1269,6 @@ handle_stap_probe (struct objfile *objfi
   bfd *abfd = objfile->obfd;
   int size = bfd_get_arch_size (abfd) / 8;
   struct gdbarch *gdbarch = get_objfile_arch (objfile);
-  enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
   struct type *ptr_type = builtin_type (gdbarch)->builtin_data_ptr;
   CORE_ADDR base_ref;
   const char *probe_args = NULL;


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