From owner-p4-projects@FreeBSD.ORG Mon Jun 14 04:24:30 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7277916A4D1; Mon, 14 Jun 2004 04:24:30 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34FFC16A4CE for ; Mon, 14 Jun 2004 04:24:30 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EACD43D45 for ; Mon, 14 Jun 2004 04:24:30 +0000 (GMT) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5E4OPYe064538 for ; Mon, 14 Jun 2004 04:24:25 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5E4OP27064535 for perforce@freebsd.org; Mon, 14 Jun 2004 04:24:25 GMT (envelope-from marcel@freebsd.org) Date: Mon, 14 Jun 2004 04:24:25 GMT Message-Id: <200406140424.i5E4OP27064535@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Subject: PERFORCE change 54898 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2004 04:24:31 -0000 http://perforce.freebsd.org/chv.cgi?CH=54898 Change 54898 by marcel@marcel_nfs on 2004/06/14 04:23:29 o Use backingstore convenience macros. o Return error conditions to the caller. Affected files ... .. //depot/projects/gdb/sys/ia64/ia64/db_trace.c#4 edit Differences ... ==== //depot/projects/gdb/sys/ia64/ia64/db_trace.c#4 (text+ko) ==== @@ -33,6 +33,7 @@ #include #include +#include #include #include #include @@ -70,15 +71,14 @@ if (error) break; - args = (cfm >> 7) & 0x7f; + args = IA64_CFM_SOL(cfm); if (args > 8) args = 8; error = unw_step(&rs); if (!error) { - error = unw_get_cfm(&rs, &pfs); - if (!error) { - i = (pfs & 0x7f) - ((pfs >> 7) & 0x7f); + if (!unw_get_cfm(&rs, &pfs)) { + i = IA64_CFM_SOF(pfs) - IA64_CFM_SOL(pfs); if (args > i) args = i; } @@ -121,7 +121,7 @@ } unw_delete(&rs); - return (0); + return (error); } void