Command to run after copying binary and core onto AIX machine from terminal:
dbx program core
Ex: dbx myengine core.myengine_wedNov20123456
Some more use full commands you can run from (dbx) as below:
thread List or change the current thread
func List or change the current function
dump Print all variables local to a procedure
where Print the call stack
frame List or change the current stack frame number
next Step one source line (stepping over calls)
quit Exit dbx
(dbx) thread
thread state-k wchan state-u k-tid mode held scope function
$t1 run blocked u no pro _usched_swtch
$t2 run blocked u no pro _usched_swtch
$t3 run blocked u no pro _usched_swtch
$t4 run blocked u no pro _usched_swtch
$t5 run blocked 29943 u no pro _pthread_ksleep
...
>$t74 run running 30979 k no pro p__9SemaphoreFv
(dbx) func
p__9SemaphoreFv
(dbx) dump
p__9SemaphoreFv(0x170) at 0xd10f2100
(dbx)where
p__9SemaphoreFv(0x170) at 0xd10f2100
incrData__18TransActionCounterF9countType() at 0xd1130880
connect__12MachineQueueFv(0x3178d3f8) at 0xd10ff8a8
attemptConnection__12MachineQueueFv(0x3178d3f8) at 0xd10fe14c
attemptConnection__9LlMachineFPCci10SocketTypeT2() at 0xd1152478
.() at 0x10017fc4
.() at 0x10018300
runThread__13IntervalTimerFv() at 0xd115a14c
startup__6ThreadFPv(0x315252e8) at 0xd10ed684
_pthread_body(??) at 0xd00081f8
(dbx)quit
References:
http://web.utk.edu/~prdaves/Computerhelp/dbx_commands.htm
dbx program core
Ex: dbx myengine core.myengine_wedNov20123456
Some more use full commands you can run from (dbx) as below:
thread List or change the current thread
func List or change the current function
dump Print all variables local to a procedure
where Print the call stack
frame List or change the current stack frame number
next Step one source line (stepping over calls)
quit Exit dbx
(dbx) thread
thread state-k wchan state-u k-tid mode held scope function
$t1 run blocked u no pro _usched_swtch
$t2 run blocked u no pro _usched_swtch
$t3 run blocked u no pro _usched_swtch
$t4 run blocked u no pro _usched_swtch
$t5 run blocked 29943 u no pro _pthread_ksleep
...
>$t74 run running 30979 k no pro p__9SemaphoreFv
(dbx) func
p__9SemaphoreFv
(dbx) dump
p__9SemaphoreFv(0x170) at 0xd10f2100
(dbx)where
p__9SemaphoreFv(0x170) at 0xd10f2100
incrData__18TransActionCounterF9countType() at 0xd1130880
connect__12MachineQueueFv(0x3178d3f8) at 0xd10ff8a8
attemptConnection__12MachineQueueFv(0x3178d3f8) at 0xd10fe14c
attemptConnection__9LlMachineFPCci10SocketTypeT2() at 0xd1152478
.() at 0x10017fc4
.() at 0x10018300
runThread__13IntervalTimerFv() at 0xd115a14c
startup__6ThreadFPv(0x315252e8) at 0xd10ed684
_pthread_body(??) at 0xd00081f8
(dbx)quit
References:
http://web.utk.edu/~prdaves/Computerhelp/dbx_commands.htm
No comments:
Post a Comment