changeset 3519:896a34d28b71

[xemacs-hg @ 2006-07-19 19:24:41 by crestani] 2006-07-18 Marcus Crestani <crestani@xemacs.org> * gc.c (kkcc_backtrace): Print adresses as pointers. * vdb-posix.c (vdb_fault_handler): Print adresses as pointers.
author crestani
date Wed, 19 Jul 2006 19:24:42 +0000
parents 3cb3c306cce9
children 833d460acd43
files src/ChangeLog src/gc.c src/vdb-posix.c
diffstat 3 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Jul 19 16:36:37 2006 +0000
+++ b/src/ChangeLog	Wed Jul 19 19:24:42 2006 +0000
@@ -1,3 +1,8 @@
+2006-07-18  Marcus Crestani  <crestani@xemacs.org>
+
+	* gc.c (kkcc_backtrace): Print adresses as pointers.
+	* vdb-posix.c (vdb_fault_handler): Print adresses as pointers.
+
 2006-07-18  Marcus Crestani  <crestani@xemacs.org>
 
 	* alloc.c: Fix typo in string_direct_data_description.
--- a/src/gc.c	Wed Jul 19 16:36:37 2006 +0000
+++ b/src/gc.c	Wed Jul 19 19:24:42 2006 +0000
@@ -649,9 +649,9 @@
 	  stderr_out (" %s",
 		      XRECORD_LHEADER_IMPLEMENTATION (obj)->name);
 	}
-      stderr_out (" (addr: 0x%x, desc: 0x%x, ",
-		  (int) kkcc_bt[i].obj,
-		  (int) kkcc_bt[i].desc);
+      stderr_out (" (addr: %p, desc: %p, ",
+		  (void *) kkcc_bt[i].obj,
+		  (void *) kkcc_bt[i].desc);
       if (kkcc_bt[i].pos >= 0)
 	stderr_out ("pos: %d)\n", kkcc_bt[i].pos);
       else
--- a/src/vdb-posix.c	Wed Jul 19 16:36:37 2006 +0000
+++ b/src/vdb-posix.c	Wed Jul 19 19:24:42 2006 +0000
@@ -80,8 +80,8 @@
 	signal_name = "SIGBUS";
       else 
 	ABORT (); /* something weird happened: wrong signal caught */
-      fprintf (stderr, "\n\nFatal Error: Received %s (%d) for address 0x%x\n",
-	       signal_name, signum, (int) GET_FAULT_ADDRESS);
+      fprintf (stderr, "\n\nFatal Error: Received %s (%d) for address %p\n",
+	       signal_name, signum, (void *) GET_FAULT_ADDRESS);
 #ifdef FAULT_HANDLER_CALL_PREVIOUS_HANDLER
       if (signum == SIGSEGV)
 	segv_oact (signum);