In order to more easily find out what happened in the function which called wib we can use GDB's stack commands.
为了更容易地查明在调用wib的函数中发生了什么情况,可以使用gdb的堆栈命令。
Because wib is in frame 0 that's the function the program was executing inside when the arithmetic error occurred.
由于wib在0号帧中,那么它就是执行程序时发生算术错误的函数。
Issuing 'print value' and 'print div' will show that the variables are 10 and 6 for this first wib call and 'print I' will show zero.
发出' print value '和' print div '将会显示在第一次调用wib时,变量分别等于10和6,而' print i '将会显示0。
应用推荐