Unify read_initial_length implementations
authorTom Tromey <tom@tromey.com>
Sat, 8 Feb 2020 20:40:54 +0000 (13:40 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 8 Feb 2020 20:43:24 +0000 (13:43 -0700)
commit4075cb26687ec6bbd5bab31b6b33f692a3ed3108
tree5c02edc5438cc17f80cd73c0bff7c626e2567307
parent09ba997f323198495bcf6884dd402fa5b9cc8978
Unify read_initial_length implementations

There are two implementations of read_initial_length in gdb.  This
merges them and moves the resulting function to leb.c.

2020-02-08  Tom Tromey  <tom@tromey.com>

* dwarf2/read.c (read_initial_length): Move to leb.c.
* dwarf2/leb.h (read_initial_length): Declare.
* dwarf2/leb.c (read_initial_length): Move from read.c.  Add
handle_nonstd parameter.
* dwarf2/frame.c (read_initial_length): Remove.
(decode_frame_entry_1): Update.

Change-Id: I34d37bad0f8a584bfa781432cba25e05e1bd5750
gdb/ChangeLog
gdb/dwarf2/frame.c
gdb/dwarf2/leb.c
gdb/dwarf2/leb.h
gdb/dwarf2/read.c