From patchwork Tue Mar 12 10:07:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 7604 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Tv8T83W0mz3wkd for ; Tue, 12 Mar 2024 10:07:24 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Tv8T36qmXzZC; Tue, 12 Mar 2024 10:07:19 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Tv8T21zgSz32qm; Tue, 12 Mar 2024 10:07:18 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Tv8Sy62rWz2y3M for ; Tue, 12 Mar 2024 10:07:14 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Tv8Sy4RYkzC8; Tue, 12 Mar 2024 10:07:14 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1710238034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DpDr3rCHPMahXAKJYqzN1XXHDdcaTjfyfZwphrR/pcs=; b=jAGkjmSl2x5gkQe/khjP4vBWbqXWvrg9eDadR0I2vIwa8T7RHjjbTIJsD2DU5bdHTWg17D Sey8sHyb6BijvGCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1710238034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DpDr3rCHPMahXAKJYqzN1XXHDdcaTjfyfZwphrR/pcs=; b=MrQ7KKgXrGynwkh/QmhjW8TTuWMCFlsNM7BqhqMJEon4i2aM/aWnuHZiG8Za8Y8c9EAv59 p9Dxom0RStuzKppe7zmDsbQb2+0MlgHI8oxryCzDPGzds78N3tRSjzywuBqjIFmvwaUNHV CLsld0swFRfN5r+NAvz+gOCf+td+U94859dCHU5k3ddMt8Cd4y1zPX5RzLvlURHOgFYjk4 JuZuDHMDKBGlTi/ch8y41WCkDV7slXjVjZ00i+m+nzO5pBU9rEamBB5LB3WmFemrlWn6I6 H2ieZ0pH2PQmBoAXRinbM74frVIQb0X38TxYWAqql31AGm5lMsAxmmSq/fW9lA== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] gdb: Update to version 14.2 Date: Tue, 12 Mar 2024 11:07:05 +0100 Message-ID: <20240312100710.92028-2-adolf.belka@ipfire.org> In-Reply-To: <20240312100710.92028-1-adolf.belka@ipfire.org> References: <20240312100710.92028-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: 3ZJL6LXNPCU5COYQZOBSZBE5HZJDOW4F X-Message-ID-Hash: 3ZJL6LXNPCU5COYQZOBSZBE5HZJDOW4F X-MailFrom: adolf.belka@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: - Update from version 13.2 to 14.2 - Update of rootfile - Changelog 14.2 This is a minor corrective release over GDB 14.1, fixing the following issues: PR symtab/31112 (DLL export forwarding is broken) PR c++/31128 (gdb crashes when trying to print a global variable stub without a running inferior) PR tdep/31254 ([gdb/tdep, arm] FAIL: gdb.threads/staticthreads.exp: up 10) PR gdb/31256 (Crash with basic 'list .') PR python/31366 (Frame.static_link() segfaults) 14.1 This version of GDB includes the following changes and enhancements: Removed features, removed configurations: GDB no longer support AiX 4.x, 5.x and 6.x. The minimum version supported is AiX 7.1. GDB/MI version 1 support has been removed Initial built-in support for Debugger Adapter Protocol (DAP) GDB now recognizes the NO_COLOR environment variable Initial support for integer types larger than 64 bits Breakpoints can now be inferior-specific New convenience function "$_shell", to execute a shell command and return its result. Python support New class gdb.Thread New class gdb.unwinder.FrameId New class gdb.ValuePrinter New gdb.Inferior.arguments attribute, holding the command-line arguments to the inferior, if known New gdb.Inferior.main_name attribute, holding the name of the inferior's 'main', if known. New gdb.Breakpoint.inferior attribute New gdb.Progspace.symbol_file attribute New gdb.Progspace.executable_filename attribute New function gdb.execute_mi(COMMAND, [ARG]...) New function gdb.block_signals() New method gdb.Frame.static_link New gdb.Inferior 'clear_env', 'set_env' and 'unset_env' methods New gdb.Type now has the 'is_array_like' and 'is_string_like' methods New gdb.Value 'assign' method New gdb.Value 'to_array' method New gdb.Progspace 'objfile_for_address' method New methods added to the gdb.PendingFrame class, with behavior which is the same as the corresponding methods on gdb.Frame. gdb.LazyString now implements the __str__ method New event gdb.ThreadExitedEvent New event gdb.ExecutableChangedEvent New event gdb.NewProgspaceEvent New event gdb.FreeProgspaceEvent The frame-id passed to gdb.PendingFrame.create_unwind_info now use either an integer or a gdb.Value object for each of its 'sp', 'pc', and 'special' attributes. The Disassembler API from the gdb.disassembler module has been extended to include styling support gdb.parse_and_eval now has a new "global_context" parameter, allowing the request to only examine global symbols. The name argument passed to gdb.unwinder.Unwinder.__init__ must now be of type 'str' otherwise a TypeError will be raised. The gdb.unwinder.Unwinder.enabled attribute can now only accept values of type 'bool'. Changing this attribute will now invalidate GDB's frame-cache. It is now no longer possible to sub-class the gdb.disassembler.DisassemblerResult type. Remote protocol Support for enabling or disabling individual remote target features GDB/MI support New 'no-history' stop reason Support for inferior-specific breakpoints The bkpt tuple, which appears in breakpoint-created notifications, and in the result of the -break-insert command can now include an optional 'inferior' field for both the main breakpoint, and each location, when the breakpoint is inferior-specific. Trying to create a thread-specific breakpoint using a non-existent thread ID now results in an error New "simple-values-ref-types" -list-feature value indicating how the --simple-values option in various commands take reference types into account. Enhanced AArch64 support Initial support for Scalable Matrix Extension (SME) and for Scalable Matrix Extension 2 (SME2) The 'org.gnu.gdb.aarch64.pauth' Pointer Authentication feature is now deprecated in favor of the 'org.gnu.gdb.aarch64.pauth_v2' feature string Enhanced Ada support Support for the Ada 2022 target name symbol ('@') Support for the The Ada 2022 'Enum_Rep and 'Enum_Val attributes Miscellaneous The 'list' command now accepts '.' as an argument, telling GDB to print the location around the point of execution within the current frame New '%V' output format for printf and dprintf commands. The printf command now limits the size of strings fetched from the inferior to the value of the 'max-value-size' setting. Support for extending at configure time the default value of the 'debug-file-directory' GDB parameter via the new --additional-debug-dirs=PATHs configure option. New command "info main" New command "set tui mouse-events [on|off]" (on by default) New command "set always-read-ctf on|off" (off by default) Various new debug and maitenance commands Signed-off-by: Adolf Belka --- config/rootfiles/common/gdb | 29 +++++++++++++++++++++++++---- lfs/gdb | 6 +++--- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/config/rootfiles/common/gdb b/config/rootfiles/common/gdb index 6a366ac7d..c951284da 100644 --- a/config/rootfiles/common/gdb +++ b/config/rootfiles/common/gdb @@ -2,14 +2,10 @@ #usr/bin/gdb #usr/bin/gdb-add-index #usr/bin/gdbserver -#usr/bin/run #usr/include/gdb #usr/include/gdb/jit-reader.h #usr/include/sim -#usr/include/sim/callback.h -#usr/include/sim/sim.h #usr/lib/libinproctrace.so -#usr/lib/libsim.a #usr/share/gdb/python #usr/share/gdb/python/gdb #usr/share/gdb/python/gdb/FrameDecorator.py @@ -24,6 +20,29 @@ #usr/share/gdb/python/gdb/command/type_printers.py #usr/share/gdb/python/gdb/command/unwinders.py #usr/share/gdb/python/gdb/command/xmethods.py +#usr/share/gdb/python/gdb/dap +#usr/share/gdb/python/gdb/dap/__init__.py +#usr/share/gdb/python/gdb/dap/breakpoint.py +#usr/share/gdb/python/gdb/dap/bt.py +#usr/share/gdb/python/gdb/dap/disassemble.py +#usr/share/gdb/python/gdb/dap/evaluate.py +#usr/share/gdb/python/gdb/dap/events.py +#usr/share/gdb/python/gdb/dap/frames.py +#usr/share/gdb/python/gdb/dap/io.py +#usr/share/gdb/python/gdb/dap/launch.py +#usr/share/gdb/python/gdb/dap/locations.py +#usr/share/gdb/python/gdb/dap/memory.py +#usr/share/gdb/python/gdb/dap/modules.py +#usr/share/gdb/python/gdb/dap/next.py +#usr/share/gdb/python/gdb/dap/pause.py +#usr/share/gdb/python/gdb/dap/scopes.py +#usr/share/gdb/python/gdb/dap/server.py +#usr/share/gdb/python/gdb/dap/sources.py +#usr/share/gdb/python/gdb/dap/startup.py +#usr/share/gdb/python/gdb/dap/state.py +#usr/share/gdb/python/gdb/dap/threads.py +#usr/share/gdb/python/gdb/dap/typecheck.py +#usr/share/gdb/python/gdb/dap/varref.py #usr/share/gdb/python/gdb/disassembler.py #usr/share/gdb/python/gdb/frames.py #usr/share/gdb/python/gdb/function @@ -70,9 +89,11 @@ #usr/share/info/gdb.info-6 #usr/share/info/gdb.info-7 #usr/share/info/gdb.info-8 +#usr/share/info/gdb.info-9 #usr/share/info/stabs.info #usr/share/man/man1/gcore.1 #usr/share/man/man1/gdb-add-index.1 #usr/share/man/man1/gdb.1 #usr/share/man/man1/gdbserver.1 #usr/share/man/man5/gdbinit.5 + diff --git a/lfs/gdb b/lfs/gdb index f534774e0..c8cb47039 100644 --- a/lfs/gdb +++ b/lfs/gdb @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2018 IPFire Team # +# Copyright (C) 2007-2024 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,7 +24,7 @@ include Config -VER = 13.2 +VER = 14.2 THISAPP = gdb-$(VER) DL_FILE = $(THISAPP).tar.xz @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_BLAKE2 = bf5216ba2286448a46f9e0a405367c5a678e6d7540204722d355b618018b7b75a2ebc5b51353304c5ded02a3979223a81781d305f5afa5be82516cdc2863d49f +$(DL_FILE)_BLAKE2 = 65765dfd1ed08e19bb881fc7ae98d6ee4914f38a9a2bb0d0ca73bef472669664f807fe9c04e8dffd7025be98e736ac52f88ff5851ceddbb01a361885b18befc8 install : $(TARGET)