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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As new gdb is able to handle it properly.

Signed-off-by: Alexey Makhalov <amakhalov@xxxxxxxxxx>
---
 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

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/crash-utility




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux