flat assembler
Message board for the users of flat assembler.
Index
> Main > Debug information |
Author |
|
Soft RaideR 30 Aug 2003, 19:07
When fasm can generate debuf information or map files ?
Maybe anyone have macros's for generating map files? sorry for my english. |
|||
30 Aug 2003, 19:07 |
|
ucode81 14 Sep 2003, 20:54
Hi,
I disagree with using display. I have looked at the source (except for the lack of comments, a fine job overall) and do not see that it would be that difficult to add debugging information to the COFF (PE) executable. Superb generic debuggers like OllyDebug could REALLY benefit. I am not sure how the rest of you do this today, but I am "forced" to write my programs using TASM to debug them, and then I feed the only slightly modified source (I have created a few macros to handle some unique TASM directives I use) to FASM to create a far tighter executable (not to mention FASM is far faster than TASM). I am willing to help in this endeavor... |
|||
14 Sep 2003, 20:54 |
|
Tomasz Grysztar 14 Sep 2003, 21:12
What kind of debug info are you using? Is it a relationship between function names and addresses, or between addresses and lines in source code? The first one probably woulnd't be that hard to implement, but with the second there are some real problems (look at the thread about the listing feature).
|
|||
14 Sep 2003, 21:12 |
|
Soft RaideR 14 Sep 2003, 22:42
I have description of debug information. If you want I may send it to you. It consists of addresses of function and data, and numbers of source lines, but i dont understand for what may needs references for lines numbers of source code of project that written on assembler. Debugers that I try to use, except OllyDbg correct dissasemble all source code, but sometimes very useful view macros name in debuger without sorce code of macros.
|
|||
14 Sep 2003, 22:42 |
|
ucode81 16 Sep 2003, 00:14
Ok, let me break this apart.
At a bare minimum, what is needed is the label (or variable) to address mapping table so that I can look at names instead of hex digits in the display. If you have something to do that already without peppering display throughout my code, I am all ears! A debugging environment that is far more user-friendly (and what we all have grown accustomed to in other assembler environments) is that the source line is also indicated. This could be used by the debugger directly (some debuggers provide the optoin to show disassembled or source code in the main window) or as a tracking source code window (OllyDebug and TurboDebug have this option as well). FYI, I did follow the thread on the listing feature but it seems to me there is somewhat simple way to get 99% of what is needed for debugging. Consider that that the source line IS the source line and you REALLY do not need to expand macros into multiple lines of code for debugging UNLIKE what most people would like to see a listing and is causing you all of your nightmares. Nearly all debuggers (actually, cannot find a counter-example so maybe all) associate the assembly instructions (plural) with the closest source line number located at (or below) the memory location being printed. (The reason they do is that all of the debuggers I tried support HLLs which is dominated by multiple assembly instructions per single HLL statement, so they have to!) Cheers! |
|||
16 Sep 2003, 00:14 |
|
Tomasz Grysztar 16 Sep 2003, 07:48
OK, so I see that the modifications I have made in the way to make listing addition are enough for this purpose. The only remaining problem is choosing the format of debug information. Do you need it for COFF or ELF formats, or for the PE - which would be completely different solution?
|
|||
16 Sep 2003, 07:48 |
|
ucode81 17 Sep 2003, 18:14
COFF has a clear format as does ELF. PE actually has, well, three debug formats AFAIK: COFF directly per the spec, M$ CV4 format, and Borland's debug format.
I think having it in COFF is the best starting point. It is possible OllyDebug might be able to use it as is if FASM puts it in the EXE. If OllyDebug does not, then if I use a LINK.EXE with an MS COFF object file (instead of FASM generating the EXE), I will get debug output. ELF is even simpler than COFF. |
|||
17 Sep 2003, 18:14 |
|
BiDark 26 Sep 2003, 03:34
Does anybody got CV4 spec? I would like to grap one.
|
|||
26 Sep 2003, 03:34 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.