Re: [Mingw-w64-public] Debugging with GDB

2014-10-16 Thread Carl Kleffner
You can also use backtrace-mingw: http://code.google.com/p/backtrace-mingw/ a much more recent version (public domain) is found here: http://wiki.eduke32.com/wiki/Building_EDuke32_on_Windows http://wiki.eduke32.com/wiki/Acquiring_the_EDuke32_Source_Code (see daily snapshots) compile it with:

Re: [Mingw-w64-public] Debugging with GDB

2014-10-15 Thread Óscar Fuentes
Kai Tietz writes: > for sure there are some issues in gdb about debugging pe and pe+ coff > executables in some scenarios. For pe+ ones the backtrace shown by > gdb is much more reliable then for the 32-bit case, as pe+ makes use > of the function-tables, which helps on unwinding pretty much. >

Re: [Mingw-w64-public] Debugging with GDB

2014-10-15 Thread Kai Tietz
Hi, for sure there are some issues in gdb about debugging pe and pe+ coff executables in some scenarios. For pe+ ones the backtrace shown by gdb is much more reliable then for the 32-bit case, as pe+ makes use of the function-tables, which helps on unwinding pretty much. Nevertheless there are so

Re: [Mingw-w64-public] Debugging with GDB

2014-10-15 Thread Alexander Shukaev
> > Are you running the application from gdb? Seeing the above makes me > think you are not. The GDB output was presented in the very first post. The one that you refer to is simply a crash report generated by Windows itself. I included it merely to provide some clues. ---

Re: [Mingw-w64-public] Debugging with GDB

2014-10-15 Thread Óscar Fuentes
Alexander Shukaev writes: > When the application crashes it shows the following: > > Fault Module Name: StackHash_e7de > Fault Module Version: 0.0.0.0 > Fault Module Timestamp: > Exception Offset: PCH_E1_FROM_ntdll+0x0009B13A > Exception Code: c005 > Exception Dat

Re: [Mingw-w64-public] Debugging with GDB

2014-10-15 Thread LRN
On 15.10.2014 11:52, Alexander Shukaev wrote: >> First you need build application with debug info using CFLAGS like «-Og >> -g» and don’t strip result binaries. >> > > When I was asking this question it was already implied as I am of course > aware of these details. > > >> After this you can get

Re: [Mingw-w64-public] Debugging with GDB

2014-10-15 Thread Ruben Van Boxem
2014-10-15 10:05 GMT+02:00 Alexander Shukaev : > When the application crashes it shows the following: > > Fault Module Name: StackHash_e7de > Fault Module Version: 0.0.0.0 > Fault Module Timestamp: > Exception Offset: PCH_E1_FROM_ntdll+0x0009B13A > Exception Code: c0

Re: [Mingw-w64-public] Debugging with GDB

2014-10-15 Thread Alexander Shukaev
When the application crashes it shows the following: Fault Module Name: StackHash_e7de Fault Module Version: 0.0.0.0 Fault Module Timestamp: Exception Offset: PCH_E1_FROM_ntdll+0x0009B13A Exception Code: c005 Exception Data: 0008 This resembles exactly

Re: [Mingw-w64-public] Debugging with GDB

2014-10-15 Thread Alexander Shukaev
> > Hi, Alexander! > Hey Alexey, > First you need build application with debug info using CFLAGS like «-Og > -g» and don’t strip result binaries. > When I was asking this question it was already implied as I am of course aware of these details. > After this you can get useful backtrace from G

Re: [Mingw-w64-public] Debugging with GDB

2014-10-15 Thread Alexpux
15 окт. 2014 г., в 11:38, Alexander Shukaev написал(а): > Hey everyone, > > Could you guys give me a hint how to properly debug something on Windows with > GDB? > > I usually don't use GDB to find out causes of crashing, i.e. I either infer > them from the code or find it out through logging

[Mingw-w64-public] Debugging with GDB

2014-10-15 Thread Alexander Shukaev
Hey everyone, Could you guys give me a hint how to properly debug something on Windows with GDB? I usually don't use GDB to find out causes of crashing, i.e. I either infer them from the code or find it out through logging facilities. One of the reasons why I almost never use GDB on Windows is th

Re: [Mingw-w64-public] Debugging with GDB on Windows / MinGW is painfully slow

