This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [0/10] RFC: remove obj_section field
- From: Tom Tromey <tromey at redhat dot com>
- To: Sandra Loosemore <sandra at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Mon, 08 Apr 2013 19:15:25 -0600
- Subject: Re: [0/10] RFC: remove obj_section field
- References: <87txp98l6a dot fsf at fleche dot redhat dot com> <878v4su7rc dot fsf at fleche dot redhat dot com> <51633B20 dot 206 at codesourcery dot com>
>>>>> "Sandra" == Sandra Loosemore <sandra@codesourcery.com> writes:
Sandra> I'm seeing a build error:
Sandra> .../gdb/symmisc.c: In function 'dump_msymbols':
Sandra> .../gdb/symmisc.c:271:10: error: format '%ld' expects argument of type
Sandra> long int', but argument 3 has type 'int' [-Werror=format]
Oops, sorry about that. Please try the appended.
Tom
--- symmisc.c.~1.95.~ 2013-04-08 14:18:45.764743872 -0600
+++ symmisc.c 2013-04-08 19:13:07.605692663 -0600
@@ -268,7 +268,7 @@
section->the_bfd_section));
else
fprintf_filtered (outfile, " spurious section %ld",
- section - objfile->sections);
+ (long) (section - objfile->sections));
}
if (SYMBOL_DEMANGLED_NAME (msymbol) != NULL)
{