Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] debug output question

As long as you've registered to receive callbacks in the proxy when you launch the debugger (rather than a normal application), then you should be getting any output the debugger generates. You could try putting a printf at the start of server() in the SDM to see if it gets picked up.

Greg

On Oct 5, 2007, at 2:19 PM, Feiyi Wang wrote:


OK, in that case, should I be expecting that any stdout I throw in this callback function (target callback), ORTE will pick it up and send to front? I didn't see any expected processStdOutput event, say with a dummy callback. I am thinking, the target callback output is different from normal job output after all - is that right?

Feiyi


Greg Watson wrote:
You're right. I think you'll need to call MISessionRegisterTargetCallback() to register a callback (in GDBMIStartSession(), line 793 looks like a good place). This callback function should get called from DoOOBStreamCallbacks(), so you shouldn't need to do any of that AsyncCallback stuff.
Greg
On Oct 3, 2007, at 2:36 PM, Feiyi Wang wrote:
A few more questions on your previous email: he DoOOBStreamCallbacks() eventually boils down to:

if (sess-> target_callback != NULL)
    sess -> target_callback(str);


_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev




Back to the top