* gdb.cp/mb-inline.exp: Do "info break" after setting multi-location
authorDoug Evans <dje@google.com>
Tue, 11 Sep 2012 21:37:04 +0000 (21:37 +0000)
committerDoug Evans <dje@google.com>
Tue, 11 Sep 2012 21:37:04 +0000 (21:37 +0000)
breakpoint.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/mb-inline.exp

index 047017e0c0b59990f3e367328e7fe37a654ce740..b3395ad1e3326c5e6f30ef5bb51f9e1b8918241e 100644 (file)
@@ -1,5 +1,8 @@
 2012-09-11  Doug Evans  <dje@google.com>
 
+       * gdb.cp/mb-inline.exp: Do "info break" after setting multi-location
+       breakpoint.
+
        * gdb.dwarf2/fission-base.S: Include gdb.dwarf2/ in dwo_name.
        * gdb.dwarf2/fission-reread.S: Ditto.
        * gdb.dwarf2/fission-base.exp: Remove setting of debug-file-directory.
index d223bae869898a5eed4c6e233edd5ce0d2b4d7a1..1e594a9871514d14e83af4097a5a204031e90372 100644 (file)
@@ -40,6 +40,11 @@ gdb_test "break $hdrfile:$bp_location" \
     "Breakpoint.*at.*: $hdrfile:$bp_location. \\(2 locations\\).*" \
     "set breakpoint"
 
+# Do "info break" now so we can easily compare it with the later "info break"
+# if problems arise.
+gdb_test "info break" \
+    "\[\r\n\]1\.1.* y .* at .*$hdrfile:$bp_location.*\[\r\n\]1\.2.* y .* at .*$hdrfile:$bp_location.*"
+
 gdb_run_cmd
 gdb_expect {
     -re "Breakpoint \[0-9\]+,.*foo \\(i=0\\).*$gdb_prompt $" {