diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-04-03 20:41:00 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-04-14 12:13:06 +0100 |
commit | 21b0982c778bf20de6fc42e7ae7735055cdd35c5 (patch) | |
tree | 134371c1283853cf730baf6a34f347c9f3a4beec /gdb/stubs | |
parent | b1f1b4decbb40d441ad7a31f2831aee792767fa6 (diff) | |
download | gdb-21b0982c778bf20de6fc42e7ae7735055cdd35c5.zip gdb-21b0982c778bf20de6fc42e7ae7735055cdd35c5.tar.gz gdb-21b0982c778bf20de6fc42e7ae7735055cdd35c5.tar.bz2 |
gdb/testsuite: Move helper function into lib/dwarf.exp
Every time I write a test making use of the DWARF assembler I end up
copying in the function get_func_info. Duplicating code is bad, so
lets put this function into lib/dwarf.exp and remove all of the
duplicates.
There should be no changes in the testsuite behaviour after this
commit.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/dw2-inline-many-frames.exp (get_func_info): Delete.
* gdb.dwarf2/dw2-inline-small-func.exp: Pass options to
get_func_info.
(get_func_info): Delete.
* gdb.dwarf2/dw2-is-stmt-2.exp (get_func_info): Delete.
* gdb.dwarf2/dw2-is-stmt.exp (get_func_info): Delete.
* lib/dwarf.exp (get_func_info): New function.
Diffstat (limited to 'gdb/stubs')
0 files changed, 0 insertions, 0 deletions