flat assembler
Message board for the users of flat assembler.

Index > Windows > debug simple exe with gdb

Author
Thread Post new topic Reply to topic
trogne



Joined: 10 Sep 2018
Posts: 10
trogne
How can I use gdb with an "exe" created by fasm ?

I have a very simple .asm file, and I create the .exe using fasm program.asm.

Running gdb program.exe, and I see "no debugging symbols found".

So what am I missing ?


I can debug a c program if compiled using "-g" option of "gcc".
But is there an equivalent with fasm ?


This is my gdb :
C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin\gdb.exe


Thanks !
Post 14 Jan 2020, 03:55
View user's profile Send private message Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 432
Location: Russian Federation, Sochi
ProMiNick
Thou have to produce program as format binary - so thou could build any debug info as thou want (in fasm all debug information programmer should produce manualy, so thou previously should know format of thour debug information to produce it properly).
Or use some debugger not dependant from absence of debugging symbols (IDA PRO for ex.).
Post 14 Jan 2020, 06:37
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16951
Location: In your JS exploiting you and your system
revolution
IIRC you don't need symbols to debug with gdb. The symbols can help but are not a requirement.

So go ahead and debug, it should still work, just without any named symbols.

However if you are using Windows then OllyDbg might be a more friendly choice.
Post 14 Jan 2020, 06:59
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.