-
Notifications
You must be signed in to change notification settings - Fork 249
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
Support column information #257
Comments
Note that Windows dbghelp also provides column numbers, although dbghelp calls it "displacement". Most of the functions that are called which provide the line number also provide the displacement but that parameter is currently ignored. |
@retep998 good point, but note that currently rustc doesn't emit column information on windows. It sets them to zero because emitting them would create bad effects with VS studio. See rust-lang/rust#42921 If LLVM gained an API to specify a full span containing start and end positions, one could think about enabling it again (or if the VS studio bugs got fixed, idk maybe by now they are). |
Not sure whether the bugs are fixed yet in MS debuggers, but as at writing Clang still omits column info for MSVC targets. |
Right now,
backtrace::Symbol
contains information about line and file name. This is all that libbacktrace supplies. However, gimli supports reading column information as well.Symbol
should get a functioncolumn(&self) -> Option<u32>
that, if gimli is being used, returns the column, otherwise None.The text was updated successfully, but these errors were encountered: