sapling/eden/fs/utils/WinStackTrace.h
Zeyi (Rice) Fan 7f7945d720 windows: teach eden to look for pdb in the binary path
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
2022-05-03 13:39:24 -07:00

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