mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-24 12:55:47 +08:00
GP-6375: stack
GP-6375: stack
This commit is contained in:
@@ -1341,6 +1341,8 @@ def put_threads(running: bool = False) -> None:
|
||||
tobj.set_value('TEB', hex(int(t[1])))
|
||||
tobj.set_value('Name', t[2])
|
||||
tobj.insert()
|
||||
stackobj = trace.create_object(tpath+".Stack")
|
||||
stackobj.insert()
|
||||
trace.proxy_object_path(THREADS_PATTERN.format(
|
||||
procnum=nproc)).retain_values(keys)
|
||||
|
||||
|
||||
@@ -1391,6 +1391,8 @@ def put_threads() -> None:
|
||||
tobj.set_value('_short_display', f'[{inf.num}.{t.num}:{tidstr}]')
|
||||
tobj.set_value('_display', compute_thread_display(t))
|
||||
tobj.insert()
|
||||
stackobj = trace.create_object(tpath+".Stack")
|
||||
stackobj.insert()
|
||||
trace.proxy_object_path(
|
||||
THREADS_PATTERN.format(infnum=inf.num)).retain_values(keys)
|
||||
|
||||
|
||||
@@ -1838,6 +1838,8 @@ def put_threads() -> None:
|
||||
f'[{proc.GetProcessID()}.{t.GetThreadID()}:{tidstr}]')
|
||||
tobj.set_value('_display', compute_thread_display(t))
|
||||
tobj.insert()
|
||||
stackobj = trace.create_object(tpath+".Stack")
|
||||
stackobj.insert()
|
||||
trace.proxy_object_path(
|
||||
THREADS_PATTERN.format(procnum=proc.GetProcessID())).retain_values(keys)
|
||||
|
||||
|
||||
@@ -431,6 +431,8 @@ def activate_thread(thread: Thread) -> None:
|
||||
def activate_frame(frame: StackFrame) -> None:
|
||||
"""Select the frame."""
|
||||
f = find_frame_by_obj(frame)
|
||||
t = f.GetThread()
|
||||
t.process.SetSelectedThread(t)
|
||||
f.thread.SetSelectedFrame(f.GetFrameID())
|
||||
|
||||
|
||||
|
||||
@@ -1154,6 +1154,8 @@ def put_threads(running: bool = False) -> None:
|
||||
base, offset_base = mapper.map(pid, thread_data.lpThreadLocalBase)
|
||||
tobj.set_value('TLB', offset_base)
|
||||
tobj.insert()
|
||||
stackobj = trace.create_object(tpath+".Stack")
|
||||
stackobj.insert()
|
||||
trace.proxy_object_path(THREADS_PATTERN.format(
|
||||
procnum=pid)).retain_values(keys)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user