[patch][python] Auto-load gdb.command and gdb.function modules

Tom Tromey tromey@redhat.com
Thu Aug 4 18:59:00 GMT 2011


>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:

Phil> +       py_file = py_file.rstrip('.py')

The argument to rstrip is a set of characters; I think this will do the
wrong thing for, e.g., "p.py".
You can just use py_file[:-3] instead.
The code bits are ok with that change.

Tom



More information about the Gdb-patches mailing list