|
|
To see all active functions within a program, use the where command to view the call stack.
(dbxtra) where Deal(thehand = 0x4040e4, cards = 0x7ffffb04, cardsleft = 0), line 66 in "deal.c" deal_hands(pdeal = 0x403f44), line 49 in "deal.c" main(argc = 1, argv = 0x7ffffc18, 0x7ffffc20), line 55 in "dealer.c" (dbxtra)
The where command lists all active functions, their arguments, the line number in which they stopped, and the source file in which they appear. Each function is called by the function that appears below it. In this case, Deal() was called by deal_hands(), which in turn was called by main().