[ovs-dev] [V2] ovs-sandbox: Add an option to allow running ovs-vswitchd under gdb

Ben Pfaff blp at nicira.com
Thu Feb 19 21:34:06 UTC 2015


On Thu, Feb 19, 2015 at 11:41:48AM -0800, Andy Zhou wrote:
> It is some times useful to leverage the sandbox facility to experiment
> and explore the internals of ovs-vswitchd.  Since GDB requires console
> access for user inputs, this patch launch an xterm for GDB, The main
> terminal continue to run the sub-shell as before. Exiting the sub-shell
> will also kill the ovs-vswitchd under GDB (but not GDB itself currently)
> 
> Signed-off-by: Andy Zhou <azhou at nicira.com>
> ----
> I have been making similar changes in my private tree for a while.
> It may be worth while to upstream it others can benefit as well.
> 
> Instead of launching xterm, we could probably leave the main console
> for GDB, and allow user to start another sub-shell in a separate
> terminal. However, this won't scale to multiple programs, in case
> one wants to debug both ovs-vswitchd and ovsdb-server.

Acked-by: Ben Pfaff <blp at nicira.com>



More information about the dev mailing list