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

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

Issue 576001: Merged third_party/tcmalloc/vendor/src(google-perftools r87) into... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Removed the unnecessary printf and ASSERT(0) 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
52 #include <cygwin/signal.h> 57 #include <cygwin/signal.h>
53 typedef ucontext ucontext_t; 58 typedef ucontext ucontext_t;
54 #endif 59 #endif
55 #ifdef HAVE_STDINT_H 60 #ifdef HAVE_STDINT_H
56 #include <stdint.h> // for uintptr_t 61 #include <stdint.h> // for uintptr_t
57 #endif 62 #endif
58 #ifdef HAVE_UNISTD_H 63 #ifdef HAVE_UNISTD_H
59 #include <unistd.h> 64 #include <unistd.h>
60 #endif 65 #endif
61 #ifdef HAVE_MMAP 66 #ifdef HAVE_MMAP
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 } else { 526 } else {
522 // A frame-size of 0 is used to indicate unknown frame size. 527 // A frame-size of 0 is used to indicate unknown frame size.
523 sizes[n] = 0; 528 sizes[n] = 0;
524 } 529 }
525 n++; 530 n++;
526 } 531 }
527 sp = next_sp; 532 sp = next_sp;
528 } 533 }
529 return n; 534 return n;
530 } 535 }
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