Closed GoogleCodeExporter closed 9 years ago
addrpad is specifically for using on addresses (hence the addr bit). You can
provide any format string in that location (so "#018x" for 8-byte addresses, #
and 2 additional on the length limit for the 0x at the start). If it changes
based on the architecture then you'll have to write a little wrapper script
based on the native_types of that profile.
It may just be eliding because of the negative sign in front of those values,
are they signed? Addresses aren't signed, so there's no space for it at the
start. I'd either make sure it's unsigned (& 0xffffffff), but that would
potentially confuse anyone expecting a negative number, or use a custom format
specification (there's a helper class available if necessary)...
Original comment by mike.auty@gmail.com
on 1 Mar 2013 at 10:17
Alright, we determined that going with "#018x" is a good solution for this.
Original comment by michael.hale@gmail.com
on 2 Apr 2013 at 2:39
Original issue reported on code.google.com by
michael.hale@gmail.com
on 1 Mar 2013 at 4:38