summaryrefslogtreecommitdiff
path: root/gdb/memattr.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-05-12 04:20:06 +0000
committerAndrew Cagney <cagney@redhat.com>2002-05-12 04:20:06 +0000
commitec736b630ca5e18e2a8d86ed6091cf6cafe6868d (patch)
tree2765a017bcb49c9eee389199717105d6cce12588 /gdb/memattr.c
parent314bbf98bb53117b1913fcbc517d56b8e69aa597 (diff)
downloadgdb-ec736b630ca5e18e2a8d86ed6091cf6cafe6868d.tar.gz
* language.c (local_hex_string_custom): Simplify. Do not depend
on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG. * memattr.c (mem_info_command): Replace calls to longest_local_hex_string and longest_local_hex_string_custom. * buildsym.c (make_blockvector): Ditto. * solib.c (info_sharedlibrary_command): Ditto. * tracepoint.c (tracepoints_info): Ditto. * symtab.c (print_msymbol_info): Ditto. * language.c (local_hex_string): Delete. (local_hex_string_custom): Delete. (longest_local_hex_string): Rename to local_hex_string. (longest_local_hex_string_custom): Rename to local_hex_string_custom. * language.h (local_hex_string): Change parameter type to LONGEST. (local_hex_string_custom): Ditto. (longest_local_hex_string): Delete declaration. (longest_local_hex_string_custom): Ditto. * solib.c: Update copyright. * memattr.c: Update copyright.
Diffstat (limited to 'gdb/memattr.c')
-rw-r--r--gdb/memattr.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/memattr.c b/gdb/memattr.c
index 7387e8d830d..8c46d7eb168 100644
--- a/gdb/memattr.c
+++ b/gdb/memattr.c
@@ -1,5 +1,6 @@
/* Memory attributes support, for GDB.
- Copyright 2001 Free Software Foundation, Inc.
+
+ Copyright 2001, 2002 Free Software Foundation, Inc.
This file is part of GDB.
@@ -238,16 +239,16 @@ mem_info_command (char *args, int from_tty)
m->number,
m->enabled_p ? 'y' : 'n');
if (TARGET_ADDR_BIT <= 32)
- tmp = longest_local_hex_string_custom ((unsigned long) m->lo, "08l");
+ tmp = local_hex_string_custom ((unsigned long) m->lo, "08l");
else
- tmp = longest_local_hex_string_custom ((unsigned long) m->lo, "016l");
+ tmp = local_hex_string_custom ((unsigned long) m->lo, "016l");
printf_filtered ("%s ", tmp);
if (TARGET_ADDR_BIT <= 32)
- tmp = longest_local_hex_string_custom ((unsigned long) m->hi, "08l");
+ tmp = local_hex_string_custom ((unsigned long) m->hi, "08l");
else
- tmp = longest_local_hex_string_custom ((unsigned long) m->hi, "016l");
+ tmp = local_hex_string_custom ((unsigned long) m->hi, "016l");
printf_filtered ("%s ", tmp);