[Lldb-commits] [lldb] r181441 - Fix rdar-13338477 test-case for Linux.

Daniel Malea daniel.malea at intel.com
Wed May 8 08:07:25 PDT 2013


Author: dmalea
Date: Wed May  8 10:07:24 2013
New Revision: 181441

URL: http://llvm.org/viewvc/llvm-project?rev=181441&view=rev
Log:
Fix rdar-13338477 test-case for Linux.
- Using __builtin_trap confuses the stack unwinder
- __builtin_trap specific test will be added shortly


Modified:
    lldb/trunk/test/functionalities/data-formatter/rdar-13338477/main.cpp

Modified: lldb/trunk/test/functionalities/data-formatter/rdar-13338477/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/rdar-13338477/main.cpp?rev=181441&r1=181440&r2=181441&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/rdar-13338477/main.cpp (original)
+++ lldb/trunk/test/functionalities/data-formatter/rdar-13338477/main.cpp Wed May  8 10:07:24 2013
@@ -7,11 +7,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-void bar(int const *foo) {
-  __builtin_trap(); // Set break point at this line.
+bool bar(int const *foo) {
+  return foo != 0; // Set break point at this line.
 }
 
 int main() {
   int foo[] = {1,2,3};
-  bar(foo);
+  return bar(foo);
 }





More information about the lldb-commits mailing list