mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-02 18:27:18 +00:00
Temporary fix xrefs load in radare2's -p flag
This commit is contained in:
parent
232ce009fd
commit
26546e4f3a
@ -223,8 +223,9 @@ R_API int r_core_project_open(RCore *core, const char *prjfile) {
|
||||
// TODO: handle base address
|
||||
r_core_bin_load (core, filepath, UT64_MAX);
|
||||
}
|
||||
ret = r_core_cmd_file (core, prj);
|
||||
// FIXME: If r_anal_project_load is not called before r_core_cmd_file, xrefs are not loaded correctly
|
||||
r_anal_project_load (core->anal, prjfile);
|
||||
ret = r_core_cmd_file (core, prj);
|
||||
r_config_bump (core->config, "asm.arch");
|
||||
free (filepath);
|
||||
free (prj);
|
||||
@ -324,8 +325,8 @@ R_API int r_core_project_save(RCore *core, const char *file) {
|
||||
r_cons_flush ();
|
||||
r_core_cmd (core, "fV*", 0);
|
||||
r_cons_flush ();
|
||||
r_core_cmd (core, "ax*", 0);
|
||||
r_cons_flush ();
|
||||
//r_core_cmd (core, "ax*", 0); // Not needed, xrefs are loaded from a DB file
|
||||
//r_cons_flush ();
|
||||
r_core_cmd (core, "afl*", 0);
|
||||
r_cons_flush ();
|
||||
r_core_cmd (core, "ah*", 0);
|
||||
|
Loading…
Reference in New Issue
Block a user