]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarfcmp: Exit 77 for no DWARF under -T.
authorRoland McGrath <roland@redhat.com>
Fri, 3 Jul 2009 07:48:37 +0000 (00:48 -0700)
committerRoland McGrath <roland@redhat.com>
Fri, 3 Jul 2009 07:48:37 +0000 (00:48 -0700)
src/ChangeLog
src/dwarfcmp.cc

index 809495e436860a36ae9774158d32931d51bde145..a9d051f67f0c11bcbf43a7203c2f80513c56043b 100644 (file)
@@ -1,3 +1,7 @@
+2009-07-03  Roland McGrath  <roland@redhat.com>
+
+       * dwarfcmp.cc (open_file): Exit 77 for no DWARF under -T.
+
 2009-07-02  Roland McGrath  <roland@redhat.com>
 
        * dwarflint-hl.cc (operator<<): dwarf::VS_unit_reference is gone.
index 71e06292e7bc30963541a049f29ab34cd6ffcf98..082e404f6cf1c929f27f5ee218dbb249124ad4a5 100644 (file)
@@ -114,7 +114,8 @@ open_file (const char *fname, int *fdp)
   if (dw == NULL)
     {
       int code = dwarf_errno ();
-      if (code != DWARF_E_NO_DWARF || !missing_ok)
+      if (code != DWARF_E_NO_DWARF
+         || (!missing_ok && (!test_writer || (exit (77), false))))
        error (2, 0,
               gettext ("cannot create DWARF descriptor for '%s': %s"),
               fname, dwarf_errmsg (code));