Also give the indication on how to use vgdb when --vgdb-stop-at is given
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13919 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_gdbserver/remote-utils.c b/coregrind/m_gdbserver/remote-utils.c
index 9de8d99..1455ae6 100644
--- a/coregrind/m_gdbserver/remote-utils.c
+++ b/coregrind/m_gdbserver/remote-utils.c
@@ -279,7 +279,8 @@
pid);
}
if (VG_(clo_verbosity) > 1
- || VG_(clo_vgdb_error) < 999999999) {
+ || VG_(clo_vgdb_error) < 999999999
+ || VG_(clo_vgdb_stop_at) != 0) {
VG_(umsg)("\n");
VG_(umsg)(
"TO DEBUG THIS PROCESS USING GDB: start GDB like this\n"
diff --git a/gdbserver_tests/nlgone_exit.stderr.exp b/gdbserver_tests/nlgone_exit.stderr.exp
index 625adc0..ec9ce0d 100644
--- a/gdbserver_tests/nlgone_exit.stderr.exp
+++ b/gdbserver_tests/nlgone_exit.stderr.exp
@@ -1,6 +1,8 @@
Nulgrind, the minimal Valgrind tool
(action at startup) vgdb me ...
+
+
starting ...
exiting ...
(action at exit) vgdb me ...