Module Name:    src
Committed By:   christos
Date:           Mon Aug 14 22:42:02 UTC 2023

Modified Files:
        src/external/gpl3/gdb/dist/sim/ppc: hw_sem.c hw_shm.c

Log Message:
fix cross-build host amd64, target ppc


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.2 src/external/gpl3/gdb/dist/sim/ppc/hw_sem.c \
    src/external/gpl3/gdb/dist/sim/ppc/hw_shm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/sim/ppc/hw_sem.c
diff -u src/external/gpl3/gdb/dist/sim/ppc/hw_sem.c:1.1.1.3 src/external/gpl3/gdb/dist/sim/ppc/hw_sem.c:1.2
--- src/external/gpl3/gdb/dist/sim/ppc/hw_sem.c:1.1.1.3	Sun Jul 30 18:44:20 2023
+++ src/external/gpl3/gdb/dist/sim/ppc/hw_sem.c	Mon Aug 14 18:42:02 2023
@@ -120,7 +120,7 @@ hw_sem_init_data(device *me)
     error("sem_init_data() required value property is missing\n");
 
   sem->key = (key_t) device_find_integer_property(me, "key");
-  DTRACE(sem, ("semaphore key (%d)\n", sem->key) );
+  DTRACE(sem, ("semaphore key (%jd)\n", (intmax_t)sem->key) );
 
   sem->initial = (int) device_find_integer_property(me, "value");
   DTRACE(sem, ("semaphore initial value (%d)\n", sem->initial) );
Index: src/external/gpl3/gdb/dist/sim/ppc/hw_shm.c
diff -u src/external/gpl3/gdb/dist/sim/ppc/hw_shm.c:1.1.1.3 src/external/gpl3/gdb/dist/sim/ppc/hw_shm.c:1.2
--- src/external/gpl3/gdb/dist/sim/ppc/hw_shm.c:1.1.1.3	Sun Jul 30 18:44:20 2023
+++ src/external/gpl3/gdb/dist/sim/ppc/hw_shm.c	Mon Aug 14 18:42:02 2023
@@ -97,7 +97,7 @@ hw_shm_init_data(device *me)
     error("shm_init_data() required key property is missing\n");
 
   shm->key = (key_t) device_find_integer_property(me, "key");
-  DTRACE(shm, ("shm key (0x%08x)\n", shm->key) );
+  DTRACE(shm, ("shm key (0x%08jx)\n", (intmax_t)shm->key) );
   
   /* Figure out where this memory is in address space and how long it is */
   if ( !device_find_reg_array_property(me, "reg", 0, &reg) )

Reply via email to