diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2004-01-14 15:09:37 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2004-01-14 15:09:37 +0000 |
commit | 43020de9a9bd75aa28c5c1a0aee9594c59ccf7b9 (patch) | |
tree | 469c9b65ee74d52b2d4572f50eb266920d85cc8a | |
parent | ad5ee2ec9545184371b871aea881b1aa6e981b43 (diff) | |
download | gdb-43020de9a9bd75aa28c5c1a0aee9594c59ccf7b9.tar.gz |
2004-01-14 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/sepdebug.exp: Bail out of the test if we don't know
what debug info we have. Print a better message if something goes
wrong while producing the separate debug info file.
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/sepdebug.exp | 9 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 401df16d03b..22af38b1f97 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2004-01-14 Elena Zannoni <ezannoni@redhat.com> + + * gdb.base/sepdebug.exp: Bail out of the test if we don't know + what debug info we have. Print a better message if something goes + wrong while producing the separate debug info file. + 2004-01-14 Michael Chastain <mec.gnu@mindspring.com> * gdb.base/callfuncs.c: Remove explicit declaration of malloc. diff --git a/gdb/testsuite/gdb.base/sepdebug.exp b/gdb/testsuite/gdb.base/sepdebug.exp index 7a2a55196e2..1028dab575b 100644 --- a/gdb/testsuite/gdb.base/sepdebug.exp +++ b/gdb/testsuite/gdb.base/sepdebug.exp @@ -72,17 +72,22 @@ if { [test_debug_format "stabs"] } then { # (see dejagnu/lib/framework.exp) unsupported "no separate debug info handling with stabs" return -1 +} elseif { [test_debug_format "unknown"] } then { + # gdb doesn't know what the debug format is. We are out of luck here. + unsupported "unknown debugging format" + return -1 } gdb_exit # Note: the procedure gdb_gnu_strip_debug will produce an executable called # ${binfile}, which is just like the executable ($binfile) but without # the debuginfo. Instead $binfile has a .gnudebuglink section which contains -# the name of a idebuginfo only file. This file will be stored in the +# the name of a debuginfo only file. This file will be stored in the # gdb.base/.debug subdirectory. if [gdb_gnu_strip_debug $binfile] { - unsupported "no separate debug info handling" + # check that you have a recent version of strip and objcopy installed + unsupported "cannot produce separate debug info files" return -1 } |