Fred Drake
a44d353e2b
Trent Mick <trentm@activestate.com>:
...
The common technique for printing out a pointer has been to cast to a long
and use the "%lx" printf modifier. This is incorrect on Win64 where casting
to a long truncates the pointer. The "%p" formatter should be used instead.
The problem as stated by Tim:
> Unfortunately, the C committee refused to define what %p conversion "looks
> like" -- they explicitly allowed it to be implementation-defined. Older
> versions of Microsoft C even stuck a colon in the middle of the address (in
> the days of segment+offset addressing)!
The result is that the hex value of a pointer will maybe/maybe not have a 0x
prepended to it.
Notes on the patch:
There are two main classes of changes:
- in the various repr() functions that print out pointers
- debugging printf's in the various thread_*.h files (these are why the
patch is large)
Closes SourceForge patch #100505 .
2000-06-30 15:01:00 +00:00
..
2000-03-28 20:29:59 +00:00
2000-06-27 21:49:47 +00:00
2000-06-28 21:23:33 +00:00
2000-06-30 13:55:15 +00:00
2000-06-30 15:01:00 +00:00
2000-05-02 18:34:30 +00:00
2000-05-03 23:44:39 +00:00
2000-06-28 21:27:21 +00:00
2000-05-02 21:18:13 +00:00
2000-02-29 13:59:29 +00:00
2000-06-30 04:17:11 +00:00
1999-12-16 17:52:08 +00:00
2000-05-03 23:44:39 +00:00
1997-04-29 21:34:16 +00:00
1997-04-29 15:43:55 +00:00
1997-04-29 15:35:28 +00:00
2000-05-03 23:44:39 +00:00
2000-06-30 02:29:22 +00:00
1997-04-29 20:31:59 +00:00
2000-06-30 05:02:53 +00:00
2000-02-01 20:12:39 +00:00
2000-06-19 13:17:41 +00:00
1998-04-28 16:09:16 +00:00
2000-05-03 23:44:39 +00:00
2000-05-03 23:44:39 +00:00
1999-01-27 18:04:05 +00:00
2000-02-29 13:59:29 +00:00
2000-06-30 15:01:00 +00:00
2000-05-03 23:44:39 +00:00
1999-04-19 16:50:26 +00:00
1998-12-10 16:49:28 +00:00
2000-06-30 05:02:53 +00:00
2000-05-03 23:44:39 +00:00
1999-08-27 20:39:37 +00:00
2000-06-28 21:29:03 +00:00
1998-10-21 16:10:40 +00:00
1998-12-04 18:50:17 +00:00
1998-12-04 18:50:17 +00:00
1997-10-01 04:29:29 +00:00
1997-09-03 00:45:30 +00:00
1997-09-28 05:52:41 +00:00
2000-05-03 23:44:39 +00:00
2000-05-02 19:20:26 +00:00
2000-06-28 16:42:14 +00:00
1999-05-21 19:18:49 +00:00
1998-04-09 21:46:02 +00:00
2000-05-11 18:42:27 +00:00
1996-07-21 02:34:55 +00:00
1996-08-19 22:12:39 +00:00
2000-05-03 23:44:39 +00:00
2000-06-18 19:06:49 +00:00
2000-06-30 15:01:00 +00:00
2000-06-30 05:02:53 +00:00
2000-05-03 23:44:39 +00:00
1998-12-04 18:50:17 +00:00
2000-05-03 23:44:39 +00:00
1998-05-07 15:32:44 +00:00
2000-06-28 20:56:30 +00:00
2000-05-03 23:44:39 +00:00
2000-06-29 21:12:41 +00:00
2000-02-29 13:59:29 +00:00
1998-12-04 18:50:17 +00:00
2000-06-27 00:33:30 +00:00
2000-06-01 03:02:48 +00:00
1998-12-07 14:28:47 +00:00
2000-06-28 21:30:31 +00:00
2000-05-03 23:44:39 +00:00
1999-04-10 15:48:23 +00:00
1997-09-03 00:47:36 +00:00
2000-02-29 13:59:29 +00:00
1998-12-04 18:50:17 +00:00
2000-06-28 21:31:10 +00:00
2000-06-28 21:18:13 +00:00
2000-06-29 14:40:45 +00:00
2000-06-30 05:02:53 +00:00
1996-12-10 00:32:31 +00:00
2000-05-03 23:44:39 +00:00
2000-06-28 22:26:21 +00:00
2000-06-30 02:46:07 +00:00
2000-02-29 13:59:29 +00:00
2000-06-30 10:41:31 +00:00
2000-06-29 18:03:25 +00:00
2000-05-03 23:44:39 +00:00
2000-06-01 02:02:46 +00:00
2000-05-03 23:44:39 +00:00
2000-05-03 23:44:39 +00:00
2000-02-29 13:59:29 +00:00
1997-09-28 05:52:41 +00:00
1999-01-14 19:31:42 +00:00
2000-05-03 23:44:39 +00:00
2000-06-29 21:31:02 +00:00
1996-01-26 21:10:22 +00:00
1998-12-04 18:50:17 +00:00
1999-11-05 18:11:23 +00:00
2000-06-29 00:06:39 +00:00
2000-03-31 17:26:12 +00:00
2000-03-31 17:26:12 +00:00
2000-03-31 17:26:12 +00:00
2000-05-03 23:44:39 +00:00
1996-10-25 14:44:06 +00:00
1996-10-25 14:44:06 +00:00
2000-05-03 23:44:39 +00:00