Skip to main content
1 of 5
Florin
  • 143
  • 1
  • 2
  • 8

Radare2 doesn't display the whole function

I am using radare2, I don't have a lot of experience with it, so...I have a problem. I have disassembled a function: sym.loop . The function has implemented a switch witch has 4 cases that calls different functions. After any of the function call, the program exits loop function. Here is my problem: after the first exit displayed in radare the disassembled code stops. I am not able to see the rest of the function's code, although there are jump indicating there is more content after the exit function. Do I have to press or do anything to display the rest or is it a bug?

this is the code of the loop function:

void loop(int a) { type[0] = a; while (true) { switch (type[0]) { case 1: function1(arg); break; case 2: function2(arg); break; case 3: function3(arg); break; default: printf("Command unrecognized.\n"); case 4: function4(); break; } } }

note: if there is any bug in the code, I may have caused trying to clean the code from debug messages or whatever...but the idea is that the main code has no bugs, it is just the disassembler that doesn't print the entire function.

and the disassembly code stops after the case1's break (exit function).

Florin
  • 143
  • 1
  • 2
  • 8