testsuite: Fix gcc_compiled for gcc 6 & 7
gdb/testsuite/ChangeLog 2016-10-20 Jan Kratochvil <jan.kratochvil@redhat.com> * lib/gdb.exp (get_compiler_info): Generalize gcc_compile regexp.
This commit is contained in:
parent
789b4e0035
commit
f90fd8c2f1
|
@ -1,3 +1,7 @@
|
|||
2016-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* lib/gdb.exp (get_compiler_info): Generalize gcc_compile regexp.
|
||||
|
||||
2016-10-19 Maciej W. Rozycki <macro@imgtec.com>
|
||||
|
||||
* gdb.base/killed-outside.exp: Remove $options from a call to
|
||||
|
|
|
@ -3291,11 +3291,7 @@ proc get_compiler_info {{arg ""}} {
|
|||
|
||||
# Set the legacy symbols.
|
||||
set gcc_compiled 0
|
||||
if { [regexp "^gcc-1-" "$compiler_info" ] } { set gcc_compiled 1 }
|
||||
if { [regexp "^gcc-2-" "$compiler_info" ] } { set gcc_compiled 2 }
|
||||
if { [regexp "^gcc-3-" "$compiler_info" ] } { set gcc_compiled 3 }
|
||||
if { [regexp "^gcc-4-" "$compiler_info" ] } { set gcc_compiled 4 }
|
||||
if { [regexp "^gcc-5-" "$compiler_info" ] } { set gcc_compiled 5 }
|
||||
regexp "^gcc-(\[0-9\]+)-" "$compiler_info" matchall gcc_compiled
|
||||
|
||||
# Log what happened.
|
||||
verbose -log "get_compiler_info: $compiler_info"
|
||||
|
|
Loading…
Reference in New Issue