[PATCH] Change pid_to_str to return std::string
Tom Tromey
tom@tromey.com
Wed Mar 13 19:49:00 GMT 2019
>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:
Tom> Currently the target pid_to_str method returns a const char *, so many
Tom> implementations have a static buffer that they update. This patch
Tom> changes these methods to return a std::string instead. I think this
Tom> is cleaner and avoids possible gotchas when calling pid_to_str on
Tom> different ptids in a single statement. (Though no such calls exist
Tom> currently.)
I'm checking this in now.
Tom
More information about the Gdb-patches
mailing list