Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* how to continue from a breakpoint in GNU/Hurd
@ 2013-07-16 16:45 Yue Lu
  2013-07-16 17:29 ` Hui Zhu
  0 siblings, 1 reply; 10+ messages in thread
From: Yue Lu @ 2013-07-16 16:45 UTC (permalink / raw)
  To: gdb

Hi.

I am writing a debugger demo under GNU/Hurd when I study the gdb
source code. And I have met a big problem that when I set a breakpoint
in the inferior, my code can't resume inferior from it.

I can get the exception message from the mach kernel when the inferior
hit the breakpoint. As soon as I got the exception message, I removed
the int3, and set the EIP to the previous values, then post a signal
zero to the inferior by msg_sig_post_untraced_request(). at last I
called thread_resume() to resume it. But thing goes wrong, the
inferior is always stops at the breakpoint. and seems never to
continue.

I don't know how to fix this, could any of you give me a suggestion?
thanks very much.

--
Yue Lu (陆岳)


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <CAB8fV=i04n-eHTxP=7hWRkB7O1VJobvrMc5KSHOX0SkJ3vuqhQ@mail.gmail.com>]

end of thread, other threads:[~2013-07-18  9:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-16 16:45 how to continue from a breakpoint in GNU/Hurd Yue Lu
2013-07-16 17:29 ` Hui Zhu
     [not found] <CAB8fV=i04n-eHTxP=7hWRkB7O1VJobvrMc5KSHOX0SkJ3vuqhQ@mail.gmail.com>
2013-07-16 16:44 ` Luis Machado
2013-07-16 17:05   ` Yue Lu
2013-07-16 17:26     ` Luis Machado
     [not found]       ` <CAB8fV=jnOcYCGmQ_emcoE0ZYH6MjT3K3a1P8=svRR+nKSMD69A@mail.gmail.com>
2013-07-17 12:10         ` Richard Braun
2013-07-17 16:07           ` Yue Lu
2013-07-17 16:13             ` Richard Braun
2013-07-17 16:22               ` Yue Lu
2013-07-18  9:03                 ` Richard Braun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox