From 4c8429eff1e1d9e511b227b6ea0b15c06c376e30 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 9 Apr 2013 02:17:17 +0000 Subject: [PATCH] * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to long. --- gdb/ChangeLog | 5 +++++ gdb/symmisc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f29661fdab9..5fd218da857 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-04-08 Tom Tromey + + * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to + long. + 2013-04-08 Tom Tromey * maint.c (print_bfd_section_info): Print the section index. diff --git a/gdb/symmisc.c b/gdb/symmisc.c index c4bf97e37c7..52c934ab536 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -268,7 +268,7 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile) section->the_bfd_section)); else fprintf_filtered (outfile, " spurious section %ld", - section - objfile->sections); + (long) (section - objfile->sections)); } if (SYMBOL_DEMANGLED_NAME (msymbol) != NULL) { -- 2.30.2