This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[OB] targe.c: extern reset_schedlock
- From: Hui Zhu <teawater at gmail dot com>
- To: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Mon, 17 May 2010 11:22:44 +0800
- Subject: [OB] targe.c: extern reset_schedlock
Hi,
I got following with cvs-head:
gcc -g -O2 -I. -I../../src/gdb -I../../src/gdb/common
-I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\""
-DHAVE_CONFIG_H -I../../src/gdb/../include/opcode
-I../../src/gdb/../opcodes/.. -I../../src/gdb/../readline/.. -I../bfd
-I../../src/gdb/../bfd -I../../src/gdb/../include -I../libdecnumber
-I../../src/gdb/../libdecnumber -I../../src/gdb/gnulib -Ignulib
-DMI_OUT=1 -DTUI=1 -DGDBTK -Wall -Wdeclaration-after-statement
-Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused
-Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts
-Werror -c -o target.o -MT target.o -MMD -MP -MF .deps/target.Tpo
../../src/gdb/target.c
cc1: warnings being treated as errors
../../src/gdb/target.c: In function 'target_mourn_inferior':
../../src/gdb/target.c:2249: warning: implicit declaration of function
'reset_schedlock'
make: *** [target.o] Error 1
Checked in a patch to fix it.
Thanks,
Hui
2010-05-17 Hui Zhu <teawater@gmail.com>
* target.c (target_mourn_inferior): Extern reset_schedlock.
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.251
retrieving revision 1.252
diff -u -r1.251 -r1.252
--- src/gdb/target.c 2010/05/17 01:15:20 1.251
+++ src/gdb/target.c 2010/05/17 03:20:57 1.252
@@ -2244,6 +2244,7 @@
target_mourn_inferior (void)
{
struct target_ops *t;
+ extern void reset_schedlock ();
/* Clear schedlock in infrun.c */
reset_schedlock ();