Re: how to continue from a breakpoint in GNU/Hurd

2013-07-18 Thread Richard Braun
On Thu, Jul 18, 2013 at 12:22:07AM +0800, Yue Lu wrote: > On Thu, Jul 18, 2013 at 12:13 AM, Richard Braun wrote: > > On Thu, Jul 18, 2013 at 12:07:20AM +0800, Yue Lu wrote: > >> when I used thread_info() to check the suspend count, they are zero. > >> But I met a strange thing. > >> this is my cod

Re: how to continue from a breakpoint in GNU/Hurd

2013-07-17 Thread Yue Lu
On Thu, Jul 18, 2013 at 12:13 AM, Richard Braun wrote: > On Thu, Jul 18, 2013 at 12:07:20AM +0800, Yue Lu wrote: >> when I used thread_info() to check the suspend count, they are zero. >> But I met a strange thing. >> this is my code snippet: >> thread_basic_info_data_t _info; >> thread_basic_info

Re: how to continue from a breakpoint in GNU/Hurd

2013-07-17 Thread Richard Braun
On Thu, Jul 18, 2013 at 12:07:20AM +0800, Yue Lu wrote: > when I used thread_info() to check the suspend count, they are zero. > But I met a strange thing. > this is my code snippet: > thread_basic_info_data_t _info; > thread_basic_info_t info = &_info; > mach_msg_type_number_t info_len = THREAD_BA

Re: how to continue from a breakpoint in GNU/Hurd

2013-07-17 Thread Yue Lu
Hi. On Wed, Jul 17, 2013 at 8:09 PM, Richard Braun wrote: > 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 0

Re: how to continue from a breakpoint in GNU/Hurd

2013-07-17 Thread Richard Braun
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

Re: how to continue from a breakpoint in GNU/Hurd

2013-07-16 Thread Yue Lu
Hi, Sorry for the late reply. On Wed, Jul 17, 2013 at 1:25 AM, Luis Machado wrote: > Hi, > > > On 07/16/2013 02:04 PM, Yue Lu wrote: > >> Hi, >> >> thanks for you reply. >> >> On Wed, Jul 17, 2013 at 12:44 AM, Luis Machado >> >>> Some general thoughts... >>> >>> >>> Can you make sure the breakpo

Re: how to continue from a breakpoint in GNU/Hurd

2013-07-16 Thread Luis Machado
Hi, On 07/16/2013 02:04 PM, Yue Lu wrote: Hi, thanks for you reply. On Wed, Jul 17, 2013 at 12:44 AM, Luis Machado Some general thoughts... Can you make sure the breakpoint has been lifted from the instruction it replaced? If the breakpoint has been lifted and it is still being hit, then it

Re: how to continue from a breakpoint in GNU/Hurd

2013-07-16 Thread Yue Lu
Hi, thanks for you reply. On Wed, Jul 17, 2013 at 12:44 AM, Luis Machado wrote: > Hi, > > > On 07/16/2013 01:28 PM, Yue Lu wrote: >> >> 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 >> i

Re: how to continue from a breakpoint in GNU/Hurd

2013-07-16 Thread Luis Machado
Hi, On 07/16/2013 01:28 PM, Yue Lu wrote: 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 whe