This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Heads up - Alpha ISO-C fixes
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: Re: Heads up - Alpha ISO-C fixes
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sat, 04 Mar 2000 12:16:27 +1100
- Organization: Cygnus Solutions
- References: <38BF7D8C.BE18FAAF@cygnus.com> <38C05B42.5D572D46@cygnus.com>
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);