* [RFA/testcase] fix compile error of asm-source.exp for m32r-linux
@ 2004-10-01 9:23 Kei Sakamoto
2004-10-04 21:35 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Kei Sakamoto @ 2004-10-01 9:23 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 434 bytes --]
The attached fixes the compiler error of asm-source.exp
for m32r-linux target.
In case of m32r-elf target, asm-source test needs to set
stack pointer register. But in m32r-linux target, Linux
kernel sets it and the asm-source test should not change
its value.
OK to commit?
2004-10-01 Kei Sakamoto <sakamoto.kei@renesas.com>
* gdb.asm/asm-source.exp: Add m32r-linux target.
* gdb.asm/m32r-linux.inc: New file.
[-- Attachment #2: asm.patch --]
[-- Type: application/octet-stream, Size: 1428 bytes --]
Index: gdb.asm/asm-source.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v
retrieving revision 1.52
diff -u -r1.52 asm-source.exp
--- gdb.asm/asm-source.exp 30 Jul 2004 22:09:01 -0000 1.52
+++ gdb.asm/asm-source.exp 1 Oct 2004 08:41:53 -0000
@@ -71,6 +71,9 @@
"i\[3456\]86-*-*" {
set asm-arch i386
}
+ "m32r*-linux*" {
+ set asm-arch m32r-linux
+ }
"m32r*-*" {
set asm-arch m32r
append link-flags "--whole-archive -lgloss --no-whole-archive"
Index: gdb.asm/m32r-linux.inc
===================================================================
RCS file: gdb.asm/m32r-linux.inc
diff -N gdb.asm/m32r-linux.inc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gdb.asm/m32r-linux.inc 1 Oct 2004 08:41:53 -0000
@@ -0,0 +1,34 @@
+ comment "subroutine prologue"
+ .macro gdbasm_enter
+ push fp -> push lr
+ addi sp,#-4 -> mv fp,sp
+ .endm
+
+ comment "subroutine epilogue"
+ .macro gdbasm_leave
+ addi sp,#4 -> pop lr
+ pop fp -> jmp lr
+ .endm
+
+ .macro gdbasm_call subr
+ bl \subr
+ .endm
+
+ .macro gdbasm_several_nops
+ nop
+ nop
+ nop
+ nop
+ .endm
+
+ comment "exit (0)"
+ .macro gdbasm_exit0
+ ldi r0,#1 -> ldi r1,#0
+ ldi r2,#0 -> ldi r3,#0
+ trap #0 -> nop
+ .endm
+
+ comment "crt0 startup"
+ .macro gdbasm_startup
+ ldi fp,#0
+ .endm
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA/testcase] fix compile error of asm-source.exp for m32r-linux
2004-10-01 9:23 [RFA/testcase] fix compile error of asm-source.exp for m32r-linux Kei Sakamoto
@ 2004-10-04 21:35 ` Daniel Jacobowitz
2004-10-05 4:15 ` Kei Sakamoto
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2004-10-04 21:35 UTC (permalink / raw)
To: Kei Sakamoto; +Cc: gdb-patches
On Fri, Oct 01, 2004 at 06:23:36PM +0900, Kei Sakamoto wrote:
> The attached fixes the compiler error of asm-source.exp
> for m32r-linux target.
>
> In case of m32r-elf target, asm-source test needs to set
> stack pointer register. But in m32r-linux target, Linux
> kernel sets it and the asm-source test should not change
> its value.
>
> OK to commit?
>
> 2004-10-01 Kei Sakamoto <sakamoto.kei@renesas.com>
>
> * gdb.asm/asm-source.exp: Add m32r-linux target.
> * gdb.asm/m32r-linux.inc: New file.
Yes, this is OK. Thanks.
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA/testcase] fix compile error of asm-source.exp for m32r-linux
2004-10-04 21:35 ` Daniel Jacobowitz
@ 2004-10-05 4:15 ` Kei Sakamoto
0 siblings, 0 replies; 3+ messages in thread
From: Kei Sakamoto @ 2004-10-05 4:15 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb-patches
I committed this patch. Thank you.
Kei Sakamoto
> On Fri, Oct 01, 2004 at 06:23:36PM +0900, Kei Sakamoto wrote:
> > The attached fixes the compiler error of asm-source.exp
> > for m32r-linux target.
> >
> > In case of m32r-elf target, asm-source test needs to set
> > stack pointer register. But in m32r-linux target, Linux
> > kernel sets it and the asm-source test should not change
> > its value.
> >
> > OK to commit?
> >
> > 2004-10-01 Kei Sakamoto <sakamoto.kei@renesas.com>
> >
> > * gdb.asm/asm-source.exp: Add m32r-linux target.
> > * gdb.asm/m32r-linux.inc: New file.
>
> Yes, this is OK. Thanks.
>
> --
> Daniel Jacobowitz
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-05 4:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-01 9:23 [RFA/testcase] fix compile error of asm-source.exp for m32r-linux Kei Sakamoto
2004-10-04 21:35 ` Daniel Jacobowitz
2004-10-05 4:15 ` Kei Sakamoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox