From Brian Taylor <briant at model dot com>:
* ui-out.c (ui_out_field_core_addr): Use the function longest_local_hex_string_custom'to format addresses > 32 bits wide. * ui-out.c (ui_out_field_core_addr): Update comment.
This commit is contained in:
parent
bedfa57bf4
commit
535c96ce65
2 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2002-05-04 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
|
From Brian Taylor <briant at model dot com>:
|
||||||
|
* ui-out.c (ui_out_field_core_addr): Use the function
|
||||||
|
longest_local_hex_string_custom'to format addresses > 32 bits
|
||||||
|
wide.
|
||||||
|
|
||||||
|
* ui-out.c (ui_out_field_core_addr): Update comment.
|
||||||
|
|
||||||
2002-05-04 Andrew Cagney <ac131313@redhat.com>
|
2002-05-04 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
* stack.c (select_and_print_frame): Make static. Delete the
|
* stack.c (select_and_print_frame): Make static. Delete the
|
||||||
|
|
|
@ -492,9 +492,14 @@ ui_out_field_core_addr (struct ui_out *uiout,
|
||||||
{
|
{
|
||||||
char addstr[20];
|
char addstr[20];
|
||||||
|
|
||||||
/* FIXME-32x64: need a print_address_numeric with field width */
|
/* FIXME: cagney/2002-05-03: Need local_address_string() function
|
||||||
|
that returns the language localized string formatted to a width
|
||||||
|
based on TARGET_ADDR_BIT. */
|
||||||
/* print_address_numeric (address, 1, local_stream); */
|
/* print_address_numeric (address, 1, local_stream); */
|
||||||
|
if (TARGET_ADDR_BIT <= 32)
|
||||||
strcpy (addstr, local_hex_string_custom ((unsigned long) address, "08l"));
|
strcpy (addstr, local_hex_string_custom ((unsigned long) address, "08l"));
|
||||||
|
else
|
||||||
|
strcpy (addstr, local_hex_string_custom ((unsigned long) address, "016l"));
|
||||||
|
|
||||||
ui_out_field_string (uiout, fldname, addstr);
|
ui_out_field_string (uiout, fldname, addstr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue