mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 06:47:41 +03:00
7f7945d720
Summary: On Windows, dbghelp.dll does not look at the executable path for debug symbol files by default. This has caused us to not be able to see stack traces when iterating / debugging EdenFS on Windows. This diff fixes it by manually adding the binary directory to the search list, and explicitly load it when reporting a crash. This will also trigger loading from the debug symbol server **if it is configured in the environment variable**. Reviewed By: xavierd Differential Revision: D35623865 fbshipit-source-id: 72822bf38af93632fbd3a20757863d6bea4b078a
17 lines
338 B
C++
17 lines
338 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
#pragma once
|
|
#ifdef _WIN32
|
|
|
|
namespace facebook::eden {
|
|
void installWindowsExceptionFilter();
|
|
|
|
void printCurrentStack();
|
|
} // namespace facebook::eden
|
|
#endif
|