Tips of SunStudio debugger -- dbx

1. turn on gdb command emulator in dbx

(dbx) gdb on 

2. list the loaded shared objects, pre-load a shared object in dbx (not available in gdb mode)

(dbx) loadobject -list
(dbx) loadobject -load <the path to your shared object file>

3. list/stop in a static function within a shared object

(dbx) stop in ``your_static_function
(dbx) help scope

4. create the initial dbxrc file

(dbx) help .dbxrc > ~/.dbxrc
(dbx) help .dbxrc | sed 's/^##/  /' >$HOME/.dbxrc

Leave a Reply

Your email address will not be published. Required fields are marked *

To submit your comment, click the image below where it asks you to...
Clickcha - The One-Click Captcha