This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: remote gdb: reboot system(Linux)
- To: "Michael S. Miles" <mmiles at alacritech dot com>
- Subject: Re: remote gdb: reboot system(Linux)
- From: "Amit S. Kale" <akale at veritas dot com>
- Date: Tue, 24 Jul 2001 14:31:57 +0530
- CC: gdb at sources dot redhat dot com
- Organization: Veritas Software (India)
- References: <KIEKJCGPOOADIOGPDJJLOEPHEFAA.mmiles@alacritech.com>
You can set pc to machine_restart function and continue.
That will immediately reboot the machine.
kgdb (http://kgdb.sourceforge.net/) doesn't yet support
gdb remote protocol packets kill, attach and detach.
I'll add it whenever I get some time.
"Michael S. Miles" wrote:
>
> I do a lot of Linux remote kernel debugging over serial lines. I will now
> be doing even more of this only the debugger and target system will be at a
> remote site.
>
> In a previous life I did a lot of NT kernel debugging with windbg and it had
> a command called ".reboot" which if made in windbg would actually cause a
> reboot of the target system. I really need this same capability in gdb when
> debugging Linux. I know that a lot of this functionality was probably
> provided in the kernel, but I thought someone might know if this presently
> exists or what would be involved with providing it.
>
> thanks for any help or info,
> michael
--
Amit Kale
Veritas Software ( http://www.veritas.com )