This is the mail archive of the gdb@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: Memory and gdb


> I have memory management questions.  I thought the way to allocate
> memory in gdb was with xmalloc and to free it was xfree.  (At least
> that's what the internals document says).  But when I grep through
> the source, I can find xmalloc but no xfree.  When I try to link
> I get xfree multiply defined. It seems to be found in readline and
> in utils.c.   What's the proper way to free memory?

current gdb?  you may have code from the transition.

> $ grep xfree *.c | wc -l 
>      502

.



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