2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
authorJose E. Marchesi <jose.marchesi@oracle.com>
Thu, 7 Nov 2013 10:04:28 +0000 (02:04 -0800)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Thu, 7 Nov 2013 10:04:28 +0000 (02:04 -0800)
* sparc-tdep.c (sparc_analyze_control_transfer): Assertion
removed to allow analyzing unconditional branch instructions
with PC-relative offsets of zero.

gdb/ChangeLog
gdb/sparc-tdep.c

index 88ea85980e7db9a44d1e01804c26b904c311065e..01f44539888163480b7481fd190a9d7c611ddf2d 100644 (file)
@@ -1,3 +1,9 @@
+2013-11-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
+       removed to allow analyzing unconditional branch instructions
+       with PC-relative offsets of zero.
+
 2013-11-07  Yao Qi  <yao@codesourcery.com>
 
        * mi/mi-cmd-var.c: Include "language.h".
index 880d2768883fb258dd8c0cc334ec8dcd53dde609..53014a0e55876b62371000be61a1bc547c9343da 100644 (file)
@@ -1538,7 +1538,6 @@ sparc_analyze_control_transfer (struct frame_info *frame,
          if (X_A (insn))
            *npc = 0;
 
-         gdb_assert (offset != 0);
          return pc + offset;
        }
     }