Commit 1ea5da0
committed
[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.1 parent f51e0e2 commit 1ea5da0
File tree
4 files changed
+15
-6
lines changed- gdb
- testsuite
- gdb.dwarf2
4 files changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 | | |
2 | 8 | | |
3 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6308 | 6308 | | |
6309 | 6309 | | |
6310 | 6310 | | |
| 6311 | + | |
| 6312 | + | |
| 6313 | + | |
| 6314 | + | |
6311 | 6315 | | |
6312 | 6316 | | |
6313 | 6317 | | |
| |||
6410 | 6414 | | |
6411 | 6415 | | |
6412 | 6416 | | |
6413 | | - | |
6414 | | - | |
6415 | | - | |
6416 | | - | |
6417 | | - | |
6418 | 6417 | | |
6419 | 6418 | | |
6420 | 6419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments