* [obv] Unbreak gdbserver build
@ 2011-12-14 8:17 Yao Qi
0 siblings, 0 replies; only message in thread
From: Yao Qi @ 2011-12-14 8:17 UTC (permalink / raw)
To: gdb-patches
I run cross a build failure on trunk when testing my approved patches.
gcc -c -g -O2 -I. -I../../../cvs/src/gdb/gdbserver
-I../../../cvs/src/gdb/gdbserver/../common
-I../../../cvs/src/gdb/gdbserver/../regformats
-I../../../cvs/src/gdb/gdbserver/../../include -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-char-subscripts -Werror ../../../cvs/src/gdb/gdbserver/i386-low.c
cc1: warnings being treated as errors
../../../cvs/src/gdb/gdbserver/i386-low.c: In function
âi386_low_stopped_data_addressâ:
../../../cvs/src/gdb/gdbserver/i386-low.c:569: error: âcontrolâ may be
used uninitialized in this function
It is obvious. Committed.
--
Yao (é½å°§)
2011-12-14 Yao Qi <yao@codesourcery.com>
* i386-low.c (i386_low_stopped_data_address): Initialize local
variable `control'.
Index: gdbserver/i386-low.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/i386-low.c,v
retrieving revision 1.8
diff -u -r1.8 i386-low.c
--- gdbserver/i386-low.c 13 Dec 2011 16:11:26 -0000 1.8
+++ gdbserver/i386-low.c 14 Dec 2011 07:33:39 -0000
@@ -566,7 +566,7 @@
data breakpoint trap. Only fetch it when necessary, to avoid an
unnecessary extra syscall when no watchpoint triggered. */
int control_p = 0;
- unsigned control;
+ unsigned control = 0;
/* In non-stop/async, threads can be running while we change the
global dr_mirror (and friends). Say, we set a watchpoint, and
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-14 7:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-14 8:17 [obv] Unbreak gdbserver build Yao Qi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).