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: [patch] PR 11417


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


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