[PATCH] addr2line: -C should not try to handle optional (ignored) argument
Mark Wielaard
mark@klomp.org
Mon Jan 30 21:04:31 GMT 2023
Hi,
On Mon, Jan 23, 2023 at 10:11:28AM +0100, Mark Wielaard wrote:
> The --demangle option takes an option (ignored) argument. Since -C
> is the short option of --demangle it also takes that optional
> argument. But that means that something like -Cfi is like -C got
> fi as argument, while the user expects -Cfi to be like -C -f -i.
>
> Separate the --demangle and -C options. --demangle still takes
> an optional (ignored) argument, but -C doesn't take any arguments
> so -Cfi acts the same as -fiC.
>
> Also fix --target, -b, so that it is properly ignored (and not
> accidentially enables demangling).
Pushed.
Cheers,
Mark
More information about the Elfutils-devel
mailing list