I am using eclipse CDT in Ubuntu OS and have created a C project with external static library(libtomcrypt) linked to it. It runs and gives the output correctly, but I want to know definition of the library functions, the call hierarchy of the functions and their implementation.
So turned on debugging mode and started looking into execution steps line by line using "step into" button and it works with the functions that I defined in main() (i.e., step into works for test_function() in this example) but step into is not working for the library functions that I'm calling(register_hash(&sha256_desc) & find_hash("sha256") functions in this example).
It just skips the the line without stepping into and moves onto next line. Please help me solve this problem.
int main()
{
/* some code initialization */
double sha_elapsed;
/* register hashes .... */
if ((err=register_hash(&sha256_desc)) == -1) {
printf("Error registering MD5.\n");
return -1;
}
/* get hash index */
indx = find_hash("sha256");
if (indx == -1) {
printf("Invalid hash name!\n");
return -1;
}
printf("something");
test_function() {
//code for the function
}
//remaining code
}//end of main()