diff --git a/library/GNUmakefile.os4 b/library/GNUmakefile.os4 index 0f03264..3bc350e 100644 --- a/library/GNUmakefile.os4 +++ b/library/GNUmakefile.os4 @@ -1,5 +1,5 @@ # -# $Id: GNUmakefile.os4,v 1.92 2006-01-29 09:17:00 obarthel Exp $ +# $Id: GNUmakefile.os4,v 1.93 2006-02-27 11:18:51 obarthel Exp $ # # :ts=8 # @@ -150,7 +150,7 @@ INCLUDES = -Iinclude -I. -I$(SDK_INCLUDE) #OPTIONS = -D__THREAD_SAFE -DNDEBUG -DUSE_64_BIT_INTS -D__USE_INLINE__ -Wa,-mregnames -fno-common -std=gnu99 OPTIONS = -DNDEBUG -DUSE_64_BIT_INTS -D__USE_INLINE__ -Wa,-mregnames -fno-common -std=gnu99 OPTIMIZE = -O3 -#DEBUG = -ggdb + DEBUG = -ggdb CFLAGS = $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(OPTIONS) $(CODE_TYPE) $(INCLUDES) diff --git a/library/profile_gmon.c b/library/profile_gmon.c index b73a65b..198b71e 100644 --- a/library/profile_gmon.c +++ b/library/profile_gmon.c @@ -233,7 +233,7 @@ mongetpcs(uint32* lowpc, uint32 *highpc) if (!IElf) goto out; self = (struct Process *)FindTask(0); - seglist = GetProcSegList(self); + seglist = GetProcSegList(self, GPSLF_CLI | GPSLF_SEG); GetSegListInfoTags(seglist, GSLI_ElfHandle, &elfHandle,