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 #6 from Domani Hannes <ssbssa at yahoo dot de> ---
(In reply to Simon Marchi from comment #5)
> Did you make a clean build?  I recall somebody on IRC a while ago that had
> the same problem, and it went away when they did a "make clean; make".
Yes, I even started from scratch again today, same result.

> Otherwise, that would be either a compiler/linker problem, or us exploiting
> an undefined behavior.  You would need to look into the generated code to
> see what happens (though if the calls to the constructor are not generated,
> it's hard to look for something that isn't there).  But if it's indeed a
> compiler/linker problem, maybe you could make a small reproducer and file a
> bug with gcc or ld (I assume you are using gcc).
I will see if I can make a small reproducer.

> As a workaround, you could try calling the constructor by hand for each
> element in _initialize_target_descriptions at the bottom of the file (this
> function is ran at startup):
> 
>   new (&tdesc_predefined_types[0]) tdesc_type_builtin ("bool",
> TDESC_TYPE_BOOL);
>   new (&tdesc_predefined_types[1]) tdesc_type_builtin ("int8",
> TDESC_TYPE_INT8);
>   ...
>   etc
Interesting idea, I might try that (tomorrow).

-- 
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]