From f7f84ac7dab583cce112db5e4709fb42d63d3bd1 Mon Sep 17 00:00:00 2001 From: sewardj Date: Tue, 11 Jan 2000 14:51:43 +0000 Subject: [PATCH] [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 --- ghc/interpreter/storage.c | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) 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; } -- 1.7.10.4