This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 sounds like there is some kind of instruction cache problem going on,
where we first need to flush the icache before resuming execution.

If the icache is the problem, then it sounds like something the kernel
itself needs to address.

Luis

I don't know how to flush the icache off-hand, so I used anther way to
bypass this issue. I set the eip to the next instruction's address to
bypass the breakpoint ins. But problem seems doesn't go away.

I don't think the cache invalidation is something the debugger should do. Sounds like something the kernel would do.

When you set the EIP to some other instruction (not the breakpoint one), what do you see when you instruction-step? What does the EIP show after that?

Luis


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]