diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-29 17:25:34 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-29 17:25:34 +0000 |
commit | cb155a802bdc49cfafea1c41e0f0a92168f1da09 (patch) | |
tree | bf0fae4855c7f4458d8e959455b9d12d6cd54d9d /tools/valgrind/gdb_helper.py | |
parent | 9bec23957253b83955c4096903ad6293d1c6e1bb (diff) | |
download | chromium_src-cb155a802bdc49cfafea1c41e0f0a92168f1da09.zip chromium_src-cb155a802bdc49cfafea1c41e0f0a92168f1da09.tar.gz chromium_src-cb155a802bdc49cfafea1c41e0f0a92168f1da09.tar.bz2 |
Fix python scripts in src/tools/
Make sure that:
- shebang is only present for executable files
- shebang is #!/usr/bin/env python
- __main__ is only present for executable files
- file's executable bit is coherent
Also fix EOF LF to be only one.
TBR=timurrrr@chromium.org
BUG=105108
TEST=
Review URL: http://codereview.chromium.org/8678023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111960 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/gdb_helper.py')
-rw-r--r-- | tools/valgrind/gdb_helper.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/valgrind/gdb_helper.py b/tools/valgrind/gdb_helper.py index 9b57c84..548ee94 100644 --- a/tools/valgrind/gdb_helper.py +++ b/tools/valgrind/gdb_helper.py @@ -1,10 +1,7 @@ -#!/usr/bin/python -# Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. +# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -# gdb_helper.py - ''' A bunch of helper functions for querying gdb.''' import logging @@ -74,12 +71,15 @@ class AddressTable(object): for binary in self._binaries.keys(): if binary != '' and binary in self._load_addresses: load_address = self._load_addresses[binary] - addr = ResolveAddressesWithinABinary(binary, load_address, self._binaries[binary]) + addr = ResolveAddressesWithinABinary( + binary, load_address, self._binaries[binary]) self._translation[binary] = addr self._all_resolved = True def GetFileLine(self, binary, addr): - ''' Get the (filename, linenum) result of a previously-registered lookup request. ''' + ''' Get the (filename, linenum) result of a previously-registered lookup + request. + ''' if self._all_resolved: if binary in self._translation: if addr in self._translation[binary]: |