Debuggers

From HP-SEE Wiki

Revision as of 22:50, 20 April 2012 by Compphys (Talk | contribs)
Jump to: navigation, search

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 Studio

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. An important aspect about the Fortran 77 compiler is that from Sun Studio 7 is no longer available. 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). Detailed information about compatibility issues between Fortran 77 and Fortran 95 can be found at

http://docs.sun.com/source/816-2457/5_f77.html

For more information about the use of Sun Studio compilers you may use the man pages but you may also use the documentation found at

http://developers.sun.com/sunstudio/documentation.

Personal tools