On 01/07/15 10:01, Prafull Suryawanshi wrote:
> Hi,
>
> Anyone can point me what function of KGDB code gets called when
> hardware watchpoint or breakpoint hits.
> I earlier asked question about aarch64 hardware watchpoint but I think
> this is proper question.

You mean how does the arm64 specific trap handling code actually enter 
kgdb? It calls kgdb_handle_exception.

For software breakpoint and single step exceptions the code in 
arch/arm64/kernel/debug-monitors.c calls into kgdb from hooks registered 
using register_step_hook() and register_break_hook().

Hardware breakpoints and watchpoint are handled by 
arch/arm64/kernel/hw_breakpoint.c . You have extended this code?


> I have implemented support for aarch64 and can see one CPU halt on the
> code where watchpoint being getting written.

If you have not entered kgdb by calling kgdb_handle_exception() I think 
this is expected. When kgdb enters it will automatically generate IPIs 
to get the other CPUs to halt.


Daniel.


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Kgdb-bugreport mailing list
Kgdb-bugreport@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to