mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-10 09:33:36 +00:00
Fix inverted statements in m88k_analyze_prologue
These two statements were inverted by mistake in commit "Replace some xmalloc-family functions with XNEW-family ones". It obviously doesn't make sense to have them in this order, which is why I am pushing this as obvious. gdb/ChangeLog: * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation statements.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
|
* m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
|
||||||
|
statements.
|
||||||
|
|
||||||
2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
|
2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
* NEWS: Document support for non-8-bits addressable memory.
|
* NEWS: Document support for non-8-bits addressable memory.
|
||||||
|
|||||||
@@ -533,9 +533,9 @@ m88k_analyze_prologue (struct gdbarch *gdbarch,
|
|||||||
/* Provide a dummy cache if necessary. */
|
/* Provide a dummy cache if necessary. */
|
||||||
if (cache == NULL)
|
if (cache == NULL)
|
||||||
{
|
{
|
||||||
cache->saved_regs
|
|
||||||
= XALLOCAVEC (struct trad_frame_saved_reg, M88K_R31_REGNUM + 1);
|
|
||||||
cache = XALLOCA (struct m88k_frame_cache);
|
cache = XALLOCA (struct m88k_frame_cache);
|
||||||
|
cache->saved_regs =
|
||||||
|
XALLOCAVEC (struct trad_frame_saved_reg, M88K_R31_REGNUM + 1);
|
||||||
|
|
||||||
/* We only initialize the members we care about. */
|
/* We only initialize the members we care about. */
|
||||||
cache->saved_regs[M88K_R1_REGNUM].addr = -1;
|
cache->saved_regs[M88K_R1_REGNUM].addr = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user