Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [OB] targe.c: extern reset_schedlock
@ 2010-05-17  5:36 Hui Zhu
  2010-05-17  6:37 ` Joel Brobecker
  0 siblings, 1 reply; 2+ messages in thread
From: Hui Zhu @ 2010-05-17  5:36 UTC (permalink / raw)
  To: gdb-patches ml

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 ();


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-17  5:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-17  5:36 [OB] targe.c: extern reset_schedlock Hui Zhu
2010-05-17  6:37 ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox