Hi,
Ive been looking around but was unable to figure out how one could print out in gdb the result of an evaluation. ie for instance in the code below:
if (strcmp(current_node->word,min_node->word) > 0)
min_node = current_node;
(above i was trying out a possible method for checking alphabetical order for strings, and wasnt absolutely certain it works correctly)
now i could watch min_node and see if the value changes but in more involved code this is sometimes more complicated. i was wondering if there is a simple way to watch the evaluation of a test on the line where gdb / program flow currently is.
many thanks!