From: sewardj Date: Tue, 11 Jan 2000 14:51:43 +0000 (+0000) Subject: [project @ 2000-01-11 14:51:43 by sewardj] X-Git-Tag: Approximately_9120_patches~5318 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=f7f84ac7dab583cce112db5e4709fb42d63d3bd1;p=ghc-hetmet.git [project @ 2000-01-11 14:51:43 by sewardj] nameFromOPtr(): don't try to search object sym tables for source modules lookupSection(): ditto, plus don't forget to also look in module(m).objectExtras --- diff --git a/ghc/interpreter/storage.c b/ghc/interpreter/storage.c index 6ec7514..9fa88dd 100644 --- a/ghc/interpreter/storage.c +++ b/ghc/interpreter/storage.c @@ -9,8 +9,8 @@ * included in the distribution. * * $RCSfile: storage.c,v $ - * $Revision: 1.36 $ - * $Date: 2000/01/10 17:19:32 $ + * $Revision: 1.37 $ + * $Date: 2000/01/11 14:51:43 $ * ------------------------------------------------------------------------*/ #include "prelude.h" @@ -1469,8 +1469,10 @@ char* nameFromOPtr ( void* p ) int i; Module m; for (m=MODMIN; mnext) { + sect = ocLookupSection ( oc, ad ); + if (sect != HUGS_SECTIONKIND_NOINFOAVAIL) + return sect; + } } return HUGS_SECTIONKIND_OTHER; }