【发布时间】:2011-09-19 16:31:20
【问题描述】:
这是我程序中的一个函数
void
quicksort (int *num, int p, int r, int june)
{
int q, bbc, ccd;
if (p < r)
{
call++;
q = partition (num, p, r, june);//<--I want to skip this call in gdb session
bbc = q - 1 - p + 1;//<-- and want to continue execution step by step from here
quicksort (num, p, q - 1, bbc);
ccd=r-q+1;
quicksort (num, q + 1, r, ccd);
}
} //since it is a recursive function each time quicksort is called partition is also executed I want to focus my debugging only to quicksort
如果你注意到它在两者之间调用另一个函数分区。在 gdb 会话中运行时 我想跳过显示分区步骤的 gdb,即我知道函数分区是正确的,所以执行分区的操作,然后跳转到下一条指令
bbc = q - 1 - p + 1;
并且在我的调试会话中不显示有关分区的信息。 那么如何跳过该部分并继续调试快速排序。
【问题讨论】: