-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[lldb] [scripting bridge] 167388 chore: add api to return arch name for target #168273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 6 commits
d98da7c
0c966e6
83750dd
36497ab
1b1d466
a3620de
2a4f2a3
329aec5
deddd04
0dfb712
92f6544
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -105,6 +105,20 @@ def test_resolve_file_address(self): | |
| self.assertIsNotNone(data_section2) | ||
| self.assertEqual(data_section.name, data_section2.name) | ||
|
|
||
| def test_get_arch_name(self): | ||
| d = {"EXE": "b.out"} | ||
| self.build(dictionary=d) | ||
| self.setTearDownCleanup(dictionary=d) | ||
| target = self.create_simple_target("b.out") | ||
|
|
||
| arch_name = target.arch_name | ||
| self.assertNotEqual(len(arch_name), 0, "Got an arch name string") | ||
|
||
|
|
||
| # Test consistency with triple. | ||
| triple = target.triple | ||
| if triple: | ||
|
||
| self.assertEqual(triple.split("-")[0], arch_name) | ||
|
|
||
| def test_get_ABIName(self): | ||
| d = {"EXE": "b.out"} | ||
| self.build(dictionary=d) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.