Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2001 18:02:59 +0200
From:      Bernd Walter <ticso@mail.cicely.de>
To:        Juan Fco Rodriguez Hervella <jrh@it.uc3m.es>
Cc:        Lista <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: reset the target machine with remote gdb.
Message-ID:  <20010615180259.B25917@cicely20.cicely.de>
In-Reply-To: <3B29DF21.2B4B7BA3@it.uc3m.es>; from jrh@it.uc3m.es on Fri, Jun 15, 2001 at 12:10:41PM %2B0200
References:  <3B29DF21.2B4B7BA3@it.uc3m.es>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 15, 2001 at 12:10:41PM +0200, Juan Fco Rodriguez Hervella wrote:
> Hi:
> 
> I am debugging a kernel with remote gdb, using
> a serial line. I do the following:
> 
> 1. boot -d, gdb, step (in target machine)
> 2. gdb -k kernel.debug
> 
> Some time later, I get a "SIGSEV segmentation fault".
> This is normal, because I am doing very changes to
> the kernel.
> 
> My question is the following. I would like to reboot
> the target machine without press the reset button,
> but I dont know if it is possible from the debugging
> machine to do this.
> 
> I am afraid that if I reboot with the reset-button
> of the box, I would lost data dont save on the disk.
> 
> Sorry for my bad english.

From DDB I usally call cpu_reset, it should also work with gdb.

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
ticso@cicely.de         Usergroup           info@cosmo-project.de


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010615180259.B25917>