2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
authorMichael Chastain <mec@google.com>
Thu, 8 Jan 2004 06:35:15 +0000 (06:35 +0000)
committerMichael Chastain <mec@google.com>
Thu, 8 Jan 2004 06:35:15 +0000 (06:35 +0000)
* gdb.cp/cttiadd.c: Add a marker for gdb_get_line_number.
* gdb.cp/ctti.exp: Use the marker instead of "next".
With gcc, run further before bailing.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/ctti.exp
gdb/testsuite/gdb.cp/cttiadd.cc

index 7f6043f296bd484408138ccc7e21529a0f385a6f..5ed0dc4ea8f025e90bb24c61b99f70abf19d0c6d 100644 (file)
@@ -1,3 +1,9 @@
+2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
+
+       * gdb.cp/cttiadd.c: Add a marker for gdb_get_line_number.
+       * gdb.cp/ctti.exp: Use the marker instead of "next".
+       With gcc, run further before bailing.
+
 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
 
        * gdb.cp/cttiadd.cc: Add copyright notice.
index 80edce10e5a245455e03f603a463d30f8f3ae451..a5e75d8136ee1bcd038892cde61ec88939ebf989 100644 (file)
@@ -76,22 +76,18 @@ if ![runto_main] then {
     continue
 }
 
-# TODO: this needs more work before actually deploying it.
-# So bail out here.
-
-if { [ test_compiler_info gcc-*] } then { continue }
-
-gdb_test "next" "$decimal.*i = 2;" "next 1"
-gdb_test "next" "$decimal.*f = 4.5;" "next 2"
-gdb_test "next" "$decimal.*c = add\\(c, c\\);" "next 3"
-gdb_test "next" "$decimal.*i = add\\(i, i\\);" "next 4"
-gdb_test "next" "$decimal.*f = add\\(f, f\\);" "next 5"
-gdb_test "next" "$decimal.*add1\\(\\);" "next 6"
+gdb_breakpoint [gdb_get_line_number "marker add1"]
+gdb_continue_to_breakpoint "marker add1"
 
 gdb_test "print c" "\\$\[0-9\]+ = -62 .*"
 gdb_test "print f" "\\$\[0-9\]+ = 9"
 gdb_test "print i" "\\$\[0-9\]+ = 4"
 
+# TODO: this needs more work before actually deploying it.
+# So bail out here.
+
+if { [ test_compiler_info gcc-*] } then { continue }
+
 gdb_test_multiple "print add<int>(2,2)" "print add<int>(2,2)" {
     -re "\\$\[0-9\]+ = 4\r\n$gdb_prompt $" {
        pass "print add<int>(2,2)"
index e24a6d3b6531062437cacbdfb1515cb504d296b5..195860531e584c779c001e853c4b29bde0a0798a 100644 (file)
@@ -1,6 +1,6 @@
 /* This testcase is part of GDB, the GNU debugger.
 
-   Copyright 1998, 1999 Free Software Foundation, Inc.
+   Copyright 1998, 1999, 2004 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -44,6 +44,7 @@ int main()
   i = add(i, i);
   f = add(f, f);
 
+  // marker add1
   add1();
   subr2();
   subr3();
This page took 0.030799 seconds and 4 git commands to generate.