From patchwork Tue Nov 19 11:09:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 8239 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 RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Xt1wv3MfJz3wx0 for ; Tue, 19 Nov 2024 11:09:51 +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 RSA-PSS (4096 bits) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "E6" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Xt1wp3SzCz4g3; Tue, 19 Nov 2024 11:09:46 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Xt1wp2xczz32wV; Tue, 19 Nov 2024 11:09:46 +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 RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Xt1wj6GDjz32wV for ; Tue, 19 Nov 2024 11:09:41 +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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Xt1wj4fsRzRC; Tue, 19 Nov 2024 11:09:41 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1732014581; 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=6DJhVsMxNiP71+hhrj93jlJJy2RHS1UWQJ0e9zMnWVM=; b=DFd4KdLR8GOM5qaENtMecctPDwcXxowYJPFRfHDVsD5ZwLClvwb0UaWRMVAxl1MvX+ZWw0 7DVWtIaS7FKEixAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1732014581; 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=6DJhVsMxNiP71+hhrj93jlJJy2RHS1UWQJ0e9zMnWVM=; b=jFqE18OtFuJewjIO5s/MI0b84IhTKt6Q8Lhj6fJRTF/fROUo+NfSn3n+zJzN2MJwBFqwuK vIgPoyXNO+CjJ29kh2S48H1CzADe6lLIzJswIaQc/NrvnbM4GGjQ4MmAqB5yytQ3alqvzz K2ich1l1bA4L6qJBnwOnjqL2rQqlwdY/ugiz3NsH7N1LdEu9DVlNMR9fg9aczZ6i+rOfVX MovL7WacSUP2wVlB8YVVLXM4ADblzoU5TnRGkiJKUvluSohK3Iu8Pb4ki3s9jDCufceOYA x3wgWUPIuZ/9cJUlt58dQzRu5qGXnICZy8NlRmlwkvGd3VuFUjaXdjkCssoRwQ== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] gdb: Update to version 15.2 Date: Tue, 19 Nov 2024 12:09:29 +0100 Message-ID: <20241119110936.3597603-3-adolf.belka@ipfire.org> In-Reply-To: <20241119110936.3597603-1-adolf.belka@ipfire.org> References: <20241119110936.3597603-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: 3XKJRREKS24IJ47L4SR5P2KOMARTWMLC X-Message-ID-Hash: 3XKJRREKS24IJ47L4SR5P2KOMARTWMLC 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 14.2 to 15.2 - Update of rootfile - Changelog 15.2 fixes and enhancements * PR gdb/31727 (-exec-next fails in mingw (infrun.c:2794: internal-error: resume_1: Assertion `pc_in_thread_step_range (pc, tp)' failed)) * PR c++/31900 (libstdc++-prettyprinters/debug.cc print redirected fails since gdb-14-branchpoint-2123-g4e417d7bb1c) * PR python/31946 (sys.exit from Python no longer exits the GDB process) * PR record/31971 (Loading a saved record file asserts if we try to execute the inferior) * PR gdb/32005 (frv_current_sos doesn't set solib::lm_info) * PR exp/32015 (GDB crashes while printing large D array) * PR gdb/32025 (Fatal error when the disassemble command is interrupted with SIGINT) * PR gdb/32143 ([15 Regression] arch/amd64.c:71: internal-error: amd64_create_target_description: Assertion `!is_x32' failed) * PR symtab/32158 ([gdb/symtab] enum class enumerator has incorrect parent in cooked index) * PR symtab/32160 ([gdb/symtab] Parent map: die parent or scope parent?) 15.1 changes and enhancements: * Building GDB and GDBserver now requires a C++17 compiler (for instance, GCC 9 or later). * Enhanced Python support ** New function gdb.notify_mi(NAME, DATA), that emits custom GDB/MI async notification. ** New read/write attribute gdb.Value.bytes that contains a bytes object holding the contents of this value. ** New module gdb.missing_debug that facilitates dealing with objfiles that are missing any debug information. ** New function gdb.missing_debug.register_handler that can register an instance of a sub-class of gdb.missing_debug.MissingDebugInfo as a handler for objfiles that are missing debug information. ** New class gdb.missing_debug.MissingDebugInfo which can be sub-classed to create handlers for objfiles with missing debug information. ** Stop events now have a "details" attribute that holds a dictionary that carries the same information as an MI "*stopped" event. ** New function gdb.interrupt(), that interrupts GDB as if the user typed control-c. ** New gdb.InferiorThread.ptid_string attribute. This read-only attribute contains the string that appears in the 'Target Id' column of the 'info threads' command output. ** It is no longer possible to create new gdb.Progspace object using 'gdb.Progspace()', this will result in a TypeError. Progspace objects can still be obtained through calling other API functions, for example 'gdb.current_progspace()'. ** User defined attributes can be added to a gdb.Inferior object, these will be stored in the object's new Inferior.__dict__ attribute. ** User defined attributes can be added to a gdb.InferiorThread object, these will be stored in the object's new InferiorThread.__dict__ attribute. ** New constants gdb.SYMBOL_TYPE_DOMAIN, gdb.SYMBOL_FUNCTION_DOMAIN, and gdb.SEARCH_*_DOMAIN * Debugger Adapter Protocol changes ** GDB now emits the "process" event. ** GDB now supports the "cancel" request. ** The "attach" request now supports specifying the program. ** New command "set debug dap-log-level" controls DAP logging. * Remote protocol ** New stop reason: clone ** QThreadOptions in qSupported ** New remote packets: QThreadOptions, qIsAddressTagged ** New "set/show remote thread-options-packet" commands * GDBserver ** The --remote-debug and --event-loop-debug command line options have been removed. ** The --debug command line option now takes an optional comma separated list of components to emit debug for. The currently supported components are: all, threads, event-loop, and remote. If no components are given then threads is assumed. ** The 'monitor set remote-debug' and 'monitor set event-loop-debug' command have been removed. ** The 'monitor set debug 0|1' command has been extended to take a component name, e.g.: 'monitor set debug COMPONENT off|on'. Possible component names are: all, threads, event-loop, and remote. * Deprecated or removed ** The MPX commands "show/set mpx bound" have been deprecated, as Intel listed MPX as removed in 2019. * Miscellaneous ** Guile API: New constants SYMBOL_TYPE_DOMAIN, SYMBOL_FUNCTION_DOMAIN, and SEARCH_*_DOMAIN ** New "set/show direct-call-timeout" commands. ** New "set/show indirect-call-timeout" commands. ** New "set/show unwind-on-timeout on|off" commands. ** New "set/show unwind-on-signal on|off" commands, renaming the old "set/show unwindonsignal" commands. The old commands are maintained as an alias. ** The "gcore" and "generate-core-file" commands now generates sparse core files, on systems that support it. ** The "maintenance info line-table" command now includes a new EPILOGUE-BEGIN column indicating the start of the function's epilogue. ** Simultaneous use of the 'r' and 'b' flags in the "disassemble" command now triggers an error. Signed-off-by: Adolf Belka --- config/rootfiles/common/gdb | 7 +++---- lfs/gdb | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/config/rootfiles/common/gdb b/config/rootfiles/common/gdb index 95e645541..5b6e93bfb 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 @@ -19,6 +15,7 @@ #usr/share/gdb/python/gdb/command/__init__.py #usr/share/gdb/python/gdb/command/explore.py #usr/share/gdb/python/gdb/command/frame_filters.py +#usr/share/gdb/python/gdb/command/missing_debug.py #usr/share/gdb/python/gdb/command/pretty_printers.py #usr/share/gdb/python/gdb/command/prompt.py #usr/share/gdb/python/gdb/command/type_printers.py @@ -54,6 +51,7 @@ #usr/share/gdb/python/gdb/function/as_string.py #usr/share/gdb/python/gdb/function/caller_is.py #usr/share/gdb/python/gdb/function/strfns.py +#usr/share/gdb/python/gdb/missing_debug.py #usr/share/gdb/python/gdb/printer #usr/share/gdb/python/gdb/printer/__init__.py #usr/share/gdb/python/gdb/printer/bound_registers.py @@ -70,6 +68,7 @@ #usr/share/gdb/syscalls/freebsd.xml #usr/share/gdb/syscalls/gdb-syscalls.dtd #usr/share/gdb/syscalls/i386-linux.xml +#usr/share/gdb/syscalls/loongarch-linux.xml #usr/share/gdb/syscalls/mips-n32-linux.xml #usr/share/gdb/syscalls/mips-n64-linux.xml #usr/share/gdb/syscalls/mips-o32-linux.xml diff --git a/lfs/gdb b/lfs/gdb index c8cb47039..ab16e3db5 100644 --- a/lfs/gdb +++ b/lfs/gdb @@ -24,7 +24,7 @@ include Config -VER = 14.2 +VER = 15.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 = 65765dfd1ed08e19bb881fc7ae98d6ee4914f38a9a2bb0d0ca73bef472669664f807fe9c04e8dffd7025be98e736ac52f88ff5851ceddbb01a361885b18befc8 +$(DL_FILE)_BLAKE2 = 073668c21b41f12bf40160c6d3df808056453cc9df3b5b86374abe38e955d208f86467458b7e64b3c3e93d70b7f87425619778173fdb375256cd85be15419f14 install : $(TARGET)