Message ID | 20240717035307.2299961-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 B6BC53870C12 for <patchwork@sourceware.org>; Wed, 17 Jul 2024 03:53:50 +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 6FB163858283 for <gdb-patches@sourceware.org>; Wed, 17 Jul 2024 03:53:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6FB163858283 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 6FB163858283 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=1721188397; cv=none; b=kscmd52WjNFLLKU+uWSJkbKg+zW6JvGC89rLLBoNs7OEYmN25aMIkjWldFiXZyyp8dkkWGxaQbO8bak+1IoTRx+4MptiWt7ge1nTRjkGzssM43qPgTgYBX5+yriBQEZrvr2F7HvwE0afVLM7mrU+Dm1UhfFMRaKqII510JhfnS4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721188397; c=relaxed/simple; bh=7PMtsQhsaxxCAM/8fXiSlf7h4ghETqNugyzL26dxQVo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=x5W/568bAh8/V980dGOjy1/6mQc9FghBYAF8X782ROzMuXePo+JBYEzp8lXfngQEMWuTjwRNPhccpdXnL+MH+2AvzGZ9NKd6y61hV91GzvXuC8DbsVsGxiDlxzhPgf7qy0UO2ibDphjXwIiOai8mIKDKld5wl/+zvRwC0KnDU34= 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 46H3r8ow025337 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jul 2024 23:53:13 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 46H3r8ow025337 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1721188393; bh=zqK+RJvw4IQHFBnPleSMXuXJLO5woFHPOxsgd/VI8yM=; h=From:To:Cc:Subject:Date:From; b=BYS3fVDTQedEgIU6C07PaT/IiUPdQeUVXIXJegsK2AfBMYyQYT7zWCvWJkERLjcLF 3CP7+GbFzqlFdJpUi0/9EsLxHYUJ96Z8AnUVufx9x/bRGhAbO/1svCTriC0Fx3M+Bv HoZqOaYeITI/3aCG/EPMtIlU6imLDvf3meD4CAEo= 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 272411E030; Tue, 16 Jul 2024 23: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 0/7] Some more passing down program space Date: Tue, 16 Jul 2024 23:51:58 -0400 Message-ID: <20240717035307.2299961-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 Wed, 17 Jul 2024 03: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 more passing down program space
|
|
Message
Simon Marchi
July 17, 2024, 3:51 a.m. UTC
Here's another batch of patches I had laying around. Simon Marchi (7): gdb: drop struct keyword when using bound_minimal_symbol gdb: make lookup_minimal_symbol objf and sfile parameters optional gdb: remove lookup_bound_minimal_symbol gdb: add program_space parameter to lookup_minimal_symbol gdb: add program_space parameter to get_symbol_leading_char gdb: add program_space parameter to lookup_minimal_symbol_linkage gdb: add program_space parameter to lookup_minimal_symbol_text gdb/ada-exp.y | 2 +- gdb/ada-lang.c | 19 ++++++---- gdb/ada-lang.h | 3 +- gdb/ada-tasks.c | 12 +++--- gdb/aix-thread.c | 8 ++-- gdb/amd64-windows-tdep.c | 3 +- gdb/arc-linux-tdep.c | 4 +- gdb/arm-tdep.c | 18 ++++----- gdb/arm-wince-tdep.c | 5 +-- gdb/auxv.c | 4 +- gdb/avr-tdep.c | 4 +- gdb/ax-gdb.c | 6 +-- gdb/block.c | 2 +- gdb/blockframe.c | 5 +-- gdb/breakpoint.c | 33 ++++++++-------- gdb/bsd-uthread.c | 5 +-- gdb/btrace.c | 3 +- gdb/c-exp.y | 4 +- gdb/c-valprint.c | 3 +- gdb/coff-pe-read.c | 9 +++-- gdb/coffread.c | 5 ++- gdb/compile/compile-c-symbols.c | 13 +++---- gdb/compile/compile-cplus-symbols.c | 7 ++-- gdb/compile/compile-object-load.c | 4 +- gdb/csky-tdep.c | 2 +- gdb/ctfread.c | 5 +-- gdb/d-exp.y | 5 ++- gdb/d-lang.c | 5 +-- gdb/dbxread.c | 33 ++++++++-------- gdb/dwarf2/ada-imported.c | 4 +- gdb/dwarf2/cooked-index.h | 2 +- gdb/dwarf2/loc.c | 35 ++++++++--------- gdb/dwarf2/read.c | 2 +- gdb/dwarf2/read.h | 2 +- gdb/elfread.c | 8 ++-- gdb/eval.c | 3 +- gdb/fbsd-tdep.c | 6 ++- gdb/findvar.c | 4 +- gdb/frame.c | 2 +- gdb/frv-tdep.c | 7 ++-- gdb/ft32-tdep.c | 5 ++- gdb/gcore.c | 5 ++- gdb/glibc-tdep.c | 14 ++++--- gdb/gnu-v2-abi.c | 3 +- gdb/gnu-v3-abi.c | 11 +++--- gdb/go-exp.y | 5 +-- gdb/go-lang.c | 5 +-- gdb/hppa-tdep.c | 5 +-- gdb/i386-tdep.c | 3 +- gdb/ia64-tdep.c | 4 +- gdb/infcall.c | 2 +- gdb/infcmd.c | 2 +- gdb/jit.c | 2 +- gdb/linespec.c | 4 +- gdb/linux-fork.c | 15 ++++---- gdb/linux-thread-db.c | 9 ++--- gdb/m32c-tdep.c | 22 +++++------ gdb/m32r-tdep.c | 4 +- gdb/m68hc11-tdep.c | 9 ++--- gdb/machoread.c | 5 ++- gdb/maint.c | 2 +- gdb/mi/mi-symbol-cmds.c | 3 +- gdb/minsyms.c | 58 ++++++++++++++--------------- gdb/minsyms.h | 36 +++++++++--------- gdb/mips-fbsd-tdep.c | 4 +- gdb/mips-linux-tdep.c | 5 +-- gdb/mips-tdep.c | 30 ++++++--------- gdb/msp430-tdep.c | 3 +- gdb/netbsd-tdep.c | 5 +-- gdb/objc-lang.c | 34 ++++++++++------- gdb/objfiles.h | 9 ++--- gdb/obsd-tdep.c | 5 +-- gdb/p-exp.y | 5 +-- gdb/p-lang.c | 11 +++--- gdb/p-valprint.c | 4 +- gdb/parse.c | 7 ++-- gdb/ppc-linux-tdep.c | 7 +--- gdb/ppc-sysv-tdep.c | 10 ++--- gdb/printcmd.c | 14 +++---- gdb/proc-service.c | 3 +- gdb/psymtab.c | 17 ++++----- gdb/psymtab.h | 13 +++---- gdb/python/py-framefilter.c | 4 +- gdb/quick-symbol.h | 4 +- gdb/ravenscar-thread.c | 30 +++++++-------- gdb/remote.c | 5 +-- gdb/rs6000-tdep.c | 5 +-- gdb/sol-thread.c | 9 ++--- gdb/sol2-tdep.c | 5 +-- gdb/solib-dsbt.c | 6 +-- gdb/solib-frv.c | 12 +++--- gdb/solib-svr4.c | 13 ++++--- gdb/stack.c | 7 +--- gdb/symfile-debug.c | 2 +- gdb/symfile.c | 12 +++--- gdb/symtab.c | 29 ++++++++------- gdb/symtab.h | 2 +- gdb/tracepoint.c | 26 +++++++------ gdb/tui/tui-disasm.c | 14 +++---- gdb/valops.c | 4 +- gdb/value.c | 8 ++-- gdb/x86-tdep.c | 2 +- gdb/z80-tdep.c | 20 +++++----- 103 files changed, 454 insertions(+), 490 deletions(-) base-commit: d898e0855b34c00b6b31248f613d09ff080c272f
Comments
On 7/16/24 8:51 PM, Simon Marchi wrote: > Here's another batch of patches I had laying around. I've looked through this series, and done some test builds, and other than one comment on #5, this looks like a solid step in the right direction. Reviewed-by: Keith Seitz <keiths@redhat.com> Keith
Simon Marchi <simon.marchi@polymtl.ca> writes: > Here's another batch of patches I had laying around. > > Simon Marchi (7): > gdb: drop struct keyword when using bound_minimal_symbol > gdb: make lookup_minimal_symbol objf and sfile parameters optional > gdb: remove lookup_bound_minimal_symbol > gdb: add program_space parameter to lookup_minimal_symbol > gdb: add program_space parameter to get_symbol_leading_char > gdb: add program_space parameter to lookup_minimal_symbol_linkage > gdb: add program_space parameter to lookup_minimal_symbol_text OK, so I've not gone through every line of these patches. But these all look like great clean up work. Assuming everything still builds then I say, lets check this lot in: Approved-By: Andrew Burgess <aburgess@redhat.com> Thanks, Andrew > > gdb/ada-exp.y | 2 +- > gdb/ada-lang.c | 19 ++++++---- > gdb/ada-lang.h | 3 +- > gdb/ada-tasks.c | 12 +++--- > gdb/aix-thread.c | 8 ++-- > gdb/amd64-windows-tdep.c | 3 +- > gdb/arc-linux-tdep.c | 4 +- > gdb/arm-tdep.c | 18 ++++----- > gdb/arm-wince-tdep.c | 5 +-- > gdb/auxv.c | 4 +- > gdb/avr-tdep.c | 4 +- > gdb/ax-gdb.c | 6 +-- > gdb/block.c | 2 +- > gdb/blockframe.c | 5 +-- > gdb/breakpoint.c | 33 ++++++++-------- > gdb/bsd-uthread.c | 5 +-- > gdb/btrace.c | 3 +- > gdb/c-exp.y | 4 +- > gdb/c-valprint.c | 3 +- > gdb/coff-pe-read.c | 9 +++-- > gdb/coffread.c | 5 ++- > gdb/compile/compile-c-symbols.c | 13 +++---- > gdb/compile/compile-cplus-symbols.c | 7 ++-- > gdb/compile/compile-object-load.c | 4 +- > gdb/csky-tdep.c | 2 +- > gdb/ctfread.c | 5 +-- > gdb/d-exp.y | 5 ++- > gdb/d-lang.c | 5 +-- > gdb/dbxread.c | 33 ++++++++-------- > gdb/dwarf2/ada-imported.c | 4 +- > gdb/dwarf2/cooked-index.h | 2 +- > gdb/dwarf2/loc.c | 35 ++++++++--------- > gdb/dwarf2/read.c | 2 +- > gdb/dwarf2/read.h | 2 +- > gdb/elfread.c | 8 ++-- > gdb/eval.c | 3 +- > gdb/fbsd-tdep.c | 6 ++- > gdb/findvar.c | 4 +- > gdb/frame.c | 2 +- > gdb/frv-tdep.c | 7 ++-- > gdb/ft32-tdep.c | 5 ++- > gdb/gcore.c | 5 ++- > gdb/glibc-tdep.c | 14 ++++--- > gdb/gnu-v2-abi.c | 3 +- > gdb/gnu-v3-abi.c | 11 +++--- > gdb/go-exp.y | 5 +-- > gdb/go-lang.c | 5 +-- > gdb/hppa-tdep.c | 5 +-- > gdb/i386-tdep.c | 3 +- > gdb/ia64-tdep.c | 4 +- > gdb/infcall.c | 2 +- > gdb/infcmd.c | 2 +- > gdb/jit.c | 2 +- > gdb/linespec.c | 4 +- > gdb/linux-fork.c | 15 ++++---- > gdb/linux-thread-db.c | 9 ++--- > gdb/m32c-tdep.c | 22 +++++------ > gdb/m32r-tdep.c | 4 +- > gdb/m68hc11-tdep.c | 9 ++--- > gdb/machoread.c | 5 ++- > gdb/maint.c | 2 +- > gdb/mi/mi-symbol-cmds.c | 3 +- > gdb/minsyms.c | 58 ++++++++++++++--------------- > gdb/minsyms.h | 36 +++++++++--------- > gdb/mips-fbsd-tdep.c | 4 +- > gdb/mips-linux-tdep.c | 5 +-- > gdb/mips-tdep.c | 30 ++++++--------- > gdb/msp430-tdep.c | 3 +- > gdb/netbsd-tdep.c | 5 +-- > gdb/objc-lang.c | 34 ++++++++++------- > gdb/objfiles.h | 9 ++--- > gdb/obsd-tdep.c | 5 +-- > gdb/p-exp.y | 5 +-- > gdb/p-lang.c | 11 +++--- > gdb/p-valprint.c | 4 +- > gdb/parse.c | 7 ++-- > gdb/ppc-linux-tdep.c | 7 +--- > gdb/ppc-sysv-tdep.c | 10 ++--- > gdb/printcmd.c | 14 +++---- > gdb/proc-service.c | 3 +- > gdb/psymtab.c | 17 ++++----- > gdb/psymtab.h | 13 +++---- > gdb/python/py-framefilter.c | 4 +- > gdb/quick-symbol.h | 4 +- > gdb/ravenscar-thread.c | 30 +++++++-------- > gdb/remote.c | 5 +-- > gdb/rs6000-tdep.c | 5 +-- > gdb/sol-thread.c | 9 ++--- > gdb/sol2-tdep.c | 5 +-- > gdb/solib-dsbt.c | 6 +-- > gdb/solib-frv.c | 12 +++--- > gdb/solib-svr4.c | 13 ++++--- > gdb/stack.c | 7 +--- > gdb/symfile-debug.c | 2 +- > gdb/symfile.c | 12 +++--- > gdb/symtab.c | 29 ++++++++------- > gdb/symtab.h | 2 +- > gdb/tracepoint.c | 26 +++++++------ > gdb/tui/tui-disasm.c | 14 +++---- > gdb/valops.c | 4 +- > gdb/value.c | 8 ++-- > gdb/x86-tdep.c | 2 +- > gdb/z80-tdep.c | 20 +++++----- > 103 files changed, 454 insertions(+), 490 deletions(-) > > > base-commit: d898e0855b34c00b6b31248f613d09ff080c272f > -- > 2.45.2
On 8/6/24 4:06 PM, Keith Seitz wrote: > On 7/16/24 8:51 PM, Simon Marchi wrote: >> Here's another batch of patches I had laying around. > > I've looked through this series, and done some test builds, > and other than one comment on #5, this looks like a solid > step in the right direction. > > Reviewed-by: Keith Seitz <keiths@redhat.com> > > Keith > Thanks a lot for reviewing! Simon
On 8/8/24 1:34 PM, Andrew Burgess wrote: > Simon Marchi <simon.marchi@polymtl.ca> writes: > >> Here's another batch of patches I had laying around. >> >> Simon Marchi (7): >> gdb: drop struct keyword when using bound_minimal_symbol >> gdb: make lookup_minimal_symbol objf and sfile parameters optional >> gdb: remove lookup_bound_minimal_symbol >> gdb: add program_space parameter to lookup_minimal_symbol >> gdb: add program_space parameter to get_symbol_leading_char >> gdb: add program_space parameter to lookup_minimal_symbol_linkage >> gdb: add program_space parameter to lookup_minimal_symbol_text > > OK, so I've not gone through every line of these patches. But these all > look like great clean up work. Assuming everything still builds then I > say, lets check this lot in: > > Approved-By: Andrew Burgess <aburgess@redhat.com> Thanks, will push. Simon