[PATCH] stack: Add --quiet to not resolve addresses, add --raw to not demangle.

Jan Kratochvil jan.kratochvil at redhat.com
Thu Jan 2 20:31:14 UTC 2014


On Mon, 23 Dec 2013 21:35:41 +0100, Mark Wielaard wrote:
> +#ifdef USE_DEMANGLE
> +    case 'r':
> +      show_raw = true;
> +      break;
> +#endif

It is more a nitpick but I do not find too great that a build without
demangling support will fail "eu-stack -r ..." with:
	eu-stack: invalid option -- 'r'
	Try `stack --help' or `stack --usage' for more information.

Despite it could display the information requested.

-r should be IMO just ignored for builds without demangling support.
The demangling would be just a best-effort.  After all a mangled symbol name
is still a valid symbol name.

The current USE_DEMANGLE #ifdefs in elfutils are in src/nm.C where it is used
in opposite way - to explicitly enable demangling with -C.  There it makes
sense to fail if -C was explicitly requested and the build cannot provide it.


Thanks,
Jan


More information about the elfutils-devel mailing list