Guardian Programmer's Guide

Table Of Contents
Debugging, Trap Handling, and Signal Handling
Guardian Programmer’s Guide 421922-014
25 - 2
Getting a Process Into the Debug State
be done in previous RVUs on the NonStop server using Debug or Inspect. The
following machine-level features are supported:
Set instruction breakpoints
Display instruction code
Step by instruction
Display and modify data using a numeric (non-symbolic) address
Modify, format, and monitor registers
Display and format data buffers as SPI or EMS buffers
These capabilities enable you to perform low-level debugging tasks that formerly
needed to be done on the NonStop server using Debug or Inspect.
For operational details on Debug, see the Debug Manual. For operational details on
the Inspect program, see the Inspect Manual . For operational details on Visual
Inspect, see the Visual Inspect online help. For operational details on the Native
Inspect program, see the Native Inspect Manual. This discussion is limited to how to
invoke debugging on a process.
Native Inspect is a command-line symbolic debugging tool that can be used for
debugging TNS/E native processes and snapshot files. It can be used for source
statement level debugging as well as machine-level debugging. Native Inspect is
intended as a replacement for the G-series Debug facility and the G-series Inspect
debugger for native mode debugging. The command name for Native Inspect is
eInspect.
Native Inspect provides most of the functionality of Inspect and Debug. However, the
Native Inspect command syntax differs from that of Inspect and Debug. The Native
Inspect syntax is based on gdb, a debugger that is widely used throughout the industry
and is familiar to many application developers. In most cases, you are encouraged to
use Visual Inspect as your primary application debugger. The primary advantage of
Native Inspect is that it provides enhanced scripting support in the form of the Tool
Command Language (TCL), a widely used scripting language, which enables you to
automate many of your debugging tasks.
Note that any Inspect command files you are currently using to automate debugging
operations must be converted to Native Inspect syntax.
Native Inspect supports the debugging of PIC (all TNS/E native code is PIC), whereas
Inspect on the TNS/R platform cannot be used with PIC.
Getting a Process Into the Debug State
You can put a process into the Debug state in any of the following ways:
Note. Native Inspect cannot currently be used to debug COBOL programs. The only debugger
available to H-series and J-series COBOL programs is Visual Inspect.