mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-27 09:37:05 +08:00
GP-0: changes resulting from testing
This commit is contained in:
@@ -84,7 +84,7 @@ class ProcessState(object):
|
|||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
print(f"Couldn't record page with SP: {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.modules:
|
||||||
# Sections, memory syscalls, or stack allocations
|
# Sections, memory syscalls, or stack allocations
|
||||||
commands.put_regions()
|
commands.put_regions()
|
||||||
self.regions = False
|
self.regions = False
|
||||||
@@ -153,7 +153,7 @@ def process_event(self, listener, event):
|
|||||||
print(f"Ignoring {desc} because target is invalid")
|
print(f"Ignoring {desc} because target is invalid")
|
||||||
return
|
return
|
||||||
event_process = util.get_process()
|
event_process = util.get_process()
|
||||||
if event_process.IsValid() and event_process not in PROC_STATE:
|
if event_process.IsValid() and event_process.GetProcessID() not in PROC_STATE:
|
||||||
PROC_STATE[event_process.GetProcessID()] = ProcessState()
|
PROC_STATE[event_process.GetProcessID()] = ProcessState()
|
||||||
rc = event_process.GetBroadcaster().AddListener(listener, ALL_EVENTS)
|
rc = event_process.GetBroadcaster().AddListener(listener, ALL_EVENTS)
|
||||||
if not rc:
|
if not rc:
|
||||||
|
|||||||
@@ -657,7 +657,7 @@ def read_mem(process: sch.Schema('Process'), range: AddressRange):
|
|||||||
f'ghidra trace putmem 0x{offset_start:x} {range.length()}', result)
|
f'ghidra trace putmem 0x{offset_start:x} {range.length()}', result)
|
||||||
if result.Succeeded():
|
if result.Succeeded():
|
||||||
return
|
return
|
||||||
print(f"Could not read 0x{offset_start:x}: {result}")
|
#print(f"Could not read 0x{offset_start:x}: {result}")
|
||||||
exec_convert_errors(
|
exec_convert_errors(
|
||||||
f'ghidra trace putmem-state 0x{offset_start:x} {range.length()} error')
|
f'ghidra trace putmem-state 0x{offset_start:x} {range.length()} error')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user