Re: [PD] debugging externs with gdb in Linux

2015-08-07 Thread David Medine

As it turns out, in this case

(gdb) run -nrt

did the trick, without having to compile the extern into Pd. However, 
the symbols that I am concerned with and looking at are not actually in 
my extern but rather are in a dynamic library that the extern loads. 
This may be why it 'just works'. In anycase, the debugger can show me 
what I want to see. Thanks!


On 8/6/2015 2:33 PM, Miller Puckette wrote:

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 6 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@lists.iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Raspberry - Arduino - Serial trouble

2015-08-07 Thread Pierre Desprats

Hi,

I'm having some trouble with the serial connection between Raspberry Pi 
2 and PD.


I use [comport] on Pd vanilla 0.46.6.

The [devices( message show my raspberry, but when i open the connection, 
PD freeze.


For the moment, it works only if, before trying to open something 
on comport, I upload a program on the arduino using the IDE.


After the upload, everything works great.

I told myself it was an initialization issue. I tried those two fixes :

http://www.hobbytronics.co.uk/raspberry-pi-serial-port
http://elinux.org/RPi_Serial_Connection#Connection_to_a_microcontroller_or_other_peripheral

But still, PD Freeze.

Anyone has an idea,

Pierre DOUX.

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list