blob: 161c80ca618eb51efa2644897031011f3f881467 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#define JUMP_DIS_VERBOSE
#include <stdio.h>
#include "jump-dis-arm-multi.c"
#include <stdlib.h>
int main(UNUSED int argc, char **argv) {
static char buf[1048576];
UNUSED size_t size = fread(buf, 1, sizeof(buf), stdin);
int patch_size = atoi(argv[1]);
int thumb = atoi(argv[2]);
bool bad = P(main)(buf, 0x10000, 0x10000 + patch_size, thumb);
printf("final: bad = %d\n", bad);
}
|