]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin: add newline to if statements
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 23 Dec 2025 06:25:57 +0000 (07:25 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 23 Dec 2025 06:25:57 +0000 (07:25 +0100)
For some reason on macOS 12 the apple pointer is wrong. It's a pain
to debug code where the if and the true statement are on the same
line.

coregrind/m_initimg/initimg-darwin.c

index 4a8e8a0d78dd766b90b1552c0d12335ac7245fe5..869f5ff83c9605c1613e474450573775e73688ff 100644 (file)
@@ -393,7 +393,8 @@ Addr setup_client_stack( void*  init_sp,
 #endif
 
    /* Darwin mach_header */
-   if (info->dynamic) auxsize += sizeof(Word);
+   if (info->dynamic)
+       auxsize += sizeof(Word);
 
    /* OK, now we know how big the client stack is */
    stacksize =
@@ -443,7 +444,8 @@ Addr setup_client_stack( void*  init_sp,
    ptr = (Addr*)client_SP;
 
    /* --- mach_header --- */
-   if (info->dynamic) *ptr++ = info->text;
+   if (info->dynamic)
+      *ptr++ = info->text;
 
    /* --- client argc --- */
    *ptr++ = (Addr)(argc + 1);