[PD-dev] debugging pd with gdb or ddd
Hans-Christoph Steiner
hans at eds.org
Sat May 27 00:01:26 CEST 2006
On May 26, 2006, at 11:33 PM, Georg Holzmann wrote:
> Hallo!
>
>> 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.
>
> hm ... you could try:
>
> break function(types)
>
> think this should work ...
So luck there. This didn't work:
(gdb) break hid_anything(t_hid *x, t_symbol *s, t_int argc, t_atom
*argv)
Function "hid_anything(t_hid *x, t_symbol *s, t_int argc, t_atom
*argv)" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (hid_anything(t_hid *x, t_symbol *s, t_int argc, t_atom
*argv)) pending.
(gdb) run
Neither did this, even tho it found the function:
(gdb) break post
Breakpoint 1 at 0x765c4: file s_print.c, line 51.
(gdb) run
Starting program: /Users/hans/cvs/pure-data/pd-0.39-2/bin/pd
Reading 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 at eds.org>
compiled on May 26 2006 at 23:31:06
Device 0: 'Apple' 'Keyboard' version 0
cstrDeviceName: Keyboard
usage page: 0x0001 usage: 0x0006
vendorID: 0x05ac productID: 0x0000
locID: 0x02c30000
Device 1: 'Apple' 'Trackpad' version 0
cstrDeviceName: Mouse
usage page: 0x0001 usage: 0x0002
vendorID: 0x05ac productID: 0x0000
locID: 0x03010000
Device 2: 'Microsoft' 'Microsoft 5-Button Mouse with IntelliEye(TM)'
version 768
cstrDeviceName: Mouse
usage page: 0x0001 usage: 0x0002
vendorID: 0x045e productID: 0x0039
locID: 0x19100000
All of that text is from post() functions...
.hc
________________________________________________________________________
____
¡El pueblo unido jamás será vencido!
More information about the Pd-dev
mailing list