* procfs.c (procfs_thread_alive procfs_stop): Make static.

* (procfs_pid_to_str):  New routine to print out thread id's in an
	intelligible manner.
	* sol-thread.c (sol_thread_fetch_registers):  Re-order manner in
	which supply_register is called to fix bug with writing writing
	individual regs.
	* config/sparc/tm-sun4sol2.h:  Define default for
	target_pid_to_str in case host lacks libthread_db.
This commit is contained in:
Stu Grossman 1996-05-15 01:09:57 +00:00
parent ff60fc3aec
commit 9b33e492d6
4 changed files with 48 additions and 21 deletions

View file

@ -4386,7 +4386,7 @@ procfs_stopped_by_watchpoint(pid)
/* Why is this necessary? Shouldn't dead threads just be removed from the
thread database? */
int
static int
procfs_thread_alive (pid)
int pid;
{
@ -4399,14 +4399,28 @@ procfs_thread_alive (pid)
XXX - This may not be correct for all systems. Some may want to use
killpg() instead of kill (-pgrp). */
void
static void
procfs_stop ()
{
extern pid_t inferior_process_group;
kill (-inferior_process_group, SIGINT);
}
/* Convert a pid to printable form. */
#ifdef TIDGET
char *
procfs_pid_to_str (pid)
int pid;
{
static char buf[100];
sprintf (buf, "Kernel thread %d", TIDGET (pid));
return buf;
}
#endif /* TIDGET */
struct target_ops procfs_ops = {
"procfs", /* to_shortname */