Implement pahole-like 'ptype /o' option
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / code-expr.exp
index 50a892915fdeb7e7933b0d921f5ca95c098e641a..56868c3dd675c60d60445a31e376416c1d76c7fb 100644 (file)
@@ -1,4 +1,4 @@
-#   Copyright (C) 2001, 2007, 2008, 2009 Free Software Foundation, Inc.
+#   Copyright (C) 2001-2017 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 file is part of the gdb testsuite
 # Tests for type expressions using the new "@code" and "@data" modifiers.
 
-if $tracelevel then {
-        strace $tracelevel
-        }
-
 #
 # test running programs
 #
-set prms_id 0
-set bug_id 0
 
-set testfile "cvexpr"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile cvexpr.c
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-     untested code-expr.exp
+     untested "failed to compile"
      return -1
 }
 
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
-if [target_info exists gdb_stub] {
-    gdb_step_for_stub;
-}
+clean_restart ${binfile}
 
-gdb_test "set print sevenbit-strings" "" ""
-gdb_test "set print address off" "" ""
-gdb_test "set width 0" "" ""
+gdb_test_no_output "set print sevenbit-strings"
+gdb_test_no_output "set print address off"
+gdb_test_no_output "set width 0"
 
 set ws  "\[ \t\]*"
 
This page took 0.025522 seconds and 4 git commands to generate.