Don't allow non-stack memory writes in the prologue for nios2.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 30 Jul 2015 20:26:03 +0000 (13:26 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Thu, 30 Jul 2015 20:26:03 +0000 (13:26 -0700)
2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>

gdb/
* nios2-tdep.c (nios2_analyze_prologue): Do what the comment
already says and disallow non-stack memory writes in the prologue.

gdb/ChangeLog
gdb/nios2-tdep.c

index 120148a24412a69a2d1d9d3efbd81e32906e4f71..b52367e45c0e77daa39e62f5904d0e9a3ab53dda 100644 (file)
@@ -1,3 +1,8 @@
+2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
+       already says and disallow non-stack memory writes in the prologue.
+
 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
 
        * nios2-tdep.c (nios2_analyze_prologue): Update comments to
index 1c5dcdebfba396623d077e6c42cfbcdfb8e3180e..12056b51a54cdfd0d4f0b785e13567c9109f54e7 100644 (file)
@@ -935,9 +935,7 @@ nios2_analyze_prologue (struct gdbarch *gdbarch, const CORE_ADDR start_pc,
          if (orig > 0
              && (value[rb].offset == 0
                  || (orig == NIOS2_EA_REGNUM && value[rb].offset == -4))
-             && ((value[ra].reg == NIOS2_SP_REGNUM
-                  && cache->reg_saved[orig].basereg != NIOS2_SP_REGNUM)
-                 || cache->reg_saved[orig].basereg == -1))
+             && value[ra].reg == NIOS2_SP_REGNUM)
            {
              if (pc < current_pc)
                {
This page took 0.027724 seconds and 4 git commands to generate.