<div dir="ltr">Hey Marco,<div><br></div><div>If you have Xcode installed try the following:</div><div><br></div><div><p style="margin:0px;font-size:12px;font-family:Helvetica">1. Build the external</p>
<p style="margin:0px;font-size:12px;font-family:Helvetica">2. Launch Pd </p>
<p style="margin:0px;font-size:12px;font-family:Helvetica">3. In Xcode: Debug > Attach to process > Pd (pid) (not pd with icon but pd in the latter half of list, Pd runtime)</p>
<p style="margin:0px;font-size:12px;font-family:Helvetica">4. Open Patch that contains your freshly built external</p><p style="margin:0px;font-size:12px;font-family:Helvetica"><br></p><p style="margin:0px;font-size:12px;font-family:Helvetica">Cheers,</p><p style="margin:0px;font-size:12px;font-family:Helvetica">Joe</p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 June 2015 at 16:47, Marco Matteo Markidis <span dir="ltr"><<a href="mailto:mm.markidis@gmail.com" target="_blank">mm.markidis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Iohannes,<br><br>thank you. On Mac I do:<br>$ lldb -- /Applications/Pd.app/Contents/MacOS/Pd -stderr -nrt -nosound -lib vpdelay~-help.pd <br>$ (lldb) target create "/Applications/Pd.app/Contents/MacOS/Pd"<div>$ Segmentation fault: 11</div><div>without making the run command. I tried even with other Pd stuff and I always get this problem. From Console I see that it's an EXC_BAD_ACCESS (SIGSEGV). </div><div>I am using the latest version of Pd Vanilla (0.46.6) for Mac 64 bit on Mac Yosemite.</div><div><br></div><div>Best regards,</div><div>Marco</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2015-06-11 17:17 GMT+02:00 IOhannes m zmoelnig <span dir="ltr"><<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><span>On 2015-06-11 14:42, Marco Matteo Markidis wrote:<br>
> As I know, gdb is no more present in Mac. I think it was substituted by<br>
> lldb.<br>
> Anyway, on gdb what is the correct syntax in order to launch your external?<br>
<br>
</span>you cannot "launch" an external.<br>
anyhow:<br>
<br>
on linu x i use:<br>
$ gdb --args pd -stderr -nrt -nosound -lib /path/to/external test.pd<br>
(gdb) run<br>
[...run-until-crash...]<br>
(gdb) bt<br>
<br>
on OSX you need to specify the full path to the actual Pd-binary .<br>
the important Pd-flags are: "-nrt" (if you don't want to clutter your<br>
gdb console with "pd-watchdog: signalling...") and "-stderr" (in case<br>
you print something important before the crash)<br>
<br>
fgmasdr<br>
<span><font color="#888888">IOhannes<br>
</font></span><br>
PS: btw, check your args and the return value (or rather: whether the<br>
offset of the t_int* is correct) in the perform routine.<br>
<br>
<br>
<br></div></div><span class="">_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></span></blockquote></div><br></div>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>