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: [RFA] new python features: gdb.GdbError, gdb.string_to_argv


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.


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