Phased execution for assembler Intel AT & T?

I am writing a compiler that converts source code (written in a small imperative programming language) to Intel AT & T 32-bit assembler.

As a rule, I spend a lot of time debugging due to unpleasant bias errors, etc. in the generated code, and I would like to know if anyone knows about the tool to “go through” the generated assembler code step-by-step, visualizing what's on the stack, etc.

I use Ubuntu Linux as my development platform, and I'm comfortable with the terminal - a GUI program would be nice. He exists? Or is there a good reason why this is not so (maybe the problem is not so simple ??)

If you have good ideas for approaching debugging tasks in assembler, I will be happy to hear from you!

+3
source share
3 answers

I like EDB (Evan Debugger) on Linux. It has a convenient, easy to use graphical interface based on QT4. Its purpose is to make it look like OllyDbg. And it is actively supported:

EDB on FreshMeat

I am sure that it can be installed via Synaptic on Ubuntu. Enjoy it!

+1
source

Is the end result of the compilation process something that you can actually accomplish, and therefore explore in the debugger? If so, Data Debugger (ddd) may be useful .

0
source

, Olly EDB, , .

  • scattered around the debugging function in the source code, nailing bad register values
  • allows the compiler to output HTML code with useful metadata for different iterations in viability analysis, etc.
0
source

Source: https://habr.com/ru/post/1740969/


All Articles