remove space/tab
This commit is contained in:
parent
b64464bf3b
commit
ea003516ce
|
@ -15,9 +15,9 @@ char *get_detail_sysz(csh *handle, cs_mode mode, cs_insn *ins);
|
|||
char *get_detail_x86(csh *handle, cs_mode mode, cs_insn *ins);
|
||||
char *get_detail_xcore(csh *handle, cs_mode mode, cs_insn *ins);
|
||||
char *get_detail_m68k(csh *handle, cs_mode mode, cs_insn *ins);
|
||||
#ifndef __APPLE__
|
||||
// #ifndef __APPLE__
|
||||
char *get_detail_mos65xx(csh *handle, cs_mode mode, cs_insn *ins);
|
||||
#endif
|
||||
// #endif
|
||||
char *get_detail_tms320c64x(csh *handle, cs_mode mode, cs_insn *ins);
|
||||
|
||||
#endif /* FACTORY_H */
|
||||
|
|
|
@ -53,7 +53,7 @@ def get_report_folder(toolpath, folderpath, details):
|
|||
for f in files:
|
||||
if f.split('.')[-1] == 'cs':
|
||||
print '[-] Target:', f,
|
||||
get_report_file(toolpath, os.sep.join(x for x in path) + os.sep + f, details)
|
||||
get_report_file(toolpath, os.sep.join(x for x in path) + os.sep + f, details)
|
||||
|
||||
if __name__ == '__main__':
|
||||
Done = False
|
||||
|
@ -71,7 +71,7 @@ if __name__ == '__main__':
|
|||
elif opt == '-t':
|
||||
toolpath = arg
|
||||
elif opt == '-D':
|
||||
details = True
|
||||
details = True
|
||||
except getopt.GetoptError:
|
||||
Usage(sys.argv[0])
|
||||
|
||||
|
|
|
@ -157,7 +157,7 @@ void test_single_MC(csh *handle, char *line)
|
|||
mc_dec = strdup(list_data[0]);
|
||||
replace_hex(&mc_dec);
|
||||
// assert_string_equal(tmp, list_data[i]);
|
||||
|
||||
|
||||
|
||||
if ( cs_option(*handle, CS_OPT_SYNTAX, CS_OPT_SYNTAX_NOREGNAME) == CS_ERR_OK ) {
|
||||
count_noreg = cs_disasm(*handle, code, size_byte, offset, 0, &insn);
|
||||
|
@ -167,20 +167,20 @@ void test_single_MC(csh *handle, char *line)
|
|||
tmp_noreg[strlen(insn[0].mnemonic)] = ' ';
|
||||
strcpy(tmp_noreg + strlen(insn[0].mnemonic) + 1, insn[0].op_str);
|
||||
}
|
||||
|
||||
|
||||
trim_str(&tmp_noreg);
|
||||
cs_hex_noreg = strdup(tmp_noreg);
|
||||
replace_hex(&tmp_noreg);
|
||||
mc_hex_noreg = strdup(list_data[0]);
|
||||
mc_dec_noreg = strdup(list_data[0]);
|
||||
replace_hex(&mc_dec_noreg);
|
||||
mc_dec_noreg = strdup(list_data[0]);
|
||||
replace_hex(&mc_dec_noreg);
|
||||
|
||||
if (strcmp(tmp, mc_hex) && strcmp(cs_hex, mc_hex) && strcmp(tmp, mc_dec) && strcmp(tmp, mc_hex)
|
||||
if (strcmp(tmp, mc_hex) && strcmp(cs_hex, mc_hex) && strcmp(tmp, mc_dec) && strcmp(tmp, mc_hex)
|
||||
&& strcmp(tmp_noreg, mc_hex_noreg) && strcmp(cs_hex_noreg, mc_hex_noreg) && strcmp(tmp_noreg, mc_dec_noreg) && strcmp(tmp_noreg, mc_hex_noreg)) {
|
||||
fprintf(stderr, "[ ERROR ] --- \"%s\" != \"%s\"\n", tmp, list_data[0]);
|
||||
_fail(__FILE__, __LINE__);
|
||||
}
|
||||
|
||||
|
||||
free(tmp_noreg);
|
||||
free(cs_hex_noreg);
|
||||
free(mc_hex_noreg);
|
||||
|
@ -190,12 +190,12 @@ void test_single_MC(csh *handle, char *line)
|
|||
}
|
||||
else if (!quadruple_compare(tmp, cs_hex, mc_dec, mc_hex))
|
||||
_fail(__FILE__, __LINE__);
|
||||
|
||||
|
||||
free(tmp);
|
||||
free(cs_hex);
|
||||
free(mc_hex);
|
||||
free(mc_dec);
|
||||
|
||||
|
||||
cs_free(insn, count);
|
||||
free(list_part);
|
||||
free(list_byte);
|
||||
|
@ -259,11 +259,11 @@ int set_function(int arch)
|
|||
case CS_ARCH_EVM:
|
||||
function = get_detail_evm;
|
||||
break;
|
||||
#ifndef __APPLE__
|
||||
// #ifndef __APPLE__
|
||||
case CS_ARCH_MOS65XX:
|
||||
function = get_detail_mos65xx;
|
||||
break;
|
||||
#endif
|
||||
// #endif
|
||||
case CS_ARCH_TMS320C64X:
|
||||
function = get_detail_tms320c64x;
|
||||
break;
|
||||
|
|
|
@ -109,7 +109,7 @@ static int setup_issue(void **state)
|
|||
failed_setup = 1;
|
||||
return -1;
|
||||
}
|
||||
getDetail = 1;
|
||||
getDetail = 1;
|
||||
}
|
||||
cs_option(*handle, options[index].first_value, options[index].second_value);
|
||||
}
|
||||
|
@ -119,7 +119,6 @@ static int setup_issue(void **state)
|
|||
while (counter < size_lines && list_lines[counter][0] != '0') counter ++;
|
||||
free_strs(list_params, size_params);
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
static void test_issue(void **state)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "factory.h"
|
||||
|
||||
#ifndef __APPLE__
|
||||
// #ifndef __APPLE__
|
||||
static const char *get_am_name(mos65xx_address_mode mode)
|
||||
{
|
||||
switch(mode) {
|
||||
|
@ -75,4 +75,4 @@ char *get_detail_mos65xx(csh *handle, cs_mode mode, cs_insn *ins)
|
|||
}
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
// #endif
|
||||
|
|
Loading…
Reference in New Issue