From e40fc3dea2c7991958487361bd8e3fbaa645f0e5 Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Mon, 27 Feb 2006 11:18:52 +0000 Subject: [PATCH] - Modified the GetProcSegList() call to match what the current SDK expects. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15083 87f5fb63-7c3d-0410-a384-fd976d0f7a62 --- library/GNUmakefile.os4 | 4 ++-- library/profile_gmon.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,