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


>>>>> "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


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