[RFA] new python features: gdb.GdbError, gdb.string_to_argv

Doug Evans dje@google.com
Sat May 22 21:19:00 GMT 2010


On Sat, May 22, 2010 at 10:57 AM, Tom Tromey <tromey@redhat.com> wrote:
> Doug> and I wanted a utility to translate the argument string into an argv.
>
> I think you can use the built-in shlex.split for this.

Depends I guess.
I remembered you saying we want to be able to write compatible
replacements for gdb commands in python, and some gdb commands use
libiberty's buildargv.
Ergo I wanted a 100% identical version of buildargv that I know I can
"just use" (e.g. without any needed extra, manual, error-prone setup),
and not worry about any differences between the behavior.

So, setting aside the implementation (i.e. maybe gdb.string_to_argv
could be implemented with shlex, or anything else), I still think
having it is reasonable.
But whatever, it's not that important.



More information about the Gdb-patches mailing list