This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/21698] Stepping from python interface broken?
- From: "Hsiangkai at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 03 Sep 2017 00:34:21 +0000
- Subject: [Bug python/21698] Stepping from python interface broken?
- Auto-submitted: auto-generated
- References: <bug-21698-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21698
--- Comment #2 from Hsiangkai Wang <Hsiangkai at gmail dot com> ---
I have prepared a patch for this bug. However, I am not sure is it reasonable
to change prompt_state in execute_gdb_command() or not. Any comments?
---
gdb/python/python.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gdb/python/python.c b/gdb/python/python.c
index c53e10f..49b5eff 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -589,6 +589,7 @@ execute_gdb_command (PyObject *self, PyObject *args,
PyObject *kw)
struct interp *interp;
scoped_restore save_async = make_scoped_restore (¤t_ui->async, 0);
+ current_ui->prompt_state = PROMPT_NEEDED;
scoped_restore save_uiout = make_scoped_restore (¤t_uiout);
--
--
You are receiving this mail because:
You are on the CC list for the bug.