From owner-p4-projects Sat Apr 6 17:21:13 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A602537B417; Sat, 6 Apr 2002 17:21:05 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id EA5AA37B416 for ; Sat, 6 Apr 2002 17:21:04 -0800 (PST) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g371L4N35885 for perforce@freebsd.org; Sat, 6 Apr 2002 17:21:04 -0800 (PST) (envelope-from marcel@freebsd.org) Date: Sat, 6 Apr 2002 17:21:04 -0800 (PST) Message-Id: <200204070121.g371L4N35885@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar Subject: PERFORCE change 9247 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=9247 Change 9247 by marcel@marcel_vaio on 2002/04/06 17:20:47 Make sure to set res to NULL when the binary search terminated because there was no range in which the PC fell. This fixes the bogus answer returned when trying to get the unwind information for a function that doesn't have any. This fix triggers a mild warning: we almost always strip(1) when we install programs and libraries. This is OK when there's no exception handling involved. For C++ programs with EH, strip(1) can be deadly. We need to take more care of C++ now... Affected files ... ... //depot/projects/ia64/lib/libc/ia64/gen/unwind.c#3 edit Differences ... ==== //depot/projects/ia64/lib/libc/ia64/gen/unwind.c#3 (text+ko) ==== @@ -114,6 +114,8 @@ else break; /* found */ } + if (l >= r) + res = NULL; break; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message