forked from Imagelibrary/binutils-gdb
gas: drop sprint_value()
Its (documented) behavior is unhelpful in particular in 64-bit build environments: While printing large 32-bit numbers in decimal already isn't very meaningful to most people, this even more so goes for yet larger 64-bit numbers. bfd_sprintf_vma() still tries to limit the number of digits printed (without depending on a build system property), but uniformly produces hex output.
This commit is contained in:
@@ -356,22 +356,6 @@ signal_init (void)
|
||||
|
||||
/* Support routines. */
|
||||
|
||||
void
|
||||
sprint_value (char *buf, valueT val)
|
||||
{
|
||||
if (sizeof (val) <= sizeof (long))
|
||||
{
|
||||
sprintf (buf, "%ld", (long) val);
|
||||
return;
|
||||
}
|
||||
if (sizeof (val) <= sizeof (bfd_vma))
|
||||
{
|
||||
sprintf_vma (buf, val);
|
||||
return;
|
||||
}
|
||||
abort ();
|
||||
}
|
||||
|
||||
#define HEX_MAX_THRESHOLD 1024
|
||||
#define HEX_MIN_THRESHOLD -(HEX_MAX_THRESHOLD)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user