Go to the source code of this file.
◆ PRTL_PROCESS_BACKTRACE_INFORMATION_32
◆ RTL_PROCESS_BACKTRACE_INFORMATION_32
◆ __declspec()
◆ Check_Stacktrace()
Definition at line 60 of file stacktrace.c.
61{
64 {
67 "Unexpected return: %p, expected between %p and %p\n", BackTrace[0],
g_Call_Address, (
PVOID)EndAddress);
70 }
71}
static PVOID g_PreviousReturnAddress
static PVOID g_Call_Address
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION _In_ ULONG _In_ SIZE_T _In_ ULONG _In_ USHORT Depth
Referenced by test_QueryBacktrace().
◆ RtlQueryProcessBackTraceInformation()
◆ START_TEST()
START_TEST |
( |
stacktrace |
| ) |
|
Definition at line 142 of file stacktrace.c.
143{
145
147 return;
148
149 skip(
"QueryBacktrace not implemented yet\n");
150 return;
151
153 ok(Buffer1 !=
NULL,
"Failed!\n");
154 if (Buffer1)
155 {
157 ok(Buffer2 !=
NULL,
"Failed!\n");
158 if (Buffer2)
159 {
162 }
163
165 }
166}
NTSYSAPI NTSTATUS NTAPI RtlDestroyQueryDebugBuffer(IN PRTL_DEBUG_INFORMATION DebugBuffer)
NTSYSAPI PRTL_DEBUG_INFORMATION NTAPI RtlCreateQueryDebugBuffer(_In_ ULONG Size, _In_ BOOLEAN EventPair)
static void test_QueryBacktrace(PRTL_DEBUG_INFORMATION Buffer1, PRTL_DEBUG_INFORMATION Buffer2)
◆ test_QueryBacktrace()
Definition at line 73 of file stacktrace.c.
74{
78 ULONG OldNumberOfBackTraces,
n;
80 int found = 0;
81
85 return;
86
88 ok(Backtraces !=
NULL,
"No BackTraces\n");
89 if (!Backtraces)
90 return;
91
93
94 StackTrace = Call_Backtrace_1();
95
96
97 ok(OldNumberOfBackTraces == Backtraces->
NumberOfBackTraces,
"Debug buffer changed! (%lu => %lu)\n",
99
100
104 return;
105
107 ok(Backtraces !=
NULL,
"No BackTraces\n");
108 if (!Backtraces)
109 return;
110
111 ok(OldNumberOfBackTraces+1 == Backtraces->
NumberOfBackTraces,
"Stacktrace not added! (%lu => %lu)\n",
113
117 {
119#if 0
121
122 trace(
"BackTraces[%02lu]->SymbolicBackTrace = %p\n",
n,
Info->SymbolicBackTrace);
123 trace(
"BackTraces[%02lu]->TraceCount = %lu\n",
n,
Info->TraceCount);
126 for (
j = 0;
j <
Info->Depth; ++
j)
127 {
128 trace(
"BackTraces[%02lu]->BackTrace[%02u] = %p\n",
n,
j,
Info->BackTrace[
j]);
129 }
131#endif
132 if (
Info->Index == StackTrace)
133 {
134 found = 1;
136 }
137 }
138 ok(found,
"Stacktrace not found :(\n");
139}
#define ok_hex(expression, result)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
static void Check_Stacktrace(PVOID *BackTrace, USHORT Depth)
NTSTATUS NTAPI RtlQueryProcessBackTraceInformation(IN OUT PRTL_DEBUG_INFORMATION Buffer)
struct _RTL_PROCESS_BACKTRACE_INFORMATION_32 * PRTL_PROCESS_BACKTRACE_INFORMATION_32
RTL_PROCESS_BACKTRACE_INFORMATION BackTraces[1]
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Referenced by START_TEST().
◆ g_Call_Address
◆ g_PreviousReturnAddress
PVOID g_PreviousReturnAddress |
|
static |