Dbx 1024 User's Guide Page 22

  • Download
  • Add to my manuals
  • Print
  • Page
    / 158
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 21
8
Chapter 2: Running dbx
Specifying Object and Core Files
The object_file is the name of the executable object file that you want to
debug. It provides both the code that dbx executes and the symbol table that
provides variable and procedure names and maps executable code to its
corresponding source code in source files.
Acorefile is produced when a program exits abnormally and produces a core
dump. dbx allows you to provide the name of a core file that it uses as “the
contents of memory” for the program that you specify. If you provide a core
file, dbx lists the point of program failure. You can then perform stack traces
and examine variable values to determine why a program crashed.
However, you cannot force the program to execute past the line that caused
it to crash.
If you don’t specify a corefile, dbx examines the current directory for a file
namedcore. If it finds core, and if core seems (based on data in the core file) to
be a core dump of the program you specified, dbx acts as if you had specified
core as the core file.
You can specify object and core files either as arguments when you invoke
dbx or as commands that you enter at the dbx prompt.
The
dbx
Prompt
Once dbx starts, it displays the prompt:
(dbx)
To change this prompt, change the value of the dbx $prompt variable. “Setting
dbx Variables” on page 20 describes how to set dbx variables.
Specifying Files with
dbx
Commands
Thegivenfile and corefile dbx commands allow you to set the object file and the
core file, respectively, while dbx is running.
Page view 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 157 158

Comments to this Manuals

No comments