diff options
author | Tom de Vries <tdevries@suse.de> | 2018-07-04 00:07:30 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2018-07-04 11:56:51 +0200 |
commit | 1ea5da02629b4bf9c4cea50aee189f94fa7d1a3b (patch) | |
tree | 33ef422b27b891d67e07c3a69d51fe0274c22bfe /COPYING3 | |
parent | f51e0e20bd303a9b366084ac719db10978402713 (diff) | |
download | gdb-1ea5da02629b4bf9c4cea50aee189f94fa7d1a3b.zip gdb-1ea5da02629b4bf9c4cea50aee189f94fa7d1a3b.tar.gz gdb-1ea5da02629b4bf9c4cea50aee189f94fa7d1a3b.tar.bz2 |
[gdb/symtab] Fix version check in dwarf compilation unit header
The version check of the dwarf compilation unit header in
error_check_comp_unit_head is done too late, and consequently dwarf code with
an unsupported version in the compilation unit header is interpreted as dwarf5
code in read_comp_unit_head.
Fixed by moving the check earlier.
Build and reg-tested on x86_64-linux.
2018-07-04 Tom de Vries <tdevries@suse.de>
* dwarf2read.c (error_check_comp_unit_head): Move dwarf version
check ...
(read_comp_unit_head): ... here.
* gdb.dwarf2/dw2-error.exp: Update expected error message.
Diffstat (limited to 'COPYING3')
0 files changed, 0 insertions, 0 deletions