gecko-dev/mozglue/misc
Mike Hommey 4d8e18962b Bug 1699375 - Move WalkTheStack to mozglue. r=nika
A long standing issue is that MOZ_ASSERT and related don't print stack
traces in debug builds when they're directly or indirectly emitted from
non-libxul code. Moving WalkTheStack to mozglue alleviates the problem.

It's also not printing stack traces when emitted from C code (and for
some C third party libraries, we do redirect assert to MOZ_ASSERT),
which we solve by making the corresponding API available without C++
(which WalkTheStack being a static method of the nsTraceRefCnt class
didn't allow, or the use of a closure on Android).

This requires some adjustements to headers that indirectly assume that
Assertions.h includes ErrorList.h through nsError.h through nscore.h
through nsTraceRefcnt.h.

We also remove TestStackCrawl.cpp because it hasn't been built since
bug 158528, 19 years ago.

Differential Revision: https://phabricator.services.mozilla.com/D108913
2021-03-22 21:25:30 +00:00
..
decimal
interceptor Bug 1684532 - Detect injected dependent modules in NtMapViewOfSection. r=mhowell 2021-01-13 15:13:18 +00:00
AutoProfilerLabel.cpp Bug 1665411 - Use first-fit mutexes on macOS r=spohl 2020-10-30 13:10:29 +00:00
AutoProfilerLabel.h
ConditionVariable_posix.cpp
ConditionVariable_windows.cpp
Debug.h Bug 1680402. Use stderr in printf_stderr instead of reopening fd 2. r=glandium 2021-03-16 20:45:21 +00:00
DynamicallyLinkedFunctionPtr.h
ImportDir.h Bug 1671316 - Part1. Introduce CrossExecTransferManager. r=mhowell 2020-10-27 14:09:00 +00:00
IntegerPrintfMacros.h Bug 1690167 - Move Sprintf.h and IntegerPrintfMacros.h next to Printf.h. r=jwalden 2021-03-10 23:52:39 +00:00
MmapFaultHandler.cpp
MmapFaultHandler.h
MutexPlatformData_posix.h
MutexPlatformData_windows.h
Mutex_posix.cpp Bug 1665411 - Use first-fit mutexes on macOS r=spohl 2020-10-30 13:10:29 +00:00
Mutex_windows.cpp
NativeNt.h Bug 1684532 - Detect injected dependent modules in NtMapViewOfSection. r=mhowell 2021-01-13 15:13:18 +00:00
PlatformConditionVariable.h
PlatformMutex.h Bug 1665411 - Use first-fit mutexes on macOS r=spohl 2020-10-30 13:10:29 +00:00
PreXULSkeletonUI.cpp Bug 1696556 - Always run earlyBlankFirstPaint if we showed skele UI r=emalysz 2021-03-09 18:37:53 +00:00
PreXULSkeletonUI.h Bug 1696556 - Always run earlyBlankFirstPaint if we showed skele UI r=emalysz 2021-03-09 18:37:53 +00:00
Printf.cpp Bug 1690167 - Add support for the hh length modifier in Printf.cpp. r=nika,Gankra 2021-03-10 23:52:40 +00:00
Printf.h Bug 1690167 - Change VsprintfLiteral/SprintfLiteral to rely on PrintfTarget. r=nika,Gankra,firefox-build-system-reviewers,mhentges 2021-03-10 23:52:40 +00:00
Sprintf.h Bug 1699375 - Add {Vs,S}printLiteral-like functions for buffers of arbitrary size. r=nika 2021-03-22 21:25:30 +00:00
StackWalk.cpp Bug 1699375 - Move WalkTheStack to mozglue. r=nika 2021-03-22 21:25:30 +00:00
StackWalk.h Bug 1699375 - Move WalkTheStack to mozglue. r=nika 2021-03-22 21:25:30 +00:00
StackWalkThread.h Bug 1699375 - Move MozStackWalkThread to a separate header. r=gerald 2021-03-22 21:25:29 +00:00
StackWalk_windows.h
TimeStamp.cpp Bug 1205985 - Implement something to get the process uptime with and without the time the device was suspended. r=haik,dmajor,jld 2021-01-12 12:34:59 +00:00
TimeStamp.h
TimeStamp_darwin.cpp Bug 1205985 - Implement something to get the process uptime with and without the time the device was suspended. r=haik,dmajor,jld 2021-01-12 12:34:59 +00:00
TimeStamp_posix.cpp Bug 1205985 - Implement something to get the process uptime with and without the time the device was suspended. r=haik,dmajor,jld 2021-01-12 12:34:59 +00:00
TimeStamp_windows.cpp Bug 1205985 - Implement something to get the process uptime with and without the time the device was suspended. r=haik,dmajor,jld 2021-01-12 12:34:59 +00:00
TimeStamp_windows.h
Uptime.cpp Bug 1205985 - Implement something to get the process uptime with and without the time the device was suspended. r=haik,dmajor,jld 2021-01-12 12:34:59 +00:00
Uptime.h Bug 1205985 - Implement something to get the process uptime with and without the time the device was suspended. r=haik,dmajor,jld 2021-01-12 12:34:59 +00:00
WinUtils.h
WindowsDpiAwareness.h Bug 1665357 - Ensure DPI_AWARENESS_CONTEXT is defined r=mhowell 2020-09-16 20:14:40 +00:00
WindowsMapRemoteView.cpp
WindowsMapRemoteView.h
WindowsProcessMitigations.cpp Bug 1681123 - Bump mingw-w64 revision to fix _aligned_malloc in clang 12 r=tjr 2020-12-07 17:55:27 +00:00
WindowsProcessMitigations.h
WindowsUnicode.cpp
WindowsUnicode.h
moz.build Bug 1699375 - Move MozStackWalkThread to a separate header. r=gerald 2021-03-22 21:25:29 +00:00
nsWindowsDllInterceptor.h Bug 1671316 - Part2. Pass CrossExecTransferManager to FuncHookCrossProcess and Kernel32ExportsSolver. r=mhowell 2020-10-27 14:08:49 +00:00