Don't allow non-stack memory writes in the prologue for nios2.
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.
This commit is contained in:
parent
9aaf8e3a28
commit
e1b5381f1b
|
@ -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>
|
2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
|
||||||
|
|
||||||
* nios2-tdep.c (nios2_analyze_prologue): Update comments to
|
* nios2-tdep.c (nios2_analyze_prologue): Update comments to
|
||||||
|
|
|
@ -935,9 +935,7 @@ nios2_analyze_prologue (struct gdbarch *gdbarch, const CORE_ADDR start_pc,
|
||||||
if (orig > 0
|
if (orig > 0
|
||||||
&& (value[rb].offset == 0
|
&& (value[rb].offset == 0
|
||||||
|| (orig == NIOS2_EA_REGNUM && value[rb].offset == -4))
|
|| (orig == NIOS2_EA_REGNUM && value[rb].offset == -4))
|
||||||
&& ((value[ra].reg == NIOS2_SP_REGNUM
|
&& value[ra].reg == NIOS2_SP_REGNUM)
|
||||||
&& cache->reg_saved[orig].basereg != NIOS2_SP_REGNUM)
|
|
||||||
|| cache->reg_saved[orig].basereg == -1))
|
|
||||||
{
|
{
|
||||||
if (pc < current_pc)
|
if (pc < current_pc)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue