This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: how to continue from a breakpoint in GNU/Hurd
- From: Richard Braun <rbraun at sceen dot net>
- To: Yue Lu <hacklu dot newborn at gmail dot com>
- Cc: Luis Machado <lgustavo at codesourcery dot com>, gdb at sourceware dot org, bug-hurd at gnu dot org, Thomas Schwinge <thomas at codesourcery dot com>
- Date: Wed, 17 Jul 2013 14:09:58 +0200
- Subject: Re: how to continue from a breakpoint in GNU/Hurd
- References: <CAB8fV=i04n-eHTxP=7hWRkB7O1VJobvrMc5KSHOX0SkJ3vuqhQ at mail dot gmail dot com> <51E5785D dot 1050904 at codesourcery dot com> <CAB8fV=iuUFiNtoU-Trw_GnujMW1REMj2=ZciR=36RDJx1+8wSQ at mail dot gmail dot com> <51E58223 dot 5040505 at codesourcery dot com> <CAB8fV=jnOcYCGmQ_emcoE0ZYH6MjT3K3a1P8=svRR+nKSMD69A at mail dot gmail dot com>
On Wed, Jul 17, 2013 at 02:11:58PM +0800, Yue Lu wrote:
> When I get the exception message, I set the EIP to the next instruction
> (for instance 0x12345678), after resume it, I call get_thread_state(), and
> found the EIP is still 0x12345678. The inferior never running anymore.
I don't think it has anything to do with the instruction cache. Use the
thread_info() call to determine what the suspend count is, it may have
been incremented implicitely.
--
Richard Braun