Files
swift-mirror/stdlib/public/RuntimeModule/modules/ImageFormats/CodeView/codeview.h
Alastair Houghton d13988bd5f [Backtracing][Windows] Initial Windows support.
This doesn't have a working symbolicator yet, but it does build and
it can obtain a basic backtrace.

It also doesn't include a working `swift-backtrace` program yet.

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

43 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>
#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_