diff options
author | Alan Modra <amodra@gmail.com> | 2014-08-05 10:37:38 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-08-05 10:37:48 +0930 |
commit | 241fd515ad94fa11d4608d4fe8108c382792d3be (patch) | |
tree | 8154bce0ae0a1ec83b36a9252b794cad982bac66 /gdb/cp-valprint.c | |
parent | 8479caa19304089b2ef42867e406a008bf5fbc4d (diff) | |
download | gdb-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/cp-valprint.c')
-rw-r--r-- | gdb/cp-valprint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 3e1d6ed..93b95b3 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -208,8 +208,8 @@ cp_print_value_fields (struct type *type, struct type *real_type, fprintf_filtered (stream, "<No data fields>"); else { - int statmem_obstack_initial_size = 0; - int stat_array_obstack_initial_size = 0; + size_t statmem_obstack_initial_size = 0; + size_t stat_array_obstack_initial_size = 0; struct type *vptr_basetype = NULL; int vptr_fieldno; @@ -370,7 +370,7 @@ cp_print_value_fields (struct type *type, struct type *real_type, if (dont_print_statmem == 0) { - int obstack_final_size = + size_t obstack_final_size = obstack_object_size (&dont_print_statmem_obstack); if (obstack_final_size > statmem_obstack_initial_size) @@ -387,7 +387,7 @@ cp_print_value_fields (struct type *type, struct type *real_type, if (last_set_recurse != recurse) { - int obstack_final_size = + size_t obstack_final_size = obstack_object_size (&dont_print_stat_array_obstack); if (obstack_final_size > stat_array_obstack_initial_size) |