09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

adb: Program Debugger <strong>XENIX</strong> Programming<br />

adb Va riables<br />

adb automatically creates a set of its own variables whenever you start the debugger.<br />

These variables are set to the addresses and sizes of various parts of the program file as<br />

defined below.<br />

d size of data<br />

e entry address of the program<br />

m execution type<br />

n number of segments<br />

t size of text<br />

adb reads the program file to find the values for these variables. If the file does not<br />

seem to be a program file, then adb leaves the values undefined.<br />

You can use the current value of a variable in an expression by preceding the variable<br />

name with a less-than sign ( variable-name<br />

where expression is the value to be assigned to the variable, and variable-name must be<br />

a single letter. For example, the assignment<br />

Ox2000 >b<br />

assigns the hexadecimal value "Ox2000" to the variable b.<br />

You can display the value of all currently defined adb variables by using the $v<br />

command. The command lists the variable names followed by their values in the current<br />

format and displays any variable with a value that is not zero. If a variable also has a<br />

nonzero segment value, the variable's value is displayed as an address; otherwise it is<br />

displayed as a number.<br />

6-6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!