Hot answers tagged

2

use print &text or use info locals :\>dir /b & type cin.cpp & g++ -g cin.cpp & echo ========= & gdb -q a.exe cin.cpp #include <iostream> #include <string> using namespace std; int main (void) { string text; getline(cin,text); }========= Reading symbols from a.exe...done. (gdb) break main Breakpoint 1 at ...


Only top voted, non community-wiki answers of a minimum length are eligible