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

Side by Side Diff: runtime/bin/vmstats_impl_win.cc

Issue 13977010: Fixed Windows syntax error. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/globals.h" 5 #include "platform/globals.h"
6 #if defined(TARGET_OS_WINDOWS) 6 #if defined(TARGET_OS_WINDOWS)
7 7
8 #include "bin/vmstats_impl.h" 8 #include "bin/vmstats_impl.h"
9 9
10 #include <signal.h> // NOLINT 10 #include <signal.h> // NOLINT
11 11
12 12
13 static void sig_handler(int sig) { 13 static void sig_handler(int sig) {
14 if (sig == SIGBREAK) { 14 if (sig == SIGBREAK) {
15 VmStats::DumpStack(); 15 VmStats::DumpStack();
16 } 16 }
17 } 17 }
18 18
19 void VmStats::Initialize() { 19 void VmStats::Initialize() {
20 // Enable SIGBREAK (ctrl-break) stack dumps. 20 // Enable SIGBREAK (ctrl-break) stack dumps.
21 if (signal(SIGBREAK sig_handler) == SIG_ERR) { 21 if (signal(SIGBREAK, sig_handler) == SIG_ERR) {
22 perror("Adding SIGBREAK signal handler failed"); 22 perror("Adding SIGBREAK signal handler failed");
23 } 23 }
24 } 24 }
25 25
26 #endif // defined(TARGET_OS_WINDOWS) 26 #endif // defined(TARGET_OS_WINDOWS)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698