Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #178 from nbp/symbolicate-absolute-path-libraries

Bug 812063 - Add support for libraries refered by an absolute path
  • Loading branch information...
commit 2ab30e7fbd40708525a287b3d58c545af73d0aa9 2 parents d8f103d + 1dd95c3
Dave Hylands dhylands authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 scripts/profile-symbolicate.py
9 scripts/profile-symbolicate.py
View
@@ -132,6 +132,15 @@ def Locate(self):
elif self.target_name in gSpecialLibs:
self.symbol_table = gSpecialLibs[self.target_name]
self.symbol_table_addresses = sorted(self.symbol_table.keys())
+ elif self.target_name[:1] == "/": # Absolute paths.
+ basename = os.path.basename(self.target_name)
+ dirname = os.path.dirname(self.target_name)
+ lib_name = self.target_name
+ if os.path.exists(lib_name):
+ self.target_name = basename
+ self.host_name = lib_name
+ if self.verbose:
+ print "Found '" + self.host_name + "' for '" + self.target_name + "'"
self.located = True
def LookupAddressInSymbolTable(self, address_str):
Please sign in to comment.
Something went wrong with that request. Please try again.