WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
Pages (2) [1] 2   ( Go to first unread post )

Debugging FASM .exe programs the WinDbg, you can debug .exe programs created with fasm on source level with WinDbg

habran
Quote Post


Extremely Active Member
******

Group: Members
Posts: 165
Member No.: 10778
Joined: 2-August 08


Hi everyone!

Here is simple code written in fasm coff that can be debugged on the source level with the WinDbg. It is possible because of the "pecvt.exe" created by strap89 from Russia
You can find him here: http://board.flatassembler.net/topic.php?t=9791

It is possible to link .obj created with pecvt.exe, but it must be linked with newer linker.
I have used:"Microsoft ® Incremental Linker Version 8.00.50727.42"
So, what I have done is copied VC folder from "C:\Program Files\Microsoft SDKs\Windows\v6.0\VC" to my C drive and called linker from there and everything runs smooth.


Now I can debug FASM coff files with WinDbg in source mode

P.S.
Open mscoff.exe with the WinDbg

Here is example:

Attached File ( Number of downloads: 100 )
 Login or Register to download
PMEmail Poster
Top
Jesus
Quote Post


Very Active Member
****

Group: Members
Posts: 76
Member No.: 5854
Joined: 24-March 08


Nice, thank you for the contribution. smile.gif
PMEmail Poster
Top
habran
Quote Post


Extremely Active Member
******

Group: Members
Posts: 165
Member No.: 10778
Joined: 2-August 08


Thanks for nice words Jesus, my pleasure


I have here another example

To be able to build it you ned to have these tools in masm32\bin:

1. BCC55 make.exe
2. pecvt.exe
3. newer link.exe (my is 'Microsoft ® Incremental Linker Version 8.00.50727.42'

I also use 'Microsoft ® Macro Assembler Version 8.00.50727.42'

they both come with Microsoft SDK 6.0

You need also a newest wafasm.dll 1.80...

set up Add-Ins>Add-Ins Manager>FASM support v 1.80.1>configure
MAKE:
Type Path to the make utility
MAKE %masm32%\bin\make.exe

Attached File ( Number of downloads: 44 )
 Login or Register to download
PMEmail Poster
Top
habran
Quote Post


Extremely Active Member
******

Group: Members
Posts: 165
Member No.: 10778
Joined: 2-August 08


Here is "Hello world example" that Wortex sent to me because we tested printf function
it is called 'Printf'

Attached File ( Number of downloads: 31 )
 Login or Register to download
PMEmail Poster
Top
shoorick
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 2301
Member No.: 160
Joined: 22-June 04


couple fixes around scan:
1.in makefile scanning must go before assembling:
CODE
$(ASM_NAME).obj : $(ASM_NAME).asm
  $(SCAN)Scan $(ASM_NAME).asm -dc
!ifdef DEBUG
   $(FASMINC)\..\fasm -s $(ASM_NAME).fas \
       $(ASM_NAME).asm $(ASM_NAME).obj
   $(PECVT)\pecvt -t $(ASM_NAME).fas $(ASM_NAME).obj
!else
   $(FASMINC)\..\fasm $(ASM_NAME).asm $(ASM_NAME).obj
!endif


2.it is possible just turn on "Scan on Go All" to perform scanning each time "Go All" executed. if yes - no need to have it in the makefile.

regards!


Attached Image
Attached Image
PMEmail PosterUsers Website
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Pages (2) [1] 2  Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google