From 2a73c19d2a262bc3fe25a14f042bb9f4e9c5ab87 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Thu, 26 Nov 1998 18:03:20 +0000 Subject: [PATCH] Expose WalkTheStack git-svn-id: svn://10.0.0.236/trunk@15359 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/base/nsTraceRefcnt.cpp | 8 ++++---- mozilla/xpcom/base/nsTraceRefcnt.h | 2 ++ mozilla/xpcom/base/nsTraceRefcntImpl.cpp | 8 ++++---- mozilla/xpcom/base/nsTraceRefcntImpl.h | 2 ++ mozilla/xpcom/public/nsTraceRefcnt.h | 2 ++ mozilla/xpcom/src/nsTraceRefcnt.cpp | 8 ++++---- 6 files changed, 18 insertions(+), 12 deletions(-) diff --git a/mozilla/xpcom/base/nsTraceRefcnt.cpp b/mozilla/xpcom/base/nsTraceRefcnt.cpp index 876cade1f1e..f8f41ff8688 100644 --- a/mozilla/xpcom/base/nsTraceRefcnt.cpp +++ b/mozilla/xpcom/base/nsTraceRefcnt.cpp @@ -95,8 +95,8 @@ EnumModulesCB(LPSTR aModuleName, * the rebasing and accordingly I've made a tool to use it to rebase the * DLL's in one fell swoop (see xpcom/tools/windows/rebasedlls.cpp). */ -static void -WalkTheStack(char* aBuffer, int aBufLen) +void +nsTraceRefcnt::WalkTheStack(char* aBuffer, int aBufLen) { CONTEXT context; STACKFRAME frame; @@ -191,8 +191,8 @@ WalkTheStack(char* aBuffer, int aBufLen) } #else /* _WIN32 */ -static void -WalkTheStack(char* aBuffer, int aBufLen) +void +nsTraceRefcnt::WalkTheStack(char* aBuffer, int aBufLen) { aBuffer[0] = '\0'; } diff --git a/mozilla/xpcom/base/nsTraceRefcnt.h b/mozilla/xpcom/base/nsTraceRefcnt.h index 36b04d031c2..fa0f7b1b5e3 100644 --- a/mozilla/xpcom/base/nsTraceRefcnt.h +++ b/mozilla/xpcom/base/nsTraceRefcnt.h @@ -54,6 +54,8 @@ public: static NS_COM void LoadLibrarySymbols(const char* aLibraryName, void* aLibrayHandle); + + static NS_COM void WalkTheStack(char* aBuffer, int aBufLen); }; #endif /* nsTraceRefcnt_h___ */ diff --git a/mozilla/xpcom/base/nsTraceRefcntImpl.cpp b/mozilla/xpcom/base/nsTraceRefcntImpl.cpp index 876cade1f1e..f8f41ff8688 100644 --- a/mozilla/xpcom/base/nsTraceRefcntImpl.cpp +++ b/mozilla/xpcom/base/nsTraceRefcntImpl.cpp @@ -95,8 +95,8 @@ EnumModulesCB(LPSTR aModuleName, * the rebasing and accordingly I've made a tool to use it to rebase the * DLL's in one fell swoop (see xpcom/tools/windows/rebasedlls.cpp). */ -static void -WalkTheStack(char* aBuffer, int aBufLen) +void +nsTraceRefcnt::WalkTheStack(char* aBuffer, int aBufLen) { CONTEXT context; STACKFRAME frame; @@ -191,8 +191,8 @@ WalkTheStack(char* aBuffer, int aBufLen) } #else /* _WIN32 */ -static void -WalkTheStack(char* aBuffer, int aBufLen) +void +nsTraceRefcnt::WalkTheStack(char* aBuffer, int aBufLen) { aBuffer[0] = '\0'; } diff --git a/mozilla/xpcom/base/nsTraceRefcntImpl.h b/mozilla/xpcom/base/nsTraceRefcntImpl.h index 36b04d031c2..fa0f7b1b5e3 100644 --- a/mozilla/xpcom/base/nsTraceRefcntImpl.h +++ b/mozilla/xpcom/base/nsTraceRefcntImpl.h @@ -54,6 +54,8 @@ public: static NS_COM void LoadLibrarySymbols(const char* aLibraryName, void* aLibrayHandle); + + static NS_COM void WalkTheStack(char* aBuffer, int aBufLen); }; #endif /* nsTraceRefcnt_h___ */ diff --git a/mozilla/xpcom/public/nsTraceRefcnt.h b/mozilla/xpcom/public/nsTraceRefcnt.h index 36b04d031c2..fa0f7b1b5e3 100644 --- a/mozilla/xpcom/public/nsTraceRefcnt.h +++ b/mozilla/xpcom/public/nsTraceRefcnt.h @@ -54,6 +54,8 @@ public: static NS_COM void LoadLibrarySymbols(const char* aLibraryName, void* aLibrayHandle); + + static NS_COM void WalkTheStack(char* aBuffer, int aBufLen); }; #endif /* nsTraceRefcnt_h___ */ diff --git a/mozilla/xpcom/src/nsTraceRefcnt.cpp b/mozilla/xpcom/src/nsTraceRefcnt.cpp index 876cade1f1e..f8f41ff8688 100644 --- a/mozilla/xpcom/src/nsTraceRefcnt.cpp +++ b/mozilla/xpcom/src/nsTraceRefcnt.cpp @@ -95,8 +95,8 @@ EnumModulesCB(LPSTR aModuleName, * the rebasing and accordingly I've made a tool to use it to rebase the * DLL's in one fell swoop (see xpcom/tools/windows/rebasedlls.cpp). */ -static void -WalkTheStack(char* aBuffer, int aBufLen) +void +nsTraceRefcnt::WalkTheStack(char* aBuffer, int aBufLen) { CONTEXT context; STACKFRAME frame; @@ -191,8 +191,8 @@ WalkTheStack(char* aBuffer, int aBufLen) } #else /* _WIN32 */ -static void -WalkTheStack(char* aBuffer, int aBufLen) +void +nsTraceRefcnt::WalkTheStack(char* aBuffer, int aBufLen) { aBuffer[0] = '\0'; }