[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BFD xsym.c v1.3 variable index undefined in function
From: |
Alan Modra |
Subject: |
Re: BFD xsym.c v1.3 variable index undefined in function |
Date: |
Wed, 19 Feb 2003 18:13:25 +1030 |
User-agent: |
Mutt/1.4i |
On Tue, Feb 18, 2003 at 03:27:05AM -0500, Neb Revod wrote:
> In the snippet below, from: /src/binutils/bfd/xsym.c the variable `index'
> is not defined, I think it should be `offset' instead.
Certainly looks like it.
> int
> bfd_sym_fetch_type_information_table_entry (abfd, entry, offset)
> bfd *abfd;
> bfd_sym_type_information_table_entry *entry;
> unsigned long offset;
> {
> unsigned char buf[4];
> bfd_sym_data_struct *sdata = NULL;
>
> BFD_ASSERT (bfd_sym_valid (abfd));
> sdata = abfd->tdata.sym_data;
>
> if (index == 0) /* should be offset instead of index ? */
> return -1;
--
Alan Modra
IBM OzLabs - Linux Technology Centre