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

Tom Tromey
2018-11-30T15:37:48Z

>>>>> ">" == 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,
Tom