* arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
authorDoug Evans <dje@google.com>
Thu, 4 Mar 2010 16:39:57 +0000 (16:39 +0000)
committerDoug Evans <dje@google.com>
Thu, 4 Mar 2010 16:39:57 +0000 (16:39 +0000)
gdb/ChangeLog
gdb/arm-tdep.c

index 128cc9afede6d1372c42d9d48d77fa8cbf188035..b0861d04f3ec21e4af974db02290549c4a433950 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-04  Doug Evans  <dje@google.com>
+
+       * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
+
 2010-03-04  Pedro Alves  <pedro@codesourcery.com>
 
        * breakpoint.c (update_watchpoint): Create a sentinel location if
index 80be2ccf6306f7e043fcd6cdd7df582394d20c7e..353bc487f373e826e0d9ba8909eed72a658a4c80 100644 (file)
@@ -1236,6 +1236,8 @@ arm_stub_unwind_sniffer (const struct frame_unwind *self,
 
   addr_in_block = get_frame_address_in_block (this_frame);
   if (in_plt_section (addr_in_block, NULL)
+      /* We also use the stub winder if the target memory is unreadable
+        to avoid having the prologue unwinder trying to read it.  */
       || target_read_memory (get_frame_pc (this_frame), dummy, 4) != 0)
     return 1;