flat assembler
Message board for the users of flat assembler.
Index
> Windows > My debugging symbols solution |
Author |
|
mindcooler 13 Feb 2012, 23:41
Due to the rise in posts about debugging symbols, I finished my own two-click system for creating exported symbol debug binaries, briefly described here: http://board.flatassembler.net/topic.php?t=13843
As I use custom includes, I don't know how well the idea transfers to the usual includes. Basically it consists of a program to extract suitable symbols from a .fas file, and a batch script: fas.bat wrote: @echo off fas.sed wrote: /<exports>/ { ◊ I first generate the .fas file from the assembly file. ◊ Then, from the .fas file I output those symbols that:
are used have the "optimization adjustment is applied to" (whatever that means) are not virtual/relative are not anonymous labels ◊ I make a copy of the source file, set it to debug mode. ◊ Unwanted symbols are pruned: symbols that start with a dot, contain ".iat", or is "bss". ◊ The resulting string - an export macro invocation - is inserted into the source and compiled The result is a good collection of exported symbols that is useful in debugging: _________________ This is a block of text that can be added to posts you make. |
|||
13 Feb 2012, 23:41 |
|
revolution 14 Feb 2012, 01:45
Can you please explain what sed is? It is your own program? My windows system seem to be missing it.
|
|||
14 Feb 2012, 01:45 |
|
bubach 14 Feb 2012, 08:45
my best guess would be:
Quote: Sed (streams editor) isn't really a true text editor or text processor. Instead, it is used to filter text, i.e., it takes text input and performs some operation (or set of operations) on it and outputs the modified text. Sed is typically used for extracting part of a file using pattern matching or substituting multiple occurances of a string within a file. http://gnuwin32.sourceforge.net/packages/sed.htm |
|||
14 Feb 2012, 08:45 |
|
mindcooler 14 Feb 2012, 14:33
Yes I use sed from http://unxutils.sourceforge.net/.
_________________ This is a block of text that can be added to posts you make. |
|||
14 Feb 2012, 14:33 |
|
rugxulo 16 Feb 2012, 22:43
revolution wrote: Can you please explain what sed is? It is your own program? My windows system seem to be missing it. That's because Windows is not UNIX nor POSIX and doesn't try to be. I honestly suspect you're being facetious as sed is fairly common (though admittedly very niche). http://en.wikipedia.org/wiki/Sed http://www.gnu.org/software/sed/ http://www.pement.org/sed/ http://sed.sourceforge.net/ http://lvogel.free.fr/sed.htm http://www.exactcode.de/site/open_source/minised/ |
|||
16 Feb 2012, 22:43 |
|
rugxulo 16 Feb 2012, 22:54
|
|||
16 Feb 2012, 22:54 |
|
mindcooler 03 Nov 2012, 22:52
I've tweaked my system somewhat to include more useful symbols and filter more less useful ones.
http://files.sys5.se/fas.asm fas.bat wrote: @echo off _________________ This is a block of text that can be added to posts you make. |
|||
03 Nov 2012, 22:52 |
|
XQuader 26 Mar 2013, 13:36
Where is compiled version of fas.asm?
Can someone share it? Or share pe.inc (needed to compile it from fas.asm) PS. Sorry for bad English |
|||
26 Mar 2013, 13:36 |
|
mindcooler 26 Mar 2013, 22:58
I can try to make it a bit more general than it is now; it has a lot of hardcoded paths and stuff as it is now.
|
|||
26 Mar 2013, 22:58 |
|
mindcooler 29 Mar 2013, 18:40
Made a bundle: http://files.sys5.se/fas.zip
You need to change two lines in the fas.bat file, then supply fas.exe the parameter fas.asm to test the system out. _________________ This is a block of text that can be added to posts you make. |
|||
29 Mar 2013, 18:40 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.