diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-01-07 19:36:19 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-01-07 19:36:19 +0000 |
commit | 0963b4bd458eab010b3b19c9ffd8eb790f2cd06c (patch) | |
tree | 42dcaac763368854d136093c43a40333b751d391 /gdb/frv-tdep.c | |
parent | 87973e9f82d516acbf4f484ba56febe17a3b312d (diff) | |
download | fsf-binutils-gdb-0963b4bd458eab010b3b19c9ffd8eb790f2cd06c.zip fsf-binutils-gdb-0963b4bd458eab010b3b19c9ffd8eb790f2cd06c.tar.gz fsf-binutils-gdb-0963b4bd458eab010b3b19c9ffd8eb790f2cd06c.tar.bz2 |
2011-01-07 Michael Snyder <msnyder@vmware.com>
* ada-lang.c: Comment cleanup, mostly periods and spaces.
* ada-lang.h: Ditto.
* ada-tasks.c: Ditto.
* ada-valprint.c: Ditto.
* aix-threads.c: Ditto.
* alpha-linux-nat.c: Ditto.
* alpha-linux-tdep.c: Ditto.
* alpha-mdebug-tdep.c: Ditto.
* alpha-nat.c: Ditto.
* alpha-osf1-tdep.c: Ditto.
* alpha-tdep.c: Ditto.
* alphabsd-nat.c: Ditto.
* alphabsd-tdep.c: Ditto.
* amd64-darwin-tdep.c: Ditto.
* amd64-linux-nat.c: Ditto.
* amd64-linux-tdep.c: Ditto.
* amd64-sol2-tdep.c: Ditto.
* amd64-tdep.c: Ditto.
* amd64-fbsd-tdep.c: Ditto.
* amd64-nbsd-tdep.c: Ditto.
* amd64-obsd-tdep.c: Ditto.
* amd64-linux-nat.c: Ditto.
* amd64-linux-tdep.c: Ditto.
* arm-tdep.c: Ditto.
* arm-tdep.h: Ditto.
* armnbsd-nat.c: Ditto.
* avr-tdep.c: Ditto.
* bfin-tdep.c: Ditto.
* bsd-kvm.c: Ditto.
* c-typeprintc: Ditto.
* c-valprint.c: Ditto.
* coff-pe-read.h: Ditto.
* coffreead.c: Ditto.
* cris-tdep.c: Ditto.
* d-lang.c: Ditto.
* darwin-nat-info.c: Ditto.
* darwin-nat.c: Ditto.
* dbug-rom.c: Ditto.
* dbxread.c: Ditto.
* dcache.c: Ditto.
* dcache.h: Ditto.
* dec-thread.c: Ditto.
* defs.h: Ditto.
* demangle.c: Ditto.
* dicos-tdep.c: Ditto.
* dictionary.c: Ditto.
* dictionary.h: Ditto.
* dink32-rom.c: Ditto.
* disasm.c: Ditto.
* doublest.c: Ditto.
* dsrec.c: Ditto.
* dummy-frame.c: Ditto.
* dwarf2-frame.c: Ditto.
* dwarf2expr.c: Ditto.
* dwarf2loc.c: Ditto.
* dwarf2read.c: Ditto.
* elfread.c: Ditto.
* environ.c: Ditto.
* eval.c: Ditto.
* event-top.h: Ditto.
* exceptions.c: Ditto.
* exceptions.h: Ditto.
* exec.c: Ditto.
* expprint.c: Ditto.
* expression.h: Ditto.
* f-exp.y: Ditto.
* f-lang.c: Ditto.
* f-lang.h: Ditto.
* f-typeprint.c: Ditto.
* f-valprint.c: Ditto.
* fbsd-nat.c: Ditto.
* findvar.c: Ditto.
* fork-child.c: Ditto.
* frame.c: Ditto.
* frame.h: Ditto.
* frv-linux-tdep.c: Ditto.
* frv-tdep.c: Ditto.
* gcore.c: Ditto.
* gdb-stabs.h: Ditto.
* gdb_assert.h: Ditto.
* gdb_string.h: Ditto.
* gdb_thread_db.h: Ditto.
* gdb_wait.h: Ditto.
* gdbarch.sh: Ditto.
* gdbcore.h: Ditto.
* gdbthread.h: Ditto.
* gdbtypes.c: Ditto.
* gdbtypes.h: Ditto.
* gnu-nat.c: Ditto.
* gnu-nat.h: Ditto.
* gnu-v2-abi.c: Ditto.
* gnu-v3-abi.c: Ditto.
* go32-nat.c: Ditto.
* gdbarch.c: Regenerate.
* gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/frv-tdep.c')
-rw-r--r-- | gdb/frv-tdep.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c index 80d02d5..a5a9a0b 100644 --- a/gdb/frv-tdep.c +++ b/gdb/frv-tdep.c @@ -264,7 +264,8 @@ set_variant_abi_fdpic (struct gdbarch_tdep *var) { var->frv_abi = FRV_ABI_FDPIC; var->register_names[fdpic_loadmap_exec_regnum] = xstrdup ("loadmap_exec"); - var->register_names[fdpic_loadmap_interp_regnum] = xstrdup ("loadmap_interp"); + var->register_names[fdpic_loadmap_interp_regnum] + = xstrdup ("loadmap_interp"); } static void @@ -443,7 +444,7 @@ frv_adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr) /* Find the end of the previous packing sequence. This will be indicated by either attempting to access some inaccessible memory or by finding - an instruction word whose packing bit is set to one. */ + an instruction word whose packing bit is set to one. */ while (count-- > 0 && addr >= func_start) { char instr[frv_instr_size]; @@ -536,7 +537,7 @@ frv_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, the stack pointer to frame pointer: fp = sp + fp_offset. */ int fp_offset = 0; - /* Total size of frame prior to any alloca operations. */ + /* Total size of frame prior to any alloca operations. */ int framesize = 0; /* Flag indicating if lr has been saved on the stack. */ @@ -559,7 +560,7 @@ frv_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, /* The address of the most recently scanned prologue instruction. */ CORE_ADDR last_prologue_pc; - /* The address of the next instruction. */ + /* The address of the next instruction. */ CORE_ADDR next_pc; /* The upper bound to of the pc values to scan. */ @@ -954,7 +955,8 @@ frv_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, /* If LR was saved on the stack, record its location. */ if (lr_saved_on_stack) - info->saved_regs[lr_regnum].addr = this_base - fp_offset + lr_sp_offset; + info->saved_regs[lr_regnum].addr + = this_base - fp_offset + lr_sp_offset; /* The call instruction moves the caller's PC in the callee's LR. Since this is an unwind, do the reverse. Copy the location of LR @@ -1022,7 +1024,7 @@ frv_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) to the call instruction. Skip over this instruction if present. It won't be present in - non-PIC code, and even in PIC code, it might not be present. + non-PIC code, and even in PIC code, it might not be present. (This is due to the fact that GR15, the FDPIC register, already contains the correct value.) @@ -1122,13 +1124,15 @@ frv_extract_return_value (struct type *type, struct regcache *regcache, else if (len == 8) { ULONGEST regval; + regcache_cooked_read_unsigned (regcache, 8, ®val); store_unsigned_integer (valbuf, 4, byte_order, regval); regcache_cooked_read_unsigned (regcache, 9, ®val); store_unsigned_integer ((bfd_byte *) valbuf + 4, 4, byte_order, regval); } else - internal_error (__FILE__, __LINE__, _("Illegal return value length: %d"), len); + internal_error (__FILE__, __LINE__, + _("Illegal return value length: %d"), len); } static CORE_ADDR @@ -1220,7 +1224,7 @@ frv_push_dummy_call (struct gdbarch *gdbarch, struct value *function, if (stack_space > 0) sp -= stack_space; - /* Make sure stack is dword aligned. */ + /* Make sure stack is dword aligned. */ sp = align_down (sp, 8); stack_offset = 0; @@ -1284,7 +1288,8 @@ frv_push_dummy_call (struct gdbarch *gdbarch, struct value *function, { #if 0 printf(" Argnum %d data %x -> offset %d (%x)\n", - argnum, *((int *)val), stack_offset, (int) (sp + stack_offset)); + argnum, *((int *)val), stack_offset, + (int) (sp + stack_offset)); #endif write_memory (sp + stack_offset, val, partial_len); stack_offset += align_up (partial_len, 4); |