I'm stopped at a breakpoint in a function in gdb:
(gdb) frame
#0 generateBlocks (coinbaseScript=std::shared_ptr (count 2, weak 0) 0x7fffc8000e80, nGenerate=1, nMaxTries=1000000, keepScript=false) at rpc/mining.cpp:117
117 unsigned int nExtraNonce = 0;
(gdb)
Is there a way to find out where this function was called?