diff options
author | Tom Tromey <tromey@redhat.com> | 2012-05-07 15:18:35 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-05-07 15:18:35 +0000 |
commit | 198d53a07e02ded87505d5576ee877b517504873 (patch) | |
tree | 50d45db3217b7caff1e036df71bbf5b641fd7b21 /gdb/dwarf2loc.c | |
parent | 4f3a11e615ccc4f86b014975d2e5263f371b6aba (diff) | |
download | gdb-198d53a07e02ded87505d5576ee877b517504873.tar.gz |
* 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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index caef54634c0..a536bbb9dfe 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"), |