diff options
author | Pedro Alves <palves@redhat.com> | 2016-06-21 01:11:43 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-06-21 01:11:43 +0100 |
commit | 5a069ab36dead610ac759c4b37f6635419f09306 (patch) | |
tree | 3517f6cf2394830e43e32557db5b7874ca916181 /gdb/testsuite/ChangeLog | |
parent | 4fdf8fa60425dccd4b174ac0af9280d7eccec105 (diff) | |
download | gdb-5a069ab36dead610ac759c4b37f6635419f09306.zip gdb-5a069ab36dead610ac759c4b37f6635419f09306.tar.gz gdb-5a069ab36dead610ac759c4b37f6635419f09306.tar.bz2 |
Prepare gdb.python/mi-py-events.exp for Python/MI in separate channels
Similarly to 5068630ad34dce5fefbe68d70d3a50cd8b92f71e
(gdb.python/py-events.exp and normal_stop observers ordering) [1],
this commit makes the gdb.python/py-mi-events.exp test not rely on
order in which MI and Python observers run, or even on where each
observer sends its output to.
This shows up as a problem when testing with MI running as a separate
terminal, for example, where Python event output and MI output go to
different channels, even. But in any case, relying on the order in
which observers run is always going to be fragile.
The fix is to save the string output in the handlers in some variables
and then having MI print them explicitly, instead of printing them
directly from the Python events.
Tested on x86_64 Fedora 23.
https://sourceware.org/ml/gdb-patches/2015-07/msg00290.html
gdb/testsuite/ChangeLog:
2016-06-21 Pedro Alves <palves@redhat.com>
* gdb.python/py-mi-events-gdb.py (stop_handler_str)
(cont_handler_str): New.
(signal_stop_handler): Set stop_handler_str instead of printing to
stdout.
(continue_handler): Set cont_handler_str instead of printing to
stdout.
* gdb.python/py-mi-events.exp: Ues mi_execute_to instead of
mi_send_resuming_command. Print stop_handler_str and
cont_handler_str instead of expecting the python events print
directly.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r-- | gdb/testsuite/ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e5f1c54..b33e1be 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,16 @@ +2016-06-21 Pedro Alves <palves@redhat.com> + + * gdb.python/py-mi-events-gdb.py (stop_handler_str) + (cont_handler_str): New. + (signal_stop_handler): Set stop_handler_str instead of printing to + stdout. + (continue_handler): Set cont_handler_str instead of printing to + stdout. + * gdb.python/py-mi-events.exp: Ues mi_execute_to instead of + mi_send_resuming_command. Print stop_handler_str and + cont_handler_str instead of expecting the python events print + directly. + 2016-06-17 Sanjoy Das <sanjoy@playingwithpointers.com> * gdb.base/jit-reader.exp: New file. |