Recent

Author Topic: External assembler NASM - how to get debug info integrated  (Read 2753 times)

MathMan

  • Sr. Member
  • ****
  • Posts: 325
External assembler NASM - how to get debug info integrated
« on: July 29, 2016, 03:45:57 pm »
Hi all,

After reading the NASM (and some other) documentation it might be that I am asking for the impossible - but maybe I misunderstood and it is possible.

Environment: FPC 3.0.0 + Lazarus 1.6.0 on Win7 (64 bit)

I am using NASM for external assembler routines that I link into a Pascal framework. All working fine but as I have to use the output format win64 on NASM (which is converted to COFF) it looks like there is no way to integrate debug info into the external object file produced. This means that I am not able to single-step through the assembler routines like I used to under Linux with elf64 / dwarf. I use

> NASM -f win64 LongArith.asm

to produce the object file and then refering to individual functions in the Pascal framework via

Code: Pascal  [Select][+][-]
  1. {$link LongArith.obj}
  2. ...
  3. function abc( ... some parameters ... ):QWORD;register;external name 'abc';
  4.  

Is it really not possible to integrate debug Information or did I miss something?

Kind regards,
MathMan

Leledumbo

  • Hero Member
  • *****
  • Posts: 8747
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: External assembler NASM - how to get debug info integrated
« Reply #1 on: July 29, 2016, 03:52:49 pm »
try executing:
Code: Bash  [Select][+][-]
  1. nasm -h
and see whether you can find what you're looking for

 

TinyPortal © 2005-2018