On Mon, 2007-08-13 at 17:14 -0500, Jason King wrote: > I can easily make mine always return success, and merely put the > instruction value into the output buffer on invalid instructions. > This would get around the dis behavior, which would help in > verification, but it doesn't seem right.
The return -1 allows a disassembler for a variable-length instruction architecture to resynchronize on the next symbol, but that's not necessary if instructions are fixed size like they are on sparc; you can keep stumbling on and you'll never get out of synch with the real instruction boundaries because instructions are always aligned on 4-byte boundaries. - Bill _______________________________________________ tools-discuss mailing list tools-discuss@opensolaris.org