在 2019/10/3 上午8:13, Kacvinsky, Tom 写道:
> I am unfortunately in the position where the Visual Studio compiled code I am 
> using does not
> allow me to set a breakpoint where I need to.  I have been told it is because 
> I am using the /MD
> flag and that is causing problems with the generated oject code with respect 
> to the information
> stored in the PDB file.  So, I can compile the code with /MDd, which in turn 
> will force the use of
> the debug MS run time libraries.  But MinGW-w64 uses only the release version 
> of the runtime
> libraries.  Is there a way of getting the debug versions of these runtimes to 
> be linked into the DLL
> I am generating via gnatdll?  IF there is, that would be great.  I can 
> rebuild all of my libraries with
> debug run times that way and see if I have better luck with setting 
> breakpoints in Visual Studio.
> 

Usually mingw-w64 libraries should have been installed with debug
symbols unstripped, so you should be able to set breakpoints in such
code in GDB except on code that was unreferenced or eliminated and so forth.

I am not clear how you use Visual Studio to debug such programs, maybe
you are using Clang with LLDB? That's beyond my ken.


-- 
Best regards,
LH_Mouse

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to