Debuggers

From HP-SEE Wiki

(Difference between revisions)
Jump to: navigation, search
(Sun (Oracle Solaris) Studio)
(Sun (Oracle Solaris) Studio)
 
Line 26: Line 26:
'' Section contributed by UPB ''
'' Section contributed by UPB ''
-
 
-
On the NCIT-Cluster systems we employ Sun Studio v12.1. The Sun Studio development tools include the Fortran95, C and C++ compilers. The best way to keep your applications free of bugs and at the actual performance level we recommend you to recompile your code with the latest production compiler. In order to check the version that your are currently using use the flag -V.
 
-
 
-
The commands that invoke the compilers are cc, f77, f90, f95 and CC. Actually, the command f77 invokes a script that is a wrapper and it is used to pass the necessary compatibility options, like -f77, to the f95 compiler. We recommend adding -f77 -trap=common in order to revert to f95 settings for error trapping. At the link step you may want to use the -xlang=f77 option(when linking to old f77 object binaries). For more information about the use of Sun (Oracle Solaris) Studio compilers you may use the man pages but you may also use the documentation found at:
 
-
 
-
http://www.oracle.com/technetwork/server-storage/solarisstudio/documentation/index.html
 
Sun Studio includes a debugger for serial and multithreaded programs. You will find more information on how to use this environment online. You may start debugging your program from Run - Debugg executabile.
Sun Studio includes a debugger for serial and multithreaded programs. You will find more information on how to use this environment online. You may start debugging your program from Run - Debugg executabile.

Latest revision as of 22:56, 20 April 2012

Contents

Eclipse CDT

Section contributed by IICT-BAS

Eclipse CDT (C/C++ Development Tools) is a Eclipse-based C and C++ IDE. It has a large variety of features including:

  • Managed build for various toolchains
  • Source navigation
  • Source knowledge tools
  • Refactoring tools
  • Code generation tools
  • A variety of debugging tools such as memory, registers and disassembly viewers.

To debug applications using the CDT debugger, you need to build your application in debug mode (using the -g option). To help users familiarized with the Eclipse Debug View, CDT extends it with features for debugging C and C++ code. Using the Debug View, you can manage execution and debugging of programs in the Workbench. Management of breakpoints and variable/registers tracing is all done through the Debug View. The CDT debugger supports debugging for serial and threaded, along with debugging of multiple processes simultaneously, making it a very good tool for many purposes.

The CDT Debug MI plug-in provides support for Machine Interface-compatible debuggers, thus providing the much more reliable MI instead of the more traditional CLI.

Jumpshot

Section contributed by IICT-BAS

SLOG-2 is Argonne Lab's MPI logging package that includes a visualization tool, Jumpshot-4, that allows you to 'see' MPI events in your program and how they relate to time and events in other processes. Jumpshot works by reading a log file that was generated on a run of your MPI program after it has been properly instrumented. Jumpshot-4 allows seamless scrolling from the beginning to the end of the logfile at any zoom level. The main visual component in the SLOG-2 visualization program, Jumpshot-4, is the timeline canvas, which is zoomable and scrollable in both the horizontal and vertical axes. The timeline canvas can be thought of as a timeline vs. time coordinate system. Each point on the canvas is identified by two numbers: a timestamp and a timeline ID. The graphical objects contained in the SLOG-2 file are drawn on the canvas.

TotalView

Sun (Oracle Solaris) Studio

Section contributed by UPB

Sun Studio includes a debugger for serial and multithreaded programs. You will find more information on how to use this environment online. You may start debugging your program from Run - Debugg executabile.

There is a series of actions that are available from the Run menu but which may be specified from the command line when starting Sun Studio. In order to just start a debuggind session, you can attach to a running program by:

 $ sunstudio -A pid[:program_name]

or from Run - Attach Debugger. To analyse a core dump, use:

 $ sunstudio -C core[:program_name]

or Run - Debug core file.