gdb: Unregister gdbstub_break command when unloading module

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Glenn Washburn 2023-01-10 15:03:59 -06:00 committed by Daniel Kiper
parent 72daccfb56
commit bdfef24672

View File

@ -98,6 +98,7 @@ GRUB_MOD_INIT (gdb)
GRUB_MOD_FINI (gdb)
{
grub_unregister_command (cmd);
grub_unregister_command (cmd_break);
grub_unregister_command (cmd_stop);
grub_gdb_idtrestore ();
}