DescriptionI have two things I'd like to fix, and both of them require knowing the code file and code identifier of binary files. These are easy to get when you have the exe file, and outputing them from dump_syms seems like a natural fit. The only downside is that I can't easily shoehorn them into the MODULE line, since the "debug filename" field there can contain spaces, so I've invented a new line that I named BINARY. It's not perfect, since anything that parses symbols needs to be uploaded to know about it, but I don't think it's that bad. I needed to use wcstombs, so I added a safe_wcstombs to WindowsStringUtils. While I was there I refactored safe_mbstowcs to use a vector<wchar_t> instead of heap allocation. This patch also fixes basic_source_line_resolver to skip BINARY lines and adds a BINARY line to one of the test files to ensure that it works. Specifically, the two things I want to fix using this are: http://code.google.com/p/google-breakpad/issues/detail?id=389 - Teach symbol supplier to locate symbols in absence of CodeView record https://bugzilla.mozilla.org/show_bug.cgi?id=528092 - Supply binaries (firefox.exe and DLLs) from symbol server Patch Set 1 #
Total comments: 15
Patch Set 2 : Updated with review comments #
Total comments: 1
MessagesTotal messages: 8
|