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]

[commit] gdb.cp/mb-inline.exp: Do "info break" after setting multi-location breakpoint


Hi.

This patch made debugging a failure with .gdb_index much easier to see.
Committed.

2012-09-11  Doug Evans  <dje@google.com>

	* gdb.cp/mb-inline.exp: Do "info break" after setting multi-location
	breakpoint.

Index: gdb.cp/mb-inline.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/mb-inline.exp,v
retrieving revision 1.14
diff -u -p -r1.14 mb-inline.exp
--- gdb.cp/mb-inline.exp	10 Jul 2012 15:18:18 -0000	1.14
+++ gdb.cp/mb-inline.exp	11 Sep 2012 21:35:24 -0000
@@ -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 $" {


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