This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] msvc demangling binutils


Eddy Pronk wrote:
It uses a win32 API call to UnDecorateSymbolName.

I managed to link manually to libimagehlp.a, but failed to
integrate it in the build.

This functionality is good, but I am concerned about the DLL dependency. According to my docs, the API is actually dbghelp.dll, which is not present on Win9x or WinNT. I think the imagehlp interface is older, but I don't think it has the same capabilities. There is some legacy issue here that I don't really know about. dbghelp.dll is availible as a redistributable for these systems, but I am sure it is not appropriate to include this in the binutils distribution.


I think the way to do this would be to do a autoconf check for the presence of the prototype of UnDecorateSymbolName in <dbghelp.h>, presence of the UnDecorateSymbolName symbol in -ldbghelp, and a check that an executable linked against this symbol in dbghelp will actually run (to ensure the system actually has the DLL).

Aaron W. LaFramboise


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]