]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD: add -v -v tracing for usrstackbase and usrstacklim
authorPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 19 Feb 2024 12:58:01 +0000 (13:58 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 19 Feb 2024 12:58:45 +0000 (13:58 +0100)
coregrind/m_initimg/initimg-freebsd.c

index ba01279ebb56b559a0b7c683e9c8d2e7c588ef8c..9210bfb5dfea46c592ad8b977cc63f70a9a65f63 100644 (file)
@@ -744,10 +744,25 @@ static Addr setup_client_stack(void*  init_sp,
 
 #if (FREEBSD_VERS >= FREEBSD_13_2)
       case VKI_AT_USRSTACKBASE:
+         VG_(debugLog)(2, "initimg",
+                       "usrstackbase from OS %lx\n",
+                       (UWord)auxv->u.a_val);
          auxv->u.a_val = VG_(get_usrstack)();
+         VG_(debugLog)(2, "initimg",
+                       "usrstackbase from aspacemgr %lx\n",
+                       (UWord)auxv->u.a_val);
          break;
       case VKI_AT_USRSTACKLIM:
+         VG_(debugLog)(2, "initimg",
+                       "usrstacklim from OS %lu (%lx)\n",
+                       (UWord)auxv->u.a_val,
+                       (UWord)auxv->u.a_val);
          auxv->u.a_val = clstack_max_size;
+         VG_(debugLog)(2, "initimg",
+                       "usrstacklim from aspacemgr %lu (%lx)\n",
+                       clstack_max_size,
+                       clstack_max_size);
+
          break;
 #endif