Refactor Nios II GDB support to use helper functions for disassembly and
instruction matching. 2014-11-25 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 commit is contained in:
parent
a20605cf85
commit
d53c26c753
@ -1,3 +1,28 @@
|
||||
2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
|
||||
|
864
gdb/nios2-tdep.c
864
gdb/nios2-tdep.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user