aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64-windows-tdep.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-06-05 13:50:57 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-06-05 13:50:57 +0000
commita8e1bb344dad8bc875d9faf0c68d41bca8e142c1 (patch)
tree8fbfa55b7fa459dfb0aa52ffa166f8d200a5d94b /gdb/amd64-windows-tdep.c
parent19630284f570790ebf6d50bfb43caa1f125ee88a (diff)
downloadgdb-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/amd64-windows-tdep.c')
-rw-r--r--gdb/amd64-windows-tdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c
index 4a40f47..41e0efa 100644
--- a/gdb/amd64-windows-tdep.c
+++ b/gdb/amd64-windows-tdep.c
@@ -23,6 +23,7 @@
#include "gdbtypes.h"
#include "gdbcore.h"
#include "regcache.h"
+#include "windows-tdep.h"
/* The registers used to pass integer arguments during a function call. */
static int amd64_windows_dummy_call_integer_regs[] =
@@ -174,6 +175,9 @@ amd64_windows_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_return_value (gdbarch, amd64_windows_return_value);
set_gdbarch_skip_main_prologue (gdbarch, amd64_skip_main_prologue);
+ set_gdbarch_iterate_over_objfiles_in_search_order
+ (gdbarch, windows_iterate_over_objfiles_in_search_order);
+
set_solib_ops (gdbarch, &solib_target_so_ops);
}