|
5 | 5 |
|
6 | 6 |
|
7 | 7 | class ScriptedProcess(metaclass=ABCMeta):
|
8 |
| - |
9 | 8 | """
|
10 | 9 | The base class for a scripted process.
|
11 | 10 |
|
@@ -229,7 +228,6 @@ def create_breakpoint(self, addr, error):
|
229 | 228 |
|
230 | 229 |
|
231 | 230 | class ScriptedThread(metaclass=ABCMeta):
|
232 |
| - |
233 | 231 | """
|
234 | 232 | The base class for a scripted thread.
|
235 | 233 |
|
@@ -357,7 +355,10 @@ def get_register_info(self):
|
357 | 355 | if self.originating_process.arch == "x86_64":
|
358 | 356 | self.register_info["sets"] = ["General Purpose Registers"]
|
359 | 357 | self.register_info["registers"] = INTEL64_GPR
|
360 |
| - elif "arm64" in self.originating_process.arch: |
| 358 | + elif ( |
| 359 | + "arm64" in self.originating_process.arch |
| 360 | + or self.originating_process.arch == "aarch64" |
| 361 | + ): |
361 | 362 | self.register_info["sets"] = ["General Purpose Registers"]
|
362 | 363 | self.register_info["registers"] = ARM64_GPR
|
363 | 364 | else:
|
@@ -411,9 +412,9 @@ def __init__(self, exe_ctx, args, launched_driving_process=True):
|
411 | 412 | )
|
412 | 413 | )
|
413 | 414 |
|
414 |
| - self.threads[ |
415 |
| - driving_thread.GetThreadID() |
416 |
| - ] = PassthroughScriptedThread(self, structured_data) |
| 415 | + self.threads[driving_thread.GetThreadID()] = ( |
| 416 | + PassthroughScriptedThread(self, structured_data) |
| 417 | + ) |
417 | 418 |
|
418 | 419 | for module in self.driving_target.modules:
|
419 | 420 | path = module.file.fullpath
|
@@ -507,9 +508,9 @@ def get_stop_reason(self):
|
507 | 508 | if self.driving_thread.GetStopReason() != lldb.eStopReasonNone:
|
508 | 509 | if "arm64" in self.originating_process.arch:
|
509 | 510 | stop_reason["type"] = lldb.eStopReasonException
|
510 |
| - stop_reason["data"][ |
511 |
| - "desc" |
512 |
| - ] = self.driving_thread.GetStopDescription(100) |
| 511 | + stop_reason["data"]["desc"] = ( |
| 512 | + self.driving_thread.GetStopDescription(100) |
| 513 | + ) |
513 | 514 | elif self.originating_process.arch == "x86_64":
|
514 | 515 | stop_reason["type"] = lldb.eStopReasonSignal
|
515 | 516 | stop_reason["data"]["signal"] = signal.SIGTRAP
|
|
0 commit comments