diff options
author | Tom Tromey <tom@tromey.com> | 2020-02-08 13:40:54 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-02-08 13:40:54 -0700 |
commit | f4382c45a4de31b654c063d1ae70d932bde1c2f2 (patch) | |
tree | 914254afcd1620342bac6ac4f5603a635a946f35 /gdb/dwarf2read.h | |
parent | 01840b7a09722330ff36038001ea72dd7525c67e (diff) | |
download | gdb-f4382c45a4de31b654c063d1ae70d932bde1c2f2.zip gdb-f4382c45a4de31b654c063d1ae70d932bde1c2f2.tar.gz gdb-f4382c45a4de31b654c063d1ae70d932bde1c2f2.tar.bz2 |
Create dwarf2/leb.[ch]
This moves some scalar-unpacking code into a couple of new files,
dwarf2/leb.h and dwarf2/leb.c.
gdb/ChangeLog
2020-02-08 Tom Tromey <tom@tromey.com>
* dwarf2read.h (read_unsigned_leb128): Don't declare.
* dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
(read_2_signed_bytes, read_3_bytes, read_4_bytes)
(read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
(read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
* dwarf2/leb.h: New file, from dwarf2read.c.
* dwarf2/leb.c: New file, from dwarf2read.c.
* dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
Remove.
* Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
(COMMON_SFILES): Add dwarf2/leb.c.
Change-Id: Idd19647686c8f959d226a95fdfca4db47c6e96d0
Diffstat (limited to 'gdb/dwarf2read.h')
-rw-r--r-- | gdb/dwarf2read.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/dwarf2read.h b/gdb/dwarf2read.h index 3f9731f..5aa9421 100644 --- a/gdb/dwarf2read.h +++ b/gdb/dwarf2read.h @@ -463,8 +463,6 @@ struct signatured_type struct dwo_unit *dwo_unit; }; -ULONGEST read_unsigned_leb128 (bfd *, const gdb_byte *, unsigned int *); - /* This represents a '.dwz' file. */ struct dwz_file |