public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug win32/14529] New: Make gdb capable of JIT-debugging on W32
@ 2012-08-29  1:23 lrn1986 at gmail dot com
  2012-08-29  4:49 ` [Bug win32/14529] " tromey at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: lrn1986 at gmail dot com @ 2012-08-29  1:23 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14529

             Bug #: 14529
           Summary: Make gdb capable of JIT-debugging on W32
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: win32
        AssignedTo: unassigned@sourceware.org
        ReportedBy: lrn1986@gmail.com
    Classification: Unclassified


Created attachment 6618
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6618
Adds --event=EVENT commandline argument for attaching to a crashing process on
W32

To be a JIT-debugger [1] on Windows, gdb has to be able to signal an event,
which is passed to it by command line. If that is not done, the process being
debugged will not come out of a waiting loop after gdb attaches to it.
If the event is signaled, Windows will break the loop, and let the exception
fall into gdb's lap (well, stack will be a bit borked, but that's another issue
for another day, and there are ways of working around it), after gdb user does
'continue'.

The attached patch does exactly that by adding extra "--event=EVENT" argument,
thus AeDebug command line will look like this:
c:\mingw32\bin\gdb.exe --pid=%ld --event=%ld

[1] http://msdn.microsoft.com/en-us/library/5hs4b7a6%28v=vs.80%29.aspx

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-01 18:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-29  1:23 [Bug win32/14529] New: Make gdb capable of JIT-debugging on W32 lrn1986 at gmail dot com
2012-08-29  4:49 ` [Bug win32/14529] " tromey at redhat dot com
2012-08-29 13:13 ` lrn1986 at gmail dot com
2012-08-29 13:15 ` lrn1986 at gmail dot com
2014-03-04 16:42 ` ssbssa at yahoo dot de
2020-04-01 18:08 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).