This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: remote gdb: reboot system(Linux)


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 )


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]