Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(636)

Unified Diff: gdb/testsuite/gdb.arch/i386-float.exp

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.arch/i386-float.S ('k') | gdb/testsuite/gdb.arch/i386-gnu-cfi.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.arch/i386-float.exp
diff --git a/gdb/testsuite/gdb.arch/i386-permbkpt.exp b/gdb/testsuite/gdb.arch/i386-float.exp
similarity index 58%
copy from gdb/testsuite/gdb.arch/i386-permbkpt.exp
copy to gdb/testsuite/gdb.arch/i386-float.exp
index df3b3738f9b7bc3006e3345088ca694c51bad2fa..c4175324ab9ec6d6b1b5b8036a076a4c203d4e22 100644
--- a/gdb/testsuite/gdb.arch/i386-permbkpt.exp
+++ b/gdb/testsuite/gdb.arch/i386-float.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2012 Free Software Foundation, Inc.
+# Copyright (C) 2009-2013 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
@@ -16,29 +16,28 @@
# This file is part of the gdb testsuite.
-# Test inserting breakpoints over permanent breakpoints on i386 and amd64.
+# Test the x87 floating point information printout.
if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } then {
- verbose "Skipping i386 test for multi break at permanent breakpoint location."
+ verbose "Skipping i386 tests for x87 floating point support."
return
}
-set testfile "i386-permbkpt"
-set srcfile ${testfile}.S
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile .S
# some targets have leading underscores on assembly symbols.
set additional_flags [gdb_target_symbol_prefix_flags]
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } {
- untested i386-permbkpt.exp
+if { [prepare_for_testing break.exp $testfile $srcfile [list debug $additional_flags]] } {
return -1
}
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+if ![runto_main] then {
+ fail "Can't run to main"
+ return 0
+}
-gdb_test "break main" "" "First permanent break"
-gdb_test "break main" "" "Second permanent break"
+gdb_test "stepi" ".*fldt.*" "first stepi"
+gdb_test "info float" ".*R7: Empty 0x00000000000000000000\r\n.*"
+gdb_test "stepi" ".*ret.*" "second stepi"
+gdb_test "info float" ".*=>R7: Valid 0xbffee922191107450000 .*"
« no previous file with comments | « gdb/testsuite/gdb.arch/i386-float.S ('k') | gdb/testsuite/gdb.arch/i386-gnu-cfi.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698