This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Prepare gdb for 64-bit obstacks
- From: Tom Tromey <tromey at redhat dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 04 Aug 2014 08:01:05 -0600
- Subject: Re: Prepare gdb for 64-bit obstacks
- Authentication-results: sourceware.org; auth=none
- References: <20140804085229 dot GP23728 at bubble dot grove dot modra dot org>
>>>>> "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