gdb cannot understand some type with STL
Nick Roberts
nickrob@snap.net.nz
Thu Jan 3 22:23:00 GMT 2008
> In which case "whatis 'std::list TAB" (note the single quote) should
> complete the correct text to type, right?
> Is this solution likely to work in mi mode? I've run into similar issues with
> gdb/mi in the NetBeans gdb module.
I know nothing about NetBeans but Emacs uses the "complete" command for
completion. Maybe NetBeans could use it too:
(gdb)
complete whatis 'std::list<int,
&"complete whatis 'std::list<int,\n"
~"whatis 'std::list<int, std::allocator<int> >::_M_create_node(int const&)\n"
~"whatis 'std::list<int, std::allocator<int> >::_M_insert(std::_List_iterator<int>, int const&)\n"
~"whatis 'std::list<int, std::allocator<int> >::end()\n"
~"whatis 'std::list<int, std::allocator<int> >::list(std::allocator<int> const&)\n"
~"whatis 'std::list<int, std::allocator<int> >::push_back(int const&)\n"
~"whatis 'std::list<int, std::allocator<int> >::~list()\n"
~"whatis 'std::list<int,std::allocator<int> >\n"
^done
(gdb)
or better still use:
-interpreter-exec console "complete whatis 'std::list<int,"
--
Nick http://www.inet.net.nz/~nickrob
More information about the Gdb
mailing list