aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace/strace.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-01-03 02:38:37 +0000
committerYao Qi <yao@codesourcery.com>2012-01-03 02:38:37 +0000
commit3c2d6aff67c0d33ed51d588bd7780f2fc0cfad1b (patch)
treee04a97e3909c78b25c8baf935a600645185b0564 /gdb/testsuite/gdb.trace/strace.c
parentf72429c5cc268535be510b223a732c31816a79f9 (diff)
downloadgdb-3c2d6aff67c0d33ed51d588bd7780f2fc0cfad1b.zip
gdb-3c2d6aff67c0d33ed51d588bd7780f2fc0cfad1b.tar.gz
gdb-3c2d6aff67c0d33ed51d588bd7780f2fc0cfad1b.tar.bz2
gdb/testsuite/
* gdb.trace/strace.exp (strace_trace_on_same_addr): New. (strace_trace_on_diff_addr): New. * gdb.trace/strace.c: (main): Add two local variables.
Diffstat (limited to 'gdb/testsuite/gdb.trace/strace.c')
-rw-r--r--gdb/testsuite/gdb.trace/strace.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.trace/strace.c b/gdb/testsuite/gdb.trace/strace.c
index cec4c14..5e1e120 100644
--- a/gdb/testsuite/gdb.trace/strace.c
+++ b/gdb/testsuite/gdb.trace/strace.c
@@ -24,6 +24,11 @@ end (void)
int
main (void)
{
+ /* Some code to make sure that breakpoints on `main' and `ust/bar' marker
+ are set at different addresses. */
+ int a = 0;
+ int b = a;
+
trace_mark(ust, bar, "str %s", "FOOBAZ");
trace_mark(ust, bar2, "number1 %d number2 %d", 53, 9800);