Jan Beich
d3feb1fd7e
Bug 977457 - Move _GNU_SOURCE ifdef a little up to account for cxxabi.h from libcxxrt. r=ehsan
2014-03-03 10:29:08 -05:00
L. David Baron
c38509b88b
Bug 939610: Return to printing stack walk addresses in uppercase hexidecimal rather than lowercase, since we have scripts depending on it. r=ted
2014-02-24 15:27:52 -08:00
Nathan Froyd
9b20f83047
Bug 960700 - delete incorrect comment from nsStackWalk.cpp; r=ehsan
2014-01-16 14:53:04 -05:00
Steven Michaud
bf4639938d
Bug 956310 - DMD builds fail on Mac OS X. r=bgirard
2014-01-08 17:06:22 -06:00
Isura Edirisinghe
fb55bf3571
Bug 676907 - Refactor (replace) calls to Gestalt because it is deprecated in OS X 10.8 and will not work in after 10.9. r=BenWa
2013-12-19 11:42:19 -05:00
Birunthan Mohanathas
88a0348924
Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
2013-12-08 21:52:54 -05:00
Catalin Iacob
b430670a94
Bug 819839 - Part 1 - Allow NS_StackWalk to be called during static initialization on Windows. r=ehsan
2013-11-29 16:08:43 +01:00
Birunthan Mohanathas
52e24d677b
Bug 784739 - Switch from NULL to nullptr in xpcom/ (1/3); r=ehsan
2013-10-10 16:41:00 -04:00
Nathan Froyd
99458c2a8b
Bug 915765 - fix -Wformat warnings in xpcom/; r=bsmedberg
...
Unfortunately this doesn't fix all platforms, since Android's inttypes.h doesn't
have the right macros for intptr_t at least, but it makes the situation a little
better.
2013-09-12 13:18:36 -04:00
Ehsan Akhgari
35f4093831
Bug 917885 - Minimize the #includes in xpcom/base; r=bsmedberg
2013-09-19 14:29:31 -04:00
Ehsan Akhgari
fe85b6b42b
Backed out changeset a8d6973e5743 (bug 917885) because I pushed the wrong patch
2013-09-19 14:27:35 -04:00
Ehsan Akhgari
4bbb07e34d
Bug 917885 - Minimize the #includes in xpcom/base; r=bsmedberg
2013-09-19 14:12:56 -04:00
Chris Peterson
71b51ff0e6
Bug 850408 - Part 2: Remove Snow Leopard OS check from nsStackWalk. r=bsmedberg
2013-03-07 22:59:39 +00:00
Ted Mielczarek
302b8612b2
bug 751673 - fix Windows assertion stacks. r=dbaron
2013-03-11 14:21:53 -04:00
Trevor Saunders
4185ee3161
bug 829288 - fix a bunch of mingw warnings in xpcom/ r=ehsan
2013-01-10 03:39:40 -05:00
Nicholas Nethercote
17d30f9a25
Bug 818793 - Add a |aMaxFrames| parameter to NS_StackWalk. r=jlebar,glandium; sr=dbaron.
2012-12-20 21:31:57 -08:00
Nicholas Nethercote
06fab13a4c
Bug 717853 - Add a native version of DMD. r=jlebar,glandium.
2012-12-10 16:05:07 -08:00
Bas Schouten
c1daf2b274
Bug 816117 - Part 1: Add the ability to pass around a windows Thread Context to StackWalkMain64. r=ehsan
2012-12-08 06:15:21 +01:00
Justin Lebar
d47b4f0a81
Bug 819539 - Ignore _Unwind_Backtrace errors on ARM + Android. r=glandium
2012-12-07 17:18:22 -05:00
Ehsan Akhgari
ed64b1a278
Bug 806209 followup - fix a stupid mistake; irc-r=BenWa
2012-10-29 14:18:14 -04:00
Ehsan Akhgari
f94bcc2371
Bug 806209 - Prevent the Windows implementation of NS_StackWalk from accessing the stdio APIs in order to avoid deadlocks when profiling on Windows; r=BenWa
2012-10-29 14:03:01 -04:00
Mark Hammond
677210c768
Bug 796526 - stop spewing errors re SysGetModuleInfo64 in debug builds. r=dbaron
2012-10-16 11:26:35 +11:00
Isaac Aggrey
328099fe04
Bug 795507: Remove usage of PR_BEGIN_EXTERN_C and PR_END_EXTERN_C; r=ehsan
2012-09-30 21:10:22 -05:00
Ehsan Akhgari
57ec2ec569
Bug 792502 - Kill the FunctionTimer code; r=vlad
2012-09-19 16:59:38 -04:00
Justin Lebar
e9f340575c
Bug 788546 - In our stack-walking code, instead of asserting that we're initialized and failing if we're not, go ahead and initialize ourself when necessary. r=espindola
2012-09-10 15:51:45 -04:00
Aryeh Gregor
387d2921ba
Bug 783523 - Fix platform-specific nsresult misuse; r=ehsan,tbsaunde,smaug
2012-08-16 14:58:11 +03:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Jan Beich
aa27e57c06
Bug 781457 - Define _GNU_SOURCE for _Unwind_Backtrace. r=dbaron
2012-08-10 11:29:59 -04:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Benoit Girard
bf26214859
Bug 766579 - Part 3: Follow up fix. r=dbaron
2012-07-10 17:39:10 -04:00
Benoit Girard
c3fd11178b
Bug 766579 - Part 1: Add SP param to NS_StackWalk. r=dbaron
2012-06-27 16:08:21 -04:00
Ehsan Akhgari
c94655b56e
Bug 767479 - Handle the case of more than 1024 frames when walking the stack of another thread on Windows, and also use the infallible allocator when walking the stack of your own thread; r=dbaron
2012-06-22 16:31:59 -04:00
Ehsan Akhgari
6af229f6df
Bug 767488 - Cache the current process handle after reading it for the first time during stack walking; r=dbaron
...
The current process handle never changes, so it doesn't make a lot of sense
to read it over and over again. Note that this doesn't close the process
handle explicitly but that's fine, since Windows will release all of the
open handles when the application is terminated.
2012-06-22 17:48:31 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Jeff Muizelaar
b15ac22046
Bug 719427. Add a comment about malloc_logger. r=espindola
2012-03-27 13:48:58 -04:00
Ehsan Akhgari
c5900f6899
Bug 737959 - Fix the startup crash with MallocStackLogging; r=bsmedberg
2012-03-22 13:18:36 -04:00
Jeff Muizelaar
905a5cadfc
Bug 732806. Make stackwalking respect the stack end on OS X. r=ehsan
...
This will help us avoid some crashes.
2012-02-15 00:17:34 -05:00
Ehsan Akhgari
8bb9044ac3
Bug 733264 - Define FramePointerStackWalk on platforms where stackwalking is not supported; r=jrmuizel
2012-03-06 11:38:04 -05:00
Cameron McCormack
f298a21a8d
Bug 732664 - Use FormatMessageA so that XPCOM stack walker prints error message correctly. r=dbaron
2012-03-06 10:04:40 +11:00
Masatoshi Kimura
3a5286efbe
Bug 699247 - Remove Win2K related code. r=jimm, sr=neil
2012-02-23 08:53:55 -06:00
Jeff Muizelaar
8afa35bccf
Bug 724079. Add an internal stackwalk API. r=ehsan
...
This will be used by the profiler to be able to unwind arbitrary threads.
2012-02-03 15:13:24 -05:00
Ed Morley
8086dffedb
Backout f1acc52a59da (bug 719983) & 6771bd53e267 (bug 699247) for 30% WinXp Ts regression
2012-02-08 21:04:21 +00:00
Masatoshi Kimura
89dc26a595
Bug 699247 - Say goodbye to Win2k related code. r=jimm, sr=neil
2012-02-08 10:00:45 -06:00
Ehsan Akhgari
43505a6afd
Bug 718032 - Make stackwalking for other threads cheaper on Windows by avoiding involving a third walker thread; r=jrmuizel
2012-01-26 11:57:23 -05:00
Vladan Djeric
e3d530c851
Bug 716590 - WalkStackMain64 shouldn't skip frames unless it's walking the thread that called NS_StackWalk. r=dbaron
2012-01-23 17:21:23 -05:00
Ehsan Akhgari
b8bca9ed9c
Bug 713278 - Teach NS_StackWalk to walk the stack of other threads too on Windows; r=dbaron
2011-12-23 18:14:09 -05:00
Rafael Ávila de Espíndola
d804a343b5
Bug 708031 - refactor the ifdefs in nsStackWalk.cpp. r=dbaron.
2011-12-22 11:00:48 -05:00
Javi Rueda
5534167e4f
Bug 379342 - Remove Win95/Win98 support code in XPCom; r=bsmedberg a=removal
2011-12-13 14:17:58 +00:00
Rafael Ávila de Espíndola
488a865799
Bug 707648 - Only try to init the critical range if we are able to walk the stack. r=ehsan.
2011-12-06 14:26:49 -05:00
Rafael Ávila de Espíndola
59b41e200e
Bug 696376 - Change how we find critical ranges so that it works on 10.6 too. r=dbaron.
...
Currently we use dlsym on pthread_cond_wait$UNIX2003 to find a
function that indicates that new_sem_from_pool is on the stack. This
works on 10.5, but on 10.6 I could not find a single reliable
indicator that would work with dlsym.
The good news is that dladdr works with any symbol, not just exported
ones. To find the address of new_sem_from_pool, we set up a malloc logger
and force a call to new_sem_from_pool. From the logger callback we walk
the stack trying dladdr on every address.
To force a call to new_sem_from_pool, the initialization code has to be the
first to use semaphores, so it is now run from NS_LogInit.
This works on 10.6 and 10.5 (but we have to look for
"pthread_cond_wait$UNIX2003"). In 10.7 the call to malloc is gone, so we don't
have to worry about critical addresses on it anymore.
2011-12-02 19:26:04 -05:00