From nobody Wed Jun 28 20:47:34 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qrttt3Cjxz4kbVC; Wed, 28 Jun 2023 20:47:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qrttt2mK8z3p2W; Wed, 28 Jun 2023 20:47:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687985254; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nAxuw8iGy85+BIIUkmaMmJIUxzDFfc4eCcCbRT6xhmM=; b=nLtwsPAdWOISj1CNOyAiPOJdUsriIiacjgU63DPKjXH3px2E6SGa0X7pZ3T7/Jjb3ZLbAS dZETjNRGCsMXIUaYGiYqpldgZCbdc6JcTzSae6jRbbcfJ1FqRg+vaJdko7REhhkpfa+VGQ dW3/rFvfPUn/uSdzLk2LrBdiJCwh7pFVchlREwDIuD5n7/W9JRo3VZpg+KRy2/315NiuCc 6L/5hOWM7UtNJjf3oCG4SbxzCPa8NKAZYoSiVZ0bunNc6qkqpZEN2xPmIKpSjb9zQLKkQj CEYqRhEJyqj4r7cKfvFC2ZjHfcv7EB/dG6p/rv4Uvnm98OeOvcMgFpe50VxZLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687985254; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nAxuw8iGy85+BIIUkmaMmJIUxzDFfc4eCcCbRT6xhmM=; b=vKCKjCXlxiDai0u+jfNQFKtMHh+Vn3vIiYEL0i2bldnt3YZ46d09opJb9GXrY5vPcYFiAi HC+chiOW0qQi01UHTS8L/pS2sn1HWpT86dF9howoDgBV5MD32OUXIg+BrV0thE/0q99ES8 ZfDPsoHLppzFJdCifFCyB82qtOUOWmzYM2yQhTHwqYvaKiMWCmmTmc+4PElWISFL5BssQs 3apXx8t1X/G5Or4G0O/ckKA4A+cRC6xL7P6D5JFS8B682yKWue1QPgmujovc7FLY+hHIwz Cv5HSkmypuqDXHyl1dSKumHg2JK7zadFyuRwY0rQVSP8qrR2KFWv3rTdg0iaiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687985254; a=rsa-sha256; cv=none; b=sJrYR6qjeeoPNjoGd8241LR/HN1x+EdvJgONpcZrYeTyvuvXg01r8moNkPCjOg5CF+KyXt Z5+zfoTE/5FP3Z23NuPBzQzdINLt3toLvowM1/5gB355eglj2RmS6X8dTfhyns50yXEeV+ uTZpeTDW8h1fdQCGT/sFVF+XaCxqBd3OAPc/jtian+ngZhgsPG1ASkdIN8JAFrRzHDYiLO bbmaff3Q1K3T26PSo0DJurwlNpb00cPblnitON7rX6uufI7piQOYfFbEen60lZT9QcWVG/ bLdbgwyUMfpdxSnzxosol9d/at04+TdMc0cJ2DcEkt2z8KdEsp/pYoTpieTKZw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Qrttt1fMszp5C; Wed, 28 Jun 2023 20:47:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35SKlYDY058515; Wed, 28 Jun 2023 20:47:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35SKlYpV058514; Wed, 28 Jun 2023 20:47:34 GMT (envelope-from git) Date: Wed, 28 Jun 2023 20:47:34 GMT Message-Id: <202306282047.35SKlYpV058514@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 258a0d760aa8 - main - ctfconvert: Integer encoding types are unsigned List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 258a0d760aa8b42899a000e30f610f900a402556 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=258a0d760aa8b42899a000e30f610f900a402556 commit 258a0d760aa8b42899a000e30f610f900a402556 Author: Mark Johnston AuthorDate: 2023-06-06 17:28:02 +0000 Commit: Mark Johnston CommitDate: 2023-06-28 20:29:49 +0000 ctfconvert: Integer encoding types are unsigned Before this change, encodings in the user-defined range were being sign-extended. MFC after: 1 week Sponsored by: Innovate UK --- cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c b/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c index 67866555ae5d..ec5a3c58856d 100644 --- a/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c +++ b/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c @@ -1367,7 +1367,7 @@ static const fp_size_map_t fp_encodings[] = { }; static uint_t -die_base_type2enc(dwarf_t *dw, Dwarf_Off off, Dwarf_Signed enc, size_t sz) +die_base_type2enc(dwarf_t *dw, Dwarf_Off off, Dwarf_Unsigned enc, size_t sz) { const fp_size_map_t *map = fp_encodings; uint_t szidx = dw->dw_ptrsz == sizeof (uint64_t); @@ -1398,9 +1398,9 @@ static intr_t * die_base_from_dwarf(dwarf_t *dw, Dwarf_Die base, Dwarf_Off off, size_t sz) { intr_t *intr = xcalloc(sizeof (intr_t)); - Dwarf_Signed enc; + Dwarf_Unsigned enc; - (void) die_signed(dw, base, DW_AT_encoding, &enc, DW_ATTR_REQ); + (void) die_unsigned(dw, base, DW_AT_encoding, &enc, DW_ATTR_REQ); switch (enc) { case DW_ATE_unsigned: