| United States-English |
|
|
|
![]() |
HP-UX Programming Tools Release Notes: For HP-UX 11.x Systems > Chapter 1 New and Changed Features HP Distributed Debugging Environment (HP DDE) |
|
The HP Distributed Debugging Environment (HP DDE) is a high-level language debugger for the HP-UX operating system. HP DDE operates on object files generated by the HP C, HP C++, HP aC++, HP FORTRAN 77, HP Fortran 90, and HP Pascal compilers. HP DDE provides a powerful graphical user interface based on the OSF/Motif standard. HP DDE also provides a line-mode user interface. Although DDE currently ships with HP compilers, DDE will be discontinued in a future compiler release. HP WDB is the primary debugger for software development on HP-UX, and the ultimate replacement for DDE. HP DDE 4.24 is primarily a maintenance release, however it does include several feature changes.
When you print an object or a class, if the class is inherited, DDE denotes the item with Class Type : Inherited Class next to the name. For example, if myClass is an inherited
object from myParent, when you use the command print myClass, DDE prints The search command default behavior now performs case-sensitive matches. The DDE search command no longer supports the -ins or -sens options to allow case-insensitive matches. Search for a given string in the source file display area. If the command has no arguments, the debugger repeats the last search using the same search string and search direction. FORMAT search [ -backward | -reverse | -forward ] [ -interactive | search_string ] ARGUMENTS
HP DDE 4.23 is primarily a maintenance release, however it does include changes to the DDE Menu Bar, and one new option, the -link/nolink command line option. The -link/nolink command line option is available for use with the property command to specify whether symbolic links will be used when displaying the source path. This option is available for use in line mode only (there is no way to access this option from the DDE GUI). The syntax for the option is as follows: property follow -link property follow -nolink The default behavior of DDE in line mode is to follow the link (property follow -link). This displays the true source path instead of the symbolic link. To show the symbolic link instead of the true source path, use the following command-line option. property follow -nolink For example, given a source file named helloworld.cpp with the following symbolic link:
lrwxrwxr-x 1 1 user1 grp1 21 Apr 15 2000 helloworld.cpp -> subdir/helloworld.cpp by default, DDE in line mode displays the source path as:
If property follow -nolink is specified, DDE displays the source path as:
You can show the setting of the follow -link/nolink option with the command list property follow. The default behavior of DDE in GUI mode has been changed to
follow the symbolic links when displaying the source path
You can show the setting of the follow -link/nolink option with the list property follow command. HP DDE 4.22 is primarily a maintenance release, which includes only one new option. The -unsetenv command-line option is available for use with the debug and restart commands to unset or clear environment variables. The syntax for the option is: debug [-unsetenv env_var [,env_var]...] restart [-unsetenv env_var [,env_var]...] For example, use the following command-line option to restart the target program, and to clear the application-specific environment variable SEASON. restart -unsetenv SEASON In DDE, to see the current values for environment variables:
The dialog box displays information, including environment variables, for the current program. HP DDE 4.21 is a maintenance release and includes only defect fixes. HP DDE 4.20 contained the following new features:
HP DDE 4.10 contained the following new features:
These features are summarized below. For details, see the debugger online help. HP DDE now supports the debugging of threaded applications that are implemented using kernel threads, as well as applications implemented using HP DCE threads. The kernel threads implementation uses the 1x1 threads model. In a kernel threads application, multiple threads can execute concurrently on a multi-processor machine. Similarly, multiple threads can be stopped at a given time. Therefore, a kernel threads application is a truly parallel application. Execution is nondeterministic; multiple runs of the program using the same input and initial state can result in different execution order and different output. In an HP DCE threads implementation, only one thread can execute at any given time, regardless of the number of available processors. Therefore, an HP DCE threads application is not truly parallel. The debugger assumes that a multi-threaded target program is a kernel threads application unless you specify otherwise. To debug an HP DCE threads application, use the -dce_thread option with either the dde(1) command or the debug command. If you debug an HP DCE threads application without specifying this option, debugging commands may not work as expected. When you debug a program that uses kernel threads, several threads may be running at the same time. When the debugger stops program execution because of a debugger event that affects one thread, the debugger uses a stop-the-world model: all the threads stop running. Multi-threaded applications may execute quite differently
when they are invoked by the debugger because the debugger takes
control of the thread scheduler. Some debugger commands, like step and thread Knowing how debugger commands operate is particularly important for kernel threads applications.
For online help on kernel threads debugging, choose "Common Debugging Tasks: Command Line" in the main help window, then choose "Debugging Multi-Threaded Applications" under "Debugging in Special Situations." HP DDE 4.10 supports hardware watchpoints, which vastly improve the debugger's speed of execution when you use data watchpoints. With hardware watchpoints, the debugger uses hardware page protection to determine when the value of a variable changes. Hardware watchpoints can be set only on static data; they cannot be set on data stored in registers. You can obtain hardware watchpoints either with the watchpoint command or through the debugger's graphical user interface.
For online help on hardware watchpoints, choose "HP DDE Command Reference" in the main help window, then choose "Alphabetical List of Commands", then choose watchpoint. Or choose "Graphical User Interface", then choose "Watch Menu." The HP DDE Menu Bar now contains a Tools pull-down menu with one selection, Performance Analyzer. This menu selection starts the Puma performance analysis tool, allowing you to run Puma on the program you are debugging. In addition, the File: Quit menu selection has been changed to File: Exit. |
||||||||||||||||||||||||||||||||||
|
|||||||||||||||