[PATCH PR gdb/20057] Internal error on trying to set {char[]}$pc="string"
Tom Tromey
tom@tromey.com
Fri Nov 30 15:37:00 GMT 2018
>>>>> ">" == 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
More information about the Gdb-patches
mailing list