This is the mail archive of the gdb-patches@sourceware.cygnus.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]

Re: Heads up - Alpha ISO-C fixes


Andrew Cagney wrote:
> 
> FYI,
> 
> The attatched patch:
> 
>         o       purges PTR from the make_cleanup stuff
> 
>         o       documents a problem with casting
>                 function pointers when calling make_cleanup()
> 
>         o       makes the function type def signature
>                 consistent with other typedefs.
> 

Attatched is the errata to this change :-(

	Andrew
Sat Mar  4 10:57:25 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	utils.c (null_cleanup): Replace PTR with void*.
  	
Index: gdb/defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.7
diff -p -r1.7 defs.h
*** defs.h	2000/03/04 01:05:48	1.7
--- defs.h	2000/03/04 01:11:37
*************** extern void restore_my_cleanups (struct 
*** 334,340 ****
  
  extern void free_current_contents (char **);
  
! extern void null_cleanup (PTR);
  
  extern int myread (int, char *, int);
  
--- 334,340 ----
  
  extern void free_current_contents (char **);
  
! extern void null_cleanup (void *);
  
  extern int myread (int, char *, int);
  

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