<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 13, 2017 at 12:29 AM, Dirk Hohndel <span dir="ltr"><<a href="mailto:dirk@hohndel.org" target="_blank">dirk@hohndel.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Enthusiastic ACK.<br>
Please send pull request that shows how this would work.<br></blockquote><div><br></div><div>we just need to specify the -DCMAKE_BUILD_TYPE in the build script. this works for linux too if I'm not mistaken.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
On November 12, 2017 1:47:13 PM PST, "Lubomir I. Ivanov" <<a href="mailto:neolit123@gmail.com">neolit123@gmail.com</a>> wrote:<br>
>On 12 November 2017 at 09:22, Dirk Hohndel <<a href="mailto:dirk@hohndel.org">dirk@hohndel.org</a>> wrote:<br>
>><br>
>> On Nov 11, 2017, at 10:53 PM, Stefan Fuchs <<a href="mailto:sfuchs@gmx.de">sfuchs@gmx.de</a>> wrote:<br>
>><br>
>> I would keep posting the subsurface.exe<br>
>> When creating my own builds and testing I very often just replace the<br>
>exe to<br>
>> test <a href="http://s.th" rel="noreferrer" target="_blank">s.th</a>. because it's faster...<br>
>><br>
>><br>
>> Either way is no problem. I need to figure out how to post better<br>
>> explanations there, but that I'm pretty sure is easy to do.<br>
>><br>
><br>
>i would like to bring something up again - 3rd time is charm.<br>
>when a user reports a crash at some offset in the subsurface.exe,<br>
>there is really no straightforward way of debugging the crash.<br>
>i know that "real man" don't use debug symbols and dream in x86...but<br>
>how about we facilitate this finally for the Windows build? :-)<br>
><br>
>1) use "RelWithDebInfo":<br>
>cmake <commands> -DCMAKE_BUILD_TYPE=<wbr>RelWithDebInfo<br>
>(subsurface.exe is created with debug symbols but it's not linked to<br>
>the debug version of Qt)<br>
><br>
>2) objcopy --only-keep-debug subsurface.exe subsurface.exe.debug<br>
>(copy the debug symbols to the .debug file)<br>
><br>
>3) objcopy --strip-debug --strip-unneeded subsurface.exe<br>
>(strip the debug symbols from the .exe)<br>
><br>
>4) objcopy --add-gnu-debuglink=<wbr>subsurface.exe.debug subsurface.exe<br>
>(apply the debuglink thingy)<br>
><br>
>5) upload subsurface.exe.debug next to the Windows build (~70MB for<br>
>me) in the Github release<br>
><br>
>results:<br>
>- subsuface.exe is still a stripped down release build<br>
>- gdb subsuface.exe<br>
>reads debug symbols from the .debug file if it's in the same path as<br>
>the .exe!<br>
>- profit?<br>
><br>
>maybe i can give it a try by just creating a new Github branch and<br>
>messing with the Travis build as i don't have a MXE setup?<br>
><br>
>ACK/NAK?<br>
><br>
>lubomir<br>
>--<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
from my phone.<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.<wbr>org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-<wbr>divelog.org/cgi-bin/mailman/<wbr>listinfo/subsurface</a><br>
</div></div></blockquote></div><br></div></div>