-# Copyright 2004, 2007, 2008 Free Software Foundation, Inc.
+# Copyright 2004-2016 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# This is a test for the gdb invocation option -l.
-if $tracelevel then {
- strace $tracelevel
-}
-
global GDBFLAGS
-# Skip test if target does not support argument passing.
-if [target_info exists noargs] {
- return;
-}
-
#
# Test that -l is processed correctly.
#
set old_gdbflags $GDBFLAGS
-set GDBFLAGS "-l 42"
+set GDBFLAGS "$GDBFLAGS -l 42"
gdb_exit
gdb_start
gdb_test "show remotetimeout" \