This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix MI dprintf-insert not printing when a location is pending.
- From: Keith Seitz <keiths at redhat dot com>
- To: Antoine Tremblay <antoine dot tremblay at ericsson dot com>, gdb-patches at sourceware dot org
- Date: Fri, 27 Mar 2015 09:51:59 -0700
- Subject: Re: [PATCH] Fix MI dprintf-insert not printing when a location is pending.
- Authentication-results: sourceware.org; auth=none
- References: <55154E63 dot 5040603 at ericsson dot com> <1427459819-29661-1-git-send-email-antoine dot tremblay at ericsson dot com>
On 03/27/2015 05:36 AM, Antoine Tremblay wrote:
diff --git a/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp b/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp
new file mode 100644
index 0000000..6185329
--- /dev/null
+++ b/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp
...
+set msg "mi dprintf"
+gdb_expect {
+ -re ".*~\"hello\"" {
+ pass $msg
+ }
+ -re ".*$mi_gdb_prompt$" {
+ fail $msg
+ }
+ timeout {
+ fail $msg
+ }
+}
Pending a previous query about using mi_gdb_test here, I recommend a
maintainer approve this patch.
Thank you for your patch!
Keith