-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The latest crashpad broke the mingw64 build #744
Comments
I think this has to ideally be fixed upstream by pulling in updated header definitions. I’m not entirely sure if mingw ships its own copy of the windows headers, or if we have to work around this in crashpad as we do for other mingw specific issues. |
Yep, MinGW has their own implementation of WinAPI headers.
We can supply definitions inside |
Status changed based on the above. Feel free to update as needed! |
From a quick look, it appears that all that is missing is something like: #if defined(__MINGW32__) || defined(__MINGW64__)
//! \brief Contains the name of the thread with the given thread ID.
struct __attribute__((packed, aligned(4))) MINIDUMP_THREAD_NAME {
//! \brief The identifier of the thread.
uint32_t ThreadId;
//! \brief RVA64 of a MINIDUMP_STRING containing the name of the thread.
RVA64 RvaOfThreadName;
};
//! \brief Variable-sized struct which contains a list of MINIDUMP_THREAD_NAME
//! structs.
struct __attribute__((packed, aligned(4))) MINIDUMP_THREAD_NAME_LIST {
//! \brief The number of MINIDUMP_THREAD_NAME structs following this field.
uint32_t NumberOfThreadNames;
//! \brief A variably-sized array containing zero of more
//! MINIDUMP_THREAD_NAME.
//! The length of the array is indicated by the NumberOfThreadNames field
//! in this struct.
struct MINIDUMP_THREAD_NAME ThreadNames[0];
};
#endif |
@supervacuus @Swatinem: I've opened a PR in the sentry crashpad repo to fix this: getsentry/crashpad#78 |
Thx, @past-due! I will try to have a look at it this week but it might be next week. |
The commit in crashpad:
cause the
unknown type name 'MINIDUMP_THREAD_NAME_LIST'
compile error so the Mingw64 as instruction in README.md won't build anymoreThe text was updated successfully, but these errors were encountered: