flat assembler
Message board for the users of flat assembler.

Index > Windows > [fasm2] symbolic / debug information for fasm2

Author
Thread Post new topic Reply to topic
neeraj9



Joined: 03 Apr 2025
Posts: 12
neeraj9 05 Apr 2025, 19:17
I noticed a thread on symbolic / debug info for fasm 1, but not for fasm2. Is there a workaround to help with debugging using x64dbg when compiling with fasm2?


Ref: https://board.flatassembler.net/topic.php?t=9792
Post 05 Apr 2025, 19:17
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4211
Location: vpcmpistri
bitRAKE 05 Apr 2025, 23:25
It's not part of my workflow, but I did play with it a little.

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 05 Apr 2025, 23:25
View user's profile Send private message Visit poster's website Reply with quote
neeraj9



Joined: 03 Apr 2025
Posts: 12
neeraj9 06 Apr 2025, 04:14
Thanks for the thread. I do not see an option for dumping debug info when dealing with fasm2 for my assembly code.

I did notice the thread https://board.flatassembler.net/topic.php?t=22388, but did not find a mechanism in fasm2 to dump symbolic info.
Post 06 Apr 2025, 04:14
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4211
Location: vpcmpistri
bitRAKE 06 Apr 2025, 07:10
It takes some work, tbh.

First, configure x64dbg:
Preferences -> Engine -> "Save Database in Program Directory"
(Turn off compression too?)

Next add special listing script to start of assembly code (mostly based on Tomasz' work):
include 'dbg_dd64.inc'

Assemble your program.

Rename *.dd64 -> *.exe.dd64
(Limitation of fasmg name scope. Which I also cover with a patch.)

Debug with x64dbg.

I've pushed an example to github.
Post 06 Apr 2025, 07:10
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.