]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - gdb/patches/gdb-archer-pie-addons-keep-disabled.patch
gdb: Update to version 7.12
[people/arne_f/ipfire-3.x.git] / gdb / patches / gdb-archer-pie-addons-keep-disabled.patch
diff --git a/gdb/patches/gdb-archer-pie-addons-keep-disabled.patch b/gdb/patches/gdb-archer-pie-addons-keep-disabled.patch
deleted file mode 100644 (file)
index d2b6c71..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-Index: gdb-7.3.50.20110722/gdb/breakpoint.c
-===================================================================
---- gdb-7.3.50.20110722.orig/gdb/breakpoint.c  2011-07-22 19:08:19.000000000 +0200
-+++ gdb-7.3.50.20110722/gdb/breakpoint.c       2011-07-22 19:32:04.000000000 +0200
-@@ -13195,6 +13195,50 @@ iterate_over_breakpoints (int (*callback
-   return NULL;
- }
-+ 
-+void
-+breakpoints_relocate (struct objfile *objfile, struct section_offsets *delta)
-+{
-+  struct bp_location *bl, **blp_tmp;
-+  int changed = 0;
-+
-+  gdb_assert (objfile->separate_debug_objfile_backlink == NULL);
-+
-+  ALL_BP_LOCATIONS (bl, blp_tmp)
-+    {
-+      struct obj_section *osect;
-+
-+      /* BL->SECTION can be correctly NULL for breakpoints with multiple
-+         locations expanded through symtab.  */
-+
-+      ALL_OBJFILE_OSECTIONS (objfile, osect)
-+      {
-+        CORE_ADDR relocated_address;
-+        CORE_ADDR delta_offset;
-+
-+        delta_offset = ANOFFSET (delta, osect->the_bfd_section->index);
-+        if (delta_offset == 0)
-+          continue;
-+        relocated_address = bl->address + delta_offset;
-+
-+        if (obj_section_addr (osect) <= relocated_address
-+            && relocated_address < obj_section_endaddr (osect))
-+          {
-+            if (bl->inserted)
-+              remove_breakpoint (bl, mark_uninserted);
-+
-+            bl->address += delta_offset;
-+            bl->requested_address += delta_offset;
-+
-+            changed = 1;
-+          }
-+      }
-+    }
-+
-+  if (changed)
-+    qsort (bp_location, bp_location_count, sizeof (*bp_location),
-+         bp_location_compare);
-+}
- void
- _initialize_breakpoint (void)
-Index: gdb-7.3.50.20110722/gdb/breakpoint.h
-===================================================================
---- gdb-7.3.50.20110722.orig/gdb/breakpoint.h  2011-07-22 19:08:19.000000000 +0200
-+++ gdb-7.3.50.20110722/gdb/breakpoint.h       2011-07-22 19:31:22.000000000 +0200
-@@ -1328,4 +1328,7 @@ extern int user_breakpoint_p (struct bre
- extern void modify_semaphore (struct bp_location *location, int set);
-+extern void breakpoints_relocate (struct objfile *objfile,
-+                                struct section_offsets *delta);
-+
- #endif /* !defined (BREAKPOINT_H) */
-Index: gdb-7.3.50.20110722/gdb/objfiles.c
-===================================================================
---- gdb-7.3.50.20110722.orig/gdb/objfiles.c    2011-07-22 19:08:19.000000000 +0200
-+++ gdb-7.3.50.20110722/gdb/objfiles.c 2011-07-22 19:31:22.000000000 +0200
-@@ -847,6 +847,11 @@ objfile_relocate1 (struct objfile *objfi
-     objfile->sf->sym_probe_fns->sym_relocate_probe (objfile,
-                                                   new_offsets, delta);
-+  /* Final call of breakpoint_re_set can keep breakpoint locations disabled if
-+     their addresses match.  */
-+  if (objfile->separate_debug_objfile_backlink == NULL)
-+    breakpoints_relocate (objfile, delta);
-+
-   /* Data changed.  */
-   return 1;
- }