summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities
diff options
context:
space:
mode:
authorAbhishek Aggarwal <abhishek.a.aggarwal@intel.com>2015-09-08 10:19:37 +0000
committerAbhishek Aggarwal <abhishek.a.aggarwal@intel.com>2015-09-08 10:19:37 +0000
commit139a096dce616a613a4d7184f06ed6250c3eeaac (patch)
treea5b7833742b6e6fe72fb803106a03d60c2af9dde /lldb/test/functionalities
parent9eaa30d2bf57781304c89935bb30871d33d6dc52 (diff)
downloadbcm5719-llvm-139a096dce616a613a4d7184f06ed6250c3eeaac.tar.gz
bcm5719-llvm-139a096dce616a613a4d7184f06ed6250c3eeaac.zip
Bug 24733: TestRegisters.py for Clang inferiors
Summary: - Bug 24457 can now be tested for inferiors compiled by clang compiler also. - A generic test case for GCC and Clang inferiors: -- Works even when Clang and GCC produce different assembly for the same inferior. - Refer Differential Revision: http://reviews.llvm.org/D12677 Signed-off-by: Abhishek Aggarwal <abhishek.a.aggarwal@intel.com> llvm-svn: 247000
Diffstat (limited to 'lldb/test/functionalities')
-rwxr-xr-xlldb/test/functionalities/register/TestRegisters.py12
-rwxr-xr-xlldb/test/functionalities/register/a.cpp1
2 files changed, 6 insertions, 7 deletions
diff --git a/lldb/test/functionalities/register/TestRegisters.py b/lldb/test/functionalities/register/TestRegisters.py
index f49de0e1b3a..6adffe83ad4 100755
--- a/lldb/test/functionalities/register/TestRegisters.py
+++ b/lldb/test/functionalities/register/TestRegisters.py
@@ -37,7 +37,6 @@ class RegisterCommandsTestCase(TestBase):
self.fp_register_write()
@expectedFailureAndroid(archs=["i386"]) # "register read fstat" always return 0xffff
- @expectedFailureClang("llvm.org/pr24733")
def test_fp_special_purpose_register_read(self):
"""Test commands that read fpu special purpose registers."""
if not self.getArchitecture() in ['amd64', 'i386', 'x86_64']:
@@ -169,15 +168,14 @@ class RegisterCommandsTestCase(TestBase):
target = self.dbg.CreateTarget(exe)
self.assertTrue(target, VALID_TARGET)
- # Find the line number to break inside a.cpp.
- self.line = line_number('a.cpp', '// Set break point at this line.')
-
- # Set breakpoint
- lldbutil.run_break_set_by_file_and_line (self, "a.cpp", self.line, num_expected_locations=1, loc_exact=True)
-
# Launch the process, and do not stop at the entry point.
self.runCmd ("run", RUN_SUCCEEDED)
+ # Check stop reason; Should be SIGTRAP
+ stop_reason = 'stop reason = signal SIGTRAP'
+ self.expect("thread list", STOPPED_DUE_TO_SIGNAL,
+ substrs = ['stopped', stop_reason])
+
process = target.GetProcess()
self.assertTrue(process.GetState() == lldb.eStateStopped,
PROCESS_STOPPED)
diff --git a/lldb/test/functionalities/register/a.cpp b/lldb/test/functionalities/register/a.cpp
index 587ccac3418..b659a53f09f 100755
--- a/lldb/test/functionalities/register/a.cpp
+++ b/lldb/test/functionalities/register/a.cpp
@@ -13,6 +13,7 @@ return_long_double (long double value)
{
float a=2, b=4,c=8, d=16, e=32, f=64, k=128, l=256, add=0;
__asm__ (
+ "int3 ;"
"flds %1 ;"
"flds %2 ;"
"flds %3 ;"
OpenPOWER on IntegriCloud