I have a long C function that can return at different lines. Is it possible to have GDB run through the function and print out on what line the function returned? So far I have been going through one line at a time (using n), and this is becoming tedious.
Can I dynamically call a function with GDB and know on which line it returned?