This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Memory and gdb
- To: gdb at sourceware dot cygnus dot com
- Subject: Memory and gdb
- From: Tim Combs <tcombs at urbana dot css dot mot dot com>
- Date: Fri, 7 Sep 2001 11:10:48 -0500
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?
Tim
Tim.Combs@motorola.com