Summary


We've finished looking at the msgbuf and cpu macros. At this stage, we have seen how to use the following commands within a macro.

symbolname /

Change the current address

*symbolname /

Change the current address, using a pointer

+/

Advance the current address

/+

Advance the current address

   

/ "printed text"

Print text for our own use

/t

Tab over

/c

Print byte as a character (if displayable)

/C

Print byte as a character (or a ^character if not displayable)

/X

Print full word as a hexadecimal value

/n

Print a newline

   

$ < macro2

Call another macro without returning

$ << macro2

Call another macro and return

   

, count

Specify how many times to execute a command

   

&

Bitwise AND

#

Logical negation

   

> a

Write to an adb variable

< a

Read from an adb variable

Congratulations! You've gotten through some really tough macros. In the next chapter, we will challenge your new knowledge and invite you to try writing some adb macros of your own.



PANIC. UNIX System Crash Dump Analysis Handbook
PANIC! UNIX System Crash Dump Analysis Handbook (Bk/CD-ROM)
ISBN: 0131493868
EAN: 2147483647
Year: 1994
Pages: 289
Authors: Chris Drake

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net