This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] new test for separate debug info


> My idea was more to incrementally add broken cases to the skip list as
> we find them.

It's not my favorite, but it's okay with me.

  +} 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

I tested this.  It works for me:

  ...
  Compiled with unknown debugging format.
  Does not include preprocessor macro info.
  (gdb) UNSUPPORTED: gdb.base/sepdebug.exp: unknown debugging format
  testcase /house/chastain/gdb/s1/gdb/testsuite/gdb.base/sepdebug.exp completed in 1 seconds

   if [gdb_gnu_strip_debug $binfile] {
  -    unsupported "no separate debug info handling"
  +    unsupported "cannot produce separate debug info files (check that you have
  a recent version of strip and objcopy installed)"
       return -1
 }

I would rather that the message be shorter so that it does not blow up
my tables if it appears in a table.  How about:

  if [gdb_gnu_strip_debug $binfile] {
      # check that you have a recent version of strip and objcopy
      unsupported "cannot produce separate debug info files"
  }

Michael C


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]