[PD-dev] debugging pd with gdb or ddd
Hans-Christoph Steiner
hans at eds.org
Mon May 29 00:38:56 CEST 2006
On May 28, 2006, at 9:21 PM, Tim Blechmann wrote:
> On Sun, 2006-05-28 at 00:39 +0200, Hans-Christoph Steiner wrote:
>>>> Get ready to laugh... when I need to run gdb on an extern, I just
>>>> link
>>>> the thing into Pd, debug it, and then take it back out. Easier
>> than
>>>> figuring out how to get gdb to see dlopen()-ed code...
>>>
>>> type this in gdb:
>>>
>>> add-symbol-file my_blah.pd_linux
>>>
>>> it's the second line when you type this other gdb command:
>>>
>>> help files
>>
>> You win the prize!!!
>
> it should be possible to run an embedded gdb in about every editor,
> that's designed for writing source code ...
> i've been running gdb within emacs and eclipse and i guess, other
> ide's
> like vi(m), kdevelop offer similar features (well, maybe not nano or
> pico)
> setting a breakpoint in emacs/gud is as simple as typing C-x
> space ....
I started a wiki page to start documenting this and filled in my
session. More info would be greatly appreciated.
http://puredata.org/docs/developer/UsingGdbToDebugPdExternals
.hc
________________________________________________________________________
____
As we enjoy great advantages from inventions of others, we should
be glad of an opportunity to serve others by any invention of ours;
and this we should do freely and generously.
- Benjamin Franklin
More information about the Pd-dev
mailing list