Skip to content

Commit

Permalink
Fix pdc error when fail branch wasnt traced ##decompiler
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jul 1, 2024
1 parent 762088e commit 33166f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libr/core/pseudo.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,12 @@ R_API int r_core_pseudo_code(RCore *core, const char *input) {
// break;
}
if (sdb_get (db, K_INDENT (jump), 0)) {
// already tracekd
// already traced
if (!sdb_get (db, K_INDENT (fail), 0)) {
bb = r_anal_bb_from_offset (core->anal, fail);
} else {
R_LOG_ERROR ("sdb.get fail");
bb = r_anal_bb_from_offset (core->anal, jump);
// R_LOG_ERROR ("sdb.get fail");
}
} else {
bb = r_anal_bb_from_offset (core->anal, jump);
Expand Down

0 comments on commit 33166f9

Please sign in to comment.