Memory and gdb
Andrew Cagney
ac131313@cygnus.com
Fri Sep 7 10:23:00 GMT 2001
> 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
.
More information about the Gdb
mailing list