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 #5 from Simon Marchi <simon.marchi at ericsson dot com> ---
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".

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).

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

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