public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/12615] New: Interrupt a running script
@ 2011-03-29 13:55 andre.poenitz at nokia dot com
  2011-12-05 12:54 ` [Bug python/12615] " kevin.pouget at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: andre.poenitz at nokia dot com @ 2011-03-29 13:55 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: Interrupt a running script
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: andre.poenitz@nokia.com


Currently there seems to be no way to interrupt a running python script in gdb.

With the adoption of user defined pretty printers a gdb frontend cannot protect
itself from a "rogue" pretty printer that does the equivalent of "while True:
pass", or simply takes a very long time to evaluate.

It would be nice if there was a supported way to interrupt a running script,
or to set a maximal running time for a script in advance.

-- 
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] 5+ messages in thread

* [Bug python/12615] Interrupt a running script
  2011-03-29 13:55 [Bug python/12615] New: Interrupt a running script andre.poenitz at nokia dot com
@ 2011-12-05 12:54 ` kevin.pouget at gmail dot com
  2012-08-22 20:38 ` tromey at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: kevin.pouget at gmail dot com @ 2011-12-05 12:54 UTC (permalink / raw)
  To: gdb-prs

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

Kevin Pouget <kevin.pouget at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kevin.pouget at gmail dot
                   |                            |com

--- Comment #1 from Kevin Pouget <kevin.pouget at gmail dot com> 2011-12-05 12:54:03 UTC ---
I agree,

gdb/def.h defines this macro:

> #define QUIT { \
>   if (quit_flag) quit (); \
>   if (deprecated_interactive_hook) deprecated_interactive_hook (); \
> }

and:

> /* Nonzero means a quit has been requested.  */
> int quit_flag;
> int immediate_quit;

it could be convenient to have similar mechanisms in Python.

-- 
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] 5+ messages in thread

* [Bug python/12615] Interrupt a running script
  2011-03-29 13:55 [Bug python/12615] New: Interrupt a running script andre.poenitz at nokia dot com
  2011-12-05 12:54 ` [Bug python/12615] " kevin.pouget at gmail dot com
@ 2012-08-22 20:38 ` tromey at redhat dot com
  2012-08-23  7:06 ` andre.poenitz at nokia dot com
  2012-08-23 14:27 ` tromey at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2012-08-22 20:38 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

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

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2012-08-22 20:38:41 UTC ---
Delivering SIGINT to gdb should work ok now.
It should do the right thing in Python code.

-- 
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] 5+ messages in thread

* [Bug python/12615] Interrupt a running script
  2011-03-29 13:55 [Bug python/12615] New: Interrupt a running script andre.poenitz at nokia dot com
  2011-12-05 12:54 ` [Bug python/12615] " kevin.pouget at gmail dot com
  2012-08-22 20:38 ` tromey at redhat dot com
@ 2012-08-23  7:06 ` andre.poenitz at nokia dot com
  2012-08-23 14:27 ` tromey at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: andre.poenitz at nokia dot com @ 2012-08-23  7:06 UTC (permalink / raw)
  To: gdb-prs

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

Andre Poenitz <andre.poenitz at nokia dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Andre Poenitz <andre.poenitz at nokia dot com> 2012-08-23 07:06:21 UTC ---
I can confirm this is fixed in current master branch from
git://sourceware.org/git/gdb.git. Both Ctrl-C on the command line and kill
-SIGINT work.

Thank you for fixing this.

-- 
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] 5+ messages in thread

* [Bug python/12615] Interrupt a running script
  2011-03-29 13:55 [Bug python/12615] New: Interrupt a running script andre.poenitz at nokia dot com
                   ` (2 preceding siblings ...)
  2012-08-23  7:06 ` andre.poenitz at nokia dot com
@ 2012-08-23 14:27 ` tromey at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2012-08-23 14:27 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.6

-- 
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] 5+ messages in thread

end of thread, other threads:[~2012-08-23 14:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-29 13:55 [Bug python/12615] New: Interrupt a running script andre.poenitz at nokia dot com
2011-12-05 12:54 ` [Bug python/12615] " kevin.pouget at gmail dot com
2012-08-22 20:38 ` tromey at redhat dot com
2012-08-23  7:06 ` andre.poenitz at nokia dot com
2012-08-23 14:27 ` tromey at redhat dot com

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