aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2003-02-04 14:31:04 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2003-02-04 14:31:04 +0000
commit22d822350adbb893b9ee44223a1468bf861d3b38 (patch)
tree5228322499e5562d8ff0bf043fa6af76b7e33c01
parent0cca5f05a96ecb0545719d462436413ce77b8a27 (diff)
downloadgdb-22d822350adbb893b9ee44223a1468bf861d3b38.zip
gdb-22d822350adbb893b9ee44223a1468bf861d3b38.tar.gz
gdb-22d822350adbb893b9ee44223a1468bf861d3b38.tar.bz2
* rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to
long and use %ld in printf format.
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/rddbg.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index eebf029..d822fc9 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-04 Andreas Schwab <schwab@suse.de>
+
+ * rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to
+ long and use %ld in printf format.
+
2003-01-28 Richard Sandiford <rsandifo@redhat.com>
* readelf.c (dump_relocations): Reorder the r_info field for
diff --git a/binutils/rddbg.c b/binutils/rddbg.c
index 2e0fd67..2f6ec6e 100644
--- a/binutils/rddbg.c
+++ b/binutils/rddbg.c
@@ -193,9 +193,9 @@ read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound)
if (stroff + strx > strsize)
{
- fprintf (stderr, "%s: %s: stab entry %d is corrupt, strx = 0x%x, type = %d\n",
+ fprintf (stderr, "%s: %s: stab entry %ld is corrupt, strx = 0x%x, type = %d\n",
bfd_get_filename (abfd), names[i].secname,
- (stab - stabs) / 12, strx, type);
+ (long) (stab - stabs) / 12, strx, type);
continue;
}