public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Tankut Baris Aktemur <aktemur@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb, gdbserver, gdbsupport: add .gitattributes files Date: Thu, 05 Mar 2020 14:59:00 -0000 [thread overview] Message-ID: <20200305145952.35129.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=842806cb6f1c321666dd086a79a0fdfbd35497ed commit 842806cb6f1c321666dd086a79a0fdfbd35497ed Author: Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> Date: Thu Mar 5 15:59:22 2020 +0100 gdb, gdbserver, gdbsupport: add .gitattributes files Create .gitattributes files in gdb/, gdbserver/, and gdbsupport/. The files specify cpp-style diffs for .h and .c files. This is particularly helpful if a class in a header file is modified. For instance, if the `stop_requested` field of `thread_info` in gdb/gdbthread.h is modified, we get the following diff with 'git diff' (using git version 2.17.1): @@ -379,7 +379,7 @@ public: struct target_waitstatus pending_follow; /* True if this thread has been explicitly requested to stop. */ - int stop_requested = 0; + bool stop_requested = 0; /* The initiating frame of a nexting operation, used for deciding which exceptions to intercept. If it is null_frame_id no Note that the context of the change shows up as 'public:'; not so useful. With the .gitattributes file, we get: @@ -379,7 +379,7 @@ class thread_info : public refcounted_object struct target_waitstatus pending_follow; /* True if this thread has been explicitly requested to stop. */ - int stop_requested = 0; + bool stop_requested = 0; /* The initiating frame of a nexting operation, used for deciding which exceptions to intercept. If it is null_frame_id no The context is successfully shown as 'class thread_info'. This patch creates a .gitattributes file per each of gdb, gdbserver, and gdbsupport folders. An alternative would be to define the attributes in the root folder -- this would impact all the top-level folders, though. I opted for the more conservative approach. gdb/ChangeLog: 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> * .gitattributes: New file. gdbserver/ChangeLog: 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> * .gitattributes: New file. gdbsupport/ChangeLog: 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> * .gitattributes: New file. Diff: --- gdb/.gitattributes | 7 +++++++ gdb/ChangeLog | 4 ++++ gdbserver/.gitattributes | 6 ++++++ gdbserver/ChangeLog | 4 ++++ gdbsupport/.gitattributes | 6 ++++++ gdbsupport/ChangeLog | 4 ++++ 6 files changed, 31 insertions(+) diff --git a/gdb/.gitattributes b/gdb/.gitattributes new file mode 100644 index 0000000..8acadb9 --- /dev/null +++ b/gdb/.gitattributes @@ -0,0 +1,7 @@ +# -*- conf -*- + +# Use cpp-style diffs for .h and .c files. This is useful +# if you modify classes defined in those files. + +*.h diff=cpp +*.c diff=cpp diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 22e500c..d8c44d8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> + + * .gitattributes: New file. + 2020-03-04 Tom Tromey <tom@tromey.com> * symmisc.c (print_symbol_bcache_statistics) diff --git a/gdbserver/.gitattributes b/gdbserver/.gitattributes new file mode 100644 index 0000000..6df2574 --- /dev/null +++ b/gdbserver/.gitattributes @@ -0,0 +1,6 @@ +# -*- conf -*- + +# Use cpp-style diffs for .h files. This is useful +# if you modify classes defined in a header file. + +*.h diff=cpp diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index 7a5a3b7..4e44a76 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> + + * .gitattributes: New file. + 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> * remote-utils.cc (prepare_resume_reply): Add ability to convert T diff --git a/gdbsupport/.gitattributes b/gdbsupport/.gitattributes new file mode 100644 index 0000000..6df2574 --- /dev/null +++ b/gdbsupport/.gitattributes @@ -0,0 +1,6 @@ +# -*- conf -*- + +# Use cpp-style diffs for .h files. This is useful +# if you modify classes defined in a header file. + +*.h diff=cpp diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog index 033be86..c47bb4e 100644 --- a/gdbsupport/ChangeLog +++ b/gdbsupport/ChangeLog @@ -1,3 +1,7 @@ +2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> + + * .gitattributes: New file. + 2020-03-03 Simon Marchi <simon.marchi@efficios.com> * Makefile.in: Re-generate.
reply other threads:[~2020-03-05 14:59 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=20200305145952.35129.qmail@sourceware.org \ --to=aktemur@sourceware.org \ --cc=gdb-cvs@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: linkBe 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).