This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: mingw-w64's GDB 64-bit/32-bit debugging
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Luis Machado <lgustavo at codesourcery dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 06 Dec 2016 05:33:57 +0200
- Subject: Re: mingw-w64's GDB 64-bit/32-bit debugging
- Authentication-results: sourceware.org; auth=none
- References: <6b0e1474-b965-ef37-bd0f-3b38aad07810@codesourcery.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Luis Machado <lgustavo@codesourcery.com>
> Date: Mon, 5 Dec 2016 20:36:50 -0600
>
> Is a native mingw-w64 gdb capable of debugging 64-bit and 32-bit Windows
> processes or do we need a 32-bit gdb for a 32-bit process and a 64-bit
> gdb for a 64-bit process?
The latter, I'm afraid.
> Doing some tests i noticed ming-w64's 64-bit GDB doesn't quite like the
> 32-bit executable, choking on some 64-bit Windows symbol files and
> eventually getting an unexpected signal.
Yes, GDB doesn't yet have code that implements the protocol for
debugging WOW64 applications, and the unexpected and unhandled
exception you see is a sign of that. I'm quite sure patches to that
effect will be appreciated.