-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tweak D demangling to be more in lline with core.demangle #6
base: dlang
Are you sure you want to change the base?
Conversation
rainers
commented
Apr 17, 2017
- fix delegate/function syntax
- show function attributes with DMGL_VERBOSE
- fix memory leak (mods)
Yes, that would probably be nicer, but prefixed is compatible with core.demangle.
True, the return/variable types should be stripped in symbol references. |
But doesn't make sense for symbol search in say gdb. Though I can have another look at what flags they use, as well as other objdump/nm utilities. But I'd prefer append over prepend in the output any day. |
I guess it doesn't make much sense to search the "verbose" symbols to begin with.
Unfortuately, even the compiler prefers to print the attributes first:
Maybe we can add a "private" flag to the options? Nevertheless I'll change the default to append... BTW: from demangle.h it seems that you should use DMGL_RET_DROP instead of DMGL_TYPES to drop the return type. |
Updated to append the attributes, but the calling convention still has to be prepended. |
I rebased this on top of dlang, just to see how it looks like with the new |
show function attributes with DMGL_VERBOSE