aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-ppc-low.c
diff options
context:
space:
mode:
authorMarcin Koƛcielnicki <koriakin@0x04.net>2016-01-07 16:48:02 +0100
committerMarcin Koƛcielnicki <koriakin@0x04.net>2016-03-09 18:47:46 +0100
commitb04fd3bec955560e00fb0cf6b75e36187a207113 (patch)
treeabfb621ae2f195b10b3ca5f49618b7dc1bc2a7f8 /gdb/gdbserver/linux-ppc-low.c
parent98fa59e9b06fa479cafb852ef87e5a9bfd87ae54 (diff)
downloadgdb-b04fd3bec955560e00fb0cf6b75e36187a207113.zip
gdb-b04fd3bec955560e00fb0cf6b75e36187a207113.tar.gz
gdb-b04fd3bec955560e00fb0cf6b75e36187a207113.tar.bz2
gdb: Add tracepoint support for powerpc.
gdb/gdbserver/ChangeLog: * linux-ppc-low.c (ppc_supports_tracepoints): New function. (struct linux_target_ops): Wire in the above. gdb/testsuite/ChangeLog: * gdb.trace/ftrace.exp: Set arg0exp for ppc. * gdb.trace/mi-trace-unavailable.exp: Set pcnum for ppc. * gdb.trace/pending.exp: Accept leading dot before function name. * gdb.trace/trace-common.h: Add fast tracepoint dummy insn for ppc. * lib/trace-support.exp: Set registers for ppc.
Diffstat (limited to 'gdb/gdbserver/linux-ppc-low.c')
-rw-r--r--gdb/gdbserver/linux-ppc-low.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c
index 61a1693..49d27ee 100644
--- a/gdb/gdbserver/linux-ppc-low.c
+++ b/gdb/gdbserver/linux-ppc-low.c
@@ -756,6 +756,12 @@ ppc_arch_setup (void)
current_process ()->tdesc = tdesc;
}
+static int
+ppc_supports_tracepoints (void)
+{
+ return 1;
+}
+
struct linux_target_ops the_low_target = {
ppc_arch_setup,
ppc_regs_info,
@@ -782,7 +788,7 @@ struct linux_target_ops the_low_target = {
NULL, /* new_fork */
NULL, /* prepare_to_resume */
NULL, /* process_qsupported */
- NULL, /* supports_tracepoints */
+ ppc_supports_tracepoints,
NULL, /* get_thread_area */
NULL, /* install_fast_tracepoint_jump_pad */
NULL, /* emit_ops */