summaryrefslogtreecommitdiffstats
path: root/cpukit/libdebugger/rtems-debugger-threads.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-07-17 09:53:11 +1000
committerChris Johns <chrisj@rtems.org>2017-08-15 11:39:22 +1000
commitb2353ed92435c3f9301b795bf20bce14f0ddb01b (patch)
treed228865c34c6989827e80c6393ee79ecadff0996 /cpukit/libdebugger/rtems-debugger-threads.h
parentlibmisc/shell: Make some internal shell functions public. (diff)
downloadrtems-b2353ed92435c3f9301b795bf20bce14f0ddb01b.tar.bz2
libdebugger: Fixes to debugging, ARM support, locking, and gcc-7.1 warnings.
- Add `printk` support to aid multi-core debugging. - Add lock trace to aid lock debugging. - Fixes to gcc-7.1 warnings. - Fixes from ticket #2879. - Add verbose command controls. - Change using the RTEMS sys/lock.h API to manage exception threads. - ARM hardware breakpoint fixes. Support for SMP stepping is not implemented, this requires use of the context id register. Closes #2879.
Diffstat (limited to 'cpukit/libdebugger/rtems-debugger-threads.h')
-rw-r--r--cpukit/libdebugger/rtems-debugger-threads.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpukit/libdebugger/rtems-debugger-threads.h b/cpukit/libdebugger/rtems-debugger-threads.h
index 563b402d83..f0217882f6 100644
--- a/cpukit/libdebugger/rtems-debugger-threads.h
+++ b/cpukit/libdebugger/rtems-debugger-threads.h
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2016 Chris Johns <chrisj@rtems.org>. All rights reserved.
+ * Copyright (c) 2016-2017 Chris Johns <chrisj@rtems.org>.
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -51,7 +52,7 @@ extern "C" {
/**
* Debugger thread flags.
*/
-#define RTEMS_DEBUGGER_THREAD_FLAG_DEBUGGING (1 << 0)
+#define RTEMS_DEBUGGER_THREAD_FLAG_EXCEPTION (1 << 0)
#define RTEMS_DEBUGGER_THREAD_FLAG_REG_VALID (1 << 1)
#define RTEMS_DEBUGGER_THREAD_FLAG_REG_DIRTY (1 << 2)
#define RTEMS_DEBUGGER_THREAD_FLAG_CONTINUE (1 << 3)
@@ -162,8 +163,8 @@ extern int rtems_debugger_thread_step(rtems_debugger_thread* thread);
* Thread is stepping so record the details.
*/
extern int rtems_debugger_thread_stepping(rtems_debugger_thread* thread,
- DB_UINT start,
- DB_UINT end);
+ DB_UINT start,
+ DB_UINT end);
/**
* Thread's PC in the stepping range? Returns the stepper is in range else
@@ -196,8 +197,8 @@ extern int rtems_debugger_thread_state(rtems_debugger_thread* thread);
* Return a string of the thread's state.
*/
extern int rtems_debugger_thread_state_str(rtems_debugger_thread* thread,
- char* buffer,
- size_t size);
+ char* buffer,
+ size_t size);
/**
* Return the thread's stack size.
@@ -214,8 +215,7 @@ extern void* rtems_debugger_thread_stack_area(rtems_debugger_thread* thread);
* set.
*/
static inline bool
-rtems_debugger_thread_flag(rtems_debugger_thread* thread,
- uint32_t mask)
+rtems_debugger_thread_flag(rtems_debugger_thread* thread, uint32_t mask)
{
return (thread->flags & mask) != 0;
}