summaryrefslogtreecommitdiffstats
path: root/src/thread.h
diff options
context:
space:
mode:
authorCyril Bur <cyrilbur@gmail.com>2018-02-09 15:38:38 +1100
committerAlistair Popple <alistair@popple.id.au>2018-02-16 16:22:02 +1100
commitfb1390794c4e4ae677c1535936a126bb5130e746 (patch)
treeeb7145f174f67eacae40b97fe02521c561e64e62 /src/thread.h
parent856c44984dfd8fcb7a08e7b416cf7b457427974b (diff)
downloadpdbg-fb1390794c4e4ae677c1535936a126bb5130e746.tar.gz
pdbg-fb1390794c4e4ae677c1535936a126bb5130e746.zip
main: Pull thread control accessors out of main.c
Signed-off-by: Cyril Bur <cyrilbur@gmail.com> Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'src/thread.h')
-rw-r--r--src/thread.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/thread.h b/src/thread.h
new file mode 100644
index 0000000..8a9c901
--- /dev/null
+++ b/src/thread.h
@@ -0,0 +1,28 @@
+/* Copyright 2017 IBM Corp.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#include <inttypes.h>
+
+#include <target.h>
+
+int print_proc_thread_status(struct pdbg_target *pib_target, uint32_t index, uint64_t *unused, uint64_t *unused1);
+
+int start_thread(struct pdbg_target *thread_target, uint32_t index, uint64_t *unused, uint64_t *unused1);
+
+int step_thread(struct pdbg_target *thread_target, uint32_t index, uint64_t *count, uint64_t *unused1);
+
+int stop_thread(struct pdbg_target *thread_target, uint32_t index, uint64_t *unused, uint64_t *unused1);
+
+int sreset_thread(struct pdbg_target *thread_target, uint32_t index, uint64_t *unused, uint64_t *unused1);
OpenPOWER on IntegriCloud