From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DF6293858D3C; Thu, 15 Jun 2023 11:22:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF6293858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686828179; bh=0Z54Uf4ejRGxJDss2v0+0li/MESJ9kkYNAkeSO7NEOQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JvEszBE5uCb1ZfqnVVKFDf9Vv6Y88cBpWfT7EYtxZpsxQPVyqmvQcbZuO3hm6RaE6 vAsVOU3QMvUY75rT6NfjV+/XGd5YGHEGTOXvTz6+suYPWW0JK8X15VwZHE5V5dUSuK QtULwSYMcNubmrKVLH2ccVxf+U/rCtchi6Gv4MyQ= From: "pedro at palves dot net" To: gdb-prs@sourceware.org Subject: [Bug gdb/30541] Add target valgrind Date: Thu, 15 Jun 2023 11:22:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pedro at palves dot net X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30541 Pedro Alves changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pedro at palves dot net --- Comment #3 from Pedro Alves --- Is there a reason "target valgrind" needs to be built-in to gdb? You can define custom "target foo" commands, like: (gdb) define target valgrind Type commands for definition of "target foobar". End with a line saying just "end". >p 1 >p 2 >p 3 >end (gdb) target valgrind $1 =3D 1 $2 =3D 2 $3 =3D 3 (gdb)=20 ... so that could go in some script put in the system gdbinit dir. (IIRC, back in my day, CodeSourcery was using this feature for some "target foo" which I don't recall which it was.) --=20 You are receiving this mail because: You are on the CC list for the bug.=