From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89106 invoked by alias); 4 Mar 2019 20:25:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 88482 invoked by uid 89); 4 Mar 2019 20:25:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=constify, noticed, HContent-Transfer-Encoding:8bit X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 04 Mar 2019 20:25:20 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id AE373560BD for ; Mon, 4 Mar 2019 15:25:18 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id M9-X6IQbi34j for ; Mon, 4 Mar 2019 15:25:18 -0500 (EST) Received: from murgatroyd.Home (75-166-85-218.hlrn.qwest.net [75.166.85.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 62CA7560BB for ; Mon, 4 Mar 2019 15:25:18 -0500 (EST) From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH 0/2] constify null_ptid and minus_one_ptid Date: Mon, 04 Mar 2019 20:25:00 -0000 Message-Id: <20190304202516.19100-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SW-Source: 2019-03/txt/msg00043.txt.bz2 I noticed that null_ptid and minus_one_ptid should probably be const, to avoid accidental assignments. This mostly went fine, except some calls to iterate_over_lwps would have had to cast away const in order to work. To avoid this, I changed this function to accept a gdb::function_view. Regression tested by the buildbot. Tom