* gdb.base/chng-syms.exp: Anchor exit pattern. Allow
authorDaniel Jacobowitz <drow@false.org>
Sun, 29 Feb 2004 02:55:21 +0000 (02:55 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 29 Feb 2004 02:55:21 +0000 (02:55 +0000)
a breakpoint at exit.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/chng-syms.exp

index ba85a6b11959467d5d6362789bb740de4248481a..493a67b41a4b98bf48f6655dfd7aa2d88acb8add 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-28  Daniel Jacobowitz  <drow@mvista.com>
+
+       * gdb.base/chng-syms.exp: Anchor exit pattern.  Allow
+       a breakpoint at exit.
+
 2004-02-27  Fred Fish  <fnf@redhat.com>
 
        * gdb.base/chng-syms.exp: Add expect condition to match failing
index 90dcf2b238ae9c4030b6d447729012d7338b2c2e..b967d21614ba93c6a7776c1cc64aba5f4826d9af 100644 (file)
@@ -105,7 +105,10 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
 
     gdb_run_cmd
     gdb_expect {
-       -re "Error in re-setting .*No symbol .var1..*Program exited normally.*" {
+       -re "Error in re-setting .*No symbol .var1..*Program exited normally.*$gdb_prompt $" {
+           pass "running with invalidated bpt condition after executable changes" 
+       }
+       -re "Error in re-setting .*No symbol .var1..*Breakpoint .*,( 0x.* in)? exit .*$gdb_prompt $" {
            pass "running with invalidated bpt condition after executable changes" 
        }
        -re "$gdb_prompt $" {