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

[Bug python/21698] Stepping from python interface broken?


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 (&current_ui->async, 0);
+      current_ui->prompt_state = PROMPT_NEEDED;

       scoped_restore save_uiout = make_scoped_restore (&current_uiout);
--

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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