From ef11bc9899002620d67cfce9c79b6c0dc0f5ea61 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Tue, 6 Aug 2024 11:22:37 -0400 Subject: Dwarf: rework self-hosted debug info from scratch This is in preparation for incremental and actually being able to debug executables built by the x86_64 backend. --- lib/std/dwarf.zig | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'lib/std/dwarf.zig') diff --git a/lib/std/dwarf.zig b/lib/std/dwarf.zig index 6703574d4e..f836d75ae0 100644 --- a/lib/std/dwarf.zig +++ b/lib/std/dwarf.zig @@ -95,6 +95,9 @@ pub const LNE = struct { pub const set_discriminator = 0x04; pub const lo_user = 0x80; pub const hi_user = 0xff; + + // Zig extensions + pub const ZIG_set_decl = 0xec; }; pub const UT = struct { @@ -118,6 +121,8 @@ pub const LNCT = struct { pub const lo_user = 0x2000; pub const hi_user = 0x3fff; + + pub const LLVM_source = 0x2001; }; pub const RLE = struct { @@ -142,6 +147,37 @@ pub const CC = enum(u8) { GNU_renesas_sh = 0x40, GNU_borland_fastcall_i386 = 0x41, + BORLAND_safecall = 0xb0, + BORLAND_stdcall = 0xb1, + BORLAND_pascal = 0xb2, + BORLAND_msfastcall = 0xb3, + BORLAND_msreturn = 0xb4, + BORLAND_thiscall = 0xb5, + BORLAND_fastcall = 0xb6, + + LLVM_vectorcall = 0xc0, + LLVM_Win64 = 0xc1, + LLVM_X86_64SysV = 0xc2, + LLVM_AAPCS = 0xc3, + LLVM_AAPCS_VFP = 0xc4, + LLVM_IntelOclBicc = 0xc5, + LLVM_SpirFunction = 0xc6, + LLVM_OpenCLKernel = 0xc7, + LLVM_Swift = 0xc8, + LLVM_PreserveMost = 0xc9, + LLVM_PreserveAll = 0xca, + LLVM_X86RegCall = 0xcb, + LLVM_M68kRTD = 0xcc, + LLVM_PreserveNone = 0xcd, + LLVM_RISCVVectorCall = 0xce, + LLVM_SwiftTail = 0xcf, + pub const lo_user = 0x40; pub const hi_user = 0xff; }; + +pub const ACCESS = struct { + pub const public = 0x01; + pub const protected = 0x02; + pub const private = 0x03; +}; -- cgit v1.2.3