This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 0/3] preparation for command constification; cleanup removal
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 10 Sep 2017 18:33:22 -0600
- Subject: [RFA 0/3] preparation for command constification; cleanup removal
- Authentication-results: sourceware.org; auth=none
In addition to the removal of cleanups, I've also long wanted to clean
up gdb by changing commands to take a "const char *".
With C++ this is simpler to do now, because we can use overloading to
minimize the neede code changes. To that end, the first patch in this
series renames some functions so we can take advantage of overloading
in the future.
The second patch is a minor constification patch in preparation for
the third patch.
The third patch changes extract_arg to return a std::string, which
allows for some cleanup removal.
Regression tested by the buildbot.
Tom