|
From: <sv...@va...> - 2005-09-23 19:58:07
|
Author: sewardj
Date: 2005-09-23 20:58:00 +0100 (Fri, 23 Sep 2005)
New Revision: 4740
Log:
Reinstate stack-change tracking code.
Modified:
branches/ASPACEM/coregrind/m_main.c
branches/ASPACEM/coregrind/m_signals.c
branches/ASPACEM/coregrind/m_stacks.c
Modified: branches/ASPACEM/coregrind/m_main.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
--- branches/ASPACEM/coregrind/m_main.c 2005-09-23 19:28:47 UTC (rev 4739=
)
+++ branches/ASPACEM/coregrind/m_main.c 2005-09-23 19:58:00 UTC (rev 4740=
)
@@ -495,6 +495,10 @@
/* The max stack size */
clstack_max_size =3D VG_PGROUNDUP(clstack_max_size);
=20
+ /* Record stack extent -- needed for stack-change code. */
+ VG_(clstk_base) =3D clstack_start;
+ VG_(clstk_end) =3D clstack_end;
+
if (0)
VG_(printf)("stringsize=3D%d auxsize=3D%d stacksize=3D%d maxsize=3D=
0x%x\n"
"clstack_start %p\n"
Modified: branches/ASPACEM/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
--- branches/ASPACEM/coregrind/m_signals.c 2005-09-23 19:28:47 UTC (rev 4=
739)
+++ branches/ASPACEM/coregrind/m_signals.c 2005-09-23 19:58:00 UTC (rev 4=
740)
@@ -82,6 +82,7 @@
#include "pub_core_basics.h"
#include "pub_core_debuglog.h"
#include "pub_core_threadstate.h"
+#include "pub_core_clientstate.h"
#include "pub_core_aspacemgr.h"
#include "pub_core_debugger.h" // For VG_(start_debugger)
#include "pub_core_errormgr.h"
@@ -1743,7 +1744,7 @@
=20
/* When we change the main stack, we have to let the stack handling
code know about it. */
- /// FIXME VG_(change_stack)(VG_(clstk_id), base, VG_(clstk_end));
+ VG_(change_stack)(VG_(clstk_id), addr, VG_(clstk_end));
=20
if (VG_(clo_sanity_level) > 2)
VG_(sanity_check_general)(False);
Modified: branches/ASPACEM/coregrind/m_stacks.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
--- branches/ASPACEM/coregrind/m_stacks.c 2005-09-23 19:28:47 UTC (rev 47=
39)
+++ branches/ASPACEM/coregrind/m_stacks.c 2005-09-23 19:58:00 UTC (rev 47=
40)
@@ -151,6 +151,9 @@
UWord VG_(register_stack)(Addr start, Addr end)
{
Stack *i;
+
+ if (0) VG_(printf)("REGISTER STACK %p %p\n", start,end);
+
if (start > end) {
Addr t =3D end;
end =3D start;
|