This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
some const char * trivia
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 03 Jun 2003 16:40:45 -0400
- Subject: some const char * trivia
I got slightly carried away with trying to eliminate some
-Wwrite-strings errors. I'm trying to put the resultant mess on
cagney_writestrings-20030508-branch. Anyway, I learnt two things:
- the cli callbacks cause much grief
An incremental approach where a new call back function signature (that
took a const char *) was introduced might make that transition easier.
- strtol(const char *, char **, int base) is a pain
Perhaphs something like:
LONGEST strtolongest (const char *b, const char **p, int base);
would be useful.
Andrew