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

Re: [patch] Support inferior events in python


On 02/11/2011 10:54 AM, Joel Brobecker wrote:
+send_gdb "run\n"
+gdb_expect {
+    -re ".*stop reason: signal.*
+.*stop signal: SIGSEGV.*
+.*thread num: 3.*" {
+        pass "thread 3 was signalled"
+    }
+    timeout {
+	    fail "thread 3 was not signalled"
+	}

Can you replace send_gdb+gdb_expext by gdb_test_multiple; it even seems that a simple gdb_test would work, no?


If I understand correctly gdb_test, and gdb_test_multiple test for the gdb prompt after the output, but the printing of the prompt is not reliable in non-stop mode. that is why I am using plain send and expect.


Sami


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