authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-11-17 13:59:52+11:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-11-17 14:14:57+11:00
log4a3bb557f1612bc9955b1bf97519afd027acff03
treeca1db34bed64e689999a8ac06d99cd5d8807a193
parent8c4784f9c181a13eae36d7a1ac57f278cf5fcd72
signaturelock-open Commit is signed but in an unrecognized format.

std: fix outdated valgrind module


3 files changed, 8 insertions(+), 7 deletions(-)

lib/std/valgrind.zig+6-5
...@@ -1,5 +1,6 @@...@@ -1,5 +1,6 @@
1const builtin = @import("builtin");1const builtin = @import("builtin");
2const math = @import("index.zig").math;2const std = @import("std.zig");
3const math = std.math;
34
4pub fn doClientRequest(default: usize, request: usize, a1: usize, a2: usize, a3: usize, a4: usize, a5: usize) usize {5pub fn doClientRequest(default: usize, request: usize, a1: usize, a2: usize, a3: usize, a4: usize, a5: usize) usize {
5 if (!builtin.valgrind_support) {6 if (!builtin.valgrind_support) {
...@@ -13,7 +14,7 @@ pub fn doClientRequest(default: usize, request: usize, a1: usize, a2: usize, a3:...@@ -13,7 +14,7 @@ pub fn doClientRequest(default: usize, request: usize, a1: usize, a2: usize, a3:
13 \\ roll $29, %%edi ; roll $19, %%edi14 \\ roll $29, %%edi ; roll $19, %%edi
14 \\ xchgl %%ebx,%%ebx15 \\ xchgl %%ebx,%%ebx
15 : [_] "={edx}" (-> usize)16 : [_] "={edx}" (-> usize)
16 : [_] "{eax}" (&[]usize{ request, a1, a2, a3, a4, a5 }),17 : [_] "{eax}" (&[_]usize{ request, a1, a2, a3, a4, a5 }),
17 [_] "0" (default)18 [_] "0" (default)
18 : "cc", "memory"19 : "cc", "memory"
19 );20 );
...@@ -24,7 +25,7 @@ pub fn doClientRequest(default: usize, request: usize, a1: usize, a2: usize, a3:...@@ -24,7 +25,7 @@ pub fn doClientRequest(default: usize, request: usize, a1: usize, a2: usize, a3:
24 \\ rolq $61, %%rdi ; rolq $51, %%rdi25 \\ rolq $61, %%rdi ; rolq $51, %%rdi
25 \\ xchgq %%rbx,%%rbx26 \\ xchgq %%rbx,%%rbx
26 : [_] "={rdx}" (-> usize)27 : [_] "={rdx}" (-> usize)
27 : [_] "{rax}" (&[]usize{ request, a1, a2, a3, a4, a5 }),28 : [_] "{rax}" (&[_]usize{ request, a1, a2, a3, a4, a5 }),
28 [_] "0" (default)29 [_] "0" (default)
29 : "cc", "memory"30 : "cc", "memory"
30 );31 );
...@@ -263,5 +264,5 @@ pub fn monitorCommand(command: [*]u8) bool {...@@ -263,5 +264,5 @@ pub fn monitorCommand(command: [*]u8) bool {
263 return doClientRequestExpr(0, ClientRequest.GdbMonitorCommand, @ptrToInt(command.ptr), 0, 0, 0, 0) != 0;264 return doClientRequestExpr(0, ClientRequest.GdbMonitorCommand, @ptrToInt(command.ptr), 0, 0, 0, 0) != 0;
264}265}
265266
266pub const memcheck = @import("memcheck.zig");267pub const memcheck = @import("valgrind/memcheck.zig");
267pub const callgrind = @import("callgrind.zig");268pub const callgrind = @import("valgrind/callgrind.zig");
lib/std/valgrind/callgrind.zig+1-1
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1const std = @import("../index.zig");1const std = @import("../std.zig");
2const valgrind = std.valgrind;2const valgrind = std.valgrind;
33
4pub const CallgrindClientRequest = extern enum {4pub const CallgrindClientRequest = extern enum {
lib/std/valgrind/memcheck.zig+1-1
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1const std = @import("../index.zig");1const std = @import("../std.zig");
2const valgrind = std.valgrind;2const valgrind = std.valgrind;
33
4pub const MemCheckClientRequest = extern enum {4pub const MemCheckClientRequest = extern enum {