|
|
The sdb program allows interaction with a debugged program at the source-language level. When debugging a core image from an aborted program, sdb reports which line in the source program caused the error and allows all variables to be accessed symbolically and displayed in the correct format.
When executing, breakpoints may be placed at selected statements, or the program may be single-stepped on a line-by-line basis. To facilitate specification of lines in the program without a source listing, sdb provides a mechanism for examining the source text. Procedures may be called directly from the debugger. This feature is useful both for testing individual procedures and for calling user-provided routines, which give formatted printouts of structured data.
The sdb program only supports COFF files. To debug programs which use the ELF format, use dbXtra, dbxtra, or adb.
This chapter is organized as follows: