diff options
Diffstat (limited to 'Doc/lib/libpdb.tex')
-rw-r--r-- | Doc/lib/libpdb.tex | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Doc/lib/libpdb.tex b/Doc/lib/libpdb.tex index ee9ab91..2229dc8 100644 --- a/Doc/lib/libpdb.tex +++ b/Doc/lib/libpdb.tex @@ -350,8 +350,9 @@ Some changes were made to the interpreter: Trace functions have three arguments: \var{frame}, \var{event}, and \var{arg}. \var{frame} is the current stack frame. \var{event} is a -string: \code{'call'}, \code{'line'}, \code{'return'} or -\code{'exception'}. \var{arg} depends on the event type. +string: \code{'call'}, \code{'line'}, \code{'return'}, \code{'exception'}, + \code{'c_call'}, \code{'c_return'}, or \code{'c_exception'}. \var{arg} + depends on the event type. The global trace function is invoked (with \var{event} set to \code{'call'}) whenever a new local scope is entered; it should return @@ -390,6 +391,16 @@ An exception has occurred. The local trace function is called; \var{traceback})}; the return value specifies the new local trace function. +\item[\code{'c_call'}] +A C function is about to be called. This may be an extension function +or a builtin. \var{arg} is the C function name. + +\item[\code{'c_return'}] +A C function has returned. \var{arg} is \code{None}. + +\item[\code{'c_exception'}] +A C function has thrown an exception. \var{arg} is \code{None}. + \end{description} Note that as an exception is propagated down the chain of callers, an |