aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-03-16 14:08:06 -0400
committerGitHub <noreply@github.com>2022-03-16 14:08:06 -0400
commitd4a7a9ac4cf64ef6bf0b1aed16282c3d8b47b431 (patch)
treef0d318ae9cf8ec6ca029aa9ecf4aa3d01dcf025c /src
parent8a43d67c3bf878fa32ef4876897a32969a4b5d24 (diff)
parent4ff7553d6b918e4eef643d10bd8f41492355f39c (diff)
downloadzig-d4a7a9ac4cf64ef6bf0b1aed16282c3d8b47b431.tar.gz
zig-d4a7a9ac4cf64ef6bf0b1aed16282c3d8b47b431.zip
Merge pull request #11191 from Snektron/zig-gdb-improvements
Zig gdb improvements
Diffstat (limited to 'src')
-rw-r--r--src/type.zig1
-rw-r--r--src/value.zig1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/type.zig b/src/type.zig
index ffa43d32c0..f7aae88df5 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -5093,6 +5093,7 @@ pub const Type = extern union {
pub const no_payload_count = @enumToInt(last_no_payload_tag) + 1;
pub fn Type(comptime t: Tag) type {
+ // Keep in sync with tools/zig-gdb.py
return switch (t) {
.u1,
.u8,
diff --git a/src/value.zig b/src/value.zig
index 24cec0396e..d63452ee56 100644
--- a/src/value.zig
+++ b/src/value.zig
@@ -20,6 +20,7 @@ pub const Value = extern union {
tag_if_small_enough: Tag,
ptr_otherwise: *Payload,
+ // Keep in sync with tools/zig-gdb.py
pub const Tag = enum(usize) {
// The first section of this enum are tags that require no payload.
u1_type,