mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
842806cb6f
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. |
||
---|---|---|
.. | ||
.gitattributes | ||
acinclude.m4 | ||
aclocal.m4 | ||
agent.cc | ||
agent.h | ||
alt-stack.h | ||
array-view.h | ||
ax.def | ||
block-signals.h | ||
break-common.h | ||
btrace-common.cc | ||
btrace-common.h | ||
buffer.cc | ||
buffer.h | ||
byte-vector.h | ||
ChangeLog | ||
check-defines.el | ||
cleanups.cc | ||
cleanups.h | ||
common-debug.cc | ||
common-debug.h | ||
common-defs.h | ||
common-exceptions.cc | ||
common-exceptions.h | ||
common-gdbthread.h | ||
common-inferior.cc | ||
common-inferior.h | ||
common-regcache.cc | ||
common-regcache.h | ||
common-types.h | ||
common-utils.cc | ||
common-utils.h | ||
common.m4 | ||
config.in | ||
configure | ||
configure.ac | ||
create-version.sh | ||
def-vector.h | ||
default-init-alloc.h | ||
enum-flags.h | ||
environ.cc | ||
environ.h | ||
errors.cc | ||
errors.h | ||
fileio.cc | ||
fileio.h | ||
filestuff.cc | ||
filestuff.h | ||
filtered-iterator.h | ||
format.cc | ||
format.h | ||
forward-scope-exit.h | ||
function-view.h | ||
gdb_assert.h | ||
gdb_binary_search.h | ||
gdb_locale.h | ||
gdb_optional.h | ||
gdb_proc_service.h | ||
gdb_ref_ptr.h | ||
gdb_setjmp.h | ||
gdb_signals.h | ||
gdb_splay_tree.h | ||
gdb_string_view.h | ||
gdb_string_view.tcc | ||
gdb_sys_time.h | ||
gdb_tilde_expand.cc | ||
gdb_tilde_expand.h | ||
gdb_unique_ptr.h | ||
gdb_unlinker.h | ||
gdb_vecs.cc | ||
gdb_vecs.h | ||
gdb_wait.cc | ||
gdb_wait.h | ||
gdb-dlfcn.cc | ||
gdb-dlfcn.h | ||
gdb-sigmask.h | ||
hash_enum.h | ||
host-defs.h | ||
job-control.cc | ||
job-control.h | ||
Makefile.am | ||
Makefile.in | ||
netstuff.cc | ||
netstuff.h | ||
new-op.cc | ||
next-iterator.h | ||
observable.h | ||
offset-type.h | ||
parallel-for.h | ||
pathstuff.cc | ||
pathstuff.h | ||
poison.h | ||
preprocessor.h | ||
print-utils.cc | ||
print-utils.h | ||
ptid.cc | ||
ptid.h | ||
README | ||
refcounted-object.h | ||
rsp-low.cc | ||
rsp-low.h | ||
run-time-clock.cc | ||
run-time-clock.h | ||
safe-iterator.h | ||
safe-strerror.cc | ||
scope-exit.h | ||
scoped_fd.h | ||
scoped_mmap.cc | ||
scoped_mmap.h | ||
scoped_restore.h | ||
selftest.cc | ||
selftest.h | ||
signals-state-save-restore.cc | ||
signals-state-save-restore.h | ||
signals.cc | ||
symbol.h | ||
tdesc.cc | ||
tdesc.h | ||
thread-pool.cc | ||
thread-pool.h | ||
traits.h | ||
underlying.h | ||
valid-expr.h | ||
version.h | ||
warning.m4 | ||
x86-xstate.h | ||
xml-utils.cc | ||
xml-utils.h |
This is a helper library that is used by gdb and gdbserver. To send patches, follow the gdb patch submission instructions in ../gdb/CONTRIBUTE. For maintainers, see ../gdb/MAINTAINERS.