| 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 10 matching lines...) Expand all Loading... |
| 21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 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 | |
| 32 _log = logging.getLogger(__name__) | 31 _log = logging.getLogger(__name__) |
| 33 | 32 |
| 34 | 33 |
| 35 class DumpReader(object): | 34 class DumpReader(object): |
| 36 """Base class for breakpad dump readers.""" | 35 """Base class for breakpad dump readers.""" |
| 37 | 36 |
| 38 def __init__(self, host, build_dir): | 37 def __init__(self, host, build_dir): |
| 39 self._host = host | 38 self._host = host |
| 40 self._build_dir = build_dir | 39 self._build_dir = build_dir |
| 41 | 40 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 """This routine must be implemented by subclasses. | 87 """This routine must be implemented by subclasses. |
| 89 | 88 |
| 90 Returns the stack stored in the given breakpad dump_file.""" | 89 Returns the stack stored in the given breakpad dump_file.""" |
| 91 raise NotImplementedError() | 90 raise NotImplementedError() |
| 92 | 91 |
| 93 def _file_extension(self): | 92 def _file_extension(self): |
| 94 """This routine must be implemented by subclasses. | 93 """This routine must be implemented by subclasses. |
| 95 | 94 |
| 96 Returns the file extension of crash dumps written by breakpad.""" | 95 Returns the file extension of crash dumps written by breakpad.""" |
| 97 raise NotImplementedError() | 96 raise NotImplementedError() |
| OLD | NEW |