diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d662727ac5..7193942ac1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-04-02 Andrew Burgess + + * lib/dwarf.exp (function_range): Allow compiler options to be + specified. + 2020-04-02 Tom de Vries * gdb.dwarf2/break-inline-psymtab-2.c (bar): Add diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp index 417b22d234..4371b56d4d 100644 --- a/gdb/testsuite/lib/dwarf.exp +++ b/gdb/testsuite/lib/dwarf.exp @@ -114,12 +114,12 @@ proc build_executable_from_fission_assembler { testname executable sources optio # static void func (void) {} # -proc function_range { func src } { +proc function_range { func src {options {debug}} } { global decimal gdb_prompt set exe [standard_temp_file func_addr[pid].x] - gdb_compile $src $exe executable {debug} + gdb_compile $src $exe executable $options gdb_exit gdb_start