Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Unified Diff: tools/valgrind/gdb_helper.py

Issue 8678023: Fix python scripts in src/tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/valgrind/drmemory_analyze.py ('k') | tools/valgrind/memcheck/PRESUBMIT.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/valgrind/gdb_helper.py
diff --git a/tools/valgrind/gdb_helper.py b/tools/valgrind/gdb_helper.py
index 9b57c847fe5722393072f05a4cc2d02cb0219815..548ee9474e65e08cc36fd8879338afbe39c052f7 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]:
« no previous file with comments | « tools/valgrind/drmemory_analyze.py ('k') | tools/valgrind/memcheck/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698