<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello Костадин,<br>
<br>
gdb's "exec-wrapper" option should help you.<br>
<br>
BR,<br>
Martin<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF913944" style="direction: ltr;"><font size="2" color="#000000" face="Tahoma"><b>From:</b> Devel [devel-bounces@lists.sailfishos.org] on behalf of Костадин Дамянов [maxmight@gmail.com]<br>
<b>Sent:</b> Sunday, January 22, 2017 8:45 PM<br>
<b>To:</b> devel@lists.sailfishos.org<br>
<b>Subject:</b> [SailfishDevel] Debugging a segmentation fault<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hello.<br>
<br>
</div>
I am trying to build a project that is not developed in Sailfish IDE.<br>
</div>
I managed to build in the SDK VM and deploy it on the emulator VM.<br>
<br>
</div>
My problem is that the app segfaults on startup and I do not know how to debug the crash.<br>
</div>
One way to launch it is by running<br>
<br>
</div>
xdg-open /usr/shared/applications/harbour-<application>.desktop<br>
<br>
</div>
It starts loading the application and it crashes at start so I have no time to attach gdb.<br>
</div>
My question is: is there a way to start the app in such a way as to connect gdb.<br>
</div>
Is it possible to connect gdb remotely?<br>
</div>
</div>
</div>
</div>
</body>
</html>