~ubuntu-branches/ubuntu/saucy/cell-gdb/saucy

« back to all changes in this revision

Viewing changes to debian/oldp/spu/diff-spu-gdb-overlay-bpfix

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-24 09:56:11 UTC
  • Revision ID: james.westby@ubuntu.com-20070924095611-n3moal4rh1vhx221
Tags: 6.6.50cvs20070623-1ubuntu1
Fix build dependencies for powerpc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
diff -urN gdb-orig/gdb/breakpoint.c gdb-6.6/gdb/breakpoint.c
2
 
--- gdb-orig/gdb/breakpoint.c   2007-02-28 21:32:57.000000000 +0100
3
 
+++ gdb-6.6/gdb/breakpoint.c    2007-03-03 00:10:36.998120112 +0100
4
 
@@ -1472,8 +1472,14 @@
5
 
                 don't know what the overlay manager might do.  */
6
 
              if (b->loc_type == bp_loc_hardware_breakpoint)
7
 
                val = target_remove_hw_breakpoint (&b->target_info);
8
 
-             else
9
 
+
10
 
+             /* However, we should remove *software* breakpoints only
11
 
+                if the section is still mapped, or else we overwrite
12
 
+                wrong code with the saved shadow contents.  */
13
 
+             else if (section_is_mapped (b->section))
14
 
                val = target_remove_breakpoint (&b->target_info);
15
 
+             else
16
 
+               val = 0;
17
 
            }
18
 
          else
19
 
            {