aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace/tfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.trace/tfile.c')
-rw-r--r--gdb/testsuite/gdb.trace/tfile.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.trace/tfile.c b/gdb/testsuite/gdb.trace/tfile.c
index 11c79d9..7c0c774 100644
--- a/gdb/testsuite/gdb.trace/tfile.c
+++ b/gdb/testsuite/gdb.trace/tfile.c
@@ -13,12 +13,18 @@ char trbuf[1000];
char *trptr;
char *tfsizeptr;
+/* These globals are put in the trace buffer. */
+
int testglob = 31415;
int testglob2 = 271828;
+/* But these below are not. */
+
const int constglob = 10000;
+int nonconstglob = 14124;
+
int
start_trace_file (char *filename)
{