8

Which tool is the best for disassembling C++ executables? I'm looking for something like OllyDbg but for Linux.

EDIT: Sorry, forgot to tell that I want to be able to debug, too, not just to see the asm code.

EDIT2: By "best" I mean something like - "the best for windows is OllyDbg - can see the asm code and can debug, it's user friendly and very powerful. Which one is best for Linux".

Kiril Kirov
  • 37,467
  • 22
  • 115
  • 187
  • does gdb (disas command) work or you need more? http://stackoverflow.com/questions/1237489/how-can-i-force-gdb-to-disassemble – Anycorn Oct 07 '10 at 08:18
  • I guess "best" requires some more explanation. What are the requirements? Disassembling alone is possible via `objdump -Cd` (part of the GNU binutils). But it isn't a debugger. – sellibitze Oct 07 '10 at 09:03
  • Well, I'm new to this( disassembling, and to Linux even) , so I don't know how exactly to explain what I mean by "the best". It's something like - "the best for windows is OllyDbg - user friendly and very powerful. Which one is best for Linux". Something like this.. – Kiril Kirov Oct 07 '10 at 09:16
  • Argh, yeah. Sorry, I missed that - not only disassebmler, but debugger, too.. That's why I mentioned OllyDbg. Sorry again, my bad – Kiril Kirov Oct 07 '10 at 09:17

2 Answers2

6

Here are some. Good luck with your debugging!

UPS Debugger

Evan's Debugger

Assembly Language Debugger (ALD)

Insight

Data Display Debugger (ddd)

AsmBug

Dissy

Reno
  • 33,594
  • 11
  • 89
  • 102
1

If gcc was used to compile, you can use objdump Can be used on a single .o file, a library or even a full executable.

Jan
  • 1,807
  • 13
  • 26
  • Argh, sorry, my bad. Forgot to tell that I want a tool, that's able to debug, too, like OllyDbg. And I've used gdb to debug, but debug core files or to debug my own code. I want a tool, that would help me for reverse engineering. Thanks and sorry for not being comprehensive – Kiril Kirov Oct 07 '10 at 09:21
  • Ah, I understand. I would recommend gdb then, it is certainly able to debug in assembly mode. However, because it's a pain in the ass for even normal debugging, I won't. – Jan Oct 07 '10 at 09:57
  • What do you think about Evan's debugger? Or you haven't used it. Thanks :) – Kiril Kirov Oct 07 '10 at 14:48
  • It looks ok, but I haven't used it. – Jan Oct 07 '10 at 14:54