This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc, spu] Don't call set_gdbarch_cannot_step_breakpoint in spu_gdbarch_init
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: palves at redhat dot com (Pedro Alves)
- Cc: peterschauer at gmx dot net (Peter Schauer), qiyaoltc at gmail dot com (Yao Qi), gdb-patches at sourceware dot org
- Date: Tue, 7 Apr 2015 14:45:41 +0200 (CEST)
- Subject: Re: [rfc, spu] Don't call set_gdbarch_cannot_step_breakpoint in spu_gdbarch_init
- Authentication-results: sourceware.org; auth=none
Pedro Alves wrote:
> Ulrich, any idea why cannot_step_breakpoint was ever needed
> for the SPU?
It's been set since spu-tdep.c was committed upstream, and in
fact it's set in every single version in our internal repositories
of the code before it went upstream, too. (Going back over 10 years.)
But I don't know why it was added either, since SPU has been using
software single-step forever too, and even the very first version of
GDB we patched to support SPU would ignore cannot_step_breakpoint
for software single-step architectures ...
So I'd say just go ahead and remove it.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com