Print this page
saveargs: let disasm do the lifting
*** 25,36 ****
*/
#ifndef _LIBDISASM_H
#define _LIBDISASM_H
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
--- 25,34 ----
*** 65,74 ****
--- 63,73 ----
extern uint64_t dis_previnstr(dis_handle_t *, uint64_t, int n);
extern void dis_set_data(dis_handle_t *, void *);
extern void dis_flags_set(dis_handle_t *, int f);
extern void dis_flags_clear(dis_handle_t *, int f);
extern int dis_max_instrlen(dis_handle_t *);
+ extern int dis_instrlen(dis_handle_t *, uint64_t);
/* libdisasm errors */
#define E_DIS_NOMEM 1 /* Out of memory */
#define E_DIS_INVALFLAG 2 /* Invalid flag for this architecture */