OLD | NEW |
1 // Copyright (c) 2010 Google Inc. | 1 // Copyright (c) 2010 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 16 matching lines...) Expand all Loading... |
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 | 29 |
30 // dump_context.cc: A (mini/micro)dump context. | 30 // dump_context.cc: A (mini/micro)dump context. |
31 // | 31 // |
32 // See dump_context.h for documentation. | 32 // See dump_context.h for documentation. |
33 | 33 |
34 #include "google_breakpad/processor/dump_context.h" | 34 #include "google_breakpad/processor/dump_context.h" |
35 | 35 |
36 #include <assert.h> | 36 #include <assert.h> |
37 #include <stdio.h> | |
38 | 37 |
39 #ifdef _WIN32 | 38 #ifdef _WIN32 |
40 #include <io.h> | 39 #include <io.h> |
41 #if defined(_MSC_VER) && _MSC_VER < 1900 | |
42 #define snprintf _snprintf | |
43 #endif | |
44 #else // _WIN32 | 40 #else // _WIN32 |
45 #include <unistd.h> | 41 #include <unistd.h> |
46 #endif // _WIN32 | 42 #endif // _WIN32 |
47 | 43 |
| 44 #include "common/stdio.h" |
48 #include "processor/logging.h" | 45 #include "processor/logging.h" |
49 | 46 |
50 namespace google_breakpad { | 47 namespace google_breakpad { |
51 | 48 |
52 DumpContext::DumpContext() : context_(), | 49 DumpContext::DumpContext() : context_(), |
53 context_flags_(0) { } | 50 context_flags_(0) { } |
54 | 51 |
55 DumpContext::~DumpContext() { | 52 DumpContext::~DumpContext() { |
56 FreeContext(); | 53 FreeContext(); |
57 } | 54 } |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 break; | 645 break; |
649 } | 646 } |
650 | 647 |
651 default: { | 648 default: { |
652 break; | 649 break; |
653 } | 650 } |
654 } | 651 } |
655 } | 652 } |
656 | 653 |
657 } // namespace google_breakpad | 654 } // namespace google_breakpad |
OLD | NEW |