author | Wolfgang Rosenauer <wr@rosenauer.org> |
Thu, 08 Mar 2012 18:07:20 +0100 | |
changeset 407 | b85eacef913b |
parent 293 | 3fd4e37e5e52 |
permissions | -rw-r--r-- |
293
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
1 |
# HG changeset patch |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
2 |
# Parent bf7c3e1c6174630743f9f94808c4dd3a2edc0c6b |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
3 |
diff --git a/toolkit/crashreporter/tools/symbolstore.py b/toolkit/crashreporter/tools/symbolstore.py |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
4 |
--- a/toolkit/crashreporter/tools/symbolstore.py |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
5 |
+++ b/toolkit/crashreporter/tools/symbolstore.py |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
6 |
@@ -376,16 +376,17 @@ def GetVCSFilename(file, srcdirs): |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
7 |
return (file.replace("\\", "/"), root) |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
8 |
|
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
9 |
def GetPlatformSpecificDumper(**kwargs): |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
10 |
"""This function simply returns a instance of a subclass of Dumper |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
11 |
that is appropriate for the current platform.""" |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
12 |
return {'win32': Dumper_Win32, |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
13 |
'cygwin': Dumper_Win32, |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
14 |
'linux2': Dumper_Linux, |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
15 |
+ 'linux3': Dumper_Linux, |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
16 |
'sunos5': Dumper_Solaris, |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
17 |
'darwin': Dumper_Mac}[sys.platform](**kwargs) |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
18 |
|
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
19 |
def SourceIndex(fileStream, outputPath, vcs_root): |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
20 |
"""Takes a list of files, writes info to a data block in a .stream file""" |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
21 |
# Creates a .pdb.stream file in the mozilla\objdir to be used for source indexing |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
22 |
# Create the srcsrv data block that indexes the pdb file |
3fd4e37e5e52
fix symbolstore.py for linux3
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
23 |
result = True |