[gdb/symtab] Add producer_is_gas
authorTom de Vries <tdevries@suse.de>
Tue, 31 Oct 2023 23:33:12 +0000 (00:33 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 31 Oct 2023 23:33:12 +0000 (00:33 +0100)
commit98ef1d81d6a3970f07e98216f31c89ec77997095
tree9f809d59ee7108324f805293a085a48c6ee6991b
parent87e3cc466e8ea352639beb6db40a36e339d608d1
[gdb/symtab] Add producer_is_gas

Add producer_is_gas, a generic way to get the gas version from the
producer string.

Tested on x86_64-linux.
gdb/dwarf2/read.c
gdb/producer.c
gdb/producer.h