mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-15 05:01:13 +08:00
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.
This commit is contained in:
@ -3080,7 +3080,7 @@ gdb_sign_extend (LONGEST value, int bit)
|
||||
void *
|
||||
hashtab_obstack_allocate (void *data, size_t size, size_t count)
|
||||
{
|
||||
unsigned int total = size * count;
|
||||
size_t total = size * count;
|
||||
void *ptr = obstack_alloc ((struct obstack *) data, total);
|
||||
|
||||
memset (ptr, 0, total);
|
||||
|
Reference in New Issue
Block a user