DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
adb: absolute debugger

Locating values in a file

To locate specific values within a file, use the l and L commands. The commands have the following form:

[ address ] [ ? / ]l value
[ address ] [ ? / ]L value

In the above command lines address is the address at which to start the search, the l command searches for 2 byte values, the L command searches for 4 byte values, and value is the value (given as an expression) to be located. ? and / indicate whether to conduct the search in the text or data section.

The following command starts the search at the current text address, and continues until the first match or the end of the file. If the value is found, the current address is set to that value's address:

   ?l

Next topic: Writing to a file
Previous topic: Patching binary files and memory

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003