https://llvm.org/docs/CommandGuide/llvm-dwarfdump.html
This dumps the DWARF debugging information in a human readable form:
```
<source>: file format ELF64-x86-64
.debug_info contents:
0x00000000: Compile Unit: length = 0x00000063 version = 0x0004 abbr_offset = ...
0x0000000b: DW_TAG_compile_unit
DW_AT_producer ("GNU C17 9.4.0 ...)
```
This tool would be useful to have when comparing the debug output of two
compiler versions or compiler targets. For instance I wanted to find out
recently how AArch64 and X86 targets represent TLS variables.
The tool runs on the compiled binary, so is post compilation. If the
binary
has no debug information the tool does not crash, it just tells you that
there is no information.
To fit the other llvm/clang tools, I've just added an "llvm-dwarfdump
(trunk)"
like llvm-mca has done. Added it to c/c++/objc/objc++ (open CL can't
compile
to binary so skipped those). MSVC is excluded because it produces PDB
files
instead.
The tool works for at least ELF and XCOFF files, I haven't been able to
test
any others.
* Allow a tool to have a separate monaco editor for it's stdinput
* Fix bugs identified during code review.
- Selection wasn't being persisted in state.
Needed to do some kind of ugly things to make this work...
- Closing and re-opening the panel wasn't persisting the input!
- getToolInputViewWith -> getToolInputView
- remove _currentDecoration
On ubuntu, you can install specific versions of the clang compiler and they
will be named similarly to the gcc compilers. Add these to the defaults file
so if they are there, they will be made available.
This commit adds support for hosting on windows, as well as better
support for the Visual C++ compiler. Specific interesting changes are:
- switch from /FAsc to /FA
- order functions in file order
- support demangling win32-style identifiers with undname
- clang++ and vc++ on win32 host are both supported
C++ is tested. Every other language is "unsupported" right now
D works (But there are no libs yet, I'm talking with
@JohanEngelen to see which could be useful)
Haskell should work (Asked @TartanLlama if we could use some)
ispc should work
Every other language is unconfirmed. Please test if you can!
The syntaxis is similar to what's already there.
c++.amazon.properties has a working example which you can use
as a template
If you find any broken piece, please let me know.
Thank to @mattgodbolt for the testing :D
This closes#490 for now. Maybe a newer ui pretties it up
Wine and WSL are really different compiler environments entirely.
There's no reason to try to handle them in the same file. Also, it
makes sense to rename the Wine one to avoid confusion.
This means the ASM parser sees "simpler" mangled names, which makes its
primitive RegExp-based parser much simpler and more correct. Once we've
extracted labels etc, we can demangle the symbols.
This should address #193
Minor changes in compiler.js.
Added error message in setCompilersInSlot so that the user is notified
(via console.log) if he did not set an adequate value to the setting defaultCompiler.
Moved the static javascript code handling tabs to gcc.js.