Print this page
saveargs: Implement as libsaveargs
saveargs: let disasm do the lifting

*** 27,39 **** /* * Copyright 2007 Jason King. All rights reserved. * Use is subject to license terms. */ - - #pragma ident "%Z%%M% %I% %E% SMI" - /* * The sparc disassembler is mostly straightforward, each instruction is * represented by an inst_t structure. The inst_t definitions are organized * into tables. The tables are correspond to the opcode maps documented in the * various sparc architecture manuals. Each table defines the bit range of the --- 27,36 ----
*** 227,236 **** --- 224,240 ---- return (pc); return (pc - n*4); } + /* ARGSUSED */ + int + dis_instrlen(dis_handle_t *dhp, uint64_t pc) + { + return (4); + } + int dis_disassemble(dis_handle_t *dhp, uint64_t addr, char *buf, size_t buflen) { const table_t *tp = &initial_table; const inst_t *inp = NULL;