Re: [Mingw-w64-public] Debugging broken executable that does not even start

2014-04-03 Thread Damian Kaczmarek
2014-04-03 17:53 GMT+02:00 LRN : > No. > crtexe.c:332 is the call to main(). What happens if you put a > breakpoint on main()? > > Is dot.exe (at least) built with -g? -O0? Obviously, -g -O0 is much > easier to debug. > > The main was not being called but thanks to your insights I have disabled th

Re: [Mingw-w64-public] Debugging broken executable that does not even start

2014-04-03 Thread Damian Kaczmarek
2014-04-03 17:21 GMT+02:00 LRN : > What's the exit code of the program? Create a batch file (on Windows) > with these two lines: > The exit code was invalid -257332231 or something. > Or just run under gdb. > $ gdb dot.exe GNU gdb (GDB) 7.6.1 Copyright (C) 2013 Free Software Foundation, Inc. Li

[Mingw-w64-public] Debugging broken executable that does not even start

2014-04-03 Thread Damian Kaczmarek
buffled by such behavior and totally in the dark how to find out where exactly is the problem so that it can be fixed. I would appreciate any advice. Regards, Damian Kaczmarek -- ___