From: Dodji Seketeli <dodji@redhat.com>
To: libabigail@sourceware.org
Subject: [PATCH, applied] abidw: Remove temporary .typeid files when using --debug-abidiff
Date: Thu, 10 Jun 2021 11:43:47 +0200 [thread overview]
Message-ID: <87a6ny2gx8.fsf@redhat.com> (raw)
From 923a355f168fc647cd42dc5a137af0ba7fd1886a Mon Sep 17 00:00:00 2001
From: Dodji Seketeli <dodji@redhat.com>
Date: Wed, 9 Jun 2021 10:23:53 +0200
Subject:
I noticed that the temporary typeid file generated by abidw when using
the --debug-abidiff option was left behind. This patch removes it.
* tools/abidw.cc (load_corpus_and_write_abixml): Remove temporary
typeid file after its use.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to master.
---
tools/abidw.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/abidw.cc b/tools/abidw.cc
index 2234613b..3f38c695 100644
--- a/tools/abidw.cc
+++ b/tools/abidw.cc
@@ -591,7 +591,10 @@ load_corpus_and_write_abixml(char* argv[],
#ifdef WITH_DEBUG_SELF_COMPARISON
if (opts.debug_abidiff
&& !opts.type_id_file_path.empty())
- load_canonical_type_ids(*read_ctxt, opts.type_id_file_path);
+ {
+ load_canonical_type_ids(*read_ctxt, opts.type_id_file_path);
+ remove(opts.type_id_file_path.c_str());
+ }
#endif
t.start();
corpus_sptr corp2 =
--
2.30.0
--
Dodji
reply other threads:[~2021-06-10 9:44 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=87a6ny2gx8.fsf@redhat.com \
--to=dodji@redhat.com \
--cc=libabigail@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).