* Fix $$$ variable

* Do not set io.va twice
This commit is contained in:
pancake 2010-10-22 01:16:32 +02:00
parent f7dd1dd66f
commit 431e626680
2 changed files with 7 additions and 4 deletions

View File

@ -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]);

View File

@ -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':