Build the Linux dump_syms for Windows with MinGW#20
Conversation
|
When running it on Wine I get: So maybe it fails on some |
78ae084 to
05f7742
Compare
|
It now works. It was a mistake with flags in the When generating symbol files with the Linux native |
05f7742 to
dffe3ab
Compare
| } | ||
|
|
||
| if (len) { | ||
| return resolved; |
There was a problem hiding this comment.
This test looks useless! 😅️
dffe3ab to
0ba693b
Compare
|
So, after having rebased the code over: I symbolized a |
0ba693b to
6cd2cb2
Compare
|
Actually merging this would make far easier to solve some merge conflicts from: Because then we can revert 4678e20: So even if “this code isn't doing anything for us anyhow”, the specialization of the code is generating annoying conflicts. |
|
Anyway, since that's just a copy of the Linux
|
6cd2cb2 to
48d9427
Compare
|
MinGW is now building |
|
Today I learnt that we cannot even build Windows' |
Build the Linux
dump_symsfor Windows with MinGW.I have not tested if it works, I only tested the build for now (on Linux).
How to build:
You then get:
It makes possible to symbolize NaCl nexe binaries on Windows.
I guess the same can be done for macOS.
Disclaimer: I was assisted by ChatGPT when I was writing and debugging the
posix_compat.hfile, this was done through a discussion with the bot, by explaining the various shortcomings I was facing in my trial and error attempts. For example when I pushed the branch at first there was still a mistake and the tool didn't do anything despite building successfully. After extensive debugging (I even found a bug unrelated to this patch, I'll report) ChatGPT identified the mistake in themmap()compatibility wrapper. The bot also suggested API conversion advises and short snippets I had to adapt in the making of those wrappers. The chat bot didn't have access to the repository (neither read, neither write) and only answered my questions based on my descriptions and its general knowledge of upstream breakpad and APIs from Linux, Windows and MinGW. Once the patch was ready I pasted the diff in the bot conversation and the chat bot identified some shortcomings like redundant things I cleaned-up.