* gdb.base/break.exp: Do not assume a breakpoint on
authorDavid S. Miller <davem@redhat.com>
Fri, 5 May 2006 22:45:35 +0000 (22:45 +0000)
committerDavid S. Miller <davem@redhat.com>
Fri, 5 May 2006 22:45:35 +0000 (22:45 +0000)
main will actually be in $srcfile when optimizing.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/break.exp

index e245511290066c6a553d134f8dee77a3ccdd4d2a..f814cb32abcf95f3251d6d8961fa17d70cf76c6b 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-05  David S. Miller  <davem@sunset.davemloft.net>
+
+       * gdb.base/break.exp: Do not assume a breakpoint on
+       main will actually be in $srcfile when optimizing.
+
 2006-05-05  Christophe Lyon  <christophe.lyon@st.com>
 
        * gdb.cp/m-static.h (class gnu_obj_4): Add dummy member.
index 4a704fbc6d98da97105680272e8ccebe5715e1cd..13458a9c1668ab33c2ae21d3d0ab0219bf3812da 100644 (file)
@@ -887,7 +887,7 @@ if [target_info exists gdb_stub] {
 # test break at function
 #
 gdb_test "break main" \
-    "Breakpoint.*at.* file .*$srcfile, line.*" \
+    "Breakpoint.*at.* file .*, line.*" \
     "breakpoint function, optimized file"
 
 #