PDA

View Full Version : How do I tell TotalView how to process a signal?



Josh-TotalView-Tech
07-20-2006, 10:11 AM
While TotalView always tries to do the right thing about your program's signals, you may want to customize what happens. If you choose the File > Signals (http://www.etnus.com/Documentation/latest/html/wwhelp/wwhimpl/api.htm?href=Online_Help/ProcessFileSignals.html) command, TotalView displays a dialog box containing a list of signals.

http://www.totalviewtech.com/Documentation/latest/html/TotalView_Tips/images/FileSignals.png

Each signal has four radio buttons associated with it. Selecting a button tells TotalView what it should do when something raises that signal. Your choices are: Error, Stop, Resend, and Ignore. For more information, see Signals dialog (http://www.etnus.com/Documentation/latest/html/wwhelp/wwhimpl/api.htm?href=User_Guide/HandlingSignals.html)within the "TotalView Users Guide."

If you want to override them every time you use TotalView, you can use the TV::signal_handling_mode CLI variable within your .tvdrc file. (This variable was added at Release 6.0) You do not need to set all signals, just the ones you are changing.

For example, here is the command you'd enter into your .tvdrc file if you want TotalView to resend a SIGTERM signal:

dset TV::signal_handling_mode {Resend=SIGTERM}

Chapter 4 (http://www.etnus.com/Documentation/latest/html/wwhelp/wwhimpl/api.htm?href=Reference_Guide/TV_Namespace.html) of the "TotalView Reference Guide" describes setting and using this variable. (You'll need to scroll the page to locate this information.) Chapter 3 (http://www.etnus.com/Documentation/latest/html/wwhelp/wwhimpl/api.htm?href=User_Guide/InitializingTotalView.html) of the "TotalView Users Guide" tells you about .tvdrc files.
[br]