-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add cross-session caching to the Internal DWARF Indexer #214
Comments
DWARF supports an index which can be generated by the compiler or a script installed with gdb. windbg will use that index and that is probably a better solution than us generating our own index. |
@JamesMcNellis : JFYI: The script that @lzybkr refers to here is "gdb-add-index". If you are compiling with DWARFv4 symbols, you can use it (post-build) to add a GDB defined index (which we support): gdb-add-index If you are compiling with DWARFv5 symbols (e.g.: -gdwarf-5 on gcc), you can also use that script to add the standard v5 index sections: gdb-add-index -dwarf-5 There are also compiler switches on gcc/clang/etc... to generate the appropriate index sections. Long story short: windbg doesn't "trust" the default indexes in DWARFv4-. We've advised folks who want faster symbol open times to make sure to build / add one of those index formats to their DWARF symbols. |
Thanks for the information. I can confirm that if I run gdb-add-index on the binary, WinDbg loads symbols for it much faster (several seconds instead of several minutes). Unfortunately, I can't afford to include the indexing as part of the build because it bloats my binary by over 500MB. But, I can look into seeing if I can script WinDbg to run gdb-add-index somehow, perhaps from a local WSL installation. |
I love all of the new ELF/DWARF debugging tools in WinDbg!
This is a feature request. Whenever I open a dump from a Linux process, WinDbg goes "BUSY" for several minutes. In the log, the following entry is printed:
It would be great if this index were persisted to disk into the symbol cache, so that subsequent debugging sessions could utilize it. That would make opening dumps much, much faster!
The text was updated successfully, but these errors were encountered: