* lib/gdb.exp (gdb_gnu_strip_debug): Remove debug format test.
authorPedro Alves <palves@redhat.com>
Sun, 9 Dec 2007 11:21:21 +0000 (11:21 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 9 Dec 2007 11:21:21 +0000 (11:21 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index 9c0f50568a89d574080d7a06f0e4ee2da874e72f..1574c3ac4c8d6d544322ef16713e8ac88c8ce680 100644 (file)
@@ -1,3 +1,7 @@
+2007-12-09  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * lib/gdb.exp (gdb_gnu_strip_debug): Remove debug format test.
+
 2007-11-30  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * gdb.server/file-transfer.exp, gdb.server/transfer.txt,
index edbc606f112ea3dbc6c9645ae8cc2b74eed6aac3..038f51a95770478c8b46fb873a657c523a7a7790 100644 (file)
@@ -2520,40 +2520,6 @@ proc build_id_debug_filename_get { exec } {
 
 proc gdb_gnu_strip_debug { dest args } {
 
-    # First, make sure that we can do this.  This is nasty. We need to
-    # check for the stabs debug format.  To do this we must run gdb on
-    # the unstripped executable, list 'main' (as to have a default
-    # source file), use get_debug_format (which does 'info source')
-    # and then see if the debug info is stabs. If so, we bail out.  We
-    # cannot do this any other way because get_debug_format finds out
-    # the debug format using gdb itself, and in case of stabs we get
-    # an error loading the program if it is already stripped.  An
-    # alternative would be to find out the debug info from the flags
-    # passed to dejagnu when the test is run.
-
-    gdb_exit
-    gdb_start
-    gdb_load ${dest}
-    gdb_test "list main" "" ""
-    get_debug_format
-    if { [test_debug_format "stabs"] } then {
-       # The separate debug info feature doesn't work well in
-       # binutils with stabs.  It produces a corrupted debug info
-       # only file, and gdb chokes on it.  It is almost impossible to
-       # capture the failing message out of gdb, because it happens
-       # inside gdb_load. At that point any error message is
-       # intercepted by dejagnu itself, and, because of the error
-       # threshold, any faulty test result is changed into an
-       # UNRESOLVED.  (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
-
     set debug_file [separate_debug_filename $dest]
     set strip_to_file_program [transform strip]
     set objcopy_program [transform objcopy]
This page took 0.037286 seconds and 4 git commands to generate.