public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/13329] New: GDB silently ignores Python exceptions when "set python print-stack" is off
@ 2011-10-21 8:38 kevin.pouget at gmail dot com
2011-10-21 8:39 ` [Bug python/13329] " kevin.pouget at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: kevin.pouget at gmail dot com @ 2011-10-21 8:38 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13329
Bug #: 13329
Summary: GDB silently ignores Python exceptions when "set
python print-stack" is off
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned@sourceware.org
ReportedBy: kevin.pouget@gmail.com
Classification: Unclassified
class BP(gdb.Breakpoint):
def stop(self):
raise ValueError
will silently fail if "set python print-stack" is off.
On Wed, Oct 19, 2011 at 10:56 PM, Tom Tromey <tromey@redhat.com> wrote:
> Kevin> I don't know if Python allows to do it, but i think it would be nice
> Kevin> to see something like:
>
>>> NameError: global name 'comp' is not define
>
> Kevin> which is the last line of a python stacktrace
>
> I think it could be done.
> We can always add more values for "maint set python print-stack".
--
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] 4+ messages in thread
* [Bug python/13329] GDB silently ignores Python exceptions when "set python print-stack" is off
2011-10-21 8:38 [Bug python/13329] New: GDB silently ignores Python exceptions when "set python print-stack" is off kevin.pouget at gmail dot com
@ 2011-10-21 8:39 ` kevin.pouget at gmail dot com
2011-10-24 13:40 ` pmuldoon at redhat dot com
2012-01-11 9:09 ` pmuldoon at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: kevin.pouget at gmail dot com @ 2011-10-21 8:39 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13329
Kevin Pouget <kevin.pouget at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kevin.pouget at gmail dot
| |com
--
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] 4+ messages in thread
* [Bug python/13329] GDB silently ignores Python exceptions when "set python print-stack" is off
2011-10-21 8:38 [Bug python/13329] New: GDB silently ignores Python exceptions when "set python print-stack" is off kevin.pouget at gmail dot com
2011-10-21 8:39 ` [Bug python/13329] " kevin.pouget at gmail dot com
@ 2011-10-24 13:40 ` pmuldoon at redhat dot com
2012-01-11 9:09 ` pmuldoon at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: pmuldoon at redhat dot com @ 2011-10-24 13:40 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13329
Phil Muldoon <pmuldoon at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pmuldoon at redhat dot com
AssignedTo|unassigned at sourceware |pmuldoon at redhat dot com
|dot org |
--- Comment #1 from Phil Muldoon <pmuldoon at redhat dot com> 2011-10-24 13:39:36 UTC ---
I'll pick this up and investigate. It seems selective (for example commands,
functions, etc replicate and print the error correctly).
"maint set python print-stack" has been depreciated btw, in favor of "set/show
python print-stack"
--
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] 4+ messages in thread
* [Bug python/13329] GDB silently ignores Python exceptions when "set python print-stack" is off
2011-10-21 8:38 [Bug python/13329] New: GDB silently ignores Python exceptions when "set python print-stack" is off kevin.pouget at gmail dot com
2011-10-21 8:39 ` [Bug python/13329] " kevin.pouget at gmail dot com
2011-10-24 13:40 ` pmuldoon at redhat dot com
@ 2012-01-11 9:09 ` pmuldoon at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: pmuldoon at redhat dot com @ 2012-01-11 9:09 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13329
Phil Muldoon <pmuldoon at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |7.4
--- Comment #2 from Phil Muldoon <pmuldoon at redhat dot com> 2012-01-11 09:09:23 UTC ---
CVSROOT: /cvs/src
Module name: src
Changes by: pmuldoon@sourceware.org 2011-12-16 15:55:40
Modified files:
gdb : ChangeLog NEWS
gdb/doc : ChangeLog gdb.texinfo
gdb/python : python.c
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.python: py-function.exp py-prettyprint.exp
python.exp
Log message:
2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
* testsuite/gdb.python/py-function.exp: Change "on" to "full" for
python print-stack. Add set/show python print-stack
off|full|message tests.
2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
* python/python.c: Define python_excp_enums.
(eval_python_from_control_command): Do not call gdbpy_print_stack.
(python_command): Ditto.
(gdbpy_print_stack): Rewrite to use new enum constants.
(maint_set_python): Remove function.
(maint_show_python): Ditto.
(_initialize_python): Do not add "maint" commands. Add "set/show
python print-stack commands".
* NEWS: Update to reflect removal for "maint set/show
print-stack"
2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
* doc/gdb.texinfo (Python Commands): Remove "maint set/show print
stack". Add documentation for "set/show python print-stack".
--
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] 4+ messages in thread
end of thread, other threads:[~2012-01-11 9:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-21 8:38 [Bug python/13329] New: GDB silently ignores Python exceptions when "set python print-stack" is off kevin.pouget at gmail dot com
2011-10-21 8:39 ` [Bug python/13329] " kevin.pouget at gmail dot com
2011-10-24 13:40 ` pmuldoon at redhat dot com
2012-01-11 9:09 ` pmuldoon 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).