-# Copyright 2011 Free Software Foundation, Inc.
+# Copyright 2011-2012 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
set test "skip-solib"
set srcfile_main "${test}-main.c"
-set binfile_main "${test}-test"
+set executable_main ${test}-test
+set binfile_main ${objdir}/${subdir}/${executable_main}
set srcfile_lib "${test}-lib.c"
set libname "lib${test}"
set binfile_lib ${objdir}/${subdir}/${libname}.so
return -1
}
-gdb_start
-clean_restart ${binfile_main}
+clean_restart ${executable_main}
#
# At this point, if we try to skip the file ${srcfile_lib} or the function
#
# Now restart gdb and testing ignoring of a function inside a solib.
#
-gdb_exit
-gdb_start
-clean_restart ${binfile_main}
+clean_restart ${executable_main}
gdb_test "skip function multiply" \
"Function multiply will be skipped when stepping, pending shared library load." \