X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Frtos%2Frtos.h;h=9978b34ff279734194afc8ec324548c4cd09de07;hb=06e13d6ff56175317ae39ee0e86efbf55d2b27fd;hp=d082fb7a72eedfac16b8b1bf9c405cd7d4b3e2d2;hpb=9413a7a814755f3fab92f460bfbdd518f24ffaf5;p=openocd.git
diff --git a/src/rtos/rtos.h b/src/rtos/rtos.h
index d082fb7a72..9978b34ff2 100644
--- a/src/rtos/rtos.h
+++ b/src/rtos/rtos.h
@@ -13,13 +13,11 @@
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
+ * along with this program. If not, see . *
***************************************************************************/
-#ifndef RTOS_H
-#define RTOS_H
+#ifndef OPENOCD_RTOS_RTOS_H
+#define OPENOCD_RTOS_RTOS_H
#include "server/server.h"
#include
@@ -41,7 +39,6 @@ typedef struct symbol_table_elem_struct {
struct thread_detail {
threadid_t threadid;
bool exists;
- char *display_str;
char *thread_name_str;
char *extra_info_str;
};
@@ -57,12 +54,13 @@ struct rtos {
struct thread_detail *thread_details;
int thread_count;
int (*gdb_thread_packet)(struct connection *connection, char const *packet, int packet_size);
+ int (*gdb_target_for_threadid)(struct connection *connection, int64_t thread_id, struct target **p_target);
void *rtos_specific_params;
};
struct rtos_type {
const char *name;
- int (*detect_rtos)(struct target *target);
+ bool (*detect_rtos)(struct target *target);
int (*create)(struct target *target);
int (*smp_init)(struct target *target);
int (*update_threads)(struct rtos *rtos);
@@ -111,4 +109,4 @@ int rtos_smp_init(struct target *target);
/* function for handling symbol access */
int rtos_qsymbol(struct connection *connection, char const *packet, int packet_size);
-#endif /* RTOS_H */
+#endif /* OPENOCD_RTOS_RTOS_H */