+2015-11-23 Simon Marchi <simon.marchi@ericsson.com>
+
+ * breakpoint.c (tracepoint_print_recreate): Fix logic error
+ if -> else if.
+
2015-11-23 Kevin Buettner <kevinb@redhat.com>
* minsyms.c (lookup_minimal_symbol_by_pc_section_1): Scan backwards
if (self->type == bp_fast_tracepoint)
fprintf_unfiltered (fp, "ftrace");
- if (self->type == bp_static_tracepoint)
+ else if (self->type == bp_static_tracepoint)
fprintf_unfiltered (fp, "strace");
else if (self->type == bp_tracepoint)
fprintf_unfiltered (fp, "trace");
+2015-11-23 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb.trace/actions.c: Include trace-common.h.
+ (main): Add a location for a fast tracepoint.
+ * gdb.trace/save-trace.exp: Set a fast tracepoint in addition to
+ the normal tracepoints.
+ (gdb_verify_tracepoints): Adjust number of expected tracepoints.
+
2015-11-23 Simon Marchi <simon.marchi@ericsson.com>
* save-trace.exp: Factor out code to these...
#include <string.h>
+#include "trace-common.h"
+
static char gdb_char_test;
static short gdb_short_test;
static long gdb_long_test;
int i;
unsigned long myparms[10];
+ FAST_TRACEPOINT_LABEL (fast_tracepoint_loc);
+
begin ();
for (i = 0; i < sizeof (myparms) / sizeof (myparms[0]); i++)
myparms[i] = i;
"end" "^$"
}
+gdb_test "ftrace fast_tracepoint_loc" \
+ "Fast tracepoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
+ "set a fast tracepoint"
+
gdb_test_no_output "set default-collect gdb_char_test, gdb_long_test - 100" \
"set default-collect"
exp_continue
}
-re "$gdb_prompt $" {
- if { $ourstate >= 6 } {
+ if { $ourstate >= 7 } {
set result "pass"
} else {
set result "fail"