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

* [Bug win32/14529] Make gdb capable of JIT-debugging on W32
  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 ` tromey at redhat dot com
  2012-08-29 13:13 ` lrn1986 at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2012-08-29  4:49 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-08-29 04:48:44 UTC ---
The best way to get this looked at is to follow
the contribution instructions:
http://sourceware.org/gdb/contribute/

-- 
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

* [Bug win32/14529] Make gdb capable of JIT-debugging on W32
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: lrn1986 at gmail dot com @ 2012-08-29 13:13 UTC (permalink / raw)
  To: gdb-prs

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

LRN <lrn1986 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #6618|0                           |1
        is obsolete|                            |

--- Comment #2 from LRN <lrn1986 at gmail dot com> 2012-08-29 13:13:23 UTC ---
Created attachment 6619
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6619
Adds --event=EVENT commandline argument for attaching to a crashing process on
W32 (v2)

Removed most of the #ifdefs
Added bug number to the commit message.
Patch is in git-format now, with a meaningful commit message.

-- 
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

* [Bug win32/14529] Make gdb capable of JIT-debugging on W32
  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
  4 siblings, 0 replies; 6+ messages in thread
From: lrn1986 at gmail dot com @ 2012-08-29 13:15 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from LRN <lrn1986 at gmail dot com> 2012-08-29 13:15:00 UTC ---
Created attachment 6620
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6620
Changelog entry for when (if) the patch is accepted.

-- 
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

* [Bug win32/14529] Make gdb capable of JIT-debugging on W32
  2012-08-29  1:23 [Bug win32/14529] New: Make gdb capable of JIT-debugging on W32 lrn1986 at gmail dot com
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: ssbssa at yahoo dot de @ 2014-03-04 16:42 UTC (permalink / raw)
  To: gdb-prs

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

Domani Hannes <ssbssa at yahoo dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at yahoo dot de

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug win32/14529] Make gdb capable of JIT-debugging on W32
  2012-08-29  1:23 [Bug win32/14529] New: Make gdb capable of JIT-debugging on W32 lrn1986 at gmail dot com
                   ` (3 preceding siblings ...)
  2014-03-04 16:42 ` ssbssa at yahoo dot de
@ 2020-04-01 18:08 ` tromey at sourceware dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2020-04-01 18:08 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
                 CC|                            |tromey at sourceware dot org

--- Comment #6 from Tom Tromey <tromey at sourceware dot org> ---
Fixed.

-- 
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).