This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/14062] New: Exceptions in callbacks posted bygdb.post_event are silently ignored.


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

             Bug #: 14062
           Summary: Exceptions in callbacks posted by gdb.post_event are
                    silently ignored.
           Product: gdb
           Version: 7.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: gareth@blacksphere.co.nz
    Classification: Unclassified


This is the simplest example to reproduce this problem:

(gdb) python invalid()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'invalid' is not defined
Error while executing Python code.
(gdb) python gdb.post_event(lambda : invalid())
(gdb)

Note that the exception in the lambda function is never reported.

This is observed on GDB 7.4.1 (target arm-none-eabi) with Python 2.6.6 and
Linux 2.6.35-32 (Ubuntu 10.10).

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]