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

Tom Tromey
2018-11-29T19:18:30Z

>>>>> ">" == Wei-min Pan <weimin.pan@oracle.com> writes:

>> Problem is copy_type will assert on to-be-copied type which does not
>> have an
>> associated objfile. It doesn't matter if the type is entirely arch-owned.

I didn't follow this thread in too much detail, but FWIW I believe the
rule is that an objfile-owned type can refer to a gdbarch-owned type --
but not vice versa.

Following that it seems to me that there should not be a need to call
copy_type on a gdbarch-owned type. So maybe that can be avoided,
instead of removing the assert?

Tom