[Crash-utility] [PATCH v4 10/12] Allow 'gdb disassemble' command for relocated kernel

Alexey Makhalov amakhalov at vmware.com
Sat Mar 20 04:07:34 UTC 2021


As new gdb is able to handle it properly.

Signed-off-by: Alexey Makhalov <amakhalov at vmware.com>
---
 gdb_interface.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/gdb_interface.c b/gdb_interface.c
index 58e1149..61762ce 100644
--- a/gdb_interface.c
+++ b/gdb_interface.c
@@ -742,13 +742,6 @@ is_restricted_command(char *cmd, ulong flags)
 		}
 	}
 
-	if (kt->relocate && 
-	    STRNEQ("disassemble", cmd) && STRNEQ(cmd, "disas"))
-               	error(FATAL, 
-		    "the gdb \"disassemble\" command is prohibited because the kernel text\n"
-		    "%swas relocated%s; use the crash \"dis\" command instead.\n",
-			space(strlen(pc->curcmd)+2), kt->flags2 & KASLR ? " by KASLR" : "");
-	
 	return FALSE;
 }
 
-- 
2.11.0




More information about the Crash-utility mailing list