>>>>> "Thomas" == Thomas Schwinge <tho...@codesourcery.com> writes:
Thomas> + struct cleanup *old_chain = make_cleanup (xfree, pathname); Please don't add new cleanups to gdb. We're in the process of removing them all. Instead you can use gdb::unique_xmalloc_ptr<char>, or std::string, or a std::vector of some flavor. thanks, Tom