Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Method for Providing a Separate Display for Debugger I/O Operations

IP.com Disclosure Number: IPCOM000034194D
Original Publication Date: 1989-Jan-01
Included in the Prior Art Database: 2005-Jan-27
Document File: 2 page(s) / 14K

Publishing Venue

IBM

Related People

Cheney, WJ: AUTHOR

Abstract

A method is described to provide a separate virtual terminal for the debugger standard input and output for the AIX* operating system. Debuggers (adb, sdb and dbx) used on the IBM RT PC AIX operating system interleave their output on a terminal with the output of the application program being debugged. This makes it impractical to use the debuggers on application programs that capture the display (such as editors, gsl, etc.). In other cases, it may be desirable to keep the debugger output separate from the application's output. In accordance with the method, a new command is added to the debuggers to provide the user a means of getting the debugger output on a new virtual terminal.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 55% of the total text.

Page 1 of 2

Method for Providing a Separate Display for Debugger I/O Operations

A method is described to provide a separate virtual terminal for the debugger standard input and output for the AIX* operating system. Debuggers (adb, sdb and dbx) used on the IBM RT PC AIX operating system interleave their output on a terminal with the output of the application program being debugged. This makes it impractical to use the debuggers on application programs that capture the display (such as editors, gsl, etc.). In other cases, it may be desirable to keep the debugger output separate from the application's output. In accordance with the method, a new command is added to the debuggers to provide the user a means of getting the debugger output on a new virtual terminal. This display may be a new virtual display on the same physical terminal, or through the use of a system command 'display', change the default virtual terminal to a different physical display supported by the RT being used. Once the user has implemented the separation of the two displays, they can hot-key between the two displays for input to the debugger and application programs. This has the side effect of keeping the input to the debugger separated from input to the application. Most debuggers provide a means of rerunning an application. In most cases the debugger forks and then execs the application. To insure the separation of debugger and application screen output, the debugger must restore the original display for the application after the debugger forks (child) and before it execs. This feature can be added to most any debugger running on the RT under the AIX operating system. The implementation steps are as follows: 1. Use an AIX system call (dup) to save the original file

descriptors for 'stdin', 'stdout', and 'stderr' early in the

start up of the debugger. This will be used later to restore

the application display in the event the user chooses to rerun

the application (step 3).

2. Add a command to create a new virtual terminal. When thi...