Windows-specific iterate_over_objfiles_in_search_order
authorJoel Brobecker <brobecker@gnat.com>
Tue, 5 Jun 2012 13:50:57 +0000 (13:50 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 5 Jun 2012 13:50:57 +0000 (13:50 +0000)
commita8e1bb344dad8bc875d9faf0c68d41bca8e142c1
tree8fbfa55b7fa459dfb0aa52ffa166f8d200a5d94b
parent19630284f570790ebf6d50bfb43caa1f125ee88a
Windows-specific iterate_over_objfiles_in_search_order

This patch sets the windows target to use their own version of
the iterate_over_objfiles_in_search_order gdbarch method, in
order to make global symbol searches sensitive to the current
objfile.

gdb/ChangeLog:

        * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
        Add declaration.
        * windows-tdep.c: #include "objfiles.h".
        (windows_iterate_over_objfiles_in_search_order): New function.
        * amd64-windows-tdep.c (amd64_windows_init_abi): Set
        iterate_over_objfiles_in_search_order gdbarch method to
        windows_iterate_over_objfiles_in_search_order.
        * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
gdb/ChangeLog
gdb/amd64-windows-tdep.c
gdb/i386-cygwin-tdep.c
gdb/windows-tdep.c
gdb/windows-tdep.h