parent
f7dd1dd66f
commit
431e626680
|
@ -7,7 +7,6 @@
|
|||
#include <getopt.h>
|
||||
|
||||
static struct r_core_t r;
|
||||
static char *rabin_cmd = NULL;
|
||||
|
||||
static int main_help(int line) {
|
||||
printf ("Usage: radare2 [-dwntLV] [-p prj] [-s addr] [-b bsz] [-e k=v] [file]\n");
|
||||
|
@ -132,9 +131,8 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
if (debug) {
|
||||
char file[1024];
|
||||
r_config_set (r.config, "io.va", "false");
|
||||
r_config_set (r.config, "io.va", "false"); // implicit?
|
||||
r_config_set (r.config, "cfg.debug", "true");
|
||||
r.io->va = R_FALSE;
|
||||
strcpy (file, "dbg://");
|
||||
if (optind < argc) {
|
||||
char *ptr = r_file_path (argv[optind]);
|
||||
|
|
|
@ -16,7 +16,12 @@ static ut64 num_callback(RNum *userptr, const char *str, int *ok) {
|
|||
/* analyze opcode */
|
||||
switch (str[1]) {
|
||||
case '$':
|
||||
return (str[2]=='$')? aop.length:core->offset;
|
||||
if (str[2]=='$') {
|
||||
r_anal_aop (core->anal, &aop, core->offset,
|
||||
core->block, core->blocksize);
|
||||
return aop.length;
|
||||
}
|
||||
return core->offset;
|
||||
case 'e':
|
||||
case 'j':
|
||||
case 'f':
|
||||
|
|
Loading…
Reference in New Issue