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/complex.c: #include <stdlib.h>


Last #include patch for the night.

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

I am committing this now,

Michael C

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

	* gdb.base/complex.c: Include <stdlib.h>.

Index: gdb.base/complex.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/complex.c,v
retrieving revision 1.2
diff -c -3 -p -r1.2 complex.c
*** gdb.base/complex.c	5 Aug 2004 00:53:01 -0000	1.2
--- gdb.base/complex.c	5 Aug 2004 00:54:43 -0000
***************
*** 1,4 ****
! /* Copyright 2002, 2003
     Free Software Foundation, Inc.
  
     This file is part of GDB.
--- 1,4 ----
! /* Copyright 2002, 2003, 2004
     Free Software Foundation, Inc.
  
     This file is part of GDB.
***************
*** 21,26 ****
--- 21,28 ----
  /* Test taken from GCC.  Verify that we can print a structure containing
     a complex number.  */
  
+ #include <stdlib.h>
+ 
  typedef __complex__ float cf;
  struct x { char c; cf f; } __attribute__ ((__packed__));
  struct unpacked_x { char c; cf f; };


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