This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [python] [patch] PR python/13345
- From: Tom Tromey <tromey at redhat dot com>
- To: pmuldoon at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 01 Nov 2011 11:12:57 -0600
- Subject: Re: [python] [patch] PR python/13345
- References: <m37h3lupk2.fsf@redhat.com>
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
Phil> 2011-10-31 Phil Muldoon <pmuldoon@redhat.com>
Phil> PR Python/13345
Phil> * python/python.c (python_run_simple_file): Expand tilde in path.
Phil> + python_file = PyFile_FromString (full_path, "r");
Phil> + if (! python_file)
Phil> + {
Phil> + do_cleanups (cleanup);
Phil> + gdbpy_print_stack ();
Phil> + error (_("Error sourcing Python file"));
I think the error should say "Error while opening file: %s"
and have the file name.
Ok with that change.
Tom