dbx is a tool for source-level debugging and execution of programs. It allows you to determine the exact statement that caused a core dump, or to monitor the. A Short User Manual for dbx. “dbx” is the name of the debugger that is available for use on many Unix systems. This document is intended to list the most. There is a fancier X-windows interface for AIX, invoked with the command xde, The dbx debugger is able to track the execution of your program line-by-line in the first at the file containing the main program and is waiting for instructions.

Author: Grosho Fenrijar
Country: Mozambique
Language: English (Spanish)
Genre: Love
Published (Last): 12 July 2010
Pages: 197
PDF File Size: 16.23 Mb
ePub File Size: 15.21 Mb
ISBN: 927-7-54090-121-4
Downloads: 7693
Price: Free* [*Free Regsitration Required]
Uploader: Voodookasa

Lists dbx subcommands for accessing source files. These path mappings are used with the special directory. The printregistersand where subcommands of the dbx debug program all work in the context of the current thread. See the assign subcommand, the call subcommand, and the set subcommand.

Because the default dbx command is a bit process, you must use the bit version of the dbx command, named dbx32to load bit plug-ins. The Name parameter is the alias being created. Passes a command to the shell to be run. A mutex or condition is process-shared if it can be accessed by threads belonging to different processes. The ttracei subcommand turns on tracing for the specified thread when any of the following occurs: Otherwise, it proceeds further without the object file.

The name of the variable must not conflict with names in the program being debugged.

Displays condition variables which have no waiting threads. If the on load flag aid used without the ModuleName parameter, the dbx command traces the load and unload of all modules. The information displayed by the thread subcommand in both the formats is described below. A thread-level hardware watchpoint and a process-level hardware watchpoint can coexist and do not conflict with each other.


The following dbx subcommands will return an error message in GUI mode -p. The print subcommand of the dbx debug program recognizes symbolic thread names, and can be used to display the status of the corresponding object. If the Number parameter is omitted, it defaults to a value of 1.

A breakpoint set on a source line or function is hit by any user thread which executes the line or function, unless you specify conditions as in example 9. The tstop subcommand sets a source-level breakpoint stop for a thread and halts the application program when the specified thread reaches the breakpoint. Begins running an application. Use the status subcommand to view the remaining tskip count for the threads. The instructions displayed are specified by:.

The coremap subcommand displays the mapping of a particular address space region. Specifies a starting source line for the listing. Limits the number of times that a breakpoint can be run. By default, dbx saves the text of the last commands entered. You can set the Limit parameter to instruct the dbx command to ignore a condition for a specified number of times.

Causes symbols to be interpreted as they actually appear. Prints characters as hexadecimal values.

The optional ModuleName parameter can be specified as a manyal module name, or as a module name paired with a member name in the format: The subcommands can be used only while running the dbx debug program. Specifies the loaded module to be monitored.

dbx — Use the debugger

Starts an editor on the specified file. Prints a double-precision real number.


If no argument is specified, control is transferred to the shell. Runs a thread up to the next source line. Multiprocess debugging can also be unsuccessful for the following reasons:. Use dbx commands to set breakpoints, step through program statements, print variables, work with threads, examine storage, and actions as needed. Threads can be held using the hold flag, or released using the unhold flag. Item Description at SourceLine Specifies a starting source line for the listing. See the cont subcommand, goto subcommand, nexti subcommand, set subcommand, and the step subcommand.

The directory the source file was located in when it was compiled. Usage of the raw option causes output to be displayed in raw hex, rather than interpreting values in a more human-readable fashion. Prints a long word in hexadecimal. If the Number parameter is not specified, tnexti runs once only.

dbx Command

Searches backward in the current source file for a pattern. Prints a single-precision real number. If the special directory is not a member of the list, any path mappings that might be specified are ignored. Also see the cont subcommand.

The default handling of symbols is based on the current language.

The dbx debugger

Indicates whether the user thread is held. Use the -g generate symbol table flag when compiling your program to produce the information the dbx command needs. Expression handling Specify expressions in dbx with a subset of C and Pascal syntax.