2002-05-07 Michal Ludvig <mludvig@suse.cz>
* dwarf2cfi.c: Code cleanup, removed unused variables, added default labels to switch {} statements. * x86-64-tdep.c: Ditto. * x86-64-linux-nat.c: Ditto.
This commit is contained in:
parent
3e3f011f93
commit
4657573b80
4 changed files with 21 additions and 15 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2002-05-07 Michal Ludvig <mludvig@suse.cz>
|
||||||
|
|
||||||
|
* dwarf2cfi.c: Code cleanup, removed unused variables,
|
||||||
|
added default labels to switch {} statements.
|
||||||
|
* x86-64-tdep.c: Ditto.
|
||||||
|
* x86-64-linux-nat.c: Ditto.
|
||||||
|
|
||||||
2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
|
2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
|
||||||
|
|
||||||
* solib.h: Protect against multiple inclusion.
|
* solib.h: Protect against multiple inclusion.
|
||||||
|
|
|
@ -222,8 +222,6 @@ static CORE_ADDR read_encoded_pointer (bfd *abfd, char **p,
|
||||||
static LONGEST read_initial_length (bfd *abfd, char *buf, int *bytes_read);
|
static LONGEST read_initial_length (bfd *abfd, char *buf, int *bytes_read);
|
||||||
static ULONGEST read_length (bfd *abfd, char *buf, int *bytes_read,
|
static ULONGEST read_length (bfd *abfd, char *buf, int *bytes_read,
|
||||||
int dwarf64);
|
int dwarf64);
|
||||||
static ULONGEST read_address (bfd *abfd, char **p);
|
|
||||||
|
|
||||||
|
|
||||||
static int is_cie (ULONGEST cie_id, int dwarf64);
|
static int is_cie (ULONGEST cie_id, int dwarf64);
|
||||||
static int compare_fde_unit (const void *a, const void *b);
|
static int compare_fde_unit (const void *a, const void *b);
|
||||||
|
@ -280,7 +278,7 @@ static struct context *
|
||||||
context_alloc ()
|
context_alloc ()
|
||||||
{
|
{
|
||||||
struct context *context;
|
struct context *context;
|
||||||
struct context_reg *reg;
|
|
||||||
int regs_size = sizeof (struct context_reg) * NUM_REGS;
|
int regs_size = sizeof (struct context_reg) * NUM_REGS;
|
||||||
|
|
||||||
context = (struct context *) obstack_alloc (&unwind_tmp_obstack,
|
context = (struct context *) obstack_alloc (&unwind_tmp_obstack,
|
||||||
|
@ -297,7 +295,7 @@ static struct frame_state *
|
||||||
frame_state_alloc ()
|
frame_state_alloc ()
|
||||||
{
|
{
|
||||||
struct frame_state *fs;
|
struct frame_state *fs;
|
||||||
struct frame_state_reg *reg;
|
|
||||||
int regs_size = sizeof (struct frame_state_reg) * NUM_REGS;
|
int regs_size = sizeof (struct frame_state_reg) * NUM_REGS;
|
||||||
|
|
||||||
fs = (struct frame_state *) obstack_alloc (&unwind_tmp_obstack,
|
fs = (struct frame_state *) obstack_alloc (&unwind_tmp_obstack,
|
||||||
|
@ -319,7 +317,6 @@ unwind_tmp_obstack_free ()
|
||||||
static void
|
static void
|
||||||
context_cpy (struct context *dst, struct context *src)
|
context_cpy (struct context *dst, struct context *src)
|
||||||
{
|
{
|
||||||
struct context_reg *reg = dst->reg;
|
|
||||||
int regs_size = sizeof (struct context_reg) * NUM_REGS;
|
int regs_size = sizeof (struct context_reg) * NUM_REGS;
|
||||||
|
|
||||||
*dst = *src;
|
*dst = *src;
|
||||||
|
@ -586,7 +583,6 @@ execute_cfa_program ( struct objfile *objfile, char *insn_ptr, char *insn_end,
|
||||||
unsigned char insn = *insn_ptr++;
|
unsigned char insn = *insn_ptr++;
|
||||||
ULONGEST reg, uoffset;
|
ULONGEST reg, uoffset;
|
||||||
LONGEST offset;
|
LONGEST offset;
|
||||||
int bytes_read;
|
|
||||||
|
|
||||||
if (insn & DW_CFA_advance_loc)
|
if (insn & DW_CFA_advance_loc)
|
||||||
fs->pc += (insn & 0x3f) * fs->code_align;
|
fs->pc += (insn & 0x3f) * fs->code_align;
|
||||||
|
@ -788,7 +784,6 @@ frame_state_for (struct context *context, struct frame_state *fs)
|
||||||
{
|
{
|
||||||
struct fde_unit *fde;
|
struct fde_unit *fde;
|
||||||
struct cie_unit *cie;
|
struct cie_unit *cie;
|
||||||
unsigned char *aug, *insn, *end;
|
|
||||||
|
|
||||||
context->args_size = 0;
|
context->args_size = 0;
|
||||||
context->lsda = 0;
|
context->lsda = 0;
|
||||||
|
@ -1109,6 +1104,8 @@ execute_stack_op (struct objfile *objfile,
|
||||||
case DW_OP_plus_uconst:
|
case DW_OP_plus_uconst:
|
||||||
result += read_uleb128 (objfile->obfd, &op_ptr);
|
result += read_uleb128 (objfile->obfd, &op_ptr);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1186,6 +1183,8 @@ execute_stack_op (struct objfile *objfile,
|
||||||
case DW_OP_ne:
|
case DW_OP_ne:
|
||||||
result = (LONGEST) first != (LONGEST) second;
|
result = (LONGEST) first != (LONGEST) second;
|
||||||
break;
|
break;
|
||||||
|
default: /* This label is here just to avoid warning. */
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -1255,6 +1254,8 @@ update_context (struct context *context, struct frame_state *fs, int chain)
|
||||||
exp + len, context, 0);
|
exp + len, context, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
context->cfa = cfa;
|
context->cfa = cfa;
|
||||||
|
|
||||||
|
@ -1346,7 +1347,7 @@ compare_fde_unit (const void *a, const void *b)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Build the cie_chunks and fde_chunks tables from informations
|
/* Build the cie_chunks and fde_chunks tables from informations
|
||||||
in .debug.frame section. */
|
in .debug_frame section. */
|
||||||
void
|
void
|
||||||
dwarf2_build_frame_info (struct objfile *objfile)
|
dwarf2_build_frame_info (struct objfile *objfile)
|
||||||
{
|
{
|
||||||
|
|
|
@ -406,12 +406,6 @@ static struct core_fns linux_elf_core_fns = {
|
||||||
#define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
|
#define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Record the value of the debug control register. */
|
|
||||||
static long debug_control_mirror;
|
|
||||||
|
|
||||||
/* Record which address associates with which register. */
|
|
||||||
static CORE_ADDR address_lookup[DR_LASTADDR - DR_FIRSTADDR + 1];
|
|
||||||
|
|
||||||
/* Return the address of register REGNUM. BLOCKEND is the value of
|
/* Return the address of register REGNUM. BLOCKEND is the value of
|
||||||
u.u_ar0, which should point to the registers. */
|
u.u_ar0, which should point to the registers. */
|
||||||
CORE_ADDR
|
CORE_ADDR
|
||||||
|
|
|
@ -195,7 +195,7 @@ x86_64_register_convert_to_virtual (int regnum, struct type *type,
|
||||||
char *from, char *to)
|
char *from, char *to)
|
||||||
{
|
{
|
||||||
char buf[12];
|
char buf[12];
|
||||||
DOUBLEST d;
|
|
||||||
/* We only support floating-point values. */
|
/* We only support floating-point values. */
|
||||||
if (TYPE_CODE (type) != TYPE_CODE_FLT)
|
if (TYPE_CODE (type) != TYPE_CODE_FLT)
|
||||||
{
|
{
|
||||||
|
@ -426,6 +426,8 @@ classify_argument (struct type *type,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
/* Final merger cleanup. */
|
/* Final merger cleanup. */
|
||||||
for (i = 0; i < words; i++)
|
for (i = 0; i < words; i++)
|
||||||
|
@ -488,6 +490,8 @@ classify_argument (struct type *type,
|
||||||
}
|
}
|
||||||
case TYPE_CODE_VOID:
|
case TYPE_CODE_VOID:
|
||||||
return 0;
|
return 0;
|
||||||
|
default: /* Avoid warning. */
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
internal_error (__FILE__, __LINE__,
|
internal_error (__FILE__, __LINE__,
|
||||||
"classify_argument: unknown argument type");
|
"classify_argument: unknown argument type");
|
||||||
|
|
Loading…
Add table
Reference in a new issue