aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-05-05 03:17:21 +0000
committerAndrew Cagney <cagney@redhat.com>2002-05-05 03:17:21 +0000
commit535c96ce65ae40c2a0088d9b2cbcdbc4ef22fd90 (patch)
treeb587f56abcf466cb78db5aae56e2d9780996c70a /gdb
parentbedfa57bf44ca2f4f8341209f26b153e6349b576 (diff)
downloadgdb-535c96ce65ae40c2a0088d9b2cbcdbc4ef22fd90.zip
gdb-535c96ce65ae40c2a0088d9b2cbcdbc4ef22fd90.tar.gz
gdb-535c96ce65ae40c2a0088d9b2cbcdbc4ef22fd90.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/ui-out.c9
2 files changed, 16 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 847942f..2e046ac 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,14 @@
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>
+
* stack.c (select_and_print_frame): Make static. Delete the
parameter `level'.
(func_command): Update call.
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index 7e27d59..c07d695 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -492,9 +492,14 @@ ui_out_field_core_addr (struct ui_out *uiout,
{
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); */
- strcpy (addstr, local_hex_string_custom ((unsigned long) address, "08l"));
+ if (TARGET_ADDR_BIT <= 32)
+ 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);
}