@@ -11,9 +11,29 @@ def test(self):
11
11
"""Test that you can use register names in image lookup in a swift frame."""
12
12
self .build ()
13
13
(target , process , thread , breakpoint ) = lldbutil .run_to_source_breakpoint (self ,
14
- "break here to check image lookup" , lldb .SBFileSpec ("main.swift" ))
14
+ "break here to check image lookup" , lldb .SBFileSpec ("main.swift" ))
15
15
# I don't want to be too specific in what we print for image lookup,
16
16
# we're testing that the address expression for the pc worked.
17
17
self .expect ("image lookup -va $pc" , substrs = ["doSomething" ])
18
18
self .expect ("image lookup -va $pc+4" , substrs = ["doSomething" ])
19
+
20
+ def test_using_alias (self ):
21
+ """Test that you can use register names in image lookup in a swift frame."""
22
+ self .build ()
23
+ (target , process , thread , breakpoint ) = lldbutil .run_to_source_breakpoint (self ,
24
+ "break here to check image lookup" , lldb .SBFileSpec ("main.swift" ))
25
+ # I don't want to be too specific in what we print for image lookup,
26
+ # we're testing that the address expression for the pc worked.
27
+ self .expect ("target modules lookup -va $pc" , substrs = ["doSomething" ])
28
+ self .expect ("target modules lookup -va $pc+4" , substrs = ["doSomething" ])
29
+
30
+ def test_using_separate_options (self ):
31
+ """Test that you can use register names in image lookup in a swift frame."""
32
+ self .build ()
33
+ (target , process , thread , breakpoint ) = lldbutil .run_to_source_breakpoint (self ,
34
+ "break here to check image lookup" , lldb .SBFileSpec ("main.swift" ))
35
+ # I don't want to be too specific in what we print for image lookup,
36
+ # we're testing that the address expression for the pc worked.
37
+ self .expect ("target modules lookup -v -a $pc" , substrs = ["doSomething" ])
38
+ self .expect ("target modules lookup -v -a $pc+4" , substrs = ["doSomething" ])
19
39
0 commit comments