aboutsummaryrefslogtreecommitdiff
path: root/std/debug/index.zig
AgeCommit message (Collapse)Author
2019-03-02rename std lib files to new conventionAndrew Kelley
2019-03-02@returnAddress and @frameAddress return usize nowAndrew Kelley
2019-02-23introduce std.debug.captureStackTraceAndrew Kelley
and fix the implementation of writeStackTrace it was printing the first frame in the wrong place
2019-02-18export _mh_execute_header with weak linkageAndrew Kelley
* also fix extern variables with initialiaztion values to generate runtime code * remove the workaround in example/shared_library/mathtest.zig * introduce the ability for global variables to have Weak and LinkOnce linkage * fix `@export` to work for non-functions. this code needs to be audited though. * fix comptime ptrcast not keeping bigger alignment * fix linker warnings when targeting darwin closes #1903
2019-02-17Add NetBSD supportMaya Rashish
Mostly picking the same paths as FreeBSD. We need a little special handling for crt files, as netbsd uses its own (and not GCC's) for those, with slightly different names.
2019-02-08std.debug.assert: remove special case for test buildsAndrew Kelley
Previously, std.debug.assert would `@panic` in test builds, if the assertion failed. Now, it's always `unreachable`. This makes release mode test builds more accurately test the actual code that will be run. However this requires tests to call `std.testing.expect` rather than `std.debug.assert` to make sure output is correct. Here is the explanation of when to use either one, copied from the assert doc comments: Inside a test block, it is best to use the `std.testing` module rather than assert, because assert may not detect a test failure in ReleaseFast and ReleaseSafe mode. Outside of a test block, assert is the correct function to use. closes #1304
2019-02-07fixups, and modify std.mem.join and std.os.path.resolve APIAndrew Kelley
* zig fmt * std.mem.join takes a slice of slices instead of var args * std.mem.join takes a separator slice rather than byte, and always inserts it. Previously it would not insert the separator if there already was one, violating the documented behavior. * std.mem.join calculates exactly the correct amount to allocate and has no call to allocator.shrink() * bring back joinWindows and joinPosix and the corresponding tests. it is intended to be able to call these functions from any OS. * rename std.os.path.resolveSlice to resolve (now resolve takes a slice of slices instead of var args)
2019-02-06Merge branch 'zig-backport-std.os.path' of https://github.com/kristate/zig ↵Andrew Kelley
into kristate-zig-backport-std.os.path
2019-02-06thread local storage working for linux x86_64Andrew Kelley
2019-02-03`std.mem.Allocator.create` replaced with better APIAndrew Kelley
`std.mem.Allocator.createOne` is renamed to `std.mem.Allocator.create`. The problem with the previous API is that even after copy elision, the initalization value passed as a parameter would always be a copy. With the new API, once copy elision is done, initialization functions can directly initialize allocated memory in place. Related: * #1872 * #1873
2019-01-18Hopefully fixed #1503 (at least improved) line accuracy of stack traces on ↵Sahnvour
windows.
2019-01-18removed unnecessary castSahnvour
2018-12-29Merge pull request #1859 from mgxm/fbsd2Andrew Kelley
Progress towards tier 1 support for FreeBSD x86_64
2018-12-23msvc subsystem option handling; added uefi os typenebulaeonline
2018-12-19freebsd: initial stack traceMarcio Giaxa
Stack trace is partially working, with only a few symbols missing. Uses the same functions that we use in Linux to get the necessary debug info.
2018-12-13add mem.readVarInt, fix InStream.readVarInt, fix stack tracesAndrew Kelley
fixes a regression from b883bc8
2018-12-12breaking API changes to all readInt/writeInt functions & moreAndrew Kelley
* add `@bswap` builtin function. See #767 * comptime evaluation facilities are improved to be able to handle a `@ptrCast` with a backing array. * `@truncate` allows "truncating" a u0 value to any integer type, and the result is always comptime known to be `0`. * when specifying pointer alignment in a type expression, the alignment value of pointers which do not have addresses at runtime is ignored, and always has the default/ABI alignment * threw in a fix to freebsd/x86_64.zig to update syntax from language changes * some improvements are pending #863 closes #638 closes #1733 std lib API changes * io.InStream().readIntNe renamed to readIntNative * io.InStream().readIntLe renamed to readIntLittle * io.InStream().readIntBe renamed to readIntBig * introduced io.InStream().readIntForeign * io.InStream().readInt has parameter order changed * io.InStream().readVarInt has parameter order changed * io.InStream().writeIntNe renamed to writeIntNative * introduced io.InStream().writeIntForeign * io.InStream().writeIntLe renamed to writeIntLittle * io.InStream().writeIntBe renamed to writeIntBig * io.InStream().writeInt has parameter order changed * mem.readInt has different parameters and semantics * introduced mem.readIntNative * introduced mem.readIntForeign * mem.readIntBE renamed to mem.readIntBig and different API * mem.readIntLE renamed to mem.readIntLittle and different API * introduced mem.readIntSliceNative * introduced mem.readIntSliceForeign * introduced mem.readIntSliceLittle * introduced mem.readIntSliceBig * introduced mem.readIntSlice * mem.writeInt has different parameters and semantics * introduced mem.writeIntNative * introduced mem.writeIntForeign * mem.writeIntBE renamed to mem.readIntBig and different semantics * mem.writeIntLE renamed to mem.readIntLittle and different semantics * introduced mem.writeIntSliceForeign * introduced mem.writeIntSliceNative * introduced mem.writeIntSliceBig * introduced mem.writeIntSliceLittle * introduced mem.writeIntSlice * removed mem.endianSwapIfLe * removed mem.endianSwapIfBe * removed mem.endianSwapIf * added mem.littleToNative * added mem.bigToNative * added mem.toNative * added mem.nativeTo * added mem.nativeToLittle * added mem.nativeToBig
2018-12-02std.debug: fix some issues with freestanding debug infoAndrew Kelley
2018-12-02expose std.debug.DwarfInfo and delete unused functionAndrew Kelley
2018-12-02std.debug.printSourceAtAddressDwarfAndrew Kelley
which works in freestanding mode
2018-12-02std.debug.StackIteratorAndrew Kelley
2018-12-02introduce std.io.SeekableStreamAndrew Kelley
Relevant #764 dwarf debug info is modified to use this instead of std.os.File directly to make it easier for bare metal projects to take advantage of debug info parsing
2018-11-30std.os.path: remove dependance on std.mem.join;kristopher tate
std/os/child_process.zig: windows test/cli.zig: godbolt; doc/docgen.zig
2018-11-27Merge branch 'master' into freebsd2Andrew Kelley
2018-11-27stack traces: fix for windowsSahnvour
2018-11-19zig fmtAndrew Kelley
2018-11-19Merge branch 'freebsd-up' of https://github.com/myfreeweb/zig into freebsd2Andrew Kelley
2018-11-15more fixes related to readStruct APIAndrew Kelley
2018-11-13New Zig formal grammar (#1685)Jimmi Holst Christensen
Reverted #1628 and changed the grammar+parser of the language to not allow certain expr where types are expected
2018-11-08made colored output more consistent (#1706)emekoi
* made colored output more consistent * added os.supportsAnsiEscapeCodes
2018-10-26remove @minValue,@maxValue; add std.math.minInt,maxIntAndrew Kelley
closes #1466 closes #1476
2018-10-20Add freebsd to more thingsGreg V
2018-10-15remove implicit cast from T to *const TAndrew Kelley
closes #1465
2018-10-15Solve the return type ambiguity (#1628)Jimmi Holst Christensen
Changed container and initializer syntax * <container> { ... } -> <container> . { ... } * <exrp> { ... } -> <expr> . { ...}
2018-09-30update std lib API for I/OAndrew Kelley
std.io.FileInStream -> std.os.File.InStream std.io.FileInStream.init(file) -> file.inStream() std.io.FileOutStream -> std.os.File.OutStream std.io.FileOutStream.init(file) -> file.outStream() remove a lot of error code possibilities from os functions std.event.net.socketRead -> std.event.net.read std.event.net.socketWrite -> std.event.net.write add std.event.net.readv add std.event.net.writev add std.event.net.readvPosix add std.event.net.writevPosix add std.event.net.OutStream add std.event.net.InStream add std.event.io.InStream add std.event.io.OutStream
2018-09-30Expose failing_allocator as *Allocator instead of const FailingAllocatorJimmi Holst Christensen
2018-09-14fix alignment of structsAndrew Kelley
closes #1248 closes #1052 closes #1154
2018-09-12fix zig fmt on windowsAndrew Kelley
closes #1069
2018-09-02fix regressionsAndrew Kelley
2018-09-02fix source file lookupAndrew Kelley
2018-09-02rework code to avoid duplicate operationsAndrew Kelley
2018-08-31figuring out where /names stream isAndrew Kelley
2018-08-31awareness of debug subsectionsAndrew Kelley
2018-08-30figuring out which module an address belongs inAndrew Kelley
2018-08-29printing info from the ModuleInfo substream of DebugInfoAndrew Kelley
2018-08-29use RtlCaptureStackBackTrace on windowsAndrew Kelley
2018-08-28fix unresolved path preventing PDB loadingAndrew Kelley
2018-08-28Merge branch 'windows-coff-issue721' of https://github.com/Sahnvour/zig into ↵Andrew Kelley
Sahnvour-windows-coff-issue721
2018-08-25fix stack traces on linuxAndrew Kelley
2018-08-24compilation unit cwd dir appears to be unnecessary on macosAndrew Kelley