[patch] PR 11417
Tom Tromey
tromey@redhat.com
Tue Mar 30 18:05:00 GMT 2010
>>>>> "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
More information about the Gdb-patches
mailing list