public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: jkratoch@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  users/jkratoch/dwarf5gcc-indexcxx: .
Date: Sun, 25 Dec 2016 16:57:00 -0000	[thread overview]
Message-ID: <20161225165731.51412.qmail@sourceware.org> (raw)

The branch, users/jkratoch/dwarf5gcc-indexcxx has been updated
       via  8f9fb12f5b33de7c6219500254ed37b901ab01e6 (commit)
      from  f690ced118eefff32b282a5e59b50bfd0437fda0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 8f9fb12f5b33de7c6219500254ed37b901ab01e6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Dec 25 17:50:00 2016 +0100

    .

-----------------------------------------------------------------------

Summary of changes:
 gdb/dwarf2read.c |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 98aa968..c946713 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -22595,6 +22595,19 @@ dwarf2_per_objfile_free (struct objfile *objfile, void *d)
 \f
 /* The "save gdb-index" command.  */
 
+static void
+file_write (FILE *file, const void *data, size_t size)
+{
+  if (fwrite (data, 1, size, file) != size)
+    error (_("couldn't data write to file"));
+}
+
+template<class Elem> static void
+file_write (FILE *file, const std::vector<Elem> &vec)
+{
+  file_write (file, vec.data (), vec.size() * sizeof (vec[0]));
+}
+
 class DataBuf
 {
 private:
@@ -22634,8 +22647,7 @@ public:
   void
   file_write (FILE *file) const
   {
-    if (fwrite (vec.data (), 1, vec.size (), file) != vec.size ())
-      error (_("couldn't data write to file"));
+    ::file_write (file, vec);
   }
 };
 
@@ -23246,7 +23258,9 @@ write_psymtabs_to_index (struct objfile *objfile, const char *dir)
     }
   catch (...)
     {
+      fclose (out_file);
       unlink (filename.c_str ());
+      throw;
     }
   fclose (out_file);
 }


hooks/post-receive
--
Repository for Project Archer.


                 reply	other threads:[~2016-12-25 16:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161225165731.51412.qmail@sourceware.org \
    --to=jkratoch@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).