This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

Re: [pushed][PATCH v3 1/4] Extended-remote follow exec


>>>>> "Thomas" == Thomas Schwinge <thomas@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


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