From: Tom Rini Date: Tue, 16 Sep 2014 20:44:44 -0400 Subject: [U-Boot] kgdb: Remove first_entry for kgdb In-Reply-To: <1409579287-11575-1-git-send-email-van.freenix@gmail.com> References: <1409579287-11575-1-git-send-email-van.freenix@gmail.com> Message-ID: <20140917004444.GP25506@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Sep 01, 2014 at 09:48:07PM +0800, Peng Fan wrote: > There are two ways to run into handle_exception, run command 'kgdb' and > encounter a breakpoint which triggers exception handling. > > The origin source code only saves regs when first run command 'kgdb'. > Take the following for example, When run 'kgdb', regs is saved to entry_regs. > When run 'bootz', regs is not saved. However, if we set a breakpoint, then > continue. When breakpoint is reached, run `quit`, and Now return to the > instruction which follows kgdb, but not bootz.This may cause errors. So, > save regs for each handle_exception call to return to the correct place. > Example: > Target | Host > =>kgdb | (gdb)b bootz > | (gdb)c > =>bootz | > | (gdb)Here stop because of breakpoint > | (gdb)q > > Signed-off-by: Peng Fan Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: