diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-06-05 13:50:57 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-06-05 13:50:57 +0000 |
commit | a8e1bb344dad8bc875d9faf0c68d41bca8e142c1 (patch) | |
tree | 8fbfa55b7fa459dfb0aa52ffa166f8d200a5d94b /gdb/windows-tdep.h | |
parent | 19630284f570790ebf6d50bfb43caa1f125ee88a (diff) | |
download | gdb-a8e1bb344dad8bc875d9faf0c68d41bca8e142c1.zip gdb-a8e1bb344dad8bc875d9faf0c68d41bca8e142c1.tar.gz gdb-a8e1bb344dad8bc875d9faf0c68d41bca8e142c1.tar.bz2 |
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.
Diffstat (limited to 'gdb/windows-tdep.h')
-rw-r--r-- | gdb/windows-tdep.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/windows-tdep.h b/gdb/windows-tdep.h index c790e0a..20bf66d 100644 --- a/gdb/windows-tdep.h +++ b/gdb/windows-tdep.h @@ -29,4 +29,9 @@ extern void windows_xfer_shared_library (const char* so_name, CORE_ADDR load_addr, struct gdbarch *gdbarch, struct obstack *obstack); + +extern void windows_iterate_over_objfiles_in_search_order + (struct gdbarch *gdbarch, + iterate_over_objfiles_in_search_order_cb_ftype *cb, + void *cb_data, struct objfile *current_objfile); #endif |