aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-08-05 10:37:38 +0930
committerAlan Modra <amodra@gmail.com>2014-08-05 10:37:48 +0930
commit241fd515ad94fa11d4608d4fe8108c382792d3be (patch)
tree8154bce0ae0a1ec83b36a9252b794cad982bac66 /gdb/symmisc.c
parent8479caa19304089b2ef42867e406a008bf5fbc4d (diff)
downloadgdb-241fd515ad94fa11d4608d4fe8108c382792d3be.zip
gdb-241fd515ad94fa11d4608d4fe8108c382792d3be.tar.gz
gdb-241fd515ad94fa11d4608d4fe8108c382792d3be.tar.bz2
Prepare gdb for 64-bit obstacks
* charset.c (convert_between_encodings): Cast result of obstack_base. * cp-valprint.c (cp_print_value_fields): Use size_t locals. * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t. (read_unwind_info): Use size_t for some locals. * jit.c (finalize_symtab): Likewise. * utils.c (hashtab_obstack_allocate): Likewise. * symmisc.c (print_objfile_statistics): Update format strings.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index de2e166..bcb7954 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -143,10 +143,12 @@ print_objfile_statistics (void)
if (OBJSTAT (objfile, sz_strtab) > 0)
printf_filtered (_(" Space used by a.out string tables: %d\n"),
OBJSTAT (objfile, sz_strtab));
- printf_filtered (_(" Total memory used for objfile obstack: %d\n"),
- obstack_memory_used (&objfile->objfile_obstack));
- printf_filtered (_(" Total memory used for BFD obstack: %d\n"),
- obstack_memory_used (&objfile->per_bfd->storage_obstack));
+ printf_filtered (_(" Total memory used for objfile obstack: %s\n"),
+ pulongest (obstack_memory_used (&objfile
+ ->objfile_obstack)));
+ printf_filtered (_(" Total memory used for BFD obstack: %s\n"),
+ pulongest (obstack_memory_used (&objfile->per_bfd
+ ->storage_obstack)));
printf_filtered (_(" Total memory used for psymbol cache: %d\n"),
bcache_memory_used (psymbol_bcache_get_bcache
(objfile->psymbol_cache)));