This question has been asked in the past, but not really answered, at least as far as I can find.
Can anyone give a brief HOWTO for using ddd or gdb with Pd?
.hc
________________________________________________________________________ ____
If you are not part of the solution, you are part of the problem. - Eldridge Cleaver
On 26 May 2006, at 19:48, Hans-Christoph Steiner wrote:
Can anyone give a brief HOWTO for using ddd or gdb with Pd?
I realise this is -too- basic, perhaps, but...
I use GDB by simply calling gdb from a shell, or from emacs. Then running pd form either /usr/local/lib/pd/bin/pd (or similar) or from within the Pd.app (in OSX) is simply a matter or giving gdb the pd program as a flag, such as:
'gdb bin/pd'
The last message should read:
"This GDB was configured as "powerpc-apple-darwin"...Reading symbols for shared libraries ....... done"
Then you can call:
'run'
And you should see something like:
<snip> (gdb) run Starting program: /Applications/Pd.app/Contents/Resources/bin/pd Reading symbols for shared libraries ........done Pd version 0.39-2extended-test1 </snip>
Once you see: "compiled 01:26:33 Feb 27 2006"
Pd should then start, and gdb should give you nice output...
(sorry if all this is obvious)
d
On May 26, 2006, at 9:12 PM, David Plans Casal wrote:
On 26 May 2006, at 19:48, Hans-Christoph Steiner wrote:
Can anyone give a brief HOWTO for using ddd or gdb with Pd?
I realise this is -too- basic, perhaps, but...
I use GDB by simply calling gdb from a shell, or from emacs. Then running pd form either /usr/local/lib/pd/bin/pd (or similar) or from within the Pd.app (in OSX) is simply a matter or giving gdb the pd program as a flag, such as:
'gdb bin/pd'
The last message should read:
"This GDB was configured as "powerpc-apple-darwin"...Reading symbols for shared libraries ....... done"
Then you can call:
'run'
And you should see something like:
<snip> (gdb) run Starting program: /Applications/Pd.app/Contents/Resources/bin/pd Reading symbols for shared libraries ........done Pd version 0.39-2extended-test1 </snip>
Once you see: "compiled 01:26:33 Feb 27 2006"
Pd should then start, and gdb should give you nice output...
(sorry if all this is obvious)
d
Ok, that's a start, I've gotten that far before. I want to be able to set breakpoints in the functions of my object. But when I do this:
(gdb) break hid_free Function "hid_free" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (hid_free) pending. (gdb) run Starting program: /Users/hans/cvs/pure-data/pd-0.39-2/bin/pd EMACSCLIENTReading symbols for shared libraries .............................................................. .... done Reading symbols for shared libraries .. done Reading symbols for shared libraries . done [hid] 0.7, written by Hans-Christoph Steiner hans@eds.org compiled on May 26 2006 at 21:38:09 pddp/pddp_open all_about_hid ... couldn't create hid_free hid_close stop_poll hid_close_device error: [hid]: no such device, "0", only 0 devices found
[hid] closed device -1073754448 hid_platform_specific_free RELEASE ALL hid_instance_count: 0
It doesn't break when hid_free() is called.
.hc
________________________________________________________________________ ____
News is what people want to keep hidden and everything else is publicity.
- Bill Moyers