[Lldb-commits] [lldb] r111379 - in /lldb/trunk/test/inlines: inlines.c inlines.h
Jim Ingham
jingham at apple.com
Wed Aug 18 11:28:17 PDT 2010
Author: jingham
Date: Wed Aug 18 13:28:17 2010
New Revision: 111379
URL: http://llvm.org/viewvc/llvm-project?rev=111379&view=rev
Log:
Added call stacks with inlined functions higher on the stack, and non-inlined functions at the bottom.
Added:
lldb/trunk/test/inlines/inlines.h
Modified:
lldb/trunk/test/inlines/inlines.c
Modified: lldb/trunk/test/inlines/inlines.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/inlines/inlines.c?rev=111379&r1=111378&r2=111379&view=diff
==============================================================================
--- lldb/trunk/test/inlines/inlines.c (original)
+++ lldb/trunk/test/inlines/inlines.c Wed Aug 18 13:28:17 2010
@@ -1,14 +1,29 @@
#include <stdio.h>
+#include "inlines.h"
#define INLINE_ME __inline__ __attribute__((always_inline))
+int
+not_inlined_2 (int input)
+{
+ printf ("Called in not_inlined_2 with : %d.\n", input);
+ return input;
+}
+
+int
+not_inlined_1 (int input)
+{
+ printf ("Called in not_inlined_1 with %d.\n", input);
+ return not_inlined_2(input);
+}
+
INLINE_ME int
inner_inline (int inner_input, int mod_value)
{
int inner_result;
inner_result = inner_input % mod_value;
printf ("Returning: %d.\n", inner_result);
- return inner_result;
+ return not_inlined_1 (inner_result);
}
INLINE_ME int
Added: lldb/trunk/test/inlines/inlines.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/inlines/inlines.h?rev=111379&view=auto
==============================================================================
--- lldb/trunk/test/inlines/inlines.h (added)
+++ lldb/trunk/test/inlines/inlines.h Wed Aug 18 13:28:17 2010
@@ -0,0 +1,4 @@
+int inner_inline (int inner_input, int mod_value);
+int outer_inline (int outer_input);
+int not_inlined_2 (int input);
+int not_inlined_1 (int input);
More information about the lldb-commits
mailing list