aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-06-01 07:16:05 +0000
committerRichard Henderson <rth@redhat.com>2003-06-01 07:16:05 +0000
commit9e9617a51f0f04c099d8711aaf2b4f131071498f (patch)
tree435049abcd6b919ff40a0dea0893da58ce7060a8
parente0f7ec59409d5156590f512369ac9b67f078917f (diff)
downloadgdb-9e9617a51f0f04c099d8711aaf2b4f131071498f.zip
gdb-9e9617a51f0f04c099d8711aaf2b4f131071498f.tar.gz
gdb-9e9617a51f0f04c099d8711aaf2b4f131071498f.tar.bz2
* gdb.asm/alpha.inc (gdbasm_enter): Use numeric register names
for .frame. (gdbasm_call): Lose ldgp. (gdbasm_startup): Add frame information. * gdb.asm/asm-source.exp (alpha*-*): Add -no-mdebug to asm-flags.
-rw-r--r--gdb/testsuite/ChangeLog8
-rw-r--r--gdb/testsuite/gdb.asm/alpha.inc8
-rw-r--r--gdb/testsuite/gdb.asm/asm-source.exp2
3 files changed, 15 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b46cf49..05a6747 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2003-06-01 Richard Henderson <rth@redhat.com>
+
+ * gdb.asm/alpha.inc (gdbasm_enter): Use numeric register names
+ for .frame.
+ (gdbasm_call): Lose ldgp.
+ (gdbasm_startup): Add frame information.
+ * gdb.asm/asm-source.exp (alpha*-*): Add -no-mdebug to asm-flags.
+
2003-05-31 Mark Kettenis <kettenis@gnu.org>
* gdb.base/float.exp: Expect similar output for x86_64-*-* as for
diff --git a/gdb/testsuite/gdb.asm/alpha.inc b/gdb/testsuite/gdb.asm/alpha.inc
index 70bec69..f9741c4 100644
--- a/gdb/testsuite/gdb.asm/alpha.inc
+++ b/gdb/testsuite/gdb.asm/alpha.inc
@@ -6,7 +6,7 @@
comment "subroutine prologue"
.macro gdbasm_enter
- .frame $sp, 16, $ra, 0
+ .frame $30, 16, $26, 0
.mask 0x04000000, -16
ldgp $gp, 0($27)
subq $sp, 16, $sp
@@ -26,9 +26,11 @@
.end \name
.endm
+ comment "subroutine call"
+ /* Can't use ldgp here because the finish-frame test expects the
+ pc to wind up on the next line. That's ok, we're all local. */
.macro gdbasm_call subr
jsr $26, \subr
- ldgp $gp, 0($26)
.endm
.macro gdbasm_several_nops
@@ -47,6 +49,8 @@
comment "crt0 startup"
.macro gdbasm_startup
+ .frame $31, 0, $31, 0
+ .prologue
ldgp $gp, 0($27)
.endm
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
index 5dbf058..ea6dd8b 100644
--- a/gdb/testsuite/gdb.asm/asm-source.exp
+++ b/gdb/testsuite/gdb.asm/asm-source.exp
@@ -40,7 +40,7 @@ switch -glob -- [istarget] {
set asm-arch alpha
# ??? Won't work with ecoff systems like Tru64, but then we also
# don't have any other -g flag that creates mdebug output.
- set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}"
+ set asm-flags "-gdwarf2 -no-mdebug -I${srcdir}/${subdir} -I${objdir}/${subdir}"
}
"*arm-*-*" {
set asm-arch arm