[llvm-commits] CVS: llvm/test/Regression/DebugInfo/2006-11-06-StackTrace.cpp

Jim Laskey jlaskey at apple.com
Wed Nov 8 08:38:59 PST 2006



Changes in directory llvm/test/Regression/DebugInfo:

2006-11-06-StackTrace.cpp updated: 1.3 -> 1.4
---
Log message:

Make it work on Darwin.

---
Diffs of the changes:  (+4 -3)

 2006-11-06-StackTrace.cpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


Index: llvm/test/Regression/DebugInfo/2006-11-06-StackTrace.cpp
diff -u llvm/test/Regression/DebugInfo/2006-11-06-StackTrace.cpp:1.3 llvm/test/Regression/DebugInfo/2006-11-06-StackTrace.cpp:1.4
--- llvm/test/Regression/DebugInfo/2006-11-06-StackTrace.cpp:1.3	Wed Nov  8 00:43:16 2006
+++ llvm/test/Regression/DebugInfo/2006-11-06-StackTrace.cpp	Wed Nov  8 10:38:45 2006
@@ -1,10 +1,11 @@
 // This is a regression test on debug info to make sure that we can get a
 // meaningful stack trace from a C++ program.
 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | llc -o Output/StackTrace.s -f
-// RUN: gcc -g Output/StackTrace.s -o Output/StackTrace.exe -lstdc++
+// RUN: as Output/StackTrace.s -o Output/StackTrace.o
+// RUN: g++ Output/StackTrace.o -o Output/StackTrace.exe
 // RUN: ( echo "break DeepStack::deepest"; echo "run 17" ; echo "where" ) > Output/StackTrace.gdbin 
-// RUN: gdb -q -batch -n -x Output/StackTrace.gdbin Output/StackTrace.exe | tee Output/StackTrace.out | grep '#0  DeepStack::deepest (this=.*,x=33)'
-// RUN: gdb -q -batch -n -x Output/StackTrace.gdbin Output/StackTrace.exe | grep '#7  0x.* in main(argc=1, argv=.*)'
+// RUN: gdb -q -batch -n -x Output/StackTrace.gdbin Output/StackTrace.exe | tee Output/StackTrace.out | grep '#0  DeepStack::deepest.*(this=.*,.*x=33)'
+// RUN: gdb -q -batch -n -x Output/StackTrace.gdbin Output/StackTrace.exe | grep '#7  0x.* in main.*(argc=[12],.*argv=.*)'
 // XFAIL: linux
 
 






More information about the llvm-commits mailing list