From: Glenn Washburn Date: Mon, 27 Feb 2023 21:15:37 +0000 (-0600) Subject: gdb: Modify gdb prompt when running gdb_grub script X-Git-Tag: grub-2.12-rc1~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4692a64a0cc2192d53330e5bb027b8d560086ed0;p=thirdparty%2Fgrub.git gdb: Modify gdb prompt when running gdb_grub script This will let users know that the GDB session is using the GRUB gdb scripts. Signed-off-by: Glenn Washburn Reviewed-by: Daniel Kiper --- diff --git a/grub-core/gdb_helper.py.in b/grub-core/gdb_helper.py.in index 8d5ee1d29..5ed9eab0f 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):