From c085de40db21e8b7350cb569be663c22e09535ab Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 18 Jul 2005 15:20:35 +0000 Subject: [PATCH] Corrected the note about static symbols. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13752 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/debug/SymbolLookup.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/kits/debug/SymbolLookup.cpp b/src/kits/debug/SymbolLookup.cpp index 6db1a2c380..8ecbbd1b59 100644 --- a/src/kits/debug/SymbolLookup.cpp +++ b/src/kits/debug/SymbolLookup.cpp @@ -181,10 +181,11 @@ SymbolLookup::LookupSymbolAddress(addr_t address, addr_t *_baseAddress, { // Note, that this function doesn't find all symbols that we would like // to find. E.g. static functions do not appear in the symbol table - // as function symbols, but each one seems to be a separate section. - // Therefore, to get completely satisfying results, we would need to scan - // the shared object's section headers, if we don't find the a matching - // symbol. + // as function symbols, but as sections without name and size. The .symtab + // section together with the .strtab section, which apparently differ from + // the tables referred to by the .dynamic section, also contain proper names + // and sizes for those symbols. Therefore, to get completely satisfying + // results, we would need to read those tables from the shared object. TRACE(("SymbolLookup::LookupSymbolAddress(%p)\n", (void*)address));