mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-27 00:05:10 +00:00
Automatically set the debug plugin when opening debug uris (#15403) ##io
This commit is contained in:
parent
a4d79c21c7
commit
c233bf3584
@ -907,6 +907,14 @@ R_API RCoreFile *r_core_file_open(RCore *r, const char *file, int flags, ut64 lo
|
||||
swstep = false;
|
||||
}
|
||||
r_config_set_i (r->config, "dbg.swstep", swstep);
|
||||
// Set the correct debug handle
|
||||
if (fd->plugin && fd->plugin->isdbg) {
|
||||
char *dh = r_str_ndup (file, (strstr (file, "://") - file));
|
||||
if (dh) {
|
||||
r_debug_use (r->dbg, dh);
|
||||
free (dh);
|
||||
}
|
||||
}
|
||||
}
|
||||
//used by r_core_bin_load otherwise won't load correctly
|
||||
//this should be argument of r_core_bin_load <shrug>
|
||||
|
Loading…
x
Reference in New Issue
Block a user