Prepare gdb for 64-bit obstacks

Tom Tromey tromey@redhat.com
Mon Aug 4 14:01:00 GMT 2014


>>>>> "Alan" == Alan Modra <amodra@gmail.com> writes:

Alan> Also for another upstream obstack change, obstack_base() now returning
Alan> a void*.  I didn't go wild with int -> size_t changes, making only
Alan> obvious changes close to obstack calls.

Alan> This patch of course also works with the existing libiberty obstacks.
Alan> OK to apply?

Alan> -    printf_filtered (_("  Total memory used for objfile obstack: %d\n"),
Alan> +    printf_filtered (_("  Total memory used for objfile obstack: %lu\n"),
Alan> +		     (unsigned long)
Alan>  		     obstack_memory_used (&objfile->objfile_obstack));
Alan> -    printf_filtered (_("  Total memory used for BFD obstack: %d\n"),
Alan> +    printf_filtered (_("  Total memory used for BFD obstack: %lu\n"),
Alan> +		     (unsigned long)
Alan>  		     obstack_memory_used (&objfile->per_bfd->storage_obstack));

It's more normal in gdb to use %s here along with pulongest (...).

Ok with that change.

thanks,
Tom



More information about the Gdb-patches mailing list