mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-29 00:55:32 +08:00
Merge remote-tracking branch
'origin/GP-4701_d-millar_catch_memory_error' into patch (Closes #6647)
This commit is contained in:
@@ -93,8 +93,14 @@ class InferiorState(object):
|
|||||||
if first or hashable_frame not in self.visited:
|
if first or hashable_frame not in self.visited:
|
||||||
commands.putreg(
|
commands.putreg(
|
||||||
frame, util.get_register_descs(frame.architecture(), 'general'))
|
frame, util.get_register_descs(frame.architecture(), 'general'))
|
||||||
commands.putmem("$pc", "1", from_tty=False)
|
try:
|
||||||
commands.putmem("$sp", "1", from_tty=False)
|
commands.putmem("$pc", "1", from_tty=False)
|
||||||
|
except MemoryError as e:
|
||||||
|
print(f"Couldn't record page with PC: {e}")
|
||||||
|
try:
|
||||||
|
commands.putmem("$sp", "1", from_tty=False)
|
||||||
|
except MemoryError as e:
|
||||||
|
print(f"Couldn't record page with SP: {e}")
|
||||||
self.visited.add(hashable_frame)
|
self.visited.add(hashable_frame)
|
||||||
if first or self.regions or self.threads or self.modules:
|
if first or self.regions or self.threads or self.modules:
|
||||||
# Sections, memory syscalls, or stack allocations
|
# Sections, memory syscalls, or stack allocations
|
||||||
|
|||||||
Reference in New Issue
Block a user