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]

Re: [patch 0/3] Re: [RFA] c++/11734 revisited (and c++/12273)


And of course, no sooner do I submit this, than I see I forgot something...

On 02/17/2011 10:12 AM, Keith Seitz wrote:
PR c++/11734
* gdb.cp/ovsrch.exp: New test.

I have changed this to use prepare_for_testing:


@@ -500,21 +500,10 @@
 +
 +set srcfiles {}
 +for {set i 1} {$i < 5} {incr i} {
-+    lappend srcfiles [file join $srcdir $subdir $testfile$i.cc]
-+}
-+if  {[gdb_compile $srcfiles $binfile executable {debug c++}] != "" } {
-+     untested $testfile.exp
-+     return -1
++    lappend srcfiles $testfile$i.cc
 +}
 +
-+if {[get_compiler_info $binfile "c++"]} {
-+    return -1
-+}
-+
-+gdb_exit
-+gdb_start
-+gdb_reinitialize_dir $srcdir/$subdir
-+gdb_load $binfile
++prepare_for_testing $testfile $testfile $srcfiles {c++ debug}
 +
 +if {![runto_main]} {
 +    perror "couldn't run to breakpoint"

Keith


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