summaryrefslogtreecommitdiff
path: root/gdb/nto-tdep.h
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2009-07-28 13:20:25 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2009-07-28 13:20:25 +0000
commit3512cd879395961b95fca87326522f3176c4dddc (patch)
tree973a7fdf7041d8e40761169789bafb3eb9e53dee /gdb/nto-tdep.h
parent871ec3815ce61b18e02b48ce43baa542325deae2 (diff)
downloadgdb-3512cd879395961b95fca87326522f3176c4dddc.tar.gz
* nto-tdep.c (nto_thread_state_str): New array.
(nto_extra_thread_info): New function definition. * nto-tdep.h (gdbthread.h): New include. (private_thread_info): New struct. (nto_extra_thread_info): New declaration. * nto-procfs.c (procfs_thread_alive): Properly check if thread is still alive. (update_thread_private_data_name, update_thread_private_data): New function definition. (procfs_find_new_threads): Fetch thread private data. (init_procfs_ops): Register to_extra_thread_info.
Diffstat (limited to 'gdb/nto-tdep.h')
-rw-r--r--gdb/nto-tdep.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/nto-tdep.h b/gdb/nto-tdep.h
index 983fb6c47f0..7faefee4528 100644
--- a/gdb/nto-tdep.h
+++ b/gdb/nto-tdep.h
@@ -25,6 +25,7 @@
#include "solist.h"
#include "osabi.h"
#include "regset.h"
+#include "gdbthread.h"
/* Target operations defined for Neutrino targets (<target>-nto-tdep.c). */
@@ -138,6 +139,14 @@ typedef struct _debug_regs
qnx_reg64 padding[1024];
} nto_regset_t;
+struct private_thread_info
+{
+ short tid;
+ unsigned char state;
+ unsigned char flags;
+ char name[1];
+};
+
/* Generic functions in nto-tdep.c. */
void nto_init_solib_absolute_prefix (void);
@@ -162,4 +171,6 @@ void nto_dummy_supply_regset (struct regcache *regcache, char *regs);
int nto_in_dynsym_resolve_code (CORE_ADDR pc);
+char *nto_extra_thread_info (struct thread_info *);
+
#endif