Running ObjecTime through gdb for troubleshooting

Category |  Applicable to |  Description


Category:

Top

Toolset


Applicable to:

Top

All Versions


Description:

Top

Here are steps for running objectime through gdb:

  1. Copy $OBJECTIME_HOME/bin/objectime to your objectime working (start up) directory.
     
  2. In the copied objectime script, change the VM execution line from:
     
        ObjecTimeVM "$image"
    to:
        echo "run $image" > ./gdbcmds
        gdb -x ./gdbcmds ObjecTimeVM

     
  3. Run objectime in the foreground.
     
  4. ObjecTime will run as normal (except upon exit, gdb must be exited manually).
     
  5. When a SEGV occurs, the ObjecTimeVM will be stopped at the point where the segmentation fault was detected. gdb command "info stack" will show the stack trace of where the process was executing from.
     

 

Copyright © 1999, ObjecTime Limited.