2012-07-21 Thread Ray Donnelly
Hi guys, Regarding GDB and Python: I've got some WIP Python patches that were created for Necessitas Qt Creator's NDK GDB for Android. They've since been merged into the Google NDK: https://android-review.googlesource.com/#/c/38501/ Using the patches in that merge request, it's possible to buil

Re: [Mingw-w64-public] Debugging with GDB on Windows / MinGW is painfully slow

2012-07-21 Thread Ruben Van Boxem
2012/7/21 asmwarrior > On 2012-7-21 15:07, Eran Ifrah wrote: > > > > > > On Sat, Jul 21, 2012 at 7:59 AM, asmwarrior < > asmwarrior-re5jqeeqqe8avxtiumw...@public.gmane.org asmwarr...@gmail.com>> wrote: > > > > On 2012-7-21 11:38, K. Frank wrote: > > > As I mentioned above, my gdb version

Re: [Mingw-w64-public] Debugging with GDB on Windows / MinGW is painfully slow

2012-07-21 Thread asmwarrior
On 2012-7-21 15:07, Eran Ifrah wrote: > > > On Sat, Jul 21, 2012 at 7:59 AM, asmwarrior > > wrote: > > On 2012-7-21 11:38, K. Frank wrote: > > As I mentioned above, my gdb version is 7.3.0. > > > >> >You can try a recent gdb (mostly the gdb build from

Re: [Mingw-w64-public] Debugging with gdb/QtCreator

2012-05-15 Thread Earnie Boyd
On Mon, May 14, 2012 at 6:56 PM, Antony Riakiotakis wrote: > Ah, looks like the reason for the strange behaviour was my using > release with debug info build type for cmake. Optimizations play funky > with the debugger it seems. Now all is in order...phew. > If you're debugging code you should st

Re: [Mingw-w64-public] Debugging with gdb/QtCreator

2012-05-14 Thread Antony Riakiotakis
Ah, looks like the reason for the strange behaviour was my using release with debug info build type for cmake. Optimizations play funky with the debugger it seems. Now all is in order...phew. So, summarizing again for reference: * Make sure python 2.7 is installed * Make sure you don't enable any

Re: [Mingw-w64-public] Debugging with gdb/QtCreator

2012-05-14 Thread Ruben Van Boxem
2012/5/14 K. Frank > Hi Ruben! > > On Mon, May 14, 2012 at 2:27 PM, Ruben Van Boxem > wrote: > > 2012/5/14 Antony Riakiotakis > >> > >> Hi, > >> > >> First, good news: > >> MinGW-w64 support for blender is getting more complete by the day, ... > > ... > > I decided to build blender from source,

Re: [Mingw-w64-public] Debugging with gdb/QtCreator

2012-05-14 Thread K. Frank
Hi Ruben! On Mon, May 14, 2012 at 2:27 PM, Ruben Van Boxem wrote: > 2012/5/14 Antony Riakiotakis >> >> Hi, >> >> First, good news: >> MinGW-w64 support for blender is getting more complete by the day, ... > ... > I decided to build blender from source, which worked using the instructions > on th

Re: [Mingw-w64-public] Debugging with gdb/QtCreator

2012-05-14 Thread Antony Riakiotakis
Hmmm...I really can't say.. unfortunately, openmp destabilizes the build (crash when rendering subdivision modified objects) so it may be causing the error with threading on your build. Also we bundle the pthread library that came from a different MinGW64 build, which may cause the issues with thre

Re: [Mingw-w64-public] Debugging with gdb/QtCreator

2012-05-14 Thread Ruben Van Boxem
2012/5/14 Antony Riakiotakis > Hi, > > First, good news: > MinGW-w64 support for blender is getting more complete by the day, to > the point where users download and test (and may even prefer, due to > the speed increase ;) ) mingw-w64 builds. There have been a few > compiler-related issues but m

Re: [Mingw-w64-public] Debugging with gdb/QtCreator

2012-05-14 Thread Antony Riakiotakis
Looks like I managed to make it work with QT too, sorry for the fuss. Still when tracing with gdb the cursor seems to hop randomly in the source...I don't know why that may be unfortunately :/ -- Live Security Virtual Conf

[Mingw-w64-public] Debugging with gdb/QtCreator

2012-05-14 Thread Antony Riakiotakis
Hi, First, good news: MinGW-w64 support for blender is getting more complete by the day, to the point where users download and test (and may even prefer, due to the speed increase ;) ) mingw-w64 builds. There have been a few compiler-related issues but more like gcc-related than MinGW-64 related I