mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-03-13 16:46:29 +00:00
Symbol file should contain module GUID at beginning (#66). r=bryner
- The dumped symbol format now begins with a MODULE line identifying the uuid, age, and name of the source pdb file. - The processor ignores MODULE lines, but they are useful in figuring out how to index symbol files in a symbol store. - dump_syms and symupload now both accept either a pdb or exe/dll and will read the pdb regardless. - Figured out that MSSS always represents a module's age in pathnames in hexadecimal, and updated SimpleSymbolSupplier to match. http://groups.google.com/group/airbag-dev/browse_thread/thread/572108d6567edd58 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@59 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
@@ -52,7 +52,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
PDBSourceLineWriter writer;
|
||||
if (!writer.Open(wstring(filename), PDBSourceLineWriter::PDB_FILE)) {
|
||||
if (!writer.Open(wstring(filename), PDBSourceLineWriter::ANY_FILE)) {
|
||||
fprintf(stderr, "Open failed\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -29,10 +29,25 @@
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
Release/dump_syms.exe testdata/dump_syms_regtest.pdb > testdata/dump_syms_regtest.new
|
||||
if diff -u testdata/dump_syms_regtest.new testdata/dump_syms_regtest.out >& testdata/dump_syms_regtest.diff; then
|
||||
Release/dump_syms.exe testdata/dump_syms_regtest.pdb | \
|
||||
tr -d '\015' > \
|
||||
testdata/dump_syms_regtest.new
|
||||
status=$?
|
||||
|
||||
if [ $status -ne 0 ] ; then
|
||||
echo "FAIL, dump_syms.exe failed"
|
||||
exit $status
|
||||
fi
|
||||
|
||||
diff -u testdata/dump_syms_regtest.new testdata/dump_syms_regtest.out > \
|
||||
testdata/dump_syms_regtest.diff
|
||||
status=$?
|
||||
|
||||
if [ $status -eq 0 ] ; then
|
||||
rm testdata/dump_syms_regtest.diff testdata/dump_syms_regtest.new
|
||||
echo "PASS"
|
||||
else
|
||||
echo "FAIL, see testdata/dump_syms_regtest.[new|diff]"
|
||||
fi
|
||||
|
||||
exit $status
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user