From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by sourceware.org (Postfix) with ESMTPS id 646F2393C876 for ; Mon, 12 Oct 2020 14:46:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 646F2393C876 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wr1-x443.google.com with SMTP id h7so19532693wre.4 for ; Mon, 12 Oct 2020 07:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xiFrhumBRCJKle27Ec9MMgPIOgy+jhV28MgyHSaDEZM=; b=hTOYmluqndDAmNDqNVKdGd9+JAu4UBzHPNZPdUoqsfOXhjBCZF2Iom2MqAyK54PFyn EZMKM2PAnwNRiAHTcOKX3kLTykcBxwXYAQDcX6B4oRLviMNlz/7CkzrfVNoucg4G83+q bem6WkyNGu18bHRBxJ/wZ2v7JF3ykXdkDZLSolUXrKT/6ypWzrI0oxXmRpbaIqXusgeZ kGfjFd3ART4AyIWaC1pZhHlhD5av6BVe8juubazjXIaQCueMt9fUWskdiXtR4K3ZRC/w TNT4FQ13cCm+nJYX3slq6lvg/zTY2DzlOtusySnsVrUeBQipPd1tH6JLiTmED6juBw3K /mHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xiFrhumBRCJKle27Ec9MMgPIOgy+jhV28MgyHSaDEZM=; b=pVrbHxQ+q347g3cDURrQcRNfL7ADgzUxMzz6EAj5POuZ2pXaIZecJ5F8fS6CLx0AX3 ku9/+wnLVkS9HDz2V81KDoN1yv69BtAWxeoRbP3BD4UbDXZ24JqNDKN5yRfsistAFpmP kjeYboUATtgXj5wi0S0G7QIspeGGzXBw5IyylwNPyRebfTU9xxzhnVxN6JFgAQ3gDgA+ fP/yamUJRAJLH3YyibNmBsiKZl8jdR6AxFzO4H/nLR0csy2lRddgM9jKYXwNWp9H/IQc wpK+6rrqAHE+/LlMyEoFl4AkNYIZnAWd4UbvYHkDpSVHFZbzaxjJQWAOSlkg+gRNcUMA V+Vg== X-Gm-Message-State: AOAM530yAJ8XwCVZv7WwFKLk5JyZP7gCGzJdm9ekU5ThhSsTO928XRoc rphKXjQh8AOP44Fn+1cFKM8l7AiQ5zfjCw== X-Google-Smtp-Source: ABdhPJwEx1ZqruD/qBcL0jZJ27zAjegEHu61SNveXc27hMGGeDAfsZ3HPYpu8lvXBMZUMZiLfJMp9w== X-Received: by 2002:adf:912e:: with SMTP id j43mr30125070wrj.325.1602514008327; Mon, 12 Oct 2020 07:46:48 -0700 (PDT) Received: from localhost (host86-130-161-39.range86-130.btcentralplus.com. [86.130.161.39]) by smtp.gmail.com with ESMTPSA id t83sm13512004wmf.39.2020.10.12.07.46.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2020 07:46:47 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCH 6/9] gdb: remove LA_ITERATE_OVER_SYMBOLS macro Date: Mon, 12 Oct 2020 15:46:34 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2020 14:46:50 -0000 Replace the single use of the LA_ITERATE_OVER_SYMBOLS macro with the macro's definition, and delete the macro. There should be no user visible changes after this commit. gdb/ChangeLog: * language.h (LA_ITERATE_OVER_SYMBOLS): Delete. (iterate_over_file_blocks): Replace use of macro with the macros definition. --- gdb/ChangeLog | 6 ++++++ gdb/language.h | 3 --- gdb/linespec.c | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gdb/language.h b/gdb/language.h index bffa9fddfee..9d64a4ae8e9 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -652,9 +652,6 @@ extern enum language set_language (enum language); #define LA_EMIT_CHAR(ch, type, stream, quoter) \ (current_language->emitchar (ch, type, stream, quoter)) -#define LA_ITERATE_OVER_SYMBOLS(BLOCK, NAME, DOMAIN, CALLBACK) \ - (current_language->iterate_over_symbols (BLOCK, NAME, DOMAIN, CALLBACK)) - /* Test a character to decide whether it can be printed in literal form or needs to be printed in another representation. For example, in C the literal form of the character with octal value 141 is 'a' diff --git a/gdb/linespec.c b/gdb/linespec.c index b05b8ad89a8..a5fd3af1e30 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -1209,7 +1209,7 @@ iterate_over_file_blocks for (block = BLOCKVECTOR_BLOCK (SYMTAB_BLOCKVECTOR (symtab), STATIC_BLOCK); block != NULL; block = BLOCK_SUPERBLOCK (block)) - LA_ITERATE_OVER_SYMBOLS (block, name, domain, callback); + current_language->iterate_over_symbols (block, name, domain, callback); } /* A helper for find_method. This finds all methods in type T of -- 2.25.4