Cache the text section offset of shared libraries
[deliverable/binutils-gdb.git] / gdb / windows-nat.c
index 901e64263c63c2e12c19d06ba059495d0213dc22..366c98fbf3ba131e33950e79d10de308cef5f130 100644 (file)
@@ -682,6 +682,7 @@ windows_nat_target::store_registers (struct regcache *regcache, int r)
 struct lm_info_windows : public lm_info_base
 {
   LPVOID load_addr = 0;
+  CORE_ADDR text_offset = 0;
 };
 
 static struct so_list solib_start, *solib_end;
@@ -2974,6 +2975,7 @@ windows_xfer_shared_libraries (struct target_ops *ops,
 
       windows_xfer_shared_library (so->so_name, (CORE_ADDR)
                                   (uintptr_t) li->load_addr,
+                                  &li->text_offset,
                                   target_gdbarch (), &obstack);
     }
   obstack_grow_str0 (&obstack, "</library-list>\n");
This page took 0.039492 seconds and 4 git commands to generate.