Re: [RFA][patch 1/9] Yet another respin of the patch with initial Python support

Tom Tromey
2008-07-26T17:42:55Z

>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:

Daniel> No need to talk about the internal meaning for that part - we can just
Daniel> talk about interrupting operations with Control-C. I'm not sure how
Daniel> to explain "other exceptions"; just "other error conditions"?

How about this?

When executing the @code{python} command, uncaught Python exceptions
are translated to calls to @value{GDBN}'s @code{error} function.
Conversely, @value{GDBN} exceptions are converted to Python
exceptions. In particular, a user interrupt (via @kbd{C-c} or by
typing @kbd{q} at a pagination prompt) is translated to a Python
@code{KeyboardInterrupt} exception, and other @value{GDBN} exceptions
-- calls to @code{error} in the C code -- are translated to Python
@code{RuntimeError}s.

Tom