aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/win_dbghelp.h
blob: 226249f4e6449349d50157be2d88beea9f019bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright 2013 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef win_dbghelp_DEFINED
#define win_dbghelp_DEFINED

#ifdef SK_BUILD_FOR_WIN

#include <dbghelp.h>
#include <shellapi.h>
#include <shlobj.h>

void setAppName(const char* app_name);
const char* getAppName();

void setBinariesPath(const char* binaries_path);
const char* getBinariesPath();

void setAppVersion(const char* version);
const char* getAppVersion();

void setCdbPath(const char* path);
const char* getCdbPath();

void setUpDebuggingFromArgs(const char* vargs0);

int GenerateDumpAndPrintCallstack(EXCEPTION_POINTERS* pExceptionPointers);

#endif  // SK_BUILD_FOR_WIN

#endif  // win_dbghelp_DEFINED