radareorg / radare2

UNIX-like reverse engineering framework and command-line toolset
https://www.radare.org/
GNU Lesser General Public License v3.0
19.71k stars 2.94k forks source link

dbt never shows anything but current function #22891

Open 3B85A591 opened 2 weeks ago

3B85A591 commented 2 weeks ago

Environment

radare2 5.9.1 32041 @ linux-x86-64
birth: git.5.9.0-124-g4c363ac228 2024-05-01__03:36:10
commit: 4c363ac228df2e24d1345796c103505e70adfbcb
options: gpl -O? cs:5 cl:2 make
Linux x86_64

Description

dbt does not show output beyond one line. Changing dbg.btalgo has no effect.

Test

void another() {
    return;
}

void other() {
    return another ();
}

int main() {
    other ();
    return 0;
}

gcc dbt.c -o dbt r2 -d dbt db main sym.other sym.another dc dbt 0 0x5cc18712a130 sp: 0x0 0 [??] main sym.other+16 dc dbt 0 0x5cc18712a120 sp: 0x0 0 [??] rip sym.another+7 dc dbt 0 0x5cc18712a119 sp: 0x0 0 [??] rip entry.init0+9

trufae commented 1 week ago

U can try one of the alternative algorithms. Its been a while since this code was written and compilers generate different code. Please give it a try

IMG_9321