aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.opt
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2018-06-14 12:54:09 +0100
committerPedro Alves <palves@redhat.com>2018-06-14 12:54:09 +0100
commit7b045207d1b8980add1c87b643504e3ef987e7a2 (patch)
tree109bf76e0fdc424f205f8dc83d86f2af30625efc /gdb/testsuite/gdb.opt
parent11ae5818f76e0af4dcf7ee069e0756ccf6901ebe (diff)
downloadbinutils-7b045207d1b8980add1c87b643504e3ef987e7a2.zip
binutils-7b045207d1b8980add1c87b643504e3ef987e7a2.tar.gz
binutils-7b045207d1b8980add1c87b643504e3ef987e7a2.tar.bz2
Revert accidental push of "Inline breakpoints" commit
Diffstat (limited to 'gdb/testsuite/gdb.opt')
-rw-r--r--gdb/testsuite/gdb.opt/inline-break.c21
-rw-r--r--gdb/testsuite/gdb.opt/inline-break.exp17
2 files changed, 0 insertions, 38 deletions
diff --git a/gdb/testsuite/gdb.opt/inline-break.c b/gdb/testsuite/gdb.opt/inline-break.c
index 351b983..922102d 100644
--- a/gdb/testsuite/gdb.opt/inline-break.c
+++ b/gdb/testsuite/gdb.opt/inline-break.c
@@ -176,25 +176,6 @@ not_inline_func3 (int x)
return y + inline_func3 (x);
}
-/* A static inlined function that is called by another static inlined
- function. */
-
-static inline ATTR int
-func_callee (int x)
-{
- return x * 23;
-}
-
-/* A static inlined function that calls another static inlined
- function. The body of the function is as simple as possible so
- that both functions are inlined to the same PC address. */
-
-static int
-func_caller (int x)
-{
- return func_callee (x);
-}
-
/* Entry point. */
int
@@ -224,7 +205,5 @@ main (int argc, char *argv[])
x = not_inline_func3 (-21);
- func_caller (1);
-
return x;
}
diff --git a/gdb/testsuite/gdb.opt/inline-break.exp b/gdb/testsuite/gdb.opt/inline-break.exp
index f1ab3d2..008ff1a 100644
--- a/gdb/testsuite/gdb.opt/inline-break.exp
+++ b/gdb/testsuite/gdb.opt/inline-break.exp
@@ -231,21 +231,4 @@ foreach_with_prefix cmd [list "break" "tbreak"] {
}
}
-# func_caller and func_callee are both inline functions, and one calls
-# the other. Test that setting a breakpoint on the caller reports the
-# stop at the caller, and that setting a breakpoint at the callee
-# reports a stop at the callee.
-foreach_with_prefix func {"func_callee" "func_caller"} {
- clean_restart $binfile
-
- if {![runto main]} {
- untested "could not run to main"
- continue
- }
-
- gdb_breakpoint $func
- gdb_test "continue" "Breakpoint .* $func .*at .*$srcfile.*" \
- "continue to inline function"
-}
-
unset -nocomplain results