This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb cannot understand some type with STL
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Gordon Prieur <Gordon dot Prieur at Sun dot COM>
- Cc: Eli Zaretskii <eliz at gnu dot org>, Daniel Jacobowitz <drow at false dot org>, vicshen at gmail dot com, gdb at sourceware dot org
- Date: Fri, 4 Jan 2008 11:19:10 +1300
- Subject: Re: gdb cannot understand some type with STL
> 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