diff options
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp index 777db062b37..4fcc3cfeac9 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp @@ -42,26 +42,12 @@ if !$gcc_compiled { standard_testfile dw2-inline-small-func-lbls.c dw2-inline-small-func.S \ dw2-inline-small-func.c dw2-inline-small-func.h -# 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] {debug optimize=-O1}] \ - 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 srcfile3 srcfile4 declare_labels lines_label callee_subprog_label - get_func_info main + get_func_info main {debug optimize=-O1} cu {} { # It is important that the producer here be 'clang' as, at the |