GDB Windows ??在回溯中 [英] GDB Windows ?? in Backtraces

查看:80
本文介绍了GDB Windows ??在回溯中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用MinGW GDB 7.6版,可以获得许多类似的回溯信息:

Using MinGW GDB version 7.6, get a lot of backtraces like this:

(gdb) bt
#0  0x000000007703d256 in ntdll!RtlEnterCriticalSection ()
   from C:\Windows\SYSTEM32\ntdll.dll
#1  0x0000000000000000 in ?? ()

那不是完全有用的.

这是为什么?无论如何,有没有得到更多有用的东西?尝试找出 this 是我得到的回溯信息时发生错误时,弄清楚一个复杂的多线程程序在做什么,这是非常痛苦的.

Why is this? Is there anyway to get anything more useful? It's absolutely painful to try and figure out what a complicated, multi-threaded program was doing when an error happened when this is the backtrace that I get.

推荐答案

我在使用MinGW 64时遇到了相同的问题.使用编译器开关 -g3 -Og 最终很好地显示了所有回溯.

I run into the same problem using MinGW 64. Using the compiler switches -g3 -Og finally showed all the backtrace nicely.

这篇关于GDB Windows ??在回溯中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