Re: [PATCH PR gdb/20057] Internal error on trying to set {char[]}$pc="string"

Wei-min Pan
2018-11-30T17:31:57Z

On 11/30/2018 7:37 AM, Tom Tromey wrote:
>>>>>> ">" == Wei-min Pan <weimin.pan@oracle.com> writes:
>>> Let's use an example:
>>> (gdb) p {char []}$pc
>>> if the element type "char" is defined in the program, i.e. it has an
>>> objfile, lookup_array_range_type sets the "index type" with that
>>> objfile's builtin_int.
> Thanks.
>
>>> Both resolve_dynamic_array and resolve_dynamic_range call copy_type to
>>> allocate a type and yes modify it to represent a static version of the array
>>> type from lookup_array_range_type() above.
> Ok, I see. Removing the assertion does seem ok then.

Thanks for your review.

>
> thanks,
> Tom