[PATCH] Fix PR 21337 (v3): segfault when re-reading symbols with remote debugging.

Simon Marchi simon.marchi@polymtl.ca
Sun Jun 25 11:25:00 GMT 2017


Hi Doug,

Good thing you pinged, I had completely missed it, sorry for the wait.

+gdb_test "source $gdbfile" ".*source-command-completed.*" \
+    "source $testfile.gdb"
+# Sometimes the failure only occurs on the second invocation.
+gdb_test "source $gdbfile" ".*source-command-completed.*" \
+    "source $testfile.gdb"

Tests should have unique names, so that when one fails, you know easily 
which one.  So, perhaps "source $testfile.gdb 1" and "source 
$testfile.gdb 2"?

The patch is ok with this fixed.

Thanks,

Simon



More information about the Gdb-patches mailing list