From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1p8w1M-0002tM-U0 for mharc-grub-devel@gnu.org; Fri, 23 Dec 2022 23:20:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8w1L-0002sH-Fe for grub-devel@gnu.org; Fri, 23 Dec 2022 23:20:27 -0500 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p8w1J-000089-Uz for grub-devel@gnu.org; Fri, 23 Dec 2022 23:20:27 -0500 Received: by mail-pg1-x52a.google.com with SMTP id v62so1378316pgd.9 for ; Fri, 23 Dec 2022 20:20:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dXqMPYBolaO6zRL5coBoxqUwti1fIii8dDrvxrw03DA=; b=xZZBCTWnyRr0GASssUJvgU2+cnCVzCjWPhxT5mFBDJrhOXHwZ6/Bt20thqwzyBNmJR PrPYVDxKbVsF44efVFKoza5we6dDa8q1xmYEg1Y+lXjVP/ltOmGSb25M1TKaRgLC8HIH It85vgsA7lzTU2oZdqrerzKV4m6QlRzM0Ew2v8RYDSje3jSunQCX2vhlRgQttAC2wRdA GNkDrbcRDARSiiRvolzeWvSmAC9wwSSsQm0SOB7H203dEyFawyxUwRv7zmZiaM1A2Btz mTOiYINKLF3q69pZD2d5fzwLEoF9zO9PpQKoSxqIqzKW1+5SXnzWvl0Q8IZO+OlDFDwh AyHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dXqMPYBolaO6zRL5coBoxqUwti1fIii8dDrvxrw03DA=; b=S8QrCfuxAUUis/TipwA/0/yVPmjniY6LHvJhaYcMP6S8A3DIQU8FbbmkXoc/bkR9yo ZPu0Tc16UfkFfLwdeLEBZvjypXiXJURFb2lcX2z5yQUe2mguZ5UTJroIAZ9zOpNEYlVJ BdmHF5GEvSQV5bn7/9jgvYRLQeQqnf4WvMF2vKUgXEJi12omkAM1wx+miGJl1yCs3yOs Cyv4sDptmOO/QAvH+Z3Ul/OoZnHbJ9+n0Di972XE3tNJCdItu11l/yxumNnddaZyat3S uxb1JXXRRPXy+QUdlTVFzJAVTyGv7p1xW6OnyJxnFkMdAvRP0yEIgZ4k8uKfnK/yOJVS GuTg== X-Gm-Message-State: AFqh2krAK8LuSv70BVjxodjd/gza8aduMzH8mb+p2WJbC6iz7G7Qhb3y TIDZRZTk0QqJ5AoT+D+srumMP/48+joEKbmC X-Google-Smtp-Source: AMrXdXuEAc9CbsbFocYz9NFrZ3QVyXUH2moDST7qogpW/LlrWfUSCTmyGO7U4M8X4tNbP2m8kKYZCA== X-Received: by 2002:a05:6a00:2ce:b0:578:83e2:f1bd with SMTP id b14-20020a056a0002ce00b0057883e2f1bdmr10980928pft.29.1671855624800; Fri, 23 Dec 2022 20:20:24 -0800 (PST) Received: from localhost.localdomain ([204.13.164.84]) by smtp.gmail.com with ESMTPSA id x19-20020aa79413000000b005743b5ebd7csm3324185pfo.92.2022.12.23.20.20.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 20:20:24 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Robbie Harwood , Peter Jones , Glenn Washburn Subject: [PATCH v5 13/14] gdb: Modify gdb prompt when running gdb_grub script Date: Fri, 23 Dec 2022 22:19:34 -0600 Message-Id: <20221224041935.787292-14-development@efficientek.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221224041935.787292-1-development@efficientek.com> References: <20221224041935.787292-1-development@efficientek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=development@efficientek.com; helo=mail-pg1-x52a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2022 04:20:27 -0000 This will let users know that the GDB session is using the GRUB gdb scripts. Signed-off-by: Glenn Washburn --- grub-core/gdb_helper.py.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grub-core/gdb_helper.py.in b/grub-core/gdb_helper.py.in index 8d5ee1d292..5ed9eab0f5 100644 --- a/grub-core/gdb_helper.py.in +++ b/grub-core/gdb_helper.py.in @@ -2,6 +2,10 @@ import os import re import subprocess +def prompt_hook (current_prompt): + return "(grub gdb) " +gdb.prompt_hook = prompt_hook + ##### Convenience functions ##### class IsGrubLoaded (gdb.Function): -- 2.34.1