From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11688 invoked by alias); 14 Oct 2013 09:15:02 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 11665 invoked by uid 9514); 14 Oct 2013 09:15:02 -0000 Date: Mon, 14 Oct 2013 09:15:00 -0000 Message-ID: <20131014091502.11637.qmail@sourceware.org> From: pmuldoon@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] tromey/python: 2013-10-14 Phil Muldoon X-Git-Refname: refs/heads/tromey/python X-Git-Reftype: branch X-Git-Oldrev: aed684a9a6f3dab80262ca21d6c728e99526b37f X-Git-Newrev: 269d883cd0c2fd8a51163e4472963b1b5a9a576e X-SW-Source: 2013-q4/txt/msg00001.txt.bz2 List-Id: The branch, tromey/python has been updated via 269d883cd0c2fd8a51163e4472963b1b5a9a576e (commit) from aed684a9a6f3dab80262ca21d6c728e99526b37f (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 269d883cd0c2fd8a51163e4472963b1b5a9a576e Author: Phil Muldoon Date: Mon Oct 14 10:14:20 2013 +0100 2013-10-14 Phil Muldoon * python/python.c (gdbpy_cli): Use current_interp_command_loop and bar invocation from MI. ----------------------------------------------------------------------- Summary of changes: gdb/python/python.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) First 500 lines of diff: diff --git a/gdb/python/python.c b/gdb/python/python.c index bfb5599..2c7e89e 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1131,9 +1131,12 @@ gdbpy_cli (PyObject *unused1, PyObject *unused2) { if (! running_python_script || in_cli) return PyErr_Format (PyExc_RuntimeError, "cannot invoke CLI recursively"); + + if (ui_out_is_mi_like_p (current_uiout)) + return PyErr_Format (PyExc_RuntimeError, _("Cannot invoke CLI from MI.")); in_cli = 1; - cli_command_loop (); + current_interp_command_loop (); in_cli = 0; Py_RETURN_NONE; hooks/post-receive -- Repository for Project Archer.