diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2015-08-27 09:47:14 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-08-27 09:47:14 -0400 |
commit | f5cdf4989e5daff1ca8a500d22cbf2eb0692616e (patch) | |
tree | 47a3e3606396a3def26321b2fb853c503aed9691 /gdb/m88k-tdep.c | |
parent | 5952e15788882c79943033459df9d23420633a69 (diff) | |
download | gdb-f5cdf4989e5daff1ca8a500d22cbf2eb0692616e.zip gdb-f5cdf4989e5daff1ca8a500d22cbf2eb0692616e.tar.gz gdb-f5cdf4989e5daff1ca8a500d22cbf2eb0692616e.tar.bz2 |
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.
Diffstat (limited to 'gdb/m88k-tdep.c')
-rw-r--r-- | gdb/m88k-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/m88k-tdep.c b/gdb/m88k-tdep.c index 47a8f57..abfd082 100644 --- a/gdb/m88k-tdep.c +++ b/gdb/m88k-tdep.c @@ -533,9 +533,9 @@ m88k_analyze_prologue (struct gdbarch *gdbarch, /* Provide a dummy cache if necessary. */ if (cache == NULL) { - cache->saved_regs - = XALLOCAVEC (struct trad_frame_saved_reg, M88K_R31_REGNUM + 1); 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. */ cache->saved_regs[M88K_R1_REGNUM].addr = -1; |