| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
More debug fixes - This time Windows gets a treat
|
|
* Let's consolidate the special-cased DWARF interpreter for OSX with the
general purpose one
* Drop the assumption that all the debug data is contained in a single
contiguous slice of memory. This is a good news for freestanding
targets and paves the way for supporting compressed debug sections.
|
|
Let's always subtract 1 from the return address so that we're sure to be
inside the callee.
Fixes some edge case where the stack trace skipped the first entry.
|
|
Fixes some incomplete stack traces on Windows.
|
|
|
|
in stack tracing code, the idea was to detect the tty settings at the
top of the stack and pass the information down. somewhere along the way
this got changed so that setTtyColor was assuming the global stderr_file
was related to the output stream the stack trace was being printed to.
now, tty_color is changed to tty_config, and it is an enum rather than a
bool, telling how tty colors are expected to be handled. windows is
still incorrectly looking at stderr_file.
|
|
The DWARF specification states that LNE_end_sequence should just reset
the state machine, it's not an error.
|
|
Follow the specification about what the base address is and how it can
be changed by some entries in the list itself.
|
|
|
|
|
|
|
|
|
|
|
|
* add runtime safety for slicing pointers, arrays, and slices.
* slicing without a sentinel value results in non-sentineled slice
* improved `std.debug.panic` handling of panic-during-panic
|
|
closes #3569
|
|
This change was mostly made with `zig fmt` and this also modified some whitespace. Note that in some files, `zig fmt` produced incorrect code, so the change was made manually.
|
|
|
|
|
|
closes #3784
|
|
|
|
linux-i386 support
|
|
update to non-deprecated std.fs APIs throughout the codebase
Related: #3811
|
|
|
|
|
|
* Implements #3768. This is a sweeping breaking change that requires
many (trivial) edits to Zig source code. Array values no longer
coerced to slices; however one may use `&` to obtain a reference to
an array value, which may then be coerced to a slice.
* Adds `IrInstruction::dump`, for debugging purposes. It's useful to
call to inspect the instruction when debugging Zig IR.
* Fixes bugs with result location semantics. See the new behavior test
cases, and compile error test cases.
* Fixes bugs with `@typeInfo` not properly resolving const values.
* Behavior tests are passing but std lib tests are not yet. There
is more work to do before merging this branch.
|
|
|
|
fengb-wasi-run-tests
|
|
std.heap.direct_allocator is still available for now but it is marked
deprecated.
|
|
See #3767
|
|
This is progress towards file system APIs that encourage avoiding
Time Of Check, Time Of Use bugs.
|
|
|
|
Thanks to the Windows Process Environment Block, it is possible to
obtain handles to the standard input, output, and error streams without
possibility of failure.
|
|
|
|
|
|
|
|
|
|
It had the downside of running all the comptime blocks and resolving
all the usingnamespaces of each system, when just trying to discover if
the current system is a particular one.
For Darwin, where it's nice to use `std.Target.current.isDarwin()`, this
demonstrates the utility that #425 would provide.
|
|
|
|
The fp points to the top of the frame instead of pointing to the old fp,
compensate this difference with an offset.
|
|
|
|
Also enable the segfault handler for all the supported architectures
beside MIPS.
|
|
that's all this commit does. further commits will fix cli flags and
such.
see #2221
|