[0/10] RFC: remove obj_section field

Sandra Loosemore sandra@codesourcery.com
Tue Apr 9 12:47:00 GMT 2013


On 04/08/2013 07:15 PM, Tom Tromey wrote:
>>>>>> "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)
>   	{
>

This builds, at least.  :-)  Thanks.

-Sandra



More information about the Gdb-patches mailing list