I am working with a C ++ library. The library uses several namespaces. When debugging, I have to prefix each symbol name with a namespace prefix. This causes a lot of extra work and input.
C ++ has a concept using namespace Xto make characters accessible with greater ease (many manual failures). I am looking for similar ones in gdb. For example, instead b MyLibNamespace::Foo::bar, I want b Foo::bar.
GDB doesn't have namespace related support, but I probably have something wrong:
(gdb) help namespace
Undefined command: "namespace". Try "help".
(gdb) namespace help
Undefined command: "namespace". Try "help".
How do I tell GDB to use a namespace prefix, so I don’t need to provide it for every character name?
source
share