]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: Add compiler options parameter to function_range helper
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 23 Mar 2020 15:11:25 +0000 (15:11 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 2 Apr 2020 16:44:03 +0000 (17:44 +0100)
commit6a35491162b64ad5402f0558c275a603abc620a4
tree7c161adc25b13eb246d34e44d846d0e823ab0ca7
parent880d97770b63eb722d53b3a0ae2f03deae0c9c72
gdb/testsuite: Add compiler options parameter to function_range helper

When using the Dejagnu DWARF compiler tests will often use the
function_range helper function to extract the extents of a function.
If the plan is to compiler the file with non-default compiler flags
then we must pass those same compiler flags through to the
function_range helper function.

This will be used in a later commit, there should be no change in the
testsuite behaviour after this commit.

gdb/testsuite/ChangeLog:

* lib/dwarf.exp (function_range): Allow compiler options to be
specified.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/dwarf.exp