This is the mail archive of the gdb-patches@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]

Re: Discrepancy between Python and Guile wrt exiting the interpreter


> Cc: gdb-patches@sourceware.org
> From: Simon Marchi <simark@simark.ca>
> Date: Sun, 19 Jan 2020 12:01:33 -0500
> 
> When using the various PyRun_Interactive* functions, it seems like the interpreter is
> catching the SystemExit exception and calling the C exit() function before returning
> to our code, so we don't have a chance to do handle it from the caller of
> PyRun_Interactive* function.

Too bad.

The context of these questions is the Emacs's front-end for GDB, which
uses MI, and that adds even more complexities to this already quite
complex situation, in particular because Emacs until now didn't know
(nor care) whether the user invoked Python or Guile interpreter.

Thanks.


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