diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 11537330cf..9fb8307acd 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-04-01 Pedro Alves + + * lib/gdb.exp (gdb_spawn_with_cmdline_opts): Append space to + GDBFLAGS if not empty. + 2015-04-01 Pierre-Marie de Rodat * gdb.ada/complete.exp: Remove "multi_line". diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 6b42997274..1a576c02c4 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3423,6 +3423,9 @@ proc gdb_spawn_with_cmdline_opts { cmdline_flags } { set saved_gdbflags $GDBFLAGS + if {$GDBFLAGS != ""} { + append GDBFLAGS " " + } append GDBFLAGS $cmdline_flags set res [gdb_spawn]