I am new to assembly since a couple of months and I want to use a debugger in my projects. I've found one called edb and I've downloaded it. When I try to run it I type in ( filename is ReadInt.s):

$ qmake -o ReadInt ReadInt.s

but I get the error message:

Parse Error ('.data') Error processing project file: ReadInt.s

Does anyone understand what kind of a mistake I'm doing here? Anders
Posted on 2011-09-15 07:46:53 by anders11
Yes. You are invoking qmake with your assembly file?! And the topic is EDB?!

If you downloaded edb source only you'll need to download all the required dev packages (should be obvious which ones when you run qmake & make inside /src dir - see readme.txt)

Next you'll need to assemble your source file and produce ELF executable,  then load it in edb - either through gui or command line.

I put it in code::blocks tools menu to debug compiled binary when I want to use it instead of gdb.

Posted on 2011-09-15 12:00:56 by drizz
Someone told me to use edb but I don't no if I should use gdb instead, as long as it works. If I use gdb and do the following command(intel3.s is the file to be debugged):

(gdb) file intel3.s

I get the message: "home/anders/intel3.s " not in executable format. Does not recognize the file format.

So, the debugger doesn't like my .s file format. What can I do?

Anders
Posted on 2011-09-19 06:06:33 by anders11
I assume that the .s file is your assembly source.
You need to pass the assembled binary to the debugger, not the source.
Posted on 2011-09-19 06:43:20 by Scali
Thank you for answering.
Posted on 2011-09-20 05:31:11 by anders11