This is the mail archive of the gdb-patches@sources.redhat.com 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]

[patch/testsuite] gdb.base/*.c: more #include updates


Good morning.  Here is the next batch of #include updates to
accommodate gcc HEAD.

Tested on native i686-pc-linux-gnu with gcc 2.95.3, gcc 3.3.4,
gcc 3.4.1, and gcc HEAD 20040804, with dwarf-2 and stabs+.

After this, there are four more files left:

    gdb.base/gcore.c:25: warning: ... 'strcpy'
    gdb.mi/basics.c:35: warning: ... 'printf'
    gdb.mi/gdb701.c:14: warning: ... 'exit'
    gdb.mi/var-cmd.c:293: warning: ... 'exit'

I am committing this now.

Michael C

2004-08-05  Michael Chastain  <mec.gnu@mindspring.com>

	* gdb.base/freebpcmd.c: Include <stdio.h>.
	* gdb.base/long_long.c: Include <string.h>.
	* gdb.base/sigaltstack.c: Include <stdlib.h> <string.h>.
	* gdb.base/siginfo.c: Include <string.h>.
	* gdb.base/sigstep.c: Include <string.h>.

Index: gdb.base/freebpcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/freebpcmd.c,v
retrieving revision 1.2
diff -c -3 -p -r1.2 freebpcmd.c
*** gdb.base/freebpcmd.c	17 Dec 2003 21:34:51 -0000	1.2
--- gdb.base/freebpcmd.c	5 Aug 2004 07:23:44 -0000
***************
*** 1,5 ****
  /* Test program for GDB crashes while doing bp commands that continue inferior.
!    Copyright 2003 Free Software Foundation, Inc.
  
     This file is part of the gdb testsuite.
  
--- 1,5 ----
  /* Test program for GDB crashes while doing bp commands that continue inferior.
!    Copyright 2003, 2004 Free Software Foundation, Inc.
  
     This file is part of the gdb testsuite.
  
***************
*** 18,23 ****
--- 18,25 ----
     Foundation, Inc., 59 Temple Place - Suite 330,
     Boston, MA 02111-1307, USA.  */
  
+ #include <stdio.h>
+ 
  int
  main (int argc, char **argv)
  {
Index: gdb.base/long_long.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/long_long.c,v
retrieving revision 1.3
diff -c -3 -p -r1.3 long_long.c
*** gdb.base/long_long.c	16 Jun 2004 15:19:41 -0000	1.3
--- gdb.base/long_long.c	5 Aug 2004 07:23:44 -0000
***************
*** 27,32 ****
--- 27,34 ----
   * cc +e +DA2.0 -g -o long_long long_long.c
   */
  
+ #include <string.h>
+ 
  enum { MAX_BYTES = 16 };
  
  void
Index: gdb.base/sigaltstack.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/sigaltstack.c,v
retrieving revision 1.1
diff -c -3 -p -r1.1 sigaltstack.c
*** gdb.base/sigaltstack.c	5 Apr 2004 21:00:21 -0000	1.1
--- gdb.base/sigaltstack.c	5 Aug 2004 07:23:44 -0000
***************
*** 21,26 ****
--- 21,28 ----
  
  #include <signal.h>
  #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
  #include <sys/time.h>
  
  enum level { MAIN, OUTER, INNER, LEAF, NR_LEVELS };
Index: gdb.base/siginfo.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/siginfo.c,v
retrieving revision 1.1
diff -c -3 -p -r1.1 siginfo.c
*** gdb.base/siginfo.c	15 Apr 2004 21:14:00 -0000	1.1
--- gdb.base/siginfo.c	5 Aug 2004 07:23:44 -0000
***************
*** 19,24 ****
--- 19,25 ----
  */
  
  #include <stdio.h>
+ #include <string.h>
  #include <signal.h>
  #include <sys/time.h>
  
Index: gdb.base/sigstep.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/sigstep.c,v
retrieving revision 1.1
diff -c -3 -p -r1.1 sigstep.c
*** gdb.base/sigstep.c	21 Apr 2004 17:19:28 -0000	1.1
--- gdb.base/sigstep.c	5 Aug 2004 07:23:44 -0000
***************
*** 19,24 ****
--- 19,25 ----
  */
  
  #include <stdio.h>
+ #include <string.h>
  #include <signal.h>
  #include <sys/time.h>
  


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