Support

Home | Support | Tips

How do I navigate all the source code files that make up my program?


Working with multiple source code files in TotalView is quite straightforward. You can dive on any function name in the source code window to see the sources for that function (if they are available). However, sometimes you want to jump right to a function or file of interest, or you want to compare two bits of code side by side. 

View > Lookup function or file — Keyboard accelerator 'f

View Menu 

Type the name of any source file or function used in your program. You can do a partial or slightly misspelled or ambiguous name and the dialog will auto-complete or disambiguate the response.

Lookup dialog box

Click OK. The source code pane in the center of the process window will refocus to that bit of code.

Source code pane

 TotalView makes it easy to return to where you were before the find operation. Click the small Back arrow in the upper right corner of the source code window.

View > Reset (Ctrl-R)
If at any time you want to see the current location in the program, use the View > Reset (Ctrl-R) option to get back to where the instruction pointer is pointing.

Window > Duplicate
You can open a second window using the Window > Duplicate option.

Window menu

You can close duplicate windows individually using File > Close (Ctrl-W) or, if you have several open and want just one, File > Close Relatives.

File menu