This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Why gdb/gdbserver handler breakpoint on gdb client side (ARM)?
- From: Fei Ding <fdingiit at gmail dot com>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Thu, 25 Jun 2015 09:22:43 +0800
- Subject: Why gdb/gdbserver handler breakpoint on gdb client side (ARM)?
- Authentication-results: sourceware.org; auth=none
Hi.
Recently I am working on debugging a bug of gdb/gdbserver when setting
breakpoints on ARM devices. I found that, gdb-client nearly do nothing
about it when we use gdb/gdbserver on x86 platform, gdbserver do the
dirty work in fact, including generate INT 3 instruction, read, save,
and write memory, etc... But for ARM, this work is done on the
gdb-client side, which is opposed to x86 case. Anyone know why? Or any
thoughts?
Thanks.