aboutsummaryrefslogtreecommitdiff
path: root/gdb/nto-tdep.h
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2009-07-28 13:20:26 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2009-07-28 13:20:26 +0000
commit745a434e1500a955d8d5d4f0a7173b68d33a764e (patch)
treea7a8f29efe7548321750ef93aebdcd5de3423fa6 /gdb/nto-tdep.h
parent4ad4f3cb145c84f47512dfde2c1ff32be30659fd (diff)
downloadgdb-745a434e1500a955d8d5d4f0a7173b68d33a764e.zip
gdb-745a434e1500a955d8d5d4f0a7173b68d33a764e.tar.gz
gdb-745a434e1500a955d8d5d4f0a7173b68d33a764e.tar.bz2
* 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 983fb6c..7faefee 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