| Index: gdb/microblaze-tdep.c
|
| diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c
|
| index d9f54ac7dbf52195e1b51e9d0f77b2680e5f6228..ca592133e7f5c34a73f405053ae5229ce0204419 100644
|
| --- a/gdb/microblaze-tdep.c
|
| +++ b/gdb/microblaze-tdep.c
|
| @@ -81,7 +81,7 @@ static const char *microblaze_register_names[] =
|
|
|
| static int microblaze_debug_flag = 0;
|
|
|
| -void
|
| +static void
|
| microblaze_debug (const char *fmt, ...)
|
| {
|
| if (microblaze_debug_flag)
|
| @@ -120,7 +120,7 @@ microblaze_register_type (struct gdbarch *gdbarch, int regnum)
|
|
|
| /* Fetch the instruction at PC. */
|
|
|
| -unsigned long
|
| +static unsigned long
|
| microblaze_fetch_instruction (CORE_ADDR pc)
|
| {
|
| enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch);
|
| @@ -173,7 +173,6 @@ static struct microblaze_frame_cache *
|
| microblaze_alloc_frame_cache (void)
|
| {
|
| struct microblaze_frame_cache *cache;
|
| - int i;
|
|
|
| cache = FRAME_OBSTACK_ZALLOC (struct microblaze_frame_cache);
|
|
|
| @@ -228,10 +227,10 @@ microblaze_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc,
|
| CORE_ADDR current_pc,
|
| struct microblaze_frame_cache *cache)
|
| {
|
| - char *name;
|
| + const char *name;
|
| CORE_ADDR func_addr, func_end, addr, stop, prologue_end_addr = 0;
|
| unsigned long insn;
|
| - int rn, rd, ra, rb, imm;
|
| + int rd, ra, rb, imm;
|
| enum microblaze_instr op;
|
| int flags = 0;
|
| int save_hidden_pointer_found = 0;
|
| @@ -426,7 +425,7 @@ microblaze_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame)
|
| /* Return PC of first real instruction of the function starting at
|
| START_PC. */
|
|
|
| -CORE_ADDR
|
| +static CORE_ADDR
|
| microblaze_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc)
|
| {
|
| struct symtab_and_line sal;
|
| @@ -456,12 +455,12 @@ microblaze_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc)
|
|
|
| /* Normal frames. */
|
|
|
| -struct microblaze_frame_cache *
|
| +static struct microblaze_frame_cache *
|
| microblaze_frame_cache (struct frame_info *next_frame, void **this_cache)
|
| {
|
| struct microblaze_frame_cache *cache;
|
| struct gdbarch *gdbarch = get_frame_arch (next_frame);
|
| - CORE_ADDR func, pc, fp;
|
| + CORE_ADDR func;
|
| int rn;
|
|
|
| if (*this_cache)
|
| @@ -562,6 +561,7 @@ microblaze_extract_return_value (struct type *type, struct regcache *regcache,
|
| memcpy(valbuf, buf + MICROBLAZE_REGISTER_SIZE - 1, 1);
|
| return;
|
| case 2: /* return last 2 bytes in register. */
|
| + regcache_cooked_read (regcache, MICROBLAZE_RETVAL_REGNUM, buf);
|
| memcpy(valbuf, buf + MICROBLAZE_REGISTER_SIZE - 2, 2);
|
| return;
|
| case 4: /* for sizes 4 or 8, copy the required length. */
|
| @@ -611,7 +611,7 @@ microblaze_store_return_value (struct type *type, struct regcache *regcache,
|
| }
|
|
|
| static enum return_value_convention
|
| -microblaze_return_value (struct gdbarch *gdbarch, struct type *func_type,
|
| +microblaze_return_value (struct gdbarch *gdbarch, struct value *function,
|
| struct type *type, struct regcache *regcache,
|
| gdb_byte *readbuf, const gdb_byte *writebuf)
|
| {
|
|
|