aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
AgeCommit message (Collapse)Author
2020-01-30Fix one more edge caseRocknest
2020-01-29Promoted "leak_count_allocator" to the main testing.allocatorBenjamin Feng
2020-01-29Move FailingAllocator to testingBenjamin Feng
2020-01-29Fix off-by-one errorRocknest
2020-01-29Reorganize definitionsRocknest
2020-01-29Create leak_count_allocatorBenjamin Feng
2020-01-29Changing stuff and seeing what happensRocknest
2020-01-29Move debug.global_allocator to testing.allocatorBenjamin Feng
2020-01-29Add an advanced segfault handler on windowsRocknest
2020-01-27Merge pull request #4300 from LemonBoy/debug-windowsAndrew Kelley
More debug fixes - This time Windows gets a treat
2020-01-27Unify the two DWARF interpretersLemonBoy
* 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.
2020-01-27Fix stack-trace address calculation on WindowsLemonBoy
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.
2020-01-27Handle S_GPROC32 symbols in PDB filesLemonBoy
Fixes some incomplete stack traces on Windows.
2020-01-26fix regression in windows stack traces tty detectionAndrew Kelley
2020-01-26fix debug info code not being freestanding compatibleAndrew Kelley
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.
2020-01-25Fix handling of DW_LNE_end_sequenceLemonBoy
The DWARF specification states that LNE_end_sequence should just reset the state machine, it's not an error.
2020-01-25Fix parsing of DW_AT_Ranges debug entryLemonBoy
Follow the specification about what the base address is and how it can be changed by some entries in the list itself.
2020-01-21Adjust tests & work around a nasty ICELemonBoy
2020-01-21Refactor some code in the debug outputLemonBoy
2020-01-08Pointer alignment fixes for the stdlibLemonBoy
2020-01-06zig fmt and update `extern fn` to `callconv(.C)`Andrew Kelley
2020-01-02Implement the callconv() annotationLemonBoy
2019-12-20sentinel slicing improvementsAndrew Kelley
* 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
2019-12-16use -fsanitize=undefined for C code in safe build modesAndrew Kelley
closes #3569
2019-12-10Replace @typeOf with @TypeOf in all zig sourceRobin Voetter
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.
2019-12-08windows-specific fixesAndrew Kelley
2019-12-08std.fmt.format: tuple parameter instead of var argsAndrew Kelley
2019-12-02bring your own OS layer in the std libAndrew Kelley
closes #3784
2019-12-01Merge remote-tracking branch 'origin/master' into remove-array-type-coercionAndrew Kelley
2019-11-30Merge pull request #3808 from LemonBoy/i386-for-yaAndrew Kelley
linux-i386 support
2019-11-30move `std.fs.Dir.cwd` to `std.fs.cwd`Andrew Kelley
update to non-deprecated std.fs APIs throughout the codebase Related: #3811
2019-11-30linux-i386 supportLemonBoy
2019-11-29fix windows std lib regressionsAndrew Kelley
2019-11-27remove type coercion from array values to referencesAndrew Kelley
* 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.
2019-11-25std: refactor std/debug.zig DwarfInfo operations to be methodsdaurnimator
2019-11-25Merge branch 'wasi-run-tests' of https://github.com/fengb/zig into ↵Andrew Kelley
fengb-wasi-run-tests
2019-11-25rename std.heap.direct_allocator to std.heap.page_allocatorAndrew Kelley
std.heap.direct_allocator is still available for now but it is marked deprecated.
2019-11-25more sentinel-terminated pointers std lib integrationAndrew Kelley
See #3767
2019-11-21add std.fs.Dir.openReadAndrew Kelley
This is progress towards file system APIs that encourage avoiding Time Of Check, Time Of Use bugs.
2019-11-19Work around WASI's nonexistent @returnAddress()Benjamin Feng
2019-11-13std.io.getStdOut and related fns no longer can errorAndrew Kelley
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.
2019-11-08update the codebase to use `@as`Andrew Kelley
2019-11-06std.json.Value: added dumpStream(), utilize WriteStream for dump()Sebastian Keller
2019-11-04Make the `leb` module available to non-std codeLemonBoy
2019-10-30DragonFlyBSD supportTse
2019-10-24get rid of std.os.foo.is_the_targetAndrew Kelley
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.
2019-10-13Fix stack iteration stop conditionLemonBoy
2019-10-13Fix fp-based backtracing on RISC-VLemonBoy
The fp points to the top of the frame instead of pointing to the old fp, compensate this difference with an offset.
2019-10-08generated docs contain generic instantiations and comptime callsAndrew Kelley
2019-10-01Correct signal bits for MIPSLemonBoy
Also enable the segfault handler for all the supported architectures beside MIPS.