flat assembler
Message board for the users of flat assembler.

Index > Linux > Another debugger questionn.

Author
Thread Post new topic Reply to topic
a16b03



Joined: 24 Jan 2006
Posts: 43
Location: Riga, Latvia
a16b03 01 Jun 2006, 16:59
Is there any TurboDebuger like debuger for linux?
Post 01 Jun 2006, 16:59
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Feryno



Joined: 23 Mar 2005
Posts: 514
Location: Czech republic, Slovak republic
Feryno 05 Jun 2006, 08:14
there isn't any debugger so good like Turbo Debugger

there is gdb but I don't like it because it uses different asm syntax
there are GUI apps like xgdb, ?kgdb (check the name please) still using different asm syntax
fortunatelly, there is ALD for 32-bit i386 using FASM friendly syntax, but is command line based as gdb
I develop fdbg for Linux 64-bit AMD64 using FASM friendly syntax, but is command line based as gdb
I don't plane to make it like TD, fdbg for Linux 64-bit AMD64 will stay command line based
I suppose that author of ALD doesn't plane to make it like TD too and it will stay command line-based
Post 05 Jun 2006, 08:14
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 06 Jun 2006, 02:45
Post 06 Jun 2006, 02:45
View user's profile Send private message Visit poster's website Reply with quote
stanks



Joined: 01 Dec 2003
Posts: 36
Location: Croatia
stanks 07 Jun 2006, 04:21
Try insight (if you are using GUI Smile ). It is frontend for gdb.
Post 07 Jun 2006, 04:21
View user's profile Send private message ICQ Number Reply with quote
rank amateur



Joined: 15 Jul 2006
Posts: 5
rank amateur 15 Jul 2006, 03:12
I'm completely new to fasm: have read the manual, but can't find any info on generating debugging symbols for linux debuggers. Can anyone enlighten me?
Post 15 Jul 2006, 03:12
View user's profile Send private message Reply with quote
UCM



Joined: 25 Feb 2005
Posts: 285
Location: Canada
UCM 15 Jul 2006, 15:31
Unfortunately, FASM is incapable of generating debug symbols.
Post 15 Jul 2006, 15:31
View user's profile Send private message Reply with quote
rank amateur



Joined: 15 Jul 2006
Posts: 5
rank amateur 15 Jul 2006, 15:39
Okay, thanks for the reply. Can you tell me how one uses fasm effectively, if debugging info is not available? Being a noob at writing ia32 assembly, I tend to make a lot of mistakes, and tracking them down w/o a debugger would be a nightmare. Do fasm users instrument their own programs with a lot of extra code for debugging purposes, or do they write programs using other assemblers, then translate to fasm compatible format, hopefully w/o introducing errors in the process, when satisfied their code is error free?
Post 15 Jul 2006, 15:39
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 15 Jul 2006, 16:40
good question - as beginner you may have problem with this. Debugging symbols usually help to find only stupid errors (using wrong variable or procedure), and later you have it "in hand" and stop making such errors. You named it right - "mistakes", FASM is like other VIM, or Unix, it's harder to use from beginning, but when you know it, it is better

surely you don't need to mix any language with FASM, like you suggested.
Post 15 Jul 2006, 16:40
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend 15 Jul 2006, 21:24
I use OllyDbg very often when coding in fasm. There are no debug informations, but the feature of assembly language is one-to-one compilation. The code you see in debugger is the same you wrote in editor. Of course there's no labels, variable names, etc. but it's still your code, so you should quickly know what's going on.
Post 15 Jul 2006, 21:24
View user's profile Send private message Visit poster's website Reply with quote
rank amateur



Joined: 15 Jul 2006
Posts: 5
rank amateur 16 Jul 2006, 00:48
Isn't OllyDbg a windows-only debugger?
Post 16 Jul 2006, 00:48
View user's profile Send private message Reply with quote
UCM



Joined: 25 Feb 2005
Posts: 285
Location: Canada
UCM 16 Jul 2006, 13:30
rank amateur wrote:
Isn't OllyDbg a windows-only debugger?

Yeah, it is.

_________________
This calls for... Ultra CRUNCHY Man!
Ta da!! *crunch*
Post 16 Jul 2006, 13:30
View user's profile Send private message Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend 16 Jul 2006, 17:06
Embarassed My fault. I didn't notice it's "Linux" section. Sorry. But still my post generally about debuggers is true, only the text about OllyDbg should not be here.
Post 16 Jul 2006, 17:06
View user's profile Send private message Visit poster's website Reply with quote
rank amateur



Joined: 15 Jul 2006
Posts: 5
rank amateur 16 Jul 2006, 18:52
No worries. Just wanted to be sure I didn't overlook something.
Post 16 Jul 2006, 18:52
View user's profile Send private message Reply with quote
Endre



Joined: 29 Dec 2003
Posts: 215
Location: Budapest, Hungary
Endre 17 Jul 2006, 11:08
As you noticed fasm doesn't generate debug info, but you can live without it. Try e.g. ald: http://ald.sourceforge.net/.

Or you can use "as" (the gnu assembler) instead of fasm and then you get everything (debug symbols) you just need for debugging with gdb. With fasm you can also use gdb, but in a bit tricky way.
Post 17 Jul 2006, 11:08
View user's profile Send private message Reply with quote
rank amateur



Joined: 15 Jul 2006
Posts: 5
rank amateur 18 Jul 2006, 13:39
I'm satisfied with both kdbg and insight as debuggers, but am not enamoured with gnu assembler syntax, so I was looking for something better. Hence my interest in fasm which, apart from its lack of ability to generate debugging info, appears to be a very sleek and powerful assembler.
Post 18 Jul 2006, 13:39
View user's profile Send private message Reply with quote
Posetf



Joined: 01 Mar 2004
Posts: 35
Location: London
Posetf 24 Jul 2006, 01:46
Sorry for the late reply, and reference back to win/ollydbg...
I litter my code with such as this:
debug = 1
if debug
sqrt db "sqrt",0
end if
..
if debug
cmp eax,sqrt
end if

(obviously being careful re condition codes)
Shows up helpful in ollydbg, does it work in others?
Post 24 Jul 2006, 01:46
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.