gdb seg violation during print command

David Cogen cogen@ll.mit.edu
Thu May 4 14:15:00 GMT 2000


> Try adding a line or three to main that do nothing.

Like this?

#include <iostream>

int tteesstt11 (int)
{
  cerr << "\n";
  return 4;
}

int main ()
{
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
  cout << "1\n";
}


I set my break on the first cout in main. When I print tteesstt11(1) I still
get the debugger seg violation.

-- DavidC


More information about the Gdb mailing list