Created
July 13, 2019 14:01
-
-
Save via/15ebaf533a677cb4058da45d63cedbf8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std.io.SliceOutStream.writeFn (out_stream=0x7fffffffe1a0, bytes=...) at /home/via/dev/zig-linux-x86_64-0.4.0+57d67241/lib/zig/std/io.zig:693 | |
693 const self = @fieldParentPtr(SliceOutStream, "stream", out_stream); | |
(gdb) print bytes | |
$8 = {ptr = 0x20214e <__unnamed_272> "fueling_us: {}\n", len = 12} | |
(gdb) n | |
695 assert(self.pos <= self.slice.len); | |
(gdb) n | |
697 const n = if (self.pos + bytes.len <= self.slice.len) | |
(gdb) n | |
698 bytes.len | |
(gdb) n | |
697 const n = if (self.pos + bytes.len <= self.slice.len) | |
(gdb) print n | |
$9 = 12 | |
(gdb) n | |
702 std.mem.copy(u8, self.slice[self.pos .. self.pos + n], bytes[0..n]); | |
(gdb) n | |
703 self.pos += n; | |
(gdb) print bytes | |
$10 = {ptr = 0x20214e <__unnamed_272> "fueling_us: {}\n", len = 12} | |
(gdb) print self.slice | |
$11 = {ptr = 0x7fffffffd938 "rpm: 0\nfueling_us: ", len = 1024} | |
(gdb) n | |
705 if (n < bytes.len) { | |
(gdb) n | |
692 fn writeFn(out_stream: *Stream, bytes: []const u8) Error!void { | |
(gdb) n | |
std.fmt.format (context=0x7fffffffe1a0, output=0x20b7d0 <std.io.SliceOutStream.writeFn>, arg2=0) at /home/via/dev/zig-linux-x86_64-0.4.0+57d67241/lib/zig/std/fmt.zig:136 | |
136 args[arg_to_print], | |
(gdb) n | |
139 context, | |
(gdb) n | |
141 output, | |
(gdb) | |
135 try formatType( | |
(gdb) | |
289 try output(context, fmt[start_index..]); | |
(gdb) | |
58 ) Errors!void { | |
(gdb) | |
console.Console.process (self=0x7fffffffdda0) at console.zig:27 | |
27 const output = self.outstream.getWritten(); | |
(gdb) print outstream.slice | |
No symbol "outstream" in current context. | |
(gdb) bt | |
#0 console.Console.process (self=0x7fffffffdda0) at console.zig:27 | |
#1 0x000000000020a012 in main () at main.zig:28 | |
(gdb) print self.outstream | |
$12 = {stream = {writeFn = 0x20b7d0 <std.io.SliceOutStream.writeFn>}, pos = 21, slice = {ptr = 0x7fffffffd938 "rpm: 0\nf\037", len = 1024}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment