1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpcom/base/StackWalk.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +/* vim: set shiftwidth=4 tabstop=8 autoindent cindent expandtab: */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +/* API for getting a stack trace of the C/C++ */ 1.10 + 1.11 +#ifndef StackWalk_h_ 1.12 +#define StackWalk_h_ 1.13 + 1.14 +// XXX: it would be nice to eventually remove this header dependency on nsStackWalk.h 1.15 +#include "nsStackWalk.h" 1.16 + 1.17 +namespace mozilla { 1.18 + 1.19 +nsresult 1.20 +FramePointerStackWalk(NS_WalkStackCallback aCallback, uint32_t aSkipFrames, 1.21 + uint32_t aMaxFrames, void *aClosure, void **bp, 1.22 + void *stackEnd); 1.23 + 1.24 +} 1.25 + 1.26 +#endif /* !defined(StackWalk_h_) */