From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by sourceware.org (Postfix) with ESMTPS id 2CD7A3858C5E for ; Tue, 14 Mar 2023 20:04:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2CD7A3858C5E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-io1-xd29.google.com with SMTP id v10so6916711iox.8 for ; Tue, 14 Mar 2023 13:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1678824288; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=/YriosOqMT4KogZXG2WZGU7XLzIa6K7FrbguxmXhNcE=; b=DF/2QVmA/RcOLjnKOJSkqNZd8fDO8E2I5BSPsZRGEOjianCYUSiRaWZEdT3ZaVP3/R 2VX1eHb2caiet/PToSWwE52gmh2G4oSPwXqnI/EOXWOF72MvndzFX1vZqsY0JES6uNMV 9LA+mbERDnHH9KUw20Eyl+vHZkhx259UnAZ8JxdDiufEY6mnRdkAXxIGIGg2idoO31vk ouuFVf1k8e9QXUXvaJ89hYvaTyT7thJb0zIiAQqusenz1v5bzG+vFtqrD0ets1wDxFqU vH1TqZuON6Wkor7BbMNeioKXISghS/6XnEHORX2NznDDY3/0J7a/bz+p9yvrDVBPAT0f jgdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678824288; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/YriosOqMT4KogZXG2WZGU7XLzIa6K7FrbguxmXhNcE=; b=RiyEa+XrJ6cyEGSYyrQ8Ee6iaZau+casGUARzA0kXvUu33l/pzyYtG5+3wfEh3Twd6 6S9eJ7fMLNl+3LWhnG4chnWaa5wHNlGzg7qMrMevN+WJPodfe6zvCQj+pjkGLgPAZkku fDlcTpHpzFtFWkehKu0pqAEZ0lnrBicPlgJYVOSyeuseHVc+OHneaLO1f1h60I20PqiY 8RigOJt3aCM57woDqn4MMV/QOeO6gBiNXbGvKdk2ZSmILGAYqR5HuY3ChDe5MZw4txMp MC1CRstmZP4w+4NHKvhyU/sXmIJW9P/YmCpAF49saxSXymRRjdJX+bf014WEb4NHuh4t j43A== X-Gm-Message-State: AO0yUKXgkeIX5EhnIFRgTQD0EuV3+8/FFrfDrruHC3Va57qvG/Vs3duB +BAPkrQwy7boPAHaXPQbYTUBy3rAF4LXv4JWdE0= X-Google-Smtp-Source: AK7set/Lgi7nwHuZeps22vhGQd5y5qH3kNs0nG6QLOZgvUJl5PTXhE9AccP5TYDAzvYnhzBDjQWY9Q== X-Received: by 2002:a6b:f617:0:b0:74c:b8f9:651b with SMTP id n23-20020a6bf617000000b0074cb8f9651bmr10667193ioh.1.1678824288316; Tue, 14 Mar 2023 13:04:48 -0700 (PDT) Received: from localhost.localdomain (71-211-185-113.hlrn.qwest.net. [71.211.185.113]) by smtp.gmail.com with ESMTPSA id m13-20020a056638224d00b003ee9720740esm1030257jas.153.2023.03.14.13.04.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 13:04:47 -0700 (PDT) From: Tom Tromey Date: Tue, 14 Mar 2023 14:04:46 -0600 Subject: [PATCH 2/5] Bump MAX_SYMBOL_IMPLS MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230314-submit-pragma-import-export-v1-2-a235709f7e96@adacore.com> References: <20230314-submit-pragma-import-export-v1-0-a235709f7e96@adacore.com> In-Reply-To: <20230314-submit-pragma-import-export-v1-0-a235709f7e96@adacore.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.12.1 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_STOCKGEN,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: A subsequent patch will introduce more aclass registrations, causing the number to go over the current maximum. This bumps the number. Note that there's a separate static assert that ensures that this number doesn't get too large for the field size in the symbol. --- gdb/symtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/symtab.c b/gdb/symtab.c index 80395f99f24..57ba61c2c05 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -6330,7 +6330,7 @@ static int next_aclass_value = LOC_FINAL_VALUE; /* The maximum number of "aclass" registrations we support. This is constant for convenience. */ -#define MAX_SYMBOL_IMPLS (LOC_FINAL_VALUE + 10) +#define MAX_SYMBOL_IMPLS (LOC_FINAL_VALUE + 11) /* The objects representing the various "aclass" values. The elements from 0 up to LOC_FINAL_VALUE-1 represent themselves, and subsequent -- 2.39.1