To trace back in GDB, use the "backtrace" or "bt" command. It prints a backtrace of the entire stack, showing one line per frame. You can stop the backtrace by typing Ctrl-c. Remember, the monitor command does not work on local targets, only on remotes.