libmach: support disassembling from memory

This commit is contained in:
aiju 2017-08-24 13:02:27 +00:00
parent 721160290f
commit 6104ebc9b6
2 changed files with 9 additions and 5 deletions

View file

@ -130,6 +130,7 @@ struct Map {
struct segment { /* per-segment map */
char *name; /* the segment name */
int fd; /* file descriptor */
long (*read)(int, void *, long, vlong);
int inuse; /* in use - not in use */
int cache; /* should cache reads? */
uvlong b; /* base */