Re: Debugging gcc-compiled programs on Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Andrew Smith wrote:
Hi
I just finished porting a GTK (pure C) app to Windows, but there is some
weird bug, that I need a debugger to find.
Im using mingw to build it. There is a gdb package for mingw, but that
doesn't work - when I press ctrl-c gdb quits, so since I'm not getting
crashes the utility of it is.. not there.
Is it possible to compile programs using gcc on windows so that the
visual studio debugger will be able to load the symbols for it?
Or is there some way to attach any debugger to a such a program and
break execution while it's running?
Thanks,
Andrew
What version of GDB are you using? I've used mingw GDB 6.6 on Windows
without problems.
You could always start your program and then start GDB and then attach
to the process (use the tasklist command line tool to get the PID -
tasklist is a MS tool that ships with XP Pro and the server products).
AFAIK - the MS debuggers can not read the GCC debug info, so you can not
use their tools.
[Index of Archives]
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]