| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import logging | 5 import logging |
| 6 | 6 |
| 7 import models | 7 import models |
| 8 | 8 |
| 9 | 9 |
| 10 class MapFileParser(object): | 10 class MapFileParser(object): |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 syms.append(models.Symbol(section_name, size, address=address, | 205 syms.append(models.Symbol(section_name, size, address=address, |
| 206 name=name or mangled_name, | 206 name=name or mangled_name, |
| 207 object_path=path)) | 207 object_path=path)) |
| 208 logging.debug('Symbol count for %s: %d', section_name, | 208 logging.debug('Symbol count for %s: %d', section_name, |
| 209 len(syms) - sym_count_at_start) | 209 len(syms) - sym_count_at_start) |
| 210 except: | 210 except: |
| 211 logging.error('Problem line: %r', line) | 211 logging.error('Problem line: %r', line) |
| 212 logging.error('In section: %r', section_name) | 212 logging.error('In section: %r', section_name) |
| 213 raise | 213 raise |
| OLD | NEW |