Christian J. Robinson wrote:

> On Fri, 5 Jul 2013, Dominique Pellé wrote:
>
>
>> Christian Robinson <[email protected]> wrote:
>>
>> If you have cygwin, you have gdb.
>
>
> Well, had to install it...
>
> My question is, will this work for a *native* Windows binary being built
> using cygwin & Make_ming.mak?  (See below.)

I do not have Windows so I cannot try.
But according to this link, cygwin gdb should work with
native Windows programs:

http://sourceware.org/gdb/onlinedocs/gdb/Cygwin-Native.html


>> You can get stack trace by running Vim in gdb as follows:
>>
>> $ gdb --args vim
>
>
> $ gdb gvimd.exe
>
>> (gdb) run
>
>
> Instant crash when I do this.
>
>
>> ... and when it crashes, you can get the stack with:
>>
>> (gdb) bt
>
>
> (gdb) run
> Starting program: [...]/vim/src/gvimd.exe
> [New Thread 8840.0x3a78]
>
> Program received signal SIGSEGV, Segmentation fault.
> WinMain@16 (hInstance=0x400000, hPrevInst=0x0, lpszCmdLine=0xc45105 "",
> nCmdShow=10) at os_w32exe.c:138
> 138         return 0;
> (gdb) bt
> #0  WinMain@16 (hInstance=0x400000, hPrevInst=0x0, lpszCmdLine=0xc45105 "",
> nCmdShow=10) at os_w32exe.c:138
> #1  0x005c32fd in main (argc=<error reading variable: Cannot access memory
> at address 0x0>,
>     argv=<error reading variable: Cannot access memory at address 0x4>,
> __p__environ=<error reading variable: Cannot access memory at address 0x8>)
>     at
> /usr/src/mingw-runtime/mingw-runtime-3.20-1/src/mingwrt-3.20-mingw32/main.c:73
>
>
> Basically, I doubt a "native" (non-Cygwin) binary can be debugged with
> cygwin's gdb.

OK, I'll believe you :-)

Maybe you can use your same configuration
(.vimrc and plugins) to try to reproduce the bug on Linux
where there are useful debugging tools (gdb, valgrind).

Regards
Dominique

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui