This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 1/3, nios2] revert to using "trap 31" for breakpoints
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Sandra Loosemore <sandra at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Tue, 28 Apr 2015 12:07:51 +0100
- Subject: Re: [patch 1/3, nios2] revert to using "trap 31" for breakpoints
- Authentication-results: sourceware.org; auth=none
- References: <55393E8C dot 8090804 at codesourcery dot com> <55393F7F dot 40004 at codesourcery dot com>
Sandra Loosemore <sandra@codesourcery.com> writes:
> -/* Implement the breakpoint_from_pc gdbarch hook. */
> +/* Implement the breakpoint_from_pc gdbarch hook.
> + Note that the Nios II ABI for Linux requires "trap 31"
> + as the breakpoint, and we use that consistently on all targets. */
Please quote the original statement from NIOS 2 ABI,
"Userspace programs should not use the break instruction and userspace
debuggers should not insert one."
and
"Userspace breakpoints are accomplished using the trap instruction with
immediate operand 31 (all ones)."
OK with this change.
--
Yao (éå)