mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 12:12:06 +00:00
Fix debug rap reg profile setup ##sync
* Flush before closing pipe
This commit is contained in:
parent
38c8ebea72
commit
460d55ea83
@ -52,6 +52,7 @@ static char *__rap_reg_profile(RDebug *dbg) {
|
||||
char *out, *tf = r_file_temp ("rap.XXXXXX");
|
||||
int fd = r_cons_pipe_open (tf, 1, 0);
|
||||
r_io_system (dbg->iob.io, "drp");
|
||||
r_cons_flush ();
|
||||
r_cons_pipe_close (fd);
|
||||
out = r_file_slurp (tf, NULL);
|
||||
r_file_rm (tf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user