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

Side by Side Diff: src/processor/stackwalk_common.cc

Issue 1602563003: Fix usage of snprintf for MSVC (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad@master
Patch Set: Created 4 years, 11 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
OLDNEW
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 17 matching lines...) Expand all
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 // stackwalk_common.cc: Module shared by the {micro,mini}dump_stackwalck 30 // stackwalk_common.cc: Module shared by the {micro,mini}dump_stackwalck
31 // executables to print the content of dumps (w/ stack traces) on the console. 31 // executables to print the content of dumps (w/ stack traces) on the console.
32 // 32 //
33 // Author: Mark Mentovai 33 // Author: Mark Mentovai
34 34
35 #include "processor/stackwalk_common.h" 35 #include "processor/stackwalk_common.h"
36 36
37 #include <assert.h> 37 #include <assert.h>
38 #include <stdio.h>
39 #include <stdlib.h> 38 #include <stdlib.h>
40 #include <string.h> 39 #include <string.h>
41 40
42 #include <string> 41 #include <string>
43 #include <vector> 42 #include <vector>
44 43
44 #include "common/stdio.h"
45 #include "common/using_std_string.h" 45 #include "common/using_std_string.h"
46 #include "google_breakpad/processor/call_stack.h" 46 #include "google_breakpad/processor/call_stack.h"
47 #include "google_breakpad/processor/code_module.h" 47 #include "google_breakpad/processor/code_module.h"
48 #include "google_breakpad/processor/code_modules.h" 48 #include "google_breakpad/processor/code_modules.h"
49 #include "google_breakpad/processor/process_state.h" 49 #include "google_breakpad/processor/process_state.h"
50 #include "google_breakpad/processor/source_line_resolver_interface.h" 50 #include "google_breakpad/processor/source_line_resolver_interface.h"
51 #include "google_breakpad/processor/stack_frame_cpu.h" 51 #include "google_breakpad/processor/stack_frame_cpu.h"
52 #include "processor/logging.h" 52 #include "processor/logging.h"
53 #include "processor/pathname_stripper.h" 53 #include "processor/pathname_stripper.h"
54 54
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 for (int thread_index = 0; thread_index < thread_count; ++thread_index) { 920 for (int thread_index = 0; thread_index < thread_count; ++thread_index) {
921 if (thread_index != requesting_thread) { 921 if (thread_index != requesting_thread) {
922 // Don't print the crash thread again, it was already printed. 922 // Don't print the crash thread again, it was already printed.
923 PrintStackMachineReadable(thread_index, 923 PrintStackMachineReadable(thread_index,
924 process_state.threads()->at(thread_index)); 924 process_state.threads()->at(thread_index));
925 } 925 }
926 } 926 }
927 } 927 }
928 928
929 } // namespace google_breakpad 929 } // namespace google_breakpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698