GDB

gdb / core

gdb
break (from where to break) e.g break main
Then
r (run)
n (next step)
To go inside any function we give
s (step)
suppose next line is a function, inside which we want to go before tht we give s
To find value of a variable
p

dbx test_lismon
(dbx) r ../data/server.cfg
(dbx) stop in StartServer
(dbx) r ../data/server.cfg
(dbx) n
(dbx) p iMode
(dbx) p sFileName1
(dbx) n
stopped in unnamed block in StartServer(const char*,int) at line 680 in file “/users2/e461139/TMP/tmp_Limo.cpp” ($t1)
680 if(-1 == iReturn )

step 2
step thread id
http://faculty.smu.edu/yzhou/local/dbxfaq.html

step …thread_id
Step the given thread. Does not apply to step up.

step up
Step up and out of the current function.

step to [ function ]
Attempts to step into function called from the current source code line. If function is not given, steps into the last function, helping to avoid long sequences of step commands and step up commands. Examples of the last function are:

https://docs.oracle.com/cd/E19205-01/819-5257/blbfo/index.html
https://docs.oracle.com/cd/E19205-01/819-5257/blabk/index.html

https://blogs.oracle.com/mandalika/entry/sun_studio_debugging_multi_threaded

(dbx) thread
thread state-k wchan state-u k-tid mode held scope function
>$t1 run running 83361981 k no sys CLimoServer::CLimoServer(IArchErr*,const char*,int)
(dbx) n
Thread ID : [Thread_258]
Before fopen
stopped in CLimoServer::CLimoServer(IArchErr*,const char*,int) at line 503 in file “/users2/e461139/TMP/tmp_CLimoServer.cpp” ($t1)
503 if(IArchErr::Success != pErr->GetErrorCode())
(dbx) thread
thread state-k wchan state-u k-tid mode held scope function
>$t1 run running 83361981 k no sys CLimoServer::CLimoServer(IArchErr*,const char*,int)
$t2 run running 128843957 u no sys write

++++++++++++++++++
ssl certificates are .pem(c side) and .keystore(java side)which are used in Finacle.

To know the expiry of .pem files following is the command.

x509 -in PinacleComponent.pem -noout -enddate

Ex:
>
/usr/OPENSSL/bin/openssl
OpenSSL> x509 -in PinacleComponent.pem -noout -enddate
notAfter=Apr 30 09:45:57 2099 GMT

For keystore certificates you can verify by listing the keystore as below.

keytool -list -v -keystore PinacleComponent.keystore -storepass Pinacle

Password file for both PinacleComponent and PinacleIntegrator are encrypted.
++++++++++++++++++

GDB

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s