I have this simple c++ code :
#include
using namespace std;
vector q;
int main()
{
    q.push_back(\"test1\");
    q.pus         
          This issue is somehow related to new gcc Dual ABI, introduced in gcc 5. gdb has poor support of these new C++11 ABI tags. See these bugs for example:
As a workaround you may disable this new gcc ABI by compiling with -D_GLIBCXX_USE_CXX11_ABI=0:
g++ -D_GLIBCXX_USE_CXX11_ABI=0 -g a.cpp