Fix PR cli/23785: Check if file exists when invoking "restore FILE binary"
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / dump.exp
index e67e1aa91e3e09b42f33a091e2de54e40d797d4d..89762b921fb53c3ce70607b059967ce63c2e7989 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2002-2017 Free Software Foundation, Inc.
+# Copyright 2002-2018 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
@@ -101,12 +101,7 @@ if { ! [ runto checkpoint1 ] } then {
 
 # Get the endianness for the later use with endianless formats.
 
-gdb_test_multiple "show endian" "show endian" {
-    -re ".* (big|little) endian.*$gdb_prompt $" { 
-       set endian $expect_out(1,string) 
-       pass "endianness: $endian"
-    }
-}
+set endian [get_endianness]
 
 # Now generate some dump files.
 
This page took 0.026004 seconds and 4 git commands to generate.