This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |