This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Prepare gdb for 64-bit obstacks


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]