+2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
+
+ * gdb.trace/change-loc.h (func4) [__aarch64__]: Add a nop
+ instruction.
+ * gdb.trace/pendshr1.c (pendfunc): Likewise.
+ * gdb.trace/pendshr2.c (pendfunc2): Likewise.
+ * gdb.trace/range-stepping.c: Likewise.
+ * gdb.trace/trace-break.c: Likewise.
+ * gdb.trace/trace-mt.c (thread_function): Likewise.
+ * gdb.trace/ftrace.c (marker): Likewise.
+ * gdb.trace/trace-condition.c (marker): Likewise.
+ * gdb.trace/ftrace.exp: Enable ftrace test if is_aarch64_target.
+ * gdb.trace/trace-condition.exp: Set pcreg to "\$pc" if
+ is_aarch64_target.
+
2015-09-18 Doug Evans <xdje42@gmail.com>
* gdb.dwarf2/dw2-bad-unresolved.c: New file.
SYMBOL(set_tracepoint) ":\n"
#if (defined __x86_64__ || defined __i386__)
" call " SYMBOL(func5) "\n"
+#elif (defined __aarch64__)
+ " nop\n"
#endif
);
SYMBOL(set_point) ":\n"
#if (defined __x86_64__ || defined __i386__)
" call " SYMBOL(func) "\n"
+#elif (defined __aarch64__)
+ " nop\n"
#endif
);
gdb_test "print gdb_agent_gdb_trampoline_buffer_error" ".*" ""
- if { [istarget "x86_64-*-*"] || [istarget "i\[34567\]86-*-*"] } {
+ if { [istarget "x86_64-*-*"] || [istarget "i\[34567\]86-*-*"] || [is_aarch64_target] } {
gdb_test "ftrace set_point" "Fast tracepoint .*" \
"fast tracepoint at a long insn"
SYMBOL(set_point1) ":\n"
#if (defined __x86_64__ || defined __i386__)
" call " SYMBOL(pendfunc1) "\n"
+#elif (defined __aarch64__)
+ " nop\n"
#endif
);
}
SYMBOL(set_point2) ":\n"
#if (defined __x86_64__ || defined __i386__)
" call " SYMBOL(foo) "\n"
+#elif (defined __aarch64__)
+ " nop\n"
#endif
);
}
tracepoint jump. */
#if (defined __x86_64__ || defined __i386__)
# define NOP " .byte 0xe9,0x00,0x00,0x00,0x00\n" /* jmp $+5 (5-byte nop) */
+#elif (defined __aarch64__)
+# define NOP " nop\n"
#else
# define NOP "" /* port me */
#endif
SYMBOL(set_point) ":\n"
#if (defined __x86_64__ || defined __i386__)
" call " SYMBOL(func) "\n"
+#elif (defined __aarch64__)
+ " nop\n"
#endif
);
SYMBOL(after_set_point) ":\n"
#if (defined __x86_64__ || defined __i386__)
" call " SYMBOL(func) "\n"
+#elif (defined __aarch64__)
+ " nop\n"
#endif
);
}
SYMBOL (set_point) ":\n"
#if (defined __x86_64__ || defined __i386__)
" call " SYMBOL (func) "\n"
+#elif (defined __aarch64__)
+ " nop\n"
#endif
);
}
set pcreg "\$rip"
} elseif [is_x86_like_target] {
set pcreg "\$eip"
+} elseif [is_aarch64_target] {
+ set pcreg "\$pc"
} else {
set pcreg "\$pc"
}
SYMBOL(set_point1) ":\n"
#if (defined __x86_64__ || defined __i386__)
" call " SYMBOL(func) "\n"
+#elif (defined __aarch64__)
+ " nop\n"
#endif
);
}