This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [1/3 patch, nios2] clean up prologue/epilogue detection code, v2
- From: Yao Qi <yao at codesourcery dot com>
- To: Sandra Loosemore <sandra at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Tue, 25 Nov 2014 10:50:30 +0800
- Subject: Re: [1/3 patch, nios2] clean up prologue/epilogue detection code, v2
- Authentication-results: sourceware.org; auth=none
- References: <545EA0C1 dot 6050104 at codesourcery dot com> <87bnoeif74 dot fsf at codesourcery dot com> <5473C4BA dot 2050903 at codesourcery dot com> <5473C72B dot 4000801 at codesourcery dot com>
Sandra Loosemore <sandra@codesourcery.com> writes:
> This part of the revised Nios II prologue/epilogue refactoring patch
> set includes only the parts that introduce new helper functions to
> match and disassemble instructions. OK to commit, this time?
>
> -Sandra
>
> 2014-11-24 Sandra Loosemore <sandra@codesourcery.com>
>
> gdb/
> * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
> the instruction as well as reading it from memory.
> (nios2_match_add): New.
> (nios2_match_sub): New.
> (nios2_match_addi): New.
> (nios2_match_orhi): New.
> (nios2_match_stw): New.
> (nios2_match_ldw): New.
> (nios2_match_rdctl): New.
> (enum branch_condition): New.
> (nios2_match_branch): New.
> (nios2_match_jmpi): New.
> (nios2_match_calli): New.
> (nios2_match_jmpr): New.
> (nios2_match_callr): New.
> (nios2_match_break): New.
> (nios2_match_trap): New.
> (nios2_in_epilogue_p): Rewrite to use new functions.
> (nios2_analyze_prologue): Likewise.
> (nios2_skip_prologue): Delete unused local limit_pc.
> (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
> (nios2_get_next_pc): Rewrite to use new functions.
This is OK.
--
Yao (éå)