我想要了解如何跳过函数调用。例如,考虑以下程序:
在GDB中,我在第11行设置了一个断点(
现在我想跳过所有将被调用来打印
我应该如何做?我应该使用哪个命令?
#include <iostream>
#include "test.h"
using std::cout;
using std::endl;
Uint u;
int main()
{
cout << "execution starting..." << endl;
cout << u.a << endl;
cout << "execution completed" << endl;
}
在GDB中,我在第11行设置了一个断点(
cout << "execution starting..." << endl;
),使用break 11
。现在我想跳过所有将被调用来打印
"execution starting..."
的指令,并在打印endl
符号的<<
运算符调用处停止。我应该如何做?我应该使用哪个命令?