[PD] debugging externs with gdb in Linux
Miller Puckette
msp at ucsd.edu
Thu Aug 6 23:33:39 CEST 2015
I've never succeeded at this but never tried really hard. My technique:
run -nrt
shuts up teh watchdog; and to get GDB to see the extern I just compile the
extern into Pd itself. (Add a source file to the makefile and two lines to
m_conf.c).
If soneone else knows the magic to get GDB to see symbols in a Pd extern I'd
like to hear it too.
cheers
Miller
On Thu, Aug 06, 2015 at 02:08:19PM -0700, David Medine wrote:
> Does anybody out there know how to use gdb to debug an extern in Linux? I
> have used this method:
> https://puredata.info/docs/developer/DebuggingPdExternals
> on Mac and it seems to work fine, but on my Fedora 20 system, when I run
>
> (gdb) add-symbol-file /path/to/my_extern.pd_linux
>
> I get the message
> The address where /path/to/my_extern.pd_linux has been loaded is missing
>
> and when I tab to complete on
>
> (gdb) attach pd.
>
> it hits me with 60000 completions -- apparently all the symbols in Pd.
>
> In any case, it doesn't work and when my extern crashes, pd's watchdog
> starts barking at me and I can't use the debugger.
>
> I know Miller has suggested actually building the extern into Pd and doing a
> standard debugging session, but there has got to be a better way.
> Suggestions?
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
More information about the Pd-list
mailing list