public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] users/jkratoch/dwarf5gcc-indexcxx: .
@ 2016-12-25 16:57 jkratoch
0 siblings, 0 replies; only message in thread
From: jkratoch @ 2016-12-25 16:57 UTC (permalink / raw)
To: archer-commits
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-12-25 16:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-25 16:57 [SCM] users/jkratoch/dwarf5gcc-indexcxx: jkratoch
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).