<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>After starting gdb --args etc. as in your example, and after
      calling run I get this:</p>
    <p>[Thread debugging using libthread_db enabled]<br>
      Using host libthread_db library "/lib64/libthread_db.so.1".<br>
      Detaching after fork from child process 3889.<br>
      [New Thread 0x7ffff61ff700 (LWP 3891)]<br>
    </p>
    <p>(Pd is on PID 3888 in this case)<br>
    </p>
    <br>
    and there is no gdb prompt. If I put a break point in before I hit
    'run' I get the same, and the process doesn't break, even though the
    function I wanted to break is surely called.<br>
    <br>
    <div class="moz-cite-prefix">On 04/12/2018 12:19 PM, IOhannes m
      zmölnig wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:d200dc45-e8db-6965-5a66-7c4f512fdf33@iem.at">
      <pre wrap="">On 04/12/2018 11:18 AM, David Medine wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">@Miller, no I hadn't. Thanks! I knew there was something like that I had
neglected. Now I am able to debug with gdb.

@iohannes, I am still having trouble with this technique. If I run Pd
from the gdb prompt (with -nrt and -stderr) and a break point within the
extern (meaning object not compiled into pd) nothing happens when I run
the function where I want to break. 
</pre>
      </blockquote>
      <pre wrap="">
but the breakpoint gets resolved correctly?
e.g. after a warm-up run, setting the breakpoint yields an address:

$ gdb --args pd  -nrt -stderr -lib zexy ./reference/tabdump-help.pd
[...]
(gdb) run
[...]
(gdb) break tabdump_bang
Breakpoint 1 at 0x7ffff5cb6730: file tabdump.c, line 33.
(gdb) run
[ ...send "bang" to tabdump... ]
Thread 1 "pd" hit Breakpoint 1, tabdump_bang (x=0x555555971ef0) at
tabdump.c:33
33      {
(gdb) print(x)
$1 = (t_tabdump *) 0x555555971ef0
(gdb)

gfdsmrt
IOhannes

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>