From 9e49c592538bebf4d4e233edcee1e0ef8cec3065 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 9 Sep 2010 10:18:11 +0000 Subject: * dwarf.h (debug_info): Add offset_info and dwarf_version fields. * dwarf.c (decode_location_expression): Add offset_size and dwarf_version arguments. Prefix DIE offset with 0x for DW_OP_call{2,4,_ref}. Fix up DW_OP_call_ref operand size, complain if in frame info section. Handle DW_OP_GNU_implicit_pointer. (read_and_display_attr_value, display_debug_loc, display_debug_frames): Adjust decode_location_expression callers. (process_debug_info): Save offset_size and dwarf_version values into debug_information array. * dwarf2.h (DW_OP_GNU_implicit_pointer): New. --- binutils/dwarf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'binutils/dwarf.h') diff --git a/binutils/dwarf.h b/binutils/dwarf.h index a9b501f3e7..df90ae0c33 100644 --- a/binutils/dwarf.h +++ b/binutils/dwarf.h @@ -1,5 +1,5 @@ /* dwarf.h - DWARF support header file - Copyright 2005, 2007, 2008, 2009 + Copyright 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -84,6 +84,8 @@ extern struct dwarf_section_display debug_displays []; typedef struct { unsigned int pointer_size; + unsigned int offset_size; + int dwarf_version; unsigned long cu_offset; unsigned long base_address; /* This is an array of offsets to the location list table. */ -- cgit v1.2.1