mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-02-05 19:15:12 +08:00
Merge remote-tracking branch
'origin/GP-6375_d-millar_stack_by_default--SQUASHED' (Closes #8903)
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)
|
||||
|
||||
|
||||
@@ -1392,6 +1392,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)
|
||||
|
||||
|
||||
@@ -1856,6 +1856,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