aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-04-09 02:17:17 +0000
committerTom Tromey <tromey@redhat.com>2013-04-09 02:17:17 +0000
commit4c8429eff1e1d9e511b227b6ea0b15c06c376e30 (patch)
treee1f4b7b48d3f8597d82fb477bde9bb22bbb48b77
parent3c790dccaa4d2e6e6b2bfce19b815bd4debd4335 (diff)
downloadgdb-4c8429eff1e1d9e511b227b6ea0b15c06c376e30.zip
gdb-4c8429eff1e1d9e511b227b6ea0b15c06c376e30.tar.gz
gdb-4c8429eff1e1d9e511b227b6ea0b15c06c376e30.tar.bz2
* symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
long.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/symmisc.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f29661f..5fd218d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2013-04-08 Tom Tromey <tromey@redhat.com>
+ * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
+ long.
+
+2013-04-08 Tom Tromey <tromey@redhat.com>
+
* maint.c (print_bfd_section_info): Print the section index.
* symmisc.c (dump_msymbols): Print the section index.
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index c4bf97e..52c934a 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)
{