Files
swift-mirror/stdlib/public/RuntimeModule/modules/ImageFormats/CodeView/codeview.h
Alastair Houghton 7f57385be4 [Backtracing][Windows] Add PE file parsing and DWARF-in-PE support.
This should allow us to get symbolicated backtraces for Swift code
that is built with DWARF debug information.

rdar://181623384
2026-02-03 18:23:29 +00:00

45 lines
1.1 KiB
C++

//===--- codeview.h - Definitions of CodwView structures for Swift --------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// Definitions of CodeView structures for import into Swift code
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_CODEVIEW_H_
#define SWIFT_CODEVIEW_H_
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
// ###FIXME: Need to define this without windows.h
#ifdef __cplusplus
namespace swift {
namespace runtime {
#endif
typedef struct {
DWORD dwMagic;
GUID Signature;
DWORD dwAge;
CHAR PdbFileName[1];
} CV_PDB70_INFO;
#define CV_PDB70_MAGIC 0x53445352
#ifdef __cplusplus
} // namespace runtime
} // namespace swift
#endif
#endif // SWIFT_CODEVIEW_H_