Message ID | 20240711195307.1544451-1-simon.marchi@polymtl.ca |
---|---|
Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A95413875DE1 for <patchwork@sourceware.org>; Thu, 11 Jul 2024 19:54:12 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 923BF387546A for <gdb-patches@sourceware.org>; Thu, 11 Jul 2024 19:53:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 923BF387546A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 923BF387546A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=132.207.4.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720727598; cv=none; b=OPEhxTrV07fxbvGDCp/u/I3p/5TbKgwQ6WXUqw1gYyVYkFNkuWnJQx0M1Rd4q5GTi3o/dU9xu0ZCOFJjXeefkt3qeonthZLnMnMLZoFvMh2sNK7Wv/Mn5W06XeeV+45Bg9VFks8fYjJtojwWfIhqgJErHpI3Lyd4rFYT7cywtjY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720727598; c=relaxed/simple; bh=tqkmhrCApOD73ThqHmN9vH2UcFq/7tqM1txy8uydx0E=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RGdKy3bmcmBr9TGVHRC/npY2MXoL4RgDYleFbPwhleEcLysFLhOO+zbt4WMlSqo1D27IizXRM2nv2+UPZRUI1GFjdQc0iLGJib/RdakOHbNeyZTeuLLMj4AUsT2sXSknkyQSfUwSjaKZNkOZvpPt+8/BPWxWcvx6oOuiN+JV+qE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 46BJr8Ia001322 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jul 2024 15:53:13 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 46BJr8Ia001322 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1720727594; bh=ikzh0TWH5tO9eqk/IIIWjZH7Pbua4/9YekGsNq6Q02o=; h=From:To:Cc:Subject:Date:From; b=qNy5n78Nakn4LlZCicFX7uRkSlXDHcUUHbhZM/Touwe2P71m9lKpsHWjRayACNCO4 4g4qMsCHy3V8hEgQlA28I0Z2UFY+w6RZ4HuteohRr6xNUTUnqlhrU4RWwEjclRf0Yj jfFtscyyvUCmAxCn+7bARo11E9iin0jUyI/ldT4c= Received: from simark.localdomain (modemcable238.237-201-24.mc.videotron.ca [24.201.237.238]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 84C2C1E030; Thu, 11 Jul 2024 15:53:08 -0400 (EDT) From: Simon Marchi <simon.marchi@polymtl.ca> To: gdb-patches@sourceware.org Cc: Simon Marchi <simon.marchi@polymtl.ca> Subject: [PATCH 00/14] Some random program space cleanups Date: Thu, 11 Jul 2024 15:51:56 -0400 Message-ID: <20240711195307.1544451-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Thu, 11 Jul 2024 19:53:08 +0000 X-Spam-Status: No, score=-3182.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
Series |
Some random program space cleanups
|
|
Message
Simon Marchi
July 11, 2024, 7:51 p.m. UTC
I am working on a feature that touches solibs and program spaces. I accumulated a bunch of random cleanups in my branch, here's a batch. Simon Marchi (14): gdb: use objfile::pspace in objfile::unlink gdb: pass program space to objfile_purge_solibs gdb: split no_shared_libraries, command vs implementation gdb: pass program space to no_shared_libraries gdb: make `program_space::free_all_objfiles` use `this` gdb: pass program space to clear_current_source_symtab_and_line gdb: bool-ify a few functions in objfiles.{c,h} gdb: pass program space to have_{full,partial}_symbols gdb: pass program space to get_current_source_symtab_and_line gdb: pass program space to objfiles_changed gdb: pass program space to entry_point_address_query gdb: pass program space to entry_point_address gdb: pass program space to objfile::objfile gdb: pass program space to objfile::make gdb/ada-exp.y | 4 +- gdb/arc-tdep.c | 2 +- gdb/arch-utils.c | 2 +- gdb/breakpoint.c | 5 +- gdb/c-exp.y | 3 +- gdb/cli/cli-cmds.c | 19 +++--- gdb/compile/compile.c | 4 +- gdb/d-exp.y | 3 +- gdb/frame.c | 2 +- gdb/go-exp.y | 4 +- gdb/infcall.c | 2 +- gdb/infcmd.c | 13 ++-- gdb/infrun.c | 2 +- gdb/jit.c | 4 +- gdb/linespec.c | 18 +++--- gdb/macroscope.c | 6 +- gdb/mi/mi-cmd-file.c | 4 +- gdb/objfiles.c | 131 ++++++++++++++++++---------------------- gdb/objfiles.h | 52 +++++++++++----- gdb/p-exp.y | 4 +- gdb/parse.c | 7 ++- gdb/progspace.c | 4 +- gdb/python/python.c | 2 +- gdb/remote.c | 2 +- gdb/solib-frv.c | 2 +- gdb/solib.c | 24 +++++--- gdb/solib.h | 4 +- gdb/source.c | 18 +++--- gdb/source.h | 7 ++- gdb/symfile.c | 19 +++--- gdb/symtab.c | 8 ++- gdb/target.c | 6 +- gdb/target.h | 2 +- gdb/tui/tui-disasm.c | 6 +- gdb/tui/tui-hooks.c | 3 +- gdb/tui/tui-source.c | 5 +- gdb/tui/tui-winsource.c | 10 +-- 37 files changed, 227 insertions(+), 186 deletions(-) base-commit: a79094915578872a0360c78a54accff994b883b1
Comments
On 7/11/24 3:51 PM, Simon Marchi wrote: > I am working on a feature that touches solibs and program spaces. I > accumulated a bunch of random cleanups in my branch, here's a batch. I made some fixups following Thiago's comments, but since they are quite minor I don't think it's worth posting a new version of the series. If there are additional comments, please let me know, otherwise I'll push this... eventually. Simon
>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes: Simon> On 7/11/24 3:51 PM, Simon Marchi wrote: >> I am working on a feature that touches solibs and program spaces. I >> accumulated a bunch of random cleanups in my branch, here's a batch. Simon> I made some fixups following Thiago's comments, but since they are quite Simon> minor I don't think it's worth posting a new version of the series. Simon> If there are additional comments, please let me know, otherwise I'll Simon> push this... eventually. FWIW this all seems fine to me. Thanks for doing this. Approved-By: Tom Tromey <tom@tromey.com> Tom
On 7/15/24 12:17 PM, Tom Tromey wrote: >>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes: > > Simon> On 7/11/24 3:51 PM, Simon Marchi wrote: >>> I am working on a feature that touches solibs and program spaces. I >>> accumulated a bunch of random cleanups in my branch, here's a batch. > > Simon> I made some fixups following Thiago's comments, but since they are quite > Simon> minor I don't think it's worth posting a new version of the series. > Simon> If there are additional comments, please let me know, otherwise I'll > Simon> push this... eventually. > > FWIW this all seems fine to me. Thanks for doing this. > > Approved-By: Tom Tromey <tom@tromey.com> > > Tom Thanks, pushed. Simon