[patch] msvc demangling binutils

Aaron W. LaFramboise aaron98wiridge9@aaronwl.com
Wed Jun 23 07:09:00 GMT 2004


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



More information about the Binutils mailing list