我在 S390x 上的 GDB 工作
我有一个基本上可以做到这一点的功能:
Item *getItemFromRef( PrimaryDataStructure pds, size_t ref ) {
Item *returnValue = NULL;
SecondaryDataStructure sds = getSecondaryFromPrimary(pds, ref)
if (sds) {
returnValue = getItemFromRefSecondary(sds, ref);
}
return returnValue;
}
我在getItemFromRef
和上设置了断点getItemFromRefSecondary
。getItemFromRef
断点触发良好,但从不getItemFromRefSecondary
触发。这是预期的吗?有什么办法让它着火吗?我究竟做错了什么?即使我禁用getItemFromRef
.
编辑:使用 gdb 6.8.50