gdb/testsuite: Move helper function into lib/dwarf.exp
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-inline-many-frames.exp
index 146af8c6ef70806ded399a62bac7c1336bc31408..0c2c66122657e771c8e9cd5ec99f2ea6814497f8 100644 (file)
@@ -40,20 +40,6 @@ if !$gcc_compiled {
 
 standard_testfile dw2-inline-many-frames.c dw2-inline-many-frames.S
 
-# Extract the start, length, and end for function called NAME and
-# create suitable variables in the callers scope.
-proc get_func_info { name } {
-    global srcdir subdir srcfile
-
-    upvar 1 "${name}_start" func_start
-    upvar 1 "${name}_len" func_len
-    upvar 1 "${name}_end" func_end
-
-    lassign [function_range ${name} [list ${srcdir}/${subdir}/$srcfile]] \
-       func_start func_len
-    set func_end "$func_start + $func_len"
-}
-
 set asm_file [standard_output_file $srcfile2]
 Dwarf::assemble $asm_file {
     global srcdir subdir srcfile srcfile2
This page took 0.027866 seconds and 4 git commands to generate.