OLD | NEW |
1 # Copyright (C) 2013 Google Inc. All rights reserved. | 1 # Copyright (C) 2013 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 15 matching lines...) Expand all Loading... |
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 | 28 |
29 import logging | 29 import logging |
30 | 30 |
31 | 31 |
32 _log = logging.getLogger(__name__) | 32 _log = logging.getLogger(__name__) |
33 | 33 |
34 | 34 |
35 class DumpReader(object): | 35 class DumpReader(object): |
| 36 |
36 """Base class for breakpad dump readers.""" | 37 """Base class for breakpad dump readers.""" |
37 | 38 |
38 def __init__(self, host, build_dir): | 39 def __init__(self, host, build_dir): |
39 self._host = host | 40 self._host = host |
40 self._build_dir = build_dir | 41 self._build_dir = build_dir |
41 | 42 |
42 def check_is_functional(self): | 43 def check_is_functional(self): |
43 """This routine must be implemented by subclasses. | 44 """This routine must be implemented by subclasses. |
44 | 45 |
45 Returns True if this reader is functional.""" | 46 Returns True if this reader is functional.""" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 """This routine must be implemented by subclasses. | 89 """This routine must be implemented by subclasses. |
89 | 90 |
90 Returns the stack stored in the given breakpad dump_file.""" | 91 Returns the stack stored in the given breakpad dump_file.""" |
91 raise NotImplementedError() | 92 raise NotImplementedError() |
92 | 93 |
93 def _file_extension(self): | 94 def _file_extension(self): |
94 """This routine must be implemented by subclasses. | 95 """This routine must be implemented by subclasses. |
95 | 96 |
96 Returns the file extension of crash dumps written by breakpad.""" | 97 Returns the file extension of crash dumps written by breakpad.""" |
97 raise NotImplementedError() | 98 raise NotImplementedError() |
OLD | NEW |