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]

Re: [RFA] Change malloc to xmalloc


Kevin Buettner wrote:

> Also, when you change something with PTR in it, just change the ``PTR''
> to ``void *''.

It depends.  There are a uses of PTR lurking in GDB where the function
being declared/defined needs to match something in an external header. 
Something todo with mmalloc() from memory.

> [...]
> > Index: stuff.c
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/stuff.c,v
> > retrieving revision 1.2
> 
> I think you should leave stuff.c alone.  It's a stand-alone program
> that doesn't link in utils.c.  (Actually, I think stuff.c ought
> to be marked obsolete and eventually deleted.)

Hmm, yes, that has been proposed before (by someone called KevinB? :-). 
This should be added to the 5.1 TODO list so that it does actually
happen :-)

	enjoy,
		Andrew

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