[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ptp-dev] debug output question
|
A few more questions on your previous email: he DoOOBStreamCallbacks()
eventually boils down to:
if (sess-> target_callback != NULL)
sess -> target_callback(str);
Here, suppose str is the output I read from pseduo tty. Two questions:
(1) I don't see where an MIEvent was generated because of this callback
- should it? (2) if there is a MIEvent generated somewhere along the
line, and pass in AsyncCallback(), it is not clear which event type I
should check for this purpose: MIEventTypeBreakpointHit, WatchPoint,
SteppingRange ...
Thanks
Feiyi
f) For the moment, I suggest modifying AsyncCallback in gdbmi_backend.c
to check for this event and just print the output to stdout (see
AsyncStop for an example of how to check the event type). This *should*
get picked up by ORTE and forwarded back to Eclipse. We can work out how
to do it properly later.
Note: there are at least two ways to create psuedo terminals. The BSD
way and the SYSV way. I think Linux supports both. See the wikipedia
entry for a description. I should also be able to dig up some sample
code if you'd like.
2) No. You can attach gdb to the running process, but it's tricky to
know which one. I usually just run the whole SDM on my local machine and
observe stdout.
Let me know if you need more info.
Greg
On Oct 2, 2007, at 11:28 AM, Feiyi Wang wrote:
On my 2nd question, both orte proxy and sdm can be attached by having
appropriate debug configuration. However, how gdb/mi layer handle
program stdio is not clear to me yet - any help?
Feiyi
Feiyi Wang wrote:
Greg -
I have made changes to debug_app_job_state_callback to register IO
forwarding callback, but I didn't see output being sent back to the
front. So the next step of investigation would be to check if the
backend (gdb/mi) is send the message back if I understand this
correct. Two questions: (1) can you provide any pointers on where I
should be looking at (2) is there any way I could set up eclipse
debugger to hook into orte proxy and sdm process?
Thanks
Feiyi
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev