On Tue, Nov 17, 2009 at 12:55:30PM -0600, Nicolas Williams wrote:
> On Tue, Nov 17, 2009 at 07:57:03PM +0100, Klaus Espenlaub wrote:
> > Nicolas Williams wrote:
> > >I'm interested in writing a GDB remote debug protocol adapter for the
> > >VBox debugger.  I've successfully used the 'runscript' command to read
> > >commands from a pipe.
> > >
> > >Now I just need a way to redirect or log the debugger output where I can
> > >get at it.  How would I do that?  The log/logdest/logflags commands look
> > >potentially useful for this, but it's utterly unclear how to use them.
> > >
> > >Even better would be a way to get the debugger command-line to attach to
> > >a pipe, pty master or files directly (i.e., without a window).
> > >
> > >Any ideas?
> > 
> > You could enable the TCP support in the debugger and connect that way. 
> > The extradata key should be "VBoxInternal/DBGC/Enabled" - set it to 1. 
> > You can change the port (.../Port, defaults to 5000) and the listen 
> > address (.../Address) as well of course. The debugger will be not 
> > enabled (silently) if the port number collides with already running apps.
> 
> I'll try this later today.  Thanks!

Well, I wrote a fair bit of a bridge (well, get registers, + related
infrastructure; the rest should be fairly easy), but...

I've run into a near fatal problem, I think: guest control via stop, g,
t and bp/bc is not working properply.  I can stop and contiune a guest,
but stepping doesn't work, and breakpoints are unusable.

For example, say I stop a guest, set a breakpoint at the current
instruction, then either step or continue, then... well, the VM stops,
but a) without any indication from the debugger (!) and b) with no way
to recover other than resetting the machine (clearing the breakpoint
with bc and then continuing doesn't cause the guest to resume
execution).

Given only stop and continue I can still have a somewhat usable GDB
experience, but with no breakpoints and no stepping.  Good enough for
stopping the world and poking around, but that's it.

Any ideas as to (a) and (b)?

Nico
-- 

_______________________________________________
vbox-users mailing list
vbox-users@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to