mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
This should allow us to get symbolicated backtraces for Swift code that is built with DWARF debug information. rdar://181623384
45 lines
1.1 KiB
C++
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_
|