|
From: <sv...@va...> - 2006-12-17 19:36:07
|
Author: sewardj
Date: 2006-12-17 19:36:06 +0000 (Sun, 17 Dec 2006)
New Revision: 6409
Log:
Rename VG_(get_lwp_tid) to VG_(lwpid_to_vgtid).
Modified:
trunk/coregrind/m_libcassert.c
trunk/coregrind/m_signals.c
trunk/coregrind/m_syswrap/syswrap-generic.c
trunk/coregrind/m_threadstate.c
trunk/coregrind/pub_core_threadstate.h
Modified: trunk/coregrind/m_libcassert.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_libcassert.c 2006-12-17 18:58:55 UTC (rev 6408)
+++ trunk/coregrind/m_libcassert.c 2006-12-17 19:36:06 UTC (rev 6409)
@@ -130,7 +130,8 @@
{
Addr stacktop;
Addr ips[BACKTRACE_DEPTH];
- ThreadState *tst =3D VG_(get_ThreadState)( VG_(get_lwp_tid)(VG_(getti=
d)()) );
+ ThreadState *tst=20
+ =3D VG_(get_ThreadState)( VG_(lwpid_to_vgtid)( VG_(gettid)() ) );
=20
// If necessary, fake up an ExeContext which is of our actual real CP=
U
// state. Could cause problems if we got the panic/exception within =
the
Modified: trunk/coregrind/m_signals.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_signals.c 2006-12-17 18:58:55 UTC (rev 6408)
+++ trunk/coregrind/m_signals.c 2006-12-17 19:36:06 UTC (rev 6409)
@@ -1567,7 +1567,7 @@
static=20
void async_signalhandler ( Int sigNo, vki_siginfo_t *info, struct vki_uc=
ontext *uc )
{
- ThreadId tid =3D VG_(get_lwp_tid)(VG_(gettid)());
+ ThreadId tid =3D VG_(lwpid_to_vgtid)(VG_(gettid)());
ThreadState *tst =3D VG_(get_ThreadState)(tid);
=20
#ifdef VGO_linux
@@ -1687,7 +1687,7 @@
static
void sync_signalhandler ( Int sigNo, vki_siginfo_t *info, struct vki_uco=
ntext *uc )
{
- ThreadId tid =3D VG_(get_lwp_tid)(VG_(gettid)());
+ ThreadId tid =3D VG_(lwpid_to_vgtid)(VG_(gettid)());
=20
vg_assert(info !=3D NULL);
vg_assert(info->si_signo =3D=3D sigNo);
@@ -1857,7 +1857,8 @@
from the client's code, then we can jump back into the scheduler
and have it delivered. Otherwise it's a Valgrind bug. */
{ =20
- ThreadState *tst =3D VG_(get_ThreadState)(VG_(get_lwp_tid)(VG_(get=
tid)()));
+ ThreadState *tst=20
+ =3D VG_(get_ThreadState)(VG_(lwpid_to_vgtid)(VG_(gettid)()));
=20
if (VG_(sigismember)(&tst->sig_mask, sigNo)) {
/* signal is blocked, but they're not allowed to block faults */
@@ -1908,7 +1909,7 @@
*/
static void sigvgkill_handler(int signo, vki_siginfo_t *si, struct vki_u=
context *uc)
{
- ThreadId tid =3D VG_(get_lwp_tid)(VG_(gettid)());
+ ThreadId tid =3D VG_(lwpid_to_vgtid)(VG_(gettid)());
ThreadStatus at_signal =3D VG_(threads)[tid].status;
=20
if (VG_(clo_trace_signals))
Modified: trunk/coregrind/m_syswrap/syswrap-generic.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syswrap/syswrap-generic.c 2006-12-17 18:58:55 UTC (=
rev 6408)
+++ trunk/coregrind/m_syswrap/syswrap-generic.c 2006-12-17 19:36:06 UTC (=
rev 6409)
@@ -4722,7 +4722,7 @@
if (pid <=3D 0)
return False;
=20
- tid =3D VG_(get_lwp_tid)(pid);
+ tid =3D VG_(lwpid_to_vgtid)(pid);
if (tid =3D=3D VG_INVALID_THREADID)
return False; /* none of our threads */
=20
Modified: trunk/coregrind/m_threadstate.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_threadstate.c 2006-12-17 18:58:55 UTC (rev 6408)
+++ trunk/coregrind/m_threadstate.c 2006-12-17 19:36:06 UTC (rev 6409)
@@ -126,7 +126,7 @@
=20
/* Given an LWP id (ie, real kernel thread id), find the corresponding
ThreadId */
-ThreadId VG_(get_lwp_tid)(Int lwp)
+ThreadId VG_(lwpid_to_vgtid)(Int lwp)
{
ThreadId tid;
=20
Modified: trunk/coregrind/pub_core_threadstate.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/pub_core_threadstate.h 2006-12-17 18:58:55 UTC (rev 6=
408)
+++ trunk/coregrind/pub_core_threadstate.h 2006-12-17 19:36:06 UTC (rev 6=
409)
@@ -257,7 +257,7 @@
=20
/* Given an LWP id (ie, real kernel thread id), find the corresponding
ThreadId */
-extern ThreadId VG_(get_lwp_tid)(Int lwpid);
+extern ThreadId VG_(lwpid_to_vgtid)(Int lwpid);
=20
#endif // __PUB_CORE_THREADSTATE_H
=20
|