Author Topic: LNK4209: Debugging information corrupt  (Read 1025 times)

johnsa

  • Member
  • ****
  • Posts: 660
    • Uasm
Re: LNK4209: Debugging information corrupt
« Reply #15 on: December 06, 2017, 03:32:16 AM »
I can only find it available still a preview 5, where did you find the update ? :) It's not showing in my VS notifications either.

Leaeaxedx

  • Regular Member
  • *
  • Posts: 8
Re: LNK4209: Debugging information corrupt
« Reply #16 on: December 06, 2017, 08:28:28 PM »
I can only find it available still a preview 5, where did you find the update ? :) It's not showing in my VS notifications either.

VS showed me the available update 15.5.

I have no idea why this is not the case for you.

Have you tried the Tools\Extensions and Updates drop down menu option? A dialog opens to select updates.

Igor

BTW: I noticed your are on the UASM developer team. Great work, keep up!  :t

johnsa

  • Member
  • ****
  • Posts: 660
    • Uasm
Re: LNK4209: Debugging information corrupt
« Reply #17 on: December 06, 2017, 09:00:43 PM »
Thanks :) Will do,

Yeah I checked there , still nothing.. I'm using VS 2017 Pro, maybe it hasn't been applied to Pro yet ?

Leaeaxedx

  • Regular Member
  • *
  • Posts: 8
Re: LNK4209: Debugging information corrupt
« Reply #18 on: December 06, 2017, 09:19:45 PM »
That might be the case. I'm using the Community version.

johnsa

  • Member
  • ****
  • Posts: 660
    • Uasm
Re: LNK4209: Debugging information corrupt
« Reply #19 on: December 18, 2017, 12:15:57 AM »
15.5.2 is now available for Visual Studio Professional, so I can remove the preview. Yay :)

aw27

  • Member
  • *****
  • Posts: 1040
  • Let's Make ASM Great Again!
Re: LNK4209: Debugging information corrupt
« Reply #20 on: December 29, 2017, 07:18:37 AM »
I am using the latest Microsoft (R) Incremental Linker Version 14.12.25831.0 and the latest UASM v2.46, Dec 14 2017

With this code:
Code: [Select]
; Assemble with
; uasm64 -c -win64 -Zp8 /Sg /WX /Zi main.asm
;OR with
; ml64 -c -Zp8 /Sg /WX /Zi main.asm
; link /ENTRY:start /SUBSYSTEM:windows /MACHINE:X64 /FIXED /DEBUG /DEBUGTYPE:CV /PDB:"main.pdb" main.obj

option casemap:none

includelib \masm32\Lib64\kernel32.lib
ExitProcess proto :dword;

.code

start Proc
sub rsp,8
int 3
mov ecx,0
call ExitProcess
start Endp

end

When assembled with MASM and debugged on Windbg I see the source:


When assembled with UASM and debugged on Windbg I don't see the source:


No errors, all linked perfectly.

johnsa

  • Member
  • ****
  • Posts: 660
    • Uasm
Re: LNK4209: Debugging information corrupt
« Reply #21 on: December 29, 2017, 07:28:23 AM »
Just tried with VS and WinDbg x64, VS automatically opened the source file, windbg I had to manually open it to start but then it was all working fine, although I've had that same issue always with Windbg tbh..


nidud

  • Member
  • *****
  • Posts: 1424
    • https://github.com/nidud/asmc
Re: LNK4209: Debugging information corrupt
« Reply #22 on: December 29, 2017, 07:51:25 AM »
I had to manually open it to start but then it was all working fine, although I've had that same issue always with Windbg tbh..

Even if you use the full path name to the source as argument?

johnsa

  • Member
  • ****
  • Posts: 660
    • Uasm
Re: LNK4209: Debugging information corrupt
« Reply #23 on: December 29, 2017, 10:15:57 PM »
I haven't tried to be honest, I never use windbg only Visual Studio, it's a much nicer environment to debug in, and profile etc etc..