* 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.
This commit is contained in:
Aleksandar Ristovski
2009-07-28 13:20:26 +00:00
parent 4ad4f3cb14
commit 745a434e15
4 changed files with 167 additions and 9 deletions

View File

@ -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