From 366f546e676b06beeb3ba5baf0c34f2365804a0a Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 29 Sep 2008 00:41:31 +0000 Subject: [PATCH] Don't fail when the runtime loader debug area can't be found. When we can load the image files, we can still do symbol lookups just fine. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27774 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/debug/SymbolLookup.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/kits/debug/SymbolLookup.cpp b/src/kits/debug/SymbolLookup.cpp index ebbad38f1e..776ace990f 100644 --- a/src/kits/debug/SymbolLookup.cpp +++ b/src/kits/debug/SymbolLookup.cpp @@ -476,21 +476,23 @@ SymbolLookup::Init() } } - if (!remoteDebugArea) { + if (remoteDebugArea) { + TRACE(("SymbolLookup::Init(): found debug area, translating " + "address...\n")); + } else { TRACE(("SymbolLookup::Init(): Couldn't find debug area!\n")); - return B_ERROR; } - TRACE(("SymbolLookup::Init(): found debug area, translating address...\n")); - // translate the address try { - fDebugArea = &Read(*remoteDebugArea); + if (remoteDebugArea != NULL) { + fDebugArea = &Read(*remoteDebugArea); - TRACE(("SymbolLookup::Init(): translated debug area is at: %p, " - "loaded_images: %p\n", fDebugArea, fDebugArea->loaded_images)); + TRACE(("SymbolLookup::Init(): translated debug area is at: %p, " + "loaded_images: %p\n", fDebugArea, fDebugArea->loaded_images)); + } } catch (Exception exception) { - return exception.Error(); + // we can live without the debug area } }