[RFC,v2,0/2] objdump, libiberty: Implement short name search

Message ID CAOscM-t2qAxRUpgOi0ewsAyoDoOgY3-P9BS1Bphg3MJExnCm=w@mail.gmail.com
Headers
Series objdump, libiberty: Implement short name search |

Message

Mikołaj Piróg March 8, 2024, 6:04 p.m. UTC
  This patch refines my previous attempt of implementing short name search (
https://sourceware.org/pipermail/binutils/2024-February/132713.html). The
idea is to enable such usage:

objdump --disassemble=ns::foo -C file

The objdump will then output all symbols matching the name "ns::foo".
I introduced new demangling option to remove template qualification, so for
example, "--dissassemble=std::vector::push_back" will match all instances
of push_back in the file.

The motivation behind this usage is to ease a process of a quick
disassembly of a binary in search for a particular function. Providing a
function signature isn't comfortable.