Fixed formatting of output in some debugger commands.
Currently all debugger commands assume 32-bit pointers when formatting their output. This means that on x86_64 the output is incorrectly formatted. Fixed this by adding a B_PRINTF_POINTER_WIDTH definition (16 on 64-bit, 8 on 32-bit), and using this to correctly format the output. Not all commands have been fixed yet, but all VM, slab, VFS, team, thread and image commands should be correct.
This commit is contained in:
@@ -148,6 +148,14 @@ typedef generic_addr_t generic_size_t;
|
||||
#define B_PRIiTIME B_PRIi32
|
||||
|
||||
|
||||
/* Printed width of a pointer with the %p format (minus 0x prefix). */
|
||||
#ifdef B_HAIKU_64_BIT
|
||||
# define B_PRINTF_POINTER_WIDTH 16
|
||||
#else
|
||||
# define B_PRINTF_POINTER_WIDTH 8
|
||||
#endif
|
||||
|
||||
|
||||
/* Empty string ("") */
|
||||
#ifdef __cplusplus
|
||||
extern const char *B_EMPTY_STRING;
|
||||
|
||||
Reference in New Issue
Block a user