PCSX2 Documentation/GNU Debugger Tips: Difference between revisions
Jump to navigation
Jump to search
PCSX2 Documentation/GNU Debugger Tips (view source)
Revision as of 20:19, 9 January 2015
, 9 January 2015no edit summary
(Created page with "thread PCSX2 contains multi threads. Each thread can be run in parallel. Get thread info: info threads Select a thread: thread <ID> apply a command to a specific thread: threa...") |
No edit summary |
||
Line 1: | Line 1: | ||
==Thread== | |||
PCSX2 contains multi threads. Each thread can be run in parallel. | *PCSX2 contains multi threads. Each thread can be run in parallel. | ||
Get thread info: info threads | *Get thread info: <code>info threads</code> | ||
Select a thread: thread <ID> | *Select a thread: <code>thread <ID></code> | ||
*Apply a command to a specific thread: <code>thread apply <ID> <GDB_COMMAND></code> | |||
*Apply a command to all thread: <code>thread apply all <GDB_COMMAND></code> | |||
Stack/Frame | |||
==Stack/Frame== | |||
A standard human can understand a limited code size at once. So generally the code is split-ed in small unit (AKA functions). Functions call others functions which call others and so for. The full stack of called function give you an overview of what is going on your program | A standard human can understand a limited code size at once. So generally the code is split-ed in small unit (AKA functions). Functions call others functions which call others and so for. The full stack of called function give you an overview of what is going on your program | ||
print the stack: backtrace | *print the stack: <code>backtrace</code> | ||
print local variable inside the stack: backtrace full | *print local variable inside the stack: <code>backtrace full</code> | ||
limit the trace to the Nth lastest: backtrace <N> | *limit the trace to the Nth lastest: <code>backtrace <N></code> | ||
go to a specific stack: frame <STACK_ID> | *go to a specific stack: <code>frame <STACK_ID></code> | ||
go up 1 frame: up | *go up 1 frame: up | ||
go down 1 frame: down | *go down 1 frame: down | ||
Step by step execution | |||
==Step by step execution== | |||
execute 1 instruction :step | execute 1 instruction :step | ||
execute 1 C line of instruction, functions are a 1 line instruction:next | execute 1 C line of instruction, functions are a 1 line instruction:next |