print expr or eval expr and memory usage

Benedikt Penner benedikt.penner@gmx.de
Tue Feb 15 19:58:00 GMT 2011


Hi at all,
i have a little question to you.
If i use "print expr" to execute a non void function which for example returns a char *, what happens with the allocated memory? Do i have to free it using gdb?

Thanks a lot!



More information about the Gdb mailing list