aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalfred Tedeschi <walfred.tedeschi@intel.com>2015-06-08 17:42:08 +0200
committerWalfred Tedeschi <walfred.tedeschi@intel.com>2015-06-10 09:58:05 +0200
commit422d944b03535efba6187bbd9e35e87f73767dd7 (patch)
tree0fcbb134b80aa414b2a6bc4c468e92f1dfa3c199
parent547a646d67e7a38b96d2a93b709e52c9461d017f (diff)
downloadgdb-422d944b03535efba6187bbd9e35e87f73767dd7.zip
gdb-422d944b03535efba6187bbd9e35e87f73767dd7.tar.gz
gdb-422d944b03535efba6187bbd9e35e87f73767dd7.tar.bz2
Obvious indentation fixes on test sample and test file for MPX registers.
2015-06-08 Walfred Tedeschi <walfred.tedeschi@intel.com> gdb/testsuite: * gdb.arch/i386-mpx.c (have_mpx): Indentation fixed. * gdb.arch/i386-mpx.exp: Indentation fixed.
-rw-r--r--gdb/testsuite/gdb.arch/i386-mpx.c18
-rw-r--r--gdb/testsuite/gdb.arch/i386-mpx.exp2
2 files changed, 10 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-mpx.c b/gdb/testsuite/gdb.arch/i386-mpx.c
index 87c753c..23b9650 100644
--- a/gdb/testsuite/gdb.arch/i386-mpx.c
+++ b/gdb/testsuite/gdb.arch/i386-mpx.c
@@ -35,17 +35,17 @@ have_mpx (void)
return 0;
if ((ecx & bit_OSXSAVE) == bit_OSXSAVE)
- {
- if (__get_cpuid_max (0, NULL) < 7)
- return 0;
+ {
+ if (__get_cpuid_max (0, NULL) < 7)
+ return 0;
- __cpuid_count (7, 0, eax, ebx, ecx, edx);
+ __cpuid_count (7, 0, eax, ebx, ecx, edx);
- if ((ebx & bit_MPX) == bit_MPX)
- return 1;
- else
- return 0;
- }
+ if ((ebx & bit_MPX) == bit_MPX)
+ return 1;
+ else
+ return 0;
+ }
return 0;
}
diff --git a/gdb/testsuite/gdb.arch/i386-mpx.exp b/gdb/testsuite/gdb.arch/i386-mpx.exp
index 6835b24..2db6401 100644
--- a/gdb/testsuite/gdb.arch/i386-mpx.exp
+++ b/gdb/testsuite/gdb.arch/i386-mpx.exp
@@ -30,7 +30,7 @@ if { ![istarget i?86-*-*] && ![istarget x86_64-*-* ] } {
set comp_flags "-fmpx -I${srcdir}/../nat/"
if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
- [list debug nowarnings additional_flags=${comp_flags}]] } {
+ [list debug nowarnings additional_flags=${comp_flags}]] } {
return -1
}