std: fix outdated valgrind module

This commit is contained in:
daurnimator 2019-11-17 13:59:52 +11:00
parent 8c4784f9c1
commit 4a3bb557f1
No known key found for this signature in database
GPG Key ID: 45B429A8F9D9D22A
3 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,6 @@
const builtin = @import("builtin");
const math = @import("index.zig").math;
const std = @import("std.zig");
const math = std.math;
pub fn doClientRequest(default: usize, request: usize, a1: usize, a2: usize, a3: usize, a4: usize, a5: usize) usize {
if (!builtin.valgrind_support) {
@ -13,7 +14,7 @@ pub fn doClientRequest(default: usize, request: usize, a1: usize, a2: usize, a3:
\\ roll $29, %%edi ; roll $19, %%edi
\\ xchgl %%ebx,%%ebx
: [_] "={edx}" (-> usize)
: [_] "{eax}" (&[]usize{ request, a1, a2, a3, a4, a5 }),
: [_] "{eax}" (&[_]usize{ request, a1, a2, a3, a4, a5 }),
[_] "0" (default)
: "cc", "memory"
);
@ -24,7 +25,7 @@ pub fn doClientRequest(default: usize, request: usize, a1: usize, a2: usize, a3:
\\ rolq $61, %%rdi ; rolq $51, %%rdi
\\ xchgq %%rbx,%%rbx
: [_] "={rdx}" (-> usize)
: [_] "{rax}" (&[]usize{ request, a1, a2, a3, a4, a5 }),
: [_] "{rax}" (&[_]usize{ request, a1, a2, a3, a4, a5 }),
[_] "0" (default)
: "cc", "memory"
);
@ -263,5 +264,5 @@ pub fn monitorCommand(command: [*]u8) bool {
return doClientRequestExpr(0, ClientRequest.GdbMonitorCommand, @ptrToInt(command.ptr), 0, 0, 0, 0) != 0;
}
pub const memcheck = @import("memcheck.zig");
pub const callgrind = @import("callgrind.zig");
pub const memcheck = @import("valgrind/memcheck.zig");
pub const callgrind = @import("valgrind/callgrind.zig");

View File

@ -1,4 +1,4 @@
const std = @import("../index.zig");
const std = @import("../std.zig");
const valgrind = std.valgrind;
pub const CallgrindClientRequest = extern enum {

View File

@ -1,4 +1,4 @@
const std = @import("../index.zig");
const std = @import("../std.zig");
const valgrind = std.valgrind;
pub const MemCheckClientRequest = extern enum {