mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-24 18:03:07 +00:00
690b5fd650
For stack trace support, we'll need to have some architecture-specific functionality. drgn's current notion of an architecture doesn't actually include the instruction set architecture. This change expands it to a "platform", which includes the ISA as well as the existing flags.
10 lines
240 B
Python
10 lines
240 B
Python
import unittest
|
|
|
|
from drgn import Architecture, Platform
|
|
|
|
|
|
class TestPlatform(unittest.TestCase):
|
|
def test_default_flags(self):
|
|
Platform(Architecture.X86_64)
|
|
self.assertRaises(ValueError, Platform, Architecture.UNKNOWN)
|