This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] PR 11417
- From: Tom Tromey <tromey at redhat dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Tue, 30 Mar 2010 12:05:43 -0600
- Subject: Re: [patch] PR 11417
- References: <4BB20EC0.10500@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
Phil> - if (address == 0)
Phil> - {
Phil> - PyErr_SetString (PyExc_MemoryError,
Phil> - "Cannot create a lazy string from a GDB-side string.");
Phil> - return NULL;
Phil> - }
I agree that we should change lazy_string to be like string here.
However, I think we should only allow a NULL lazy_string with length==0.
Other situations don't really make sense.
This also needs a test case.
thanks,
Tom