01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

�<br />

I<br />

SDB ( 1) SDB ( 1)<br />

file may overlap.<br />

The initial setting of both mappings is suitable for normal a..out<br />

and core files. If either file is not of the kind expected, then for<br />

that file, bl is set to 0, el is set to the maximum file size, and /1<br />

is set to 0; in this way the whole file can be examined with no<br />

address translation.<br />

In order for sdb to be used on large files all appropriate values are<br />

kept as signed 32-bit integers.<br />

Commands.<br />

The commands for examining data in the program are:<br />

t Print a stack trace of the terminated or halted program.<br />

T Print the top line of the stack trace.<br />

variable / elm<br />

Print the value of variable according to length l and format<br />

m. A numeric count c indicates that a region of memory,<br />

beginning at the address implied by variable, is to be<br />

displayed. The length specifiers are:<br />

b one byte<br />

h two bytes (half word)<br />

l four bytes (long word)<br />

Legal values for m are:<br />

c character<br />

d decimal<br />

u decimal, unsigned<br />

o octal<br />

x hexadecimal<br />

r 32-bit single precision floating point<br />

g 64-bit double precision floating point<br />

s Assume variable is a string pointer and<br />

print characters starting at the address<br />

pointed to by the variable.<br />

a. Print characters starting at the variable's<br />

address. This format may not be used with<br />

register variables.<br />

p pointer to procedure<br />

disassemble machine language instruction<br />

with addresses printed symbolically.<br />

I disassemble machine language instruction<br />

with addresses just printed numerically.<br />

The length specifiers are only effective with the formats[ c,<br />

d, u, o and x. Any of the specifiers c, l, and m may be<br />

omitted. If all are omitted, sdb chooses a length and a format<br />

suitable for the variable's type as declared in the program.<br />

If m is specified, then this format is used for displaying<br />

the variable. A length specifier determines the output<br />

length of the value to be displayed, sometimes resulting in<br />

truncation. A count specifier c tells sdb to display that many<br />

units of memory, beginning at the address of variable. The<br />

number of bytes in one such unit of memory is determined<br />

- 3-

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

Saved successfully!

Ooh no, something went wrong!