This is the mail archive of the gdb-prs@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]

[Bug win32/22757] internal-error: Register "eax" has an unknown type "int32"


https://sourceware.org/bugzilla/show_bug.cgi?id=22757

--- Comment #2 from Domani Hannes <ssbssa at yahoo dot de> ---
Seems to be a problem on my side.

It looks like this variable initialization doesn't work:
> static tdesc_type_builtin tdesc_predefined_types[] =
> {
>   { "bool", TDESC_TYPE_BOOL },
>   { "int8", TDESC_TYPE_INT8 },
>   { "int16", TDESC_TYPE_INT16 },
>   { "int32", TDESC_TYPE_INT32 },
>   { "int64", TDESC_TYPE_INT64 },
>   { "int128", TDESC_TYPE_INT128 },
>   { "uint8", TDESC_TYPE_UINT8 },
>   { "uint16", TDESC_TYPE_UINT16 },
>   { "uint32", TDESC_TYPE_UINT32 },
>   { "uint64", TDESC_TYPE_UINT64 },
>   { "uint128", TDESC_TYPE_UINT128 },
>   { "code_ptr", TDESC_TYPE_CODE_PTR },
>   { "data_ptr", TDESC_TYPE_DATA_PTR },
>   { "ieee_single", TDESC_TYPE_IEEE_SINGLE },
>   { "ieee_double", TDESC_TYPE_IEEE_DOUBLE },
>   { "arm_fpa_ext", TDESC_TYPE_ARM_FPA_EXT },
>   { "i387_ext", TDESC_TYPE_I387_EXT }
> };
It's empty in runtime:
> (gdb) p tdesc_predefined_types[0]@10
> $6 = {{<tdesc_type> = {<tdesc_element> = {_vptr.tdesc_element = 0x0}, name = {static npos = 4294967295,
>         _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x0}, _M_string_length = 0,
>         {_M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0}}, kind = TDESC_TYPE_BOOL}, <No data fields>},
>   {<tdesc_type> = {<tdesc_element> = {_vptr.tdesc_element = 0x0}, name = {static npos = 4294967295,
>         _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x0}, _M_string_length = 0,
>         {_M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0}}, kind = TDESC_TYPE_BOOL}, <No data fields>},
>   {<tdesc_type> = {<tdesc_element> = {_vptr.tdesc_element = 0x0}, name = {static npos = 4294967295,
>         _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x0}, _M_string_length = 0,
>         {_M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0}}, kind = TDESC_TYPE_BOOL}, <No data fields>},
>   {<tdesc_type> = {<tdesc_element> = {_vptr.tdesc_element = 0x0}, name = {static npos = 4294967295,
>         _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x0}, _M_string_length = 0,
>         {_M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0}}, kind = TDESC_TYPE_BOOL}, <No data fields>},
>   {<tdesc_type> = {<tdesc_element> = {_vptr.tdesc_element = 0x0}, name = {static npos = 4294967295,
>         _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x0}, _M_string_length = 0,
>         {_M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0}}, kind = TDESC_TYPE_BOOL}, <No data fields>},
>   {<tdesc_type> = {<tdesc_element> = {_vptr.tdesc_element = 0x0}, name = {static npos = 4294967295,
>         _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x0}, _M_string_length = 0,
>         {_M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0}}, kind = TDESC_TYPE_BOOL}, <No data fields>},
>   {<tdesc_type> = {<tdesc_element> = {_vptr.tdesc_element = 0x0}, name = {static npos = 4294967295,
>         _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x0}, _M_string_length = 0,
>         {_M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0}}, kind = TDESC_TYPE_BOOL}, <No data fields>},
>   {<tdesc_type> = {<tdesc_element> = {_vptr.tdesc_element = 0x0}, name = {static npos = 4294967295,
>         _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x0}, _M_string_length = 0,
>         {_M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0}}, kind = TDESC_TYPE_BOOL}, <No data fields>},
>   {<tdesc_type> = {<tdesc_element> = {_vptr.tdesc_element = 0x0}, name = {static npos = 4294967295,
>         _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x0}, _M_string_length = 0,
>         {_M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0}}, kind = TDESC_TYPE_BOOL}, <No data fields>},
>   {<tdesc_type> = {<tdesc_element> = {_vptr.tdesc_element = 0x0}, name = {static npos = 4294967295,
>         _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x0}, _M_string_length = 0,
>         {_M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0}}, kind = TDESC_TYPE_BOOL}, <No data fields>}}
I'm not sure how I broke this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]