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] i386-nat.c: Remove unused variable


Hi,

dr_ref_count has been already moved into i386_debug_reg_state, just GDB does
not use enough -Wunused-* flags to catch this forgotten variable.

Checked in.


Thanks,
Jan


http://sourceware.org/ml/gdb-cvs/2011-11/msg00033.html

--- src/gdb/ChangeLog	2011/11/05 17:08:29	1.13489
+++ src/gdb/ChangeLog	2011/11/05 20:25:18	1.13490
@@ -1,3 +1,7 @@
+2011-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* i386-nat.c (dr_ref_count): Remove unused variable.
+
 2011-11-05  Doug Evans  <dje@google.com>
 
 	* main.c (captured_main): Set lim_at_start before calling
--- src/gdb/i386-nat.c	2011/07/22 16:58:31	1.34
+++ src/gdb/i386-nat.c	2011/11/05 20:25:19	1.35
@@ -194,9 +194,6 @@
 
 static struct i386_debug_reg_state dr_mirror;
 
-/* Reference counts for each debug register.  */
-static int dr_ref_count[DR_NADDR];
-
 /* Whether or not to print the mirrored debug registers.  */
 static int maint_show_dr;
 


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