[Lldb-commits] [PATCH] D22294: Add functionality for rewriting symbols
Francis Ricci via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 13 13:45:36 PDT 2016
fjricci added a comment.
@clayborg: As you saw when running the test with debug info enabled, we might end up calling the non-rewritten `putchar()`, which is due to the compiler emitting debug symbols with the non-rewritten name. The `-g0` option is just a workaround until we can fix that.
I suppose Adrian Prantl's idea of modifying the emitted DWARF to add a linkage name attached to the function would work. Does that mean we would only add an entry for the rewritten symbol when lldb parses the DWARF, and ignore the non-rewritten function name?
More information about the lldb-commits