From cc5365836a0921eaebf7ff022f46a79bea755322 Mon Sep 17 00:00:00 2001 From: Juergen Schmied Date: Thu, 12 Oct 2000 20:45:26 +0000 Subject: [PATCH] Fixed loading of symbols from libraries. --- debugger/stabs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debugger/stabs.c b/debugger/stabs.c index 988b42e11a1..b520b16521f 100644 --- a/debugger/stabs.c +++ b/debugger/stabs.c @@ -980,7 +980,7 @@ DEBUG_ParseStabs(char * addr, unsigned int load_offset, * sucks up swap space like crazy. */ curr_func = DEBUG_AddSymbol( symname, &new_value, currpath, - SYM_WINE | SYM_FUNC); + SYM_WINE | SYM_FUNC | SYM_INVALID); } else { @@ -1161,7 +1161,7 @@ DEBUG_ProcessElfSymtab(char * addr, unsigned int load_offset, new_value.type = NULL; new_value.addr.off = load_offset + symp->st_value; new_value.cookie = DV_TARGET; - flags = SYM_WINE | (ELF32_ST_BIND(symp->st_info) == STT_FUNC + flags = SYM_WINE | ((ELF32_ST_TYPE(symp->st_info) == STT_FUNC) ? SYM_FUNC : SYM_DATA); if( ELF32_ST_BIND(symp->st_info) == STB_GLOBAL ) curr_sym = DEBUG_AddSymbol( symname, &new_value, NULL, flags );