This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] new python features: gdb.GdbError, gdb.string_to_argv
- From: Tom Tromey <tromey at redhat dot com>
- To: dje at google dot com (Doug Evans)
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 22 May 2010 11:57:32 -0600
- Subject: Re: [RFA] new python features: gdb.GdbError, gdb.string_to_argv
- References: <20100522165438.5D5A48439A@ruffy.mtv.corp.google.com>
- Reply-to: tromey at redhat dot com
>>>>> "Doug" == Doug Evans <dje@google.com> writes:
Doug> While writing some gdb commands in python I needed to be able to
Doug> flag users errors without causing a traceback to be printed,
This part seems reasonable.
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.
Doug> + (void) make_cleanup (xfree, msg);
I'd prefer us not to use casts to void. I think they are just noise.
Tom