aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-05-07 15:18:38 +0000
committerTom Tromey <tromey@redhat.com>2012-05-07 15:18:38 +0000
commitf39c6ffde753509963229ab018b461be2600dd2a (patch)
treefb2f60efaa19326349e1cd156acb3b051d3b7c7e /gdb/dwarf2loc.c
parenta19c41a7dca12421143a3e7b8cb2dfed2bd8c48d (diff)
downloadgdb-f39c6ffde753509963229ab018b461be2600dd2a.zip
gdb-f39c6ffde753509963229ab018b461be2600dd2a.tar.gz
gdb-f39c6ffde753509963229ab018b461be2600dd2a.tar.bz2
* 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.
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r--gdb/dwarf2loc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index caef546..a536bbb 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -2331,7 +2331,7 @@ dwarf2_loc_desc_needs_frame (const gdb_byte *data, unsigned short size,
static void
unimplemented (unsigned int op)
{
- const char *name = dwarf_stack_op_name (op);
+ const char *name = get_DW_OP_name (op);
if (name)
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);
break;
default:
- /* Note that dwarf_stack_op_name will never return
+ /* Note that get_DW_OP_name will never return
NULL here. */
error (_("Unsupported size %d in %s"),
- size, dwarf_stack_op_name (op));
+ size, get_DW_OP_name (op));
}
}
break;
@@ -3299,7 +3299,7 @@ disassemble_dwarf_expression (struct ui_file *stream,
LONGEST l;
const char *name;
- name = dwarf_stack_op_name (op);
+ name = get_DW_OP_name (op);
if (!name)
error (_("Unrecognized DWARF opcode 0x%02x at %ld"),