From nobody Tue Dec 24 16:50:22 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YHgqg4F6Bz5hT15 for ; Tue, 24 Dec 2024 16:50:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YHgqg2bMRz44gv for ; Tue, 24 Dec 2024 16:50:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735059023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZvvktVWQ6zYoRxp2gj/S2+tQXSPrq/3VP0pJgkjBTdM=; b=vlCegAUKzS8nJhJGfk0c8Mc8bk2RIh8XWa/tQPBNFjPXRg8SbSyFJlgMPeNZ+gTtLP8L72 ZNT2Rj8yyFE2aN9YxnNi51P2clkWbNsMeOqiyFyF8dQ0c4vNAhz1S2rcB+FfQ9M0NlRuKM ULfk440D2tDftETRM+XNqsexR5jHS73YWNy9cw3gvXqE/LWoL/W7XB7d9gt4epPUGlO5ka /w3WkcaaBHtv4L1BaUzWiW723fx+0C1rmNSGVqEL+LFJM/NsHkD2zCQF1T9VMz7J+YgWjv tO+TgbiALdsgG8cHNlK3kdMac9689WojVJUyYMZsHI+pBveiCfg2T2PTsTW7fQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735059023; a=rsa-sha256; cv=none; b=yND3bNfedm7dOzZl5Q9RkV9Qdyj2PHeV9Xohb5NYTJQaupeGJe27lEV458Fwdht2ukGjzf KxhJtImmw9kbyKbtfaXX+0y43Vcwb8CjTTFGPX0bJX/dDKqO2llrx00NApyjrHu1yyIqZC vwpz2FujA5Mgz5BER4xT5WUPudRum86gORwtDcfDh/Hezh0sKW3DfZDzLR3PZxm81lv8zk L6nyIoVdxTgHqYdnjSWyzCoDxH1qhxfHgAMfUmXRKLbdp0Ruocm6LXy2JJlEsZdeIhtQ1P T+Agd6WlSWAKT3MLPi4WkZIEjOkWpvCSpljNFbnYaYvDSs2rHmZRQWHlPc4mvA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YHgqg207xzmtM for ; Tue, 24 Dec 2024 16:50:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BOGoNQd073047 for ; Tue, 24 Dec 2024 16:50:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BOGoNUN073046 for ports-bugs@FreeBSD.org; Tue, 24 Dec 2024 16:50:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 283559] devel/gdb: kgdb should be able to load kld symbols from alternate location Date: Tue, 24 Dec 2024 16:50:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pizzamig@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283559 Bug ID: 283559 Summary: devel/gdb: kgdb should be able to load kld symbols from alternate location Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pizzamig@freebsd.org Reporter: asomers@FreeBSD.org Flags: maintainer-feedback?(pizzamig@freebsd.org) Assignee: pizzamig@freebsd.org A command like "kgdb /path/to/kernel vmcore.0" will use a an arbitrary kern= el, not just the one that happens to be present in /boot. That's useful when examining old core dumps, or core dumps from panics that happened after an upgrade but before the subsequent reboot. If a kernel.debug file happens t= o be present in the same directory as the kernel, kgdb will use that too. Howev= er, I cannot find any way to specify an alternate location for kernel modules a= nd their symbols files. If I copy the correct vmcore, kernel, kernel.debug, *= .ko, and *.ko.debug files into a single directory, and then execute the above command, then kgdb will load the correct kernel but it will load the klds f= rom /boot, wrongly. Like this: $ kgdb kernel vmcore.7 ... Reading symbols from kernel... Reading symbols from /usr/home/asomers/17-dec-crash-ces-1092/kernel.debug... ... Reading symbols from /boot/kernel/fusefs.ko... Reading symbols from /usr/lib/debug//boot/kernel/fusefs.ko.debug... Reading symbols from /boot/kernel/geom_multipath.ko... Reading symbols from /usr/lib/debug//boot/kernel/geom_multipath.ko.debug... ... As you can see in the above snippet, kgdb is loading the debug symbols for = the running fusefs and geom_multipath modules. Instead, I need it to load them from the PWD. Alternatively, if there were an option to load both kernel a= nd kld files from a BE or chroot, that would also solve the problem. --=20 You are receiving this mail because: You are the assignee for the bug.=