[Qt-interest] GDB on Windows?
Josiah Bryan
jbryan at productiveconcepts.com
Sat Nov 28 16:58:45 CET 2009
I'm having a rough time debugging crashes (segfaults and the like) under
windows with Qt Creator. With linux, I find it easy to use: Run program
in gdb, when crash, type 'bt' to get the stack trace. Simple in my
little brain.
But on Win32 with Qt Creator, the program crashes, and it gives me a
list of threads, and the thread it stops in frequently has none of my
code in the stack - nor do any of the other threads. In fact, when the
crash hits, it's normally all a "light gray" stack - not even indicating
where it crashed in any useful form for debugging (at least, that I can
understand.)
I'm old school linux - used to gdb - so please be patient as I likely do
have a block of wood up there in that cranial cavity. Regardless, can
anyone offer pointers on how to use the debugger in Qt Creator on
windows to find where the segfaults hit? Or even better, use gdb from
the command line? ("Qt Command Prompt" (or whatever its called) in the
start menu that Qt installed doesn't have 'gdb' in its path.)
Thanks for any advice.
Cheers!
-josiah
More information about the Qt-interest-old
mailing list