mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 01:51:26 +00:00
ovs-sandbox: Tell gdb to start the daemon.
The current gdb support launches gdb but doesn't start the daemon. If you start ovsdb-server with gdb, ovs-sandbox produces an error as it tries to run ovs-vsctl before ovsdb-server is running. Telling gdb to start the daemon immediately avoids this error. There are cases where it's useful to go straight to the gdb prompt, too. For example, someone may want to set a breakpoint. In that case, it's easy enough to just kill it, set a breakpoint, and execute 'run' again. In passing, fix indentation to use spaces instead of tabs. Signed-off-by: Russell Bryant <rbryant@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
parent
4207d631d4
commit
fdc14c7b33
@ -35,8 +35,8 @@ rungdb() {
|
||||
# Use "DISPLAY" variable to determine out if X is supported
|
||||
if $under_gdb && [ "$DISPLAY" ]; then
|
||||
args=`echo $@ |sed s/--detach//g | sed s/--vconsole:off//g`
|
||||
xterm_title=$1
|
||||
run_xterm $xterm_title gdb --args $args
|
||||
xterm_title=$1
|
||||
run_xterm $xterm_title gdb -ex run --args $args
|
||||
else
|
||||
run $@
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user