diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ce2a190d3fa..fe68a01df06 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-03-09 Marcin Koƛcielnicki + + * gdb.trace/change-loc.exp: Don't depend on tracepoint location + ordering. + 2016-03-09 Marcin Koƛcielnicki * gdb.trace/unavailable-dwarf-piece.c (foo): Add foo_start_lbl label. diff --git a/gdb/testsuite/gdb.trace/change-loc.exp b/gdb/testsuite/gdb.trace/change-loc.exp index 80beb4de6e4..c4e0b4bafeb 100644 --- a/gdb/testsuite/gdb.trace/change-loc.exp +++ b/gdb/testsuite/gdb.trace/change-loc.exp @@ -152,8 +152,14 @@ proc tracepoint_change_loc_1 { trace_type } { gdb_test "info trace" \ "Num Type\[ \]+Disp Enb Address\[ \]+What.* \[0-9\]+\[\t \]+\(|fast \)tracepoint\[ \]+keep y.*\.* -4\.1.* in func4.*\tinstalled on target\r\n(4\.2.* in func4.*\tinstalled on target\r\n4\.3.* \\[\t \]+set_tracepoint|4\.2.* \\[\t \]+set_tracepoint.*4\.3.* in func4.*\tinstalled on target).*" \ - "tracepoint with two locations (unload)" +(4\.\[1-3].* in func4.*\tinstalled on target.*){2}" \ + "tracepoint with two locations - installed (unload)" + + gdb_test "info trace" \ + "Num Type\[ \]+Disp Enb Address\[ \]+What.* +\[0-9\]+\[\t \]+\(|fast \)tracepoint\[ \]+keep y.*\.* +4\.\[1-3].* \\[\t \]+set_tracepoint.*" \ + "tracepoint with two locations - pending (unload)" gdb_test_no_output "tstop" @@ -262,8 +268,14 @@ proc tracepoint_change_loc_2 { trace_type } { gdb_test "info trace" \ "Num Type\[ \]+Disp Enb Address\[ \]+What.* \[0-9\]+\[\t \]+\(|fast \)tracepoint\[ \]+keep y.*\.* -1\.1.* in func4.*\tinstalled on target\r\n(1\.2.* in func4.*\tinstalled on target\r\n1\.3.* \\[\t \]+set_tracepoint|1\.2.* \\[\t \]+set_tracepoint\r\n1\.3.* in func4.*\tinstalled on target).*" \ - "tracepoint with two locations (unload)" +(1\.\[1-3].* in func4.*\tinstalled on target.*){2}" \ + "tracepoint with two locations - installed (unload)" + + gdb_test "info trace" \ + "Num Type\[ \]+Disp Enb Address\[ \]+What.* +\[0-9\]+\[\t \]+\(|fast \)tracepoint\[ \]+keep y.*\.* +1\.\[1-3].* \\[\t \]+set_tracepoint.*" \ + "tracepoint with two locations - pending (unload)" gdb_test_no_output "tstop"