This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch/ob] gdb.asm/xstormy16.inc: Fix initial stack address
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 26 Jul 2010 14:31:06 +0200
- Subject: [patch/ob] gdb.asm/xstormy16.inc: Fix initial stack address
- Reply-to: gdb-patches at sourceware dot org
Hi,
For years there is a single test failing when running the
gdb.asm/asm-source.exp test on XStormy16. The reason is the initial
value for the stack pointer which clashes with the .data segment. The
below patch, which I checked in as obvious, fixes the testcase.
Corinna
* gdb.asm/xstormy16.inc (gdbasm_startup): Fix beginning of stack so
as not to clash with .data section.
Index: gdb.asm/xstormy16.inc
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/xstormy16.inc,v
retrieving revision 1.1
diff -u -p -r1.1 xstormy16.inc
--- gdb.asm/xstormy16.inc 13 Dec 2001 13:42:19 -0000 1.1
+++ gdb.asm/xstormy16.inc 26 Jul 2010 12:24:18 -0000
@@ -29,6 +29,6 @@
comment "crt0 startup"
.macro gdbasm_startup
- mov r15,#2
+ mov r15,#8
.endm
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat