Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h

Issue 1076002: Revert 41938 - Merged third_party/tcmalloc/vendor/src(googleperftools r87) in... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2005, Google Inc. 1 // Copyright (c) 2005, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 #include "config.h" 43 #include "config.h"
44 44
45 #include <stdlib.h> // for NULL 45 #include <stdlib.h> // for NULL
46 #include <assert.h> 46 #include <assert.h>
47 #if defined(HAVE_SYS_UCONTEXT_H) 47 #if defined(HAVE_SYS_UCONTEXT_H)
48 #include <sys/ucontext.h> 48 #include <sys/ucontext.h>
49 #elif defined(HAVE_UCONTEXT_H) 49 #elif defined(HAVE_UCONTEXT_H)
50 #include <ucontext.h> // for ucontext_t 50 #include <ucontext.h> // for ucontext_t
51 #elif defined(HAVE_CYGWIN_SIGNAL_H) 51 #elif defined(HAVE_CYGWIN_SIGNAL_H)
52 // cygwin/signal.h has a buglet where it uses pthread_attr_t without
53 // #including <pthread.h> itself. So we have to do it.
54 # ifdef HAVE_PTHREAD
55 # include <pthread.h>
56 # endif
57 #include <cygwin/signal.h> 52 #include <cygwin/signal.h>
58 typedef ucontext ucontext_t; 53 typedef ucontext ucontext_t;
59 #endif 54 #endif
60 #ifdef HAVE_STDINT_H 55 #ifdef HAVE_STDINT_H
61 #include <stdint.h> // for uintptr_t 56 #include <stdint.h> // for uintptr_t
62 #endif 57 #endif
63 #ifdef HAVE_UNISTD_H 58 #ifdef HAVE_UNISTD_H
64 #include <unistd.h> 59 #include <unistd.h>
65 #endif 60 #endif
66 #ifdef HAVE_MMAP 61 #ifdef HAVE_MMAP
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 } else { 521 } else {
527 // A frame-size of 0 is used to indicate unknown frame size. 522 // A frame-size of 0 is used to indicate unknown frame size.
528 sizes[n] = 0; 523 sizes[n] = 0;
529 } 524 }
530 n++; 525 n++;
531 } 526 }
532 sp = next_sp; 527 sp = next_sp;
533 } 528 }
534 return n; 529 return n;
535 } 530 }
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/stacktrace_config.h ('k') | third_party/tcmalloc/chromium/src/symbolize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698