/* Initialization function of thread debugger support library.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_init (void)
{
/* XXX We have to figure out what has to be done. */
- LOG (__FUNCTION__);
+ LOG ("td_init");
return TD_OK;
}
/* Noop, left for historical reasons.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_log (void)
{
/* This interface is deprecated in the Sun interface. We provide it
- for compatibility but don't do anyhting ourself. We might in
+ for compatibility but don't do anything ourself. We might in
future do some logging if this seems reasonable. */
- LOG (__FUNCTION__);
+ LOG ("td_log");
return TD_OK;
}
/* Globally disable events.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_thr_events_t old_event;
int i;
- LOG (__FUNCTION__);
+ LOG ("td_ta_clear_event");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
/* Detach to target process.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_err_e
td_ta_delete (td_thragent_t *ta)
{
- LOG (__FUNCTION__);
+ LOG ("td_ta_delete");
/* Safety check. */
if (ta == NULL || __td_agent_list == NULL)
/* Enable collection of statistics for process.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_ta_enable_stats (const td_thragent_t *ta, int enable)
{
/* XXX We have to figure out what has to be done. */
- LOG (__FUNCTION__);
+ LOG ("td_ta_enable_stats");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
td_err_e res = TD_NOEVENT;
int idx = -1;
- LOG (__FUNCTION__);
+ LOG ("td_ta_event_addr");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
/* Retrieve event.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_eventbuf_t event;
psaddr_t addr;
- LOG (__FUNCTION__);
+ LOG ("td_ta_event_getmsg");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
{
psaddr_t addr;
- LOG (__FUNCTION__);
+ LOG ("td_ta_get_nthreads");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
/* Get external process handle.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_err_e
td_ta_get_ph (const td_thragent_t *ta, struct ps_prochandle **ph)
{
- LOG (__FUNCTION__);
+ LOG ("td_ta_get_ph");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
/* Retrieve statistics for process.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp)
{
/* XXX We have to figure out what has to be done. */
- LOG (__FUNCTION__);
+ LOG ("td_ta_get_stats");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
struct _pthread_descr_struct pds;
int pthread_threads_max;
- LOG (__FUNCTION__);
+ LOG ("td_ta_map_id2thr");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
/* Which thread is running on an lwp?
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
# define num 1
#endif
- LOG (__FUNCTION__);
+ LOG ("td_ta_map_lwp2thr");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
psaddr_t addr;
struct agent_list *elemp;
- LOG (__FUNCTION__);
+ LOG ("td_ta_new");
/* Get the global event mask. This is one of the variables which
are new in the thread library to enable debugging. If it is
/* Reset statistics.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_ta_reset_stats (const td_thragent_t *ta)
{
/* XXX We have to figure out what has to be done. */
- LOG (__FUNCTION__);
+ LOG ("td_ta_reset_stats");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
/* Globally enable events.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_thr_events_t old_event;
int i;
- LOG (__FUNCTION__);
+ LOG ("td_ta_set_event");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
/* Set suggested concurrency level for process.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_ta_setconcurrency (const td_thragent_t *ta, int level)
{
/* This is something LinuxThreads does not support. */
- LOG (__FUNCTION__);
+ LOG ("td_ta_setconcurrency");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
/* Iterate over a process's threads.
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
# define num 1
#endif
- LOG (__FUNCTION__);
+ LOG ("td_ta_thr_iter");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
/* Iterate over a process's thread-specific data.
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
int pthread_keys_max;
int cnt;
- LOG (__FUNCTION__);
+ LOG ("td_ta_tsd_iter");
/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
/* Disable specific event for thread.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_thr_events_t old_event;
int i;
- LOG (__FUNCTION__);
+ LOG ("td_thr_clear_event");
/* Write the new value into the thread data structure. */
if (ps_pdread (th->th_ta_p->ph,
/* Resume execution of given thread.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_thr_dbresume (const td_thrhandle_t *th)
{
/* XXX We have to figure out what has to be done. */
- LOG (__FUNCTION__);
+ LOG ("td_thr_dbresume");
return TD_NOCAPAB;
}
/* Suspend execution of given thread.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_thr_dbsuspend (const td_thrhandle_t *th)
{
/* XXX We have to figure out what has to be done. */
- LOG (__FUNCTION__);
+ LOG ("td_thr_dbsuspend");
return TD_NOCAPAB;
}
/* Enable event process-wide.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
const td_thrhandle_t *th;
int onoff;
{
- LOG (__FUNCTION__);
+ LOG ("td_thr_event_enable");
/* Write the new value into the thread data structure. */
if (ps_pdwrite (th->th_ta_p->ph,
/* Retrieve event.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
{
td_eventbuf_t event;
- LOG (__FUNCTION__);
+ LOG ("td_thr_event_getmsg");
/* Read the even structure from the target. */
if (ps_pdread (th->th_ta_p->ph,
/* Get thread information.
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
{
struct _pthread_descr_struct pds;
- LOG (__FUNCTION__);
+ LOG ("td_thr_get_info");
/* Get the thread descriptor. */
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
{
struct _pthread_descr_struct pds;
- LOG (__FUNCTION__);
+ LOG ("td_thr_getfpregs");
/* We have to get the state and the PID for this thread. */
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
{
struct _pthread_descr_struct pds;
- LOG (__FUNCTION__);
+ LOG ("td_thr_getgregs");
/* We have to get the state and the PID for this thread. */
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
/* Get a thread's extra state register set.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_thr_getxregs (const td_thrhandle_t *th, void *xregs)
{
/* XXX This might be platform specific. */
- LOG (__FUNCTION__);
+ LOG ("td_thr_getxregs");
return TD_NOXREGS;
}
/* Get the size of the extra state register set for this architecture.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_thr_getxregsize (const td_thrhandle_t *th, int *sizep)
{
/* XXX This might be platform specific. */
- LOG (__FUNCTION__);
+ LOG ("td_thr_getxregsize");
return TD_NOXREGS;
}
/* Enable specific event for thread.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_thr_events_t old_event;
int i;
- LOG (__FUNCTION__);
+ LOG ("td_thr_set_event");
/* Write the new value into the thread data structure. */
if (ps_pdread (th->th_ta_p->ph,
{
struct _pthread_descr_struct pds;
- LOG (__FUNCTION__);
+ LOG ("td_thr_setfpregs");
/* We have to get the state and the PID for this thread. */
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
{
struct _pthread_descr_struct pds;
- LOG (__FUNCTION__);
+ LOG ("td_thr_setgregs");
/* We have to get the state and the PID for this thread. */
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
/* Set a thread's priority.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_thr_setprio (const td_thrhandle_t *th, int prio)
{
/* XXX We have to figure out what has to be done. */
- LOG (__FUNCTION__);
+ LOG ("td_thr_setprio");
return TD_OK;
}
/* Raise a signal for a thread.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
const sigset_t *ss)
{
/* XXX We have to figure out what has to be done. */
- LOG (__FUNCTION__);
+ LOG ("td_thr_setsigpending");
return TD_OK;
}
/* Set a thread's extra state register set.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_thr_setxregs (const td_thrhandle_t *ta, const void *addr)
{
/* XXX This might have to be platform specific. */
- LOG (__FUNCTION__);
+ LOG ("td_thr_setxregs");
return TD_NOXREGS;
}
/* Set a thread's signal mask.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
td_thr_sigsetmask (const td_thrhandle_t *th, const sigset_t *ss)
{
/* XXX We have to figure out what has to be done. */
- LOG (__FUNCTION__);
+ LOG ("td_thr_sigsetmask");
return TD_OK;
}
/* Get a thread-specific data pointer for a thread.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
unsigned int idx2nd;
void *p;
- LOG (__FUNCTION__);
+ LOG ("td_thr_tsd");
/* Get the thread descriptor. */
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
int pthread_threads_max = th->th_ta_p->pthread_threads_max;
int cnt;
- LOG (__FUNCTION__);
+ LOG ("td_thr_validate");
/* Now get all descriptors, one after the other. */
for (cnt = 0; cnt < pthread_threads_max; ++cnt, ++handles)