# On alpha (and other ecoff systems) the native compilers put
# out debugging info for non-aggregate return values of functions
# even without -g, which should be accepted.
- # Irix5, even though it is ELF, counts as "ecoff" because it
- # encapsulates ecoff debugging info in a .mdebug section.
- # Irix6 gcc emits no debug info at all for static functions and
- # variables, so all tests involving statics fail.
-
- if {![test_compiler_info "gcc-*"]} then { setup_xfail "mips-sgi-irix5*" "mips-sgi-irix6*" }
+
gdb_test "p top" \
"\{(<(text variable|function), no debug info>|short \\(int\\)|short \\(\\))\} \[0-9a-fx]* <\\.?top(\\(int\\)|)>"
- if {![test_compiler_info "gcc-*"]} then { setup_xfail "mips-sgi-irix5*" "mips-sgi-irix6*" }
gdb_test "whatis top" \
"(<(text variable|function), no debug info>|short \\(int\\)|short \\(\\))"
- if {![test_compiler_info "gcc-*"]} then { setup_xfail "mips-sgi-irix6*" }
gdb_test "ptype top" "(short|int) \\((|void|int|<non-float parameter>|<non-float parameter>, <non-float parameter>)\\)"
- if {![test_compiler_info "gcc-*"]} then { setup_xfail "mips-sgi-irix5*" }
- setup_xfail "mips-sgi-irix6*"
gdb_test "p middle" \
"\{(<(text variable|function), no debug info>|short \\(int\\)|short \\(\\))\} \[0-9a-fx]* <\\.?middle(\\(int\\)|)>"
- if {![test_compiler_info "gcc-*"]} then { setup_xfail "mips-sgi-irix5*" }
- setup_xfail "mips-sgi-irix6*"
gdb_test "whatis middle" \
"(<(text variable|function), no debug info>|short \\(int\\)|short \\(\\))"
- setup_xfail "mips-sgi-irix6*"
gdb_test "ptype middle" "(short|int) \\((|void|int|<non-float parameter>|<non-float parameter>, <non-float parameter>)\\)"
gdb_test "p dataglobal" "= 3"
# doesn't know the variables exist at all.
setup_xfail "rs6000*-*-aix*"
setup_xfail "powerpc*-*-aix*"
- if [test_compiler_info "gcc-*"] {
- setup_xfail "mips-sgi-irix6*"
- } else {
+ if ![test_compiler_info "gcc-*"] {
setup_xfail "hppa*-*-hpux*"
}
setup_xfail "rs6000*-*-aix*"
setup_xfail "powerpc*-*-aix*"
- if [test_compiler_info "gcc-*"] {
- setup_xfail "mips-sgi-irix6*"
- } else {
+ if ![test_compiler_info "gcc-*"] {
setup_xfail "hppa*-*-hpux*"
}
setup_xfail "rs6000*-*-aix*"
setup_xfail "powerpc*-*-aix*"
- if [test_compiler_info "gcc-*"] {
- setup_xfail "mips-sgi-irix6*"
- } else {
+ if ![test_compiler_info "gcc-*"] {
setup_xfail "hppa*-*-hpux*"
}
setup_xfail "rs6000*-*-aix*"
setup_xfail "powerpc*-*-aix*"
- if [test_compiler_info "gcc-*"] {
- setup_xfail "mips-sgi-irix6*"
- } else {
+ if ![test_compiler_info "gcc-*"] {
setup_xfail "hppa*-*-hpux*"
}
setup_xfail "rs6000*-*-aix*"
setup_xfail "powerpc*-*-aix*"
- if [test_compiler_info "gcc-*"] {
- setup_xfail "mips-sgi-irix6*"
- } else {
+ if ![test_compiler_info "gcc-*"] {
setup_xfail "hppa*-*-hpux*"
}
setup_xfail "rs6000*-*-aix*"
setup_xfail "powerpc*-*-aix*"
- if [test_compiler_info "gcc-*"] {
- setup_xfail "mips-sgi-irix6*"
- } else {
+ if ![test_compiler_info "gcc-*"] {
setup_xfail "hppa*-*-hpux*"
}
gdb_test "ptype bsslocal" "<(data variable|variable), no debug info>"
- if [test_compiler_info "gcc-*"] {
- setup_xfail "mips-sgi-irix6*"
- }
-
gdb_test "backtrace 10" "#0.*inner.*#1.*middle.*#2.*top.*#3.*main.*" \
"backtrace from inner in nodebug.exp"
# Or if that doesn't work, at least hope for the external symbols
# This test is not as obscure as it might look. `p getenv ("TERM")'
# is a real-world example, at least on many systems.
- if { ! [test_compiler_info "gcc-*"]} {
- setup_xfail "mips-sgi-irix6*"
- }
if [target_info exists gdb,cannot_call_functions] {
setup_xfail "*-*-*" 2416
fail "p/c array_index(\"abcdef\",2)"
# Now, try that we can give names of file-local symbols which happen
# to be unique, and have it still work
- if [test_compiler_info "gcc-*"] {
- setup_xfail "mips-sgi-irix6*"
- }
if [runto middle] then {
gdb_test "backtrace 10" "#0.*middle.*#1.*top.*#2.*main.*" \
"backtrace from middle in nodebug.exp"