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

Tom Tromey tom@tromey.com
Thu Nov 29 19:18:00 GMT 2018


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



More information about the Gdb-patches mailing list