Ste*_*hen 11
但基本是这样的:
$ gdb ./your_program // start gdb on the program
> run // run the program
> run argv1 argv2 // or run it with command line arguments
(floating point exception) // let it run until exception occurs
> bt // bt will show the stack trace
Run Code Online (Sandbox Code Playgroud)
以下是一些关于如何确保它在浮点异常上停止的gdb设置.
| 归档时间: |
|
| 查看次数: |
6993 次 |
| 最近记录: |