]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
icc: allow code path for newer versions of icc. users/wtedesch/icc_version
authorWalfred Tedeschi <walfred.tedeschi@yahoo.de>
Tue, 19 Sep 2017 09:59:41 +0000 (11:59 +0200)
committerWalfred Tedeschi <walfred.tedeschi@intel.com>
Wed, 20 Sep 2017 13:24:38 +0000 (15:24 +0200)
commit3f772b18309e448aaa253f8e441e4cdd7786257e
treeea79505f1026a5ff731c20015961f5ddbea654d3
parent8bf5d944716b1e13987e0e8cba1bcb5d7beea3b0
icc: allow code path for newer versions of icc.

Patch adds a version checkin for workaround an icc problem.
Icc problem was fixed in version 14, and gdb code has to
reflect the fix.
This patch contains a parser for the icc string version and conditional
workaround execution.  Adds also gdb self tests for the dwarf producers.

2017-06-28  Walfred Tedeschi  <walfred.tedeschi@intel.com>

gdb/ChangeLog:
* dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
producer_is_icc_lt_14.
(producer_is_icc_lt_14): New function.
(check_producer): Add code for checking version of icc.
(producer_is_icc): Move to dwarf2utils.
(read_structure_type): Add a check for the later version of icc
where the issue was still not fixed.
(dwarf_producer_test): Add new unit test.
(_initialize_dwarf2_read): Register the unit test.
* dwarf2utils.c (producer_is_icc): New function.
* dwarf2utils.h (producer_is_icc): Declaration of a new function.
* dwarf2utils.c (_initialize_dwarf2utils): New function.

Change-Id: I70871846be4b70df477a63e700a52c41da81b92a
Signed-off-by: Walfred Tedeschi <walfred.tedeschi@intel.com>
gdb/dwarf2read.c
gdb/dwarf2utils.c
gdb/dwarf2utils.h
gdb/utils.c