[patch] Fix `abfd' -> `obfd' in objfile

Yao Qi yao@codesourcery.com
Wed Jun 1 03:26:00 GMT 2011


struct objfield doesn't have field `abfd', but macro obj_section_addr
and obj_section_endaddr is still using it.  The reason GCC doesn't emit
error for this is that macro bfd_get_section_vma discards the first
parameter ((s)->objfile->abfd).

  #define bfd_get_section_vma(bfd, ptr) ((ptr)->vma + 0)

It is obvious, so I'll check it in later today if no objections.

-- 
Yao (齐尧)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: objfile_abfd_obfd.patch
Type: text/x-patch
Size: 938 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20110601/d9514647/attachment.bin>


More information about the Gdb-patches mailing list