static LONGEST read_initial_length (bfd *abfd, char *buf, int *bytes_read);
static ULONGEST read_length (bfd *abfd, char *buf, int *bytes_read,
int dwarf64);
-static ULONGEST read_address (bfd *abfd, char **p);
-
static int is_cie (ULONGEST cie_id, int dwarf64);
static int compare_fde_unit (const void *a, const void *b);
context_alloc ()
{
struct context *context;
- struct context_reg *reg;
+
int regs_size = sizeof (struct context_reg) * NUM_REGS;
context = (struct context *) obstack_alloc (&unwind_tmp_obstack,
frame_state_alloc ()
{
struct frame_state *fs;
- struct frame_state_reg *reg;
+
int regs_size = sizeof (struct frame_state_reg) * NUM_REGS;
fs = (struct frame_state *) obstack_alloc (&unwind_tmp_obstack,
static void
context_cpy (struct context *dst, struct context *src)
{
- struct context_reg *reg = dst->reg;
int regs_size = sizeof (struct context_reg) * NUM_REGS;
*dst = *src;
unsigned char insn = *insn_ptr++;
ULONGEST reg, uoffset;
LONGEST offset;
- int bytes_read;
if (insn & DW_CFA_advance_loc)
fs->pc += (insn & 0x3f) * fs->code_align;
{
struct fde_unit *fde;
struct cie_unit *cie;
- unsigned char *aug, *insn, *end;
context->args_size = 0;
context->lsda = 0;
case DW_OP_plus_uconst:
result += read_uleb128 (objfile->obfd, &op_ptr);
break;
+ default:
+ break;
}
break;
case DW_OP_ne:
result = (LONGEST) first != (LONGEST) second;
break;
+ default: /* This label is here just to avoid warning. */
+ break;
}
}
break;
exp + len, context, 0);
break;
}
+ default:
+ break;
}
context->cfa = cfa;
}
/* Build the cie_chunks and fde_chunks tables from informations
- in .debug.frame section. */
+ in .debug_frame section. */
void
dwarf2_build_frame_info (struct objfile *objfile)
{
return cfa;
}
-/* Store the frame address. */
+/* Store the frame address. This function is not used. */
+
void
cfi_write_fp (CORE_ADDR val)
{