Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't use __FUNCTION__ as literal.
  • Loading branch information
Andreas Jaeger committed Dec 28, 2001
1 parent 362f832 commit 5e67a81
Show file tree
Hide file tree
Showing 37 changed files with 66 additions and 66 deletions.
4 changes: 2 additions & 2 deletions linuxthreads_db/td_init.c
@@ -1,5 +1,5 @@
/* 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.
Expand Down Expand Up @@ -27,6 +27,6 @@ td_err_e
td_init (void)
{
/* XXX We have to figure out what has to be done. */
LOG (__FUNCTION__);
LOG ("td_init");
return TD_OK;
}
6 changes: 3 additions & 3 deletions linuxthreads_db/td_log.c
@@ -1,5 +1,5 @@
/* 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.
Expand All @@ -25,8 +25,8 @@ td_err_e
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;
}
4 changes: 2 additions & 2 deletions linuxthreads_db/td_ta_clear_event.c
@@ -1,5 +1,5 @@
/* 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.
Expand Down Expand Up @@ -29,7 +29,7 @@ td_ta_clear_event (ta, event)
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))
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_ta_delete.c
@@ -1,5 +1,5 @@
/* 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.
Expand All @@ -26,7 +26,7 @@
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)
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_ta_enable_stats.c
@@ -1,5 +1,5 @@
/* 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.
Expand All @@ -25,7 +25,7 @@ td_err_e
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))
Expand Down
2 changes: 1 addition & 1 deletion linuxthreads_db/td_ta_event_addr.c
Expand Up @@ -27,7 +27,7 @@ td_ta_event_addr (const td_thragent_t *ta, td_event_e event, td_notify_t *addr)
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))
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_ta_event_getmsg.c
@@ -1,5 +1,5 @@
/* 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.
Expand Down Expand Up @@ -32,7 +32,7 @@ td_ta_event_getmsg (const td_thragent_t *ta, td_event_msg_t *msg)
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))
Expand Down
2 changes: 1 addition & 1 deletion linuxthreads_db/td_ta_get_nthreads.c
Expand Up @@ -25,7 +25,7 @@ td_ta_get_nthreads (const td_thragent_t *ta, int *np)
{
psaddr_t addr;

LOG (__FUNCTION__);
LOG ("td_ta_get_nthreads");

/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_ta_get_ph.c
@@ -1,5 +1,5 @@
/* 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.
Expand All @@ -24,7 +24,7 @@
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))
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_ta_get_stats.c
@@ -1,5 +1,5 @@
/* 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.
Expand All @@ -25,7 +25,7 @@ td_err_e
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))
Expand Down
2 changes: 1 addition & 1 deletion linuxthreads_db/td_ta_map_id2thr.c
Expand Up @@ -28,7 +28,7 @@ td_ta_map_id2thr (const td_thragent_t *ta, pthread_t pt, td_thrhandle_t *th)
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))
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_ta_map_lwp2thr.c
@@ -1,5 +1,5 @@
/* 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.
Expand Down Expand Up @@ -34,7 +34,7 @@ td_ta_map_lwp2thr (const td_thragent_t *ta, lwpid_t lwpid, td_thrhandle_t *th)
# define num 1
#endif

LOG (__FUNCTION__);
LOG ("td_ta_map_lwp2thr");

/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
Expand Down
2 changes: 1 addition & 1 deletion linuxthreads_db/td_ta_new.c
Expand Up @@ -35,7 +35,7 @@ td_ta_new (struct ps_prochandle *ps, td_thragent_t **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
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_ta_reset_stats.c
@@ -1,5 +1,5 @@
/* 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.
Expand All @@ -25,7 +25,7 @@ td_err_e
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))
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_ta_set_event.c
@@ -1,5 +1,5 @@
/* 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.
Expand Down Expand Up @@ -29,7 +29,7 @@ td_ta_set_event (ta, event)
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))
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_ta_setconcurrency.c
@@ -1,5 +1,5 @@
/* 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.
Expand All @@ -25,7 +25,7 @@ td_err_e
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))
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_ta_thr_iter.c
@@ -1,5 +1,5 @@
/* 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.
Expand Down Expand Up @@ -86,7 +86,7 @@ td_ta_thr_iter (const td_thragent_t *ta, td_thr_iter_f *callback,
# define num 1
#endif

LOG (__FUNCTION__);
LOG ("td_ta_thr_iter");

/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_ta_tsd_iter.c
@@ -1,5 +1,5 @@
/* 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.
Expand Down Expand Up @@ -29,7 +29,7 @@ td_ta_tsd_iter (const td_thragent_t *ta, td_key_iter_f *callback,
int pthread_keys_max;
int cnt;

LOG (__FUNCTION__);
LOG ("td_ta_tsd_iter");

/* Test whether the TA parameter is ok. */
if (! ta_ok (ta))
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_thr_clear_event.c
@@ -1,5 +1,5 @@
/* 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.
Expand Down Expand Up @@ -31,7 +31,7 @@ td_thr_clear_event (th, event)
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,
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_thr_dbresume.c
@@ -1,5 +1,5 @@
/* 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.
Expand All @@ -25,6 +25,6 @@ td_err_e
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;
}
4 changes: 2 additions & 2 deletions linuxthreads_db/td_thr_dbsuspend.c
@@ -1,5 +1,5 @@
/* 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.
Expand All @@ -25,6 +25,6 @@ td_err_e
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;
}
4 changes: 2 additions & 2 deletions linuxthreads_db/td_thr_event_enable.c
@@ -1,5 +1,5 @@
/* 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.
Expand Down Expand Up @@ -28,7 +28,7 @@ td_thr_event_enable (th, onoff)
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,
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_thr_event_getmsg.c
@@ -1,5 +1,5 @@
/* 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.
Expand Down Expand Up @@ -29,7 +29,7 @@ td_thr_event_getmsg (const td_thrhandle_t *th, td_event_msg_t *msg)
{
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,
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_thr_get_info.c
@@ -1,5 +1,5 @@
/* 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.
Expand Down Expand Up @@ -29,7 +29,7 @@ td_thr_get_info (const td_thrhandle_t *th, td_thrinfo_t *infop)
{
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,
Expand Down
2 changes: 1 addition & 1 deletion linuxthreads_db/td_thr_getfpregs.c
Expand Up @@ -26,7 +26,7 @@ td_thr_getfpregs (const td_thrhandle_t *th, prfpregset_t *regset)
{
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,
Expand Down
2 changes: 1 addition & 1 deletion linuxthreads_db/td_thr_getgregs.c
Expand Up @@ -26,7 +26,7 @@ td_thr_getgregs (const td_thrhandle_t *th, prgregset_t gregs)
{
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,
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads_db/td_thr_getxregs.c
@@ -1,5 +1,5 @@
/* 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.
Expand All @@ -25,6 +25,6 @@ td_err_e
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;
}

0 comments on commit 5e67a81

Please sign in to comment.