As new gdb is able to handle it properly.

Signed-off-by: Alexey Makhalov <[email protected]>
---
 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
[email protected]
https://listman.redhat.com/mailman/listinfo/crash-utility

Reply via email to