mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
* dwarf2read.c (dwarf_tag_name): Return const char *. Use
get_DW_TAG_name. (dwarf_attr_name): Return const char *. Use get_DW_AT_name. (dwarf_form_name): Return const char *. Use get_DW_FORM_name. (dwarf_stack_op_name): Remove. (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name. (decode_locdesc): Use get_DW_OP_name. * dwarf2loc.c (unimplemented): Use get_DW_OP_name. (dwarf2_compile_expr_to_ax): Likewise. (disassemble_dwarf_expression): Likewise. * dwarf2expr.h: (dwarf_stack_op_name): Remove.
This commit is contained in:
@ -1,3 +1,17 @@
|
|||||||
|
2012-05-07 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (dwarf_tag_name): Return const char *. Use
|
||||||
|
get_DW_TAG_name.
|
||||||
|
(dwarf_attr_name): Return const char *. Use get_DW_AT_name.
|
||||||
|
(dwarf_form_name): Return const char *. Use get_DW_FORM_name.
|
||||||
|
(dwarf_stack_op_name): Remove.
|
||||||
|
(dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
|
||||||
|
(decode_locdesc): Use get_DW_OP_name.
|
||||||
|
* dwarf2loc.c (unimplemented): Use get_DW_OP_name.
|
||||||
|
(dwarf2_compile_expr_to_ax): Likewise.
|
||||||
|
(disassemble_dwarf_expression): Likewise.
|
||||||
|
* dwarf2expr.h: (dwarf_stack_op_name): Remove.
|
||||||
|
|
||||||
2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
|
2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
|
||||||
|
|
||||||
* sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
|
* sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
|
||||||
|
@ -279,8 +279,6 @@ const gdb_byte *read_uleb128 (const gdb_byte *buf, const gdb_byte *buf_end,
|
|||||||
const gdb_byte *read_sleb128 (const gdb_byte *buf, const gdb_byte *buf_end,
|
const gdb_byte *read_sleb128 (const gdb_byte *buf, const gdb_byte *buf_end,
|
||||||
LONGEST * r);
|
LONGEST * r);
|
||||||
|
|
||||||
const char *dwarf_stack_op_name (unsigned int);
|
|
||||||
|
|
||||||
void dwarf_expr_require_composition (const gdb_byte *, const gdb_byte *,
|
void dwarf_expr_require_composition (const gdb_byte *, const gdb_byte *,
|
||||||
const char *);
|
const char *);
|
||||||
|
|
||||||
|
@ -2331,7 +2331,7 @@ dwarf2_loc_desc_needs_frame (const gdb_byte *data, unsigned short size,
|
|||||||
static void
|
static void
|
||||||
unimplemented (unsigned int op)
|
unimplemented (unsigned int op)
|
||||||
{
|
{
|
||||||
const char *name = dwarf_stack_op_name (op);
|
const char *name = get_DW_OP_name (op);
|
||||||
|
|
||||||
if (name)
|
if (name)
|
||||||
error (_("DWARF operator %s cannot be translated to an agent expression"),
|
error (_("DWARF operator %s cannot be translated to an agent expression"),
|
||||||
@ -2777,10 +2777,10 @@ dwarf2_compile_expr_to_ax (struct agent_expr *expr, struct axs_value *loc,
|
|||||||
ax_simple (expr, aop_ref64);
|
ax_simple (expr, aop_ref64);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* Note that dwarf_stack_op_name will never return
|
/* Note that get_DW_OP_name will never return
|
||||||
NULL here. */
|
NULL here. */
|
||||||
error (_("Unsupported size %d in %s"),
|
error (_("Unsupported size %d in %s"),
|
||||||
size, dwarf_stack_op_name (op));
|
size, get_DW_OP_name (op));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -3299,7 +3299,7 @@ disassemble_dwarf_expression (struct ui_file *stream,
|
|||||||
LONGEST l;
|
LONGEST l;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
name = dwarf_stack_op_name (op);
|
name = get_DW_OP_name (op);
|
||||||
|
|
||||||
if (!name)
|
if (!name)
|
||||||
error (_("Unrecognized DWARF opcode 0x%02x at %ld"),
|
error (_("Unrecognized DWARF opcode 0x%02x at %ld"),
|
||||||
|
1016
gdb/dwarf2read.c
1016
gdb/dwarf2read.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user