I’m working in GDB on S390x
I have a function that essentially does this:
Item *getItemFromRef( PrimaryDataStructure pds, size_t ref ) {
Item *returnValue = NULL;
SecondaryDataStructure sds = getSecondaryFromPrimary(pds, ref)
if (sds) {
returnValue = getItemFromRefSecondary(sds, ref);
}
return returnValue;
}
I’ve set breakpoints on getItemFromRef and getItemFromRefSecondary. The getItemFromRef breakpoint fires fine, but the getItemFromRefSecondary never fires. Is this expected? Is there any way to get it to fire? What am I doing wrong? This behavior occurs even if I disable the breakpoint for getItemFromRef.
EDIT: Using gdb 6.8.50
I took another look at the symbols today and discovered that two different dynamic libraries were importing the same function symbol and that the break point was being set to the wrong version of the function.