aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1996-10-17 02:12:24 +0000
committerStu Grossman <grossman@cygnus>1996-10-17 02:12:24 +0000
commit6420594bbf94e458e25624287aeabe3418946878 (patch)
tree9f6decaa96d12acf0de26452630f8f66d219453e /gdb/testsuite
parent93ed453c68c91ee1081686a701b4a424280edc85 (diff)
downloadgdb-6420594bbf94e458e25624287aeabe3418946878.zip
gdb-6420594bbf94e458e25624287aeabe3418946878.tar.gz
gdb-6420594bbf94e458e25624287aeabe3418946878.tar.bz2
* testsuite/gdb.base/break.exp: Make backtrace from factorial
errors unique. * testsuite/gdb.base/nodebug.exp: Whack out all -g options explicitly. * v850-tdep.c (v850_init_extra_frame_info v850_frame_chain): Fix sign bugs with scanning prologues. Get a little smarter about calculating the length of uninteresting instructions.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.base/nodebug.exp18
1 files changed, 14 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/nodebug.exp b/gdb/testsuite/gdb.base/nodebug.exp
index 4ad7f89..1d95c88 100644
--- a/gdb/testsuite/gdb.base/nodebug.exp
+++ b/gdb/testsuite/gdb.base/nodebug.exp
@@ -8,21 +8,28 @@ set prms_id 0
set bug_id 0
set testfile nodebug
-set srcfile ${srcdir}/$subdir/${testfile}.c
+set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
-if { [compile "${srcfile} -o ${binfile}"] != "" } {
+
+# Get rid of any -g options (including -gstabs, -gdwarf, etc...
+regsub -all -- {[ ]-g[^ ]*} $target_info(target,cflags) { } target_info(target,cflags)
+
+if { [compile "${srcdir}/${subdir}/${srcfile} -o ${binfile}"] != "" } {
perror "Couldn't compile ${srcfile}"
return -1
}
+# Create and source the file that provides information about the compiler
+# used to compile the test case.
execute_anywhere "rm -f ${binfile}.ci"
if { [compile "-E ${srcdir}/${subdir}/compiler.c > ${binfile}.ci"] != "" } {
- perror "Couldn't make ${testfile}.ci file"
+ perror "Couldn't make ${binfile}.ci file"
return -1
}
+source ${binfile}.ci
+
gdb_reinitialize_dir $srcdir/$subdir
gdb_load $binfile
-source ${binfile}.ci
if [runto inner] then {
@@ -110,11 +117,14 @@ if [runto inner] then {
# This test is not as obscure as it might look. `p getenv ("TERM")'
# is a real-world example, at least on many systems.
+ setup_xfail "h8300*-*-*"
+ if {!$gcc_compiled} then { setup_xfail "hppa*-*-hpux*" }
gdb_test {p/c array_index("abcdef",2)} " = 99 'c'"
# Now, try that we can give names of file-local symbols which happen
# to be unique, and have it still work
if [runto middle] then {
+ setup_xfail "h8300*-*-*"
gdb_test "backtrace" "#0.*middle.*#1.*top.*#2.*main.*" \
"backtrace from middle in nodebug.exp"
}