aboutsummaryrefslogtreecommitdiff
path: root/lib/std/dwarf.zig
AgeCommit message (Collapse)Author
2022-08-23std.debug: DWARFv5 fixesAndrew Kelley
handle str_offsets_base and addr_base correctly. handle data16 fix compilation on 32-bit hosts remove stray debug print statement closes #12120
2022-08-23std.debug: implement support for DWARFv5Andrew Kelley
2022-08-22Dwarf: Added stroffsetsptr support (#12270)Keith Chambers
* Added support for stroffsetsptr class in Dwarf stdlib * Proper initializion of debug_str_offsets in DwarfInfo * Added missing null initializer to DwarfInfo in Macho * Added missing is_64 field to getAttrString in DwarfInfo * Fixed formatting * Added missing is_64 param to getAttrString * Added required cast to usize * Adding missing .debug_str_offsets initialization * getAttrString now uses the str_offsets_base attr
2022-05-27math: make `cast` return optional instead of an errorAli Chraghi
2022-04-21dwarf: clean up allocations in std.dwarf moduleJakub Konka
While this code probably could do with some love and a redesign, this commit fixes the allocations by making sure we explicitly pass an allocator where required, and we use arenas for temporary or narrowly-scoped objects such as a `Die` (for `Die` in particular, not every `FormValue` will be allocated - we could duplicate, or we can use an arena which is the proposal of this commit).
2022-03-30Remove a std.debug.print from the dwarf.zig fileJames Mintram
This was causing freestanding builds to fail due to the use of `std.debug.print`
2022-03-16std.dwarf: avoid some async/await stuff in stage2 buildsAndrew Kelley
2022-03-15std.dwarf: implement basic DWARF 5 parsingWilliam Sengir
DWARF 5 moves around some fields and adds a few new ones that can't be parsed or ignored by our current DWARF 4 parser. This isn't a complete implementation of DWARF 5, but this is enough to make stack traces mostly work. Line numbers from C++ don't show up, but I know the info is there. I think the answer is to iterate through .debug_line_str in getLineNumberInfo, but I didn't want to fall into an even deeper rabbit hole tonight.
2022-03-12AstGen: fix nosuspendExpr handling result location twiceVeikka Tuominen
2022-03-08LLVM: add DISubprogram and DIType lowering; handle dbg_stmtAndrew Kelley
2021-11-30allocgate: std Allocator interface refactorLee Cannon
2021-10-04migrate from `std.Target.current` to `@import("builtin").target`Andrew Kelley
closes #9388 closes #9321
2021-09-01std: reorganization that allows new usingnamespace semanticsAndrew Kelley
The proposal #9629 is now accepted, usingnamespace stays but no longer puts identifiers in scope.
2021-08-24remove redundant license headers from zig standard libraryAndrew Kelley
We already have a LICENSE file that covers the Zig Standard Library. We no longer need to remind everyone that the license is MIT in every single file. Previously this was introduced to clarify the situation for a fork of Zig that made Zig's LICENSE file harder to find, and replaced it with their own license that required annual payments to their company. However that fork now appears to be dead. So there is no need to reinforce the copyright notice in every single file.
2021-06-21fix code broken from previous commitJacob G-W
2021-06-18Convert remaining addresses to u64 from usize in dwarf.zigMatt Chudleigh
2021-04-15std: change `@import("builtin")` to `std.builtin`Andrew Kelley
2021-04-12dwarf: fix LineNumberProgram checkMichael Dusan
- on first iteration populate `prev_` fields and do nothing else closes #8421
2021-04-12Revert "dwarf: fix LineNumberProgram check"Michael Dusan
- needed/needs to go through review process This reverts commit 746f65f8b3ce11d67d8fd392aea8bc05a24adae6.
2021-04-12dwarf: fix LineNumberProgram checkMichael Dusan
- tolerate out-of-order DW_AT_ranges closes #8421
2021-02-24zig fmt the std libAndrew Kelley
2021-01-07Reduce use of deprecated IO typesJay Petacat
Related: #4917
2021-01-04Merge pull request #7592 from LemonBoy/fix-7188Andrew Kelley
Allow variable captures on multi-prong switch arms
2020-12-31Year++Frank Denis
2020-12-30std: Clean up some testsLemonBoy
No functional changes, remove some dead code.
2020-11-18Merge pull request #7005 from jshholland/deprecate-spanVeikka Tuominen
Remove ArrayList.span
2020-11-16Move leb128 and remove trivial *mem functions as discussed in #5588 (#6876)tgschultz
* Move leb128 out of debug and remove trivial *mem functions as discussed in #5588 * Turns out one of the *Mem functions was used by MachO. Replaced with trivial use of FixedBufferStream.
2020-11-07remove deprecated uses of ArrayList.spanJosh Holland
2020-08-20add license header to all std lib filesAndrew Kelley
add SPDX license identifier copyright ownership is zig contributors
2020-08-13add error for unused/duplicate block labelsVexu
2020-07-31stage2: add DWARF info for the main compilation unitAndrew Kelley
2020-07-11run zig fmt on std lib and self hostedVexu
2020-06-24@asyncCall now requires an argument tupleAlexandros Naskos
2020-05-08publicize member functions affected by #4909Josh Junon
2020-05-05update comments for nosuspendTadeo Kondrak
2020-05-05zig fmtTadeo Kondrak
2020-04-10debug: Fix parsing of DWARF info for BE machinesLemonBoy
Tested with ppc32
2020-04-02new ArrayList API, fix enough std lib to testxackus
2020-03-30std lib API deprecations for the upcoming 0.6.0 releaseAndrew Kelley
See #3811
2020-03-22debug: Correct version check in debug_line parserLemonBoy
Version 3 is similar to version 2 plus more opcodes.
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-26debug: Fix end-of-stream condition in DWARF parserLemonBoy
2020-02-20tidy interface, const correctnessLemonBoy
2020-02-20less hideousLemonBoy
2020-02-20debug: Split the DWARF stuff in its own fileLemonBoy
2019-09-25mv std/ lib/Andrew Kelley
that's all this commit does. further commits will fix cli flags and such. see #2221