Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] Adding a Target....

I'm not sure about one thing, the extension of cdi.CTarget, could you
not just attach to the target when you were creating the session in
XtGDB.createCSession() ?

Assuming I understand the question: Yes you could as long as no one else is invoking restart.

I thought of that, but I didn't because of personal ignorance. There's a lot of code that I don't know. Sending an exec-run to our the MP simulator after attaching is bad and that means restart() in CTarget was destructive if it got invoked. I was not clear what menu item or other thing might get a hold of the target and send a restart and was I concerned that just attaching in the session would leave some hole.

If restart will only ever be called by the createCSession call, or resume under createCSession, then that's a much better way to do it.

Thanks!
-Chris



Back to the top