Issue 148307
Summary llvm-objdump --demangle --disassemble-symbols cannot be used when symbol name has a comma
Labels tools:llvm-objdump
Assignees
Reporter MatzeB
    When `--demangle` is used the `--disassemble-symbols` option appears to require demangled named as well in `llvm-objdump` however the parameter also splits multiple names on commas. This makes it impossible to specify many C++ functions that have commas in the demangled name.

Example:
```
$ echo "int foo(int a, int b) { return 42; }" > test.cpp
$ clang++ -c test.cpp -o test.o
$ llvm-objdump --disassemble-symbols=_Z3fooii -d test.o
... works fine ...
$ llvm-objdump --demangle --disassemble-symbols="foo(int, int)" -d test.o
bla.o:  file format elf64-x86-64
llvm-objdump: warning: 'bla.o': failed to disassemble missing symbol  int)
llvm-objdump: warning: 'bla.o': failed to disassemble missing symbol foo(int
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to