diff options
Diffstat (limited to 'gdb/m68hc11-tdep.c')
-rw-r--r-- | gdb/m68hc11-tdep.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c index 7d5e553..005a01f 100644 --- a/gdb/m68hc11-tdep.c +++ b/gdb/m68hc11-tdep.c @@ -58,10 +58,10 @@ MSYMBOL_IS_RTC Tests the "RTC" bit in a minimal symbol. MSYMBOL_IS_RTI Tests the "RTC" bit in a minimal symbol. */ -#define MSYMBOL_SET_RTC(msym) \ +#define MSYMBOL_SET_RTC(msym) \ MSYMBOL_TARGET_FLAG_1 (msym) = 1 -#define MSYMBOL_SET_RTI(msym) \ +#define MSYMBOL_SET_RTI(msym) \ MSYMBOL_TARGET_FLAG_2 (msym) = 1 #define MSYMBOL_IS_RTC(msym) \ @@ -398,9 +398,8 @@ m68hc11_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, } -/* 68HC11 & 68HC12 prologue analysis. +/* 68HC11 & 68HC12 prologue analysis. */ - */ #define MAX_CODES 12 /* 68HC11 opcodes. */ @@ -673,8 +672,8 @@ m68hc11_scan_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, We limit the search to 128 bytes so that the algorithm is bounded in case of random and wrong code. We also stop and abort if we find an instruction which is not supposed to appear in the - prologue (as generated by gcc 2.95, 2.96). - */ + prologue (as generated by gcc 2.95, 2.96). */ + func_end = pc + 128; found_frame_point = 0; info->size = 0; @@ -767,7 +766,8 @@ m68hc11_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame) { ULONGEST pc; - pc = frame_unwind_register_unsigned (next_frame, gdbarch_pc_regnum (gdbarch)); + pc = frame_unwind_register_unsigned (next_frame, + gdbarch_pc_regnum (gdbarch)); return pc; } @@ -775,7 +775,7 @@ m68hc11_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame) the saved registers of frame described by FRAME_INFO. This includes special registers such as pc and fp saved in special ways in the stack frame. sp is even more special: the address we return - for it IS the sp for the next frame. */ + for it IS the sp for the next frame. */ static struct m68hc11_unwind_cache * m68hc11_frame_unwind_cache (struct frame_info *this_frame, @@ -851,7 +851,7 @@ m68hc11_frame_unwind_cache (struct frame_info *this_frame, } /* Add 1 here to adjust for the post-decrement nature of the push - instruction.*/ + instruction. */ info->prev_sp = prev_sp; info->base = this_base; @@ -1065,7 +1065,7 @@ m68hc11_print_register (struct gdbarch *gdbarch, struct ui_file *file, V = (l & M6811_V_BIT) != 0; C = (l & M6811_C_BIT) != 0; - /* Print flags following the h8300 */ + /* Print flags following the h8300. */ if ((C | Z) == 0) fprintf_filtered (file, "u> "); else if ((C | Z) == 1) @@ -1439,7 +1439,7 @@ m68hc11_gdbarch_init (struct gdbarch_info info, else elf_flags = 0; - /* try to find a pre-existing architecture */ + /* Try to find a pre-existing architecture. */ for (arches = gdbarch_list_lookup_by_info (arches, &info); arches != NULL; arches = gdbarch_list_lookup_by_info (arches->next, &info)) @@ -1450,7 +1450,7 @@ m68hc11_gdbarch_init (struct gdbarch_info info, return arches->gdbarch; } - /* Need a new architecture. Fill in a target specific vector. */ + /* Need a new architecture. Fill in a target specific vector. */ tdep = (struct gdbarch_tdep *) xmalloc (sizeof (struct gdbarch_tdep)); gdbarch = gdbarch_alloc (&info, tdep); tdep->elf_flags = elf_flags; @@ -1549,7 +1549,8 @@ m68hc11_gdbarch_init (struct gdbarch_info info, return gdbarch; } -extern initialize_file_ftype _initialize_m68hc11_tdep; /* -Wmissing-prototypes */ +/* -Wmissing-prototypes */ +extern initialize_file_ftype _initialize_m68hc11_tdep; void _initialize_m68hc11_tdep (void) |