summaryrefslogtreecommitdiff
path: root/binutils/dwarf.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-03-25 13:16:41 +0000
committerNick Clifton <nickc@redhat.com>2013-03-25 13:16:41 +0000
commit3cae5912e08e79e7ed406817ace5ff6c1bd73c92 (patch)
treeede9e9cc442fadb8f4f02a8afa8f8cbf24653552 /binutils/dwarf.h
parenta80c9da92d3de972749dd7e4c61505cee91382ba (diff)
downloadbinutils-redhat-3cae5912e08e79e7ed406817ace5ff6c1bd73c92.tar.gz
PR binutils/15202
* dwarf.c (read_leb128): Add END parameter. Do not read at or beyond end. (read_sleb128): Add END parameter. (read_uleb128): New function. (process_extended_line_op): Pass END to leb128 functions. (process_abbrev_section): Likewise. (decode_location_expression): Likewise. (read_and_display_attr_value): Likewise. (read_and_display_attr): Likewise. (process_debug_info): Likewise. (display_debug_lines_raw): Likewise. (display_debug_lines_decoded): Likewise. (display_debug_macinfo): Likewise. (get_line_filename_and_dirname): Likewise. (display_debug_macro): Likewise. (display_loc_list_dwo): Likewise. (display_debug_ranges): Likewise. * dwarf.h (read_leb128): Update prototype. * readelf.c (read_uleb128): Add END parameter. (decode_arm_unwind_bytecode): Pass END to read_uleb128. (decode_tic6x_unwind_bytecode): Likewise. (display_tag_value): New function. (display_arm_attribute): Add END parameter. Pass END to read_uleb128. Use display_tag_value. (display_gnu_attribute): Likewise. (display_power_gnu_attribute): Likewise. (display_sparc_gnu_attribute): Likewise. (display_mips_gnu_attribute): Likewise. (display_tic6x_attribute): Likewise. (process_attributes): Likewise. (display_raw_attribute): New function.
Diffstat (limited to 'binutils/dwarf.h')
-rw-r--r--binutils/dwarf.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/binutils/dwarf.h b/binutils/dwarf.h
index 2d00b83990..68e93f1ccd 100644
--- a/binutils/dwarf.h
+++ b/binutils/dwarf.h
@@ -1,6 +1,5 @@
/* dwarf.h - DWARF support header file
- Copyright 2005, 2007, 2008, 2009, 2010, 2011
- Free Software Foundation, Inc.
+ Copyright 2005-2013 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -248,4 +247,4 @@ void * cmalloc (size_t, size_t);
void * xcmalloc (size_t, size_t);
void * xcrealloc (void *, size_t, size_t);
-dwarf_vma read_leb128 (unsigned char *, unsigned int *, int);
+extern dwarf_vma read_leb128 (unsigned char *, unsigned int *, bfd_boolean, const unsigned char * const);