aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
AgeCommit message (Collapse)Author
2020-06-17Add std.debug.print for "printf debugging"Isaac Freund
2020-06-17Deprecate std.debug.warnIsaac Freund
2020-06-15std: remove std.debug.getStderrStreamdaurnimator
Rather than migrate to new 'writer' interface, just remove it
2020-06-15std: clean up debug stderr variablesdaurnimator
- stderr_file_writer was unused - stderr_stream was a pointer to a stream, rather than a stream - other functions assumed that getStderrStream has already been called
2020-06-08support Writer instead of OutStreamJonathan Marler
Start implementing https://github.com/ziglang/zig/issues/4917 which is to rename instream/outstream to reader/writer. This first change allows code to use Writer/writer instead of OutStream/outStream, but still maintains the old outstream names with "Deprecated" comments.
2020-06-08update sort callsite to new APIAndrew Kelley
2020-06-04add workaround for #5525Vexu
2020-05-29cleanupsAndrew Kelley
2020-05-29Prefer Files to paths in std.debug. Additionally [breaking] add a flags ↵Jonathan S
parameter to openSelfExe and stop exporting openElfDebugInfo. This should save a call to readlink in openSelfDebugInfo and support executables in overlong paths on Linux.
2020-05-29Document and reduce usage of MAX_PATH_BYTES, lifting arbitrary buffer size ↵Jonathan S
requirements
2020-05-13Make StackIterator next publicDrDeano
2020-05-05zig fmtTadeo Kondrak
2020-05-02std.event.Loop: promote the fs thread to be available for all OS'sAndrew Kelley
2020-05-01cleanup and fixes. behavior tests passing with evented I/OAndrew Kelley
2020-05-01Merge branch 'windows-evented-io' of https://github.com/FireFox317/zig into ↵Andrew Kelley
FireFox317-windows-evented-io
2020-04-16debug: Minor QOL improvements for osxLemonBoy
* Handle FileNotFound errors when searching for .o files * Use the STAB symbol name when everything else fails
2020-04-07Merge pull request #4857 from LemonBoy/fix-4777Andrew Kelley
Rewrite the bound checks in slice operator
2020-04-03std: Fix one more sentinel buffer overrunLemonBoy
2020-04-02new ArrayList API: fix everything elsexackus
2020-04-01std: Fix more NetBSD bitsLemonBoy
Fix some more libc definitions.
2020-04-01Tidy up some mem.spanZ use-sites now that null is accepteddaurnimator
2020-03-30std lib API deprecations for the upcoming 0.6.0 releaseAndrew Kelley
See #3811
2020-03-27fix behavior test with --test-evented-io on windowsTimon Kruiper
also make simple file operations work asynchronously on windows
2020-03-23std: Fix undefined field errorLemonBoy
2020-03-23debug: Accept relative paths in mapWholeFileLemonBoy
2020-03-23std: Add missing C defines for NetBSDLemonBoy
2020-03-13Even better idle waiting methodLemonBoy
2020-03-13Nicer idle wait loopLemonBoy
Trying to acquire twice the same mutex generates an idle loop.
2020-03-13std: Multithreaded-aware panic handlerLemonBoy
Gracefully handle the case of several threads panicking at the same time.
2020-03-10fix regressions found by test suiteAndrew Kelley
2020-03-10fix stack trace code not opening files in forced blocking modeAndrew Kelley
2020-03-10fix regressions caused earlier in this branchAndrew Kelley
2020-03-10(breaking) rework stream abstractionsAndrew Kelley
The main goal here is to make the function pointers comptime, so that we don't have to do the crazy stuff with async function frames. Since InStream, OutStream, and SeekableStream are already generic across error sets, it's not really worse to make them generic across the vtable as well. See #764 for the open issue acknowledging that using generics for these abstractions is a design flaw. See #130 for the efforts to make these abstractions non-generic. This commit also changes the OutStream API so that `write` returns number of bytes written, and `writeAll` is the one that loops until the whole buffer is written.
2020-02-28introduce operating system version ranges as part of the targetAndrew Kelley
* re-introduce `std.build.Target` which is distinct from `std.Target`. `std.build.Target` wraps `std.Target` so that it can be annotated as "the native target" or an explicitly specified target. * `std.Target.Os` is moved to `std.Target.Os.Tag`. The former is now a struct which has the tag as well as version range information. * `std.elf` gains some more ELF header constants. * `std.Target.parse` gains the ability to parse operating system version ranges as well as glibc version. * Added `std.Target.isGnuLibC()`. * self-hosted dynamic linker detection and glibc version detection. This also adds the improved logic using `/usr/bin/env` rather than invoking the system C compiler to find the dynamic linker when zig is statically linked. Related: #2084 Note: this `/usr/bin/env` code is work-in-progress. * `-target-glibc` CLI option is removed in favor of the new `-target` syntax. Example: `-target x86_64-linux-gnu.2.27` closes #1907
2020-02-26fix behavior tests with --test-evented-ioAndrew Kelley
2020-02-23correct test expectationsLemonBoy
2020-02-22delete extra code, more forgivenessLemonBoy
2020-02-22unification: windows debug infoLemonBoy
2020-02-22unification: osx debug infoLemonBoy
2020-02-21unsureLemonBoy
2020-02-20soldier onLemonBoy
2020-02-20tidy interface, const correctnessLemonBoy
2020-02-20Correctly count all the loaded modules on WindowsLemonBoy
2020-02-20sudokuLemonBoy
2020-02-20less hideousLemonBoy
2020-02-20elvis entered the buildingLemonBoy
2020-02-20osxLemonBoy
2020-02-20windows widestringLemonBoy
2020-02-20wideLemonBoy
2020-02-20winLemonBoy