diff options
author | Markus Metzger <mmetzger@sourceware.org> | 2013-03-11 08:24:07 +0000 |
---|---|---|
committer | Markus Metzger <mmetzger@sourceware.org> | 2013-03-11 08:24:07 +0000 |
commit | 7c97f91ebf5a08c0163d6b097373acc91a986a29 (patch) | |
tree | 943d61367de8dcc7527f238ba9b16e97e8f724cf /gdb/gdbserver/Makefile.in | |
parent | 1999790bb6da9c8ea9b614153aacfc4b2fb905f0 (diff) | |
download | gdb-7c97f91ebf5a08c0163d6b097373acc91a986a29.zip gdb-7c97f91ebf5a08c0163d6b097373acc91a986a29.tar.gz gdb-7c97f91ebf5a08c0163d6b097373acc91a986a29.tar.bz2 |
Implement branch tracing on Linux based on perf_event such that it can be shared
between gdb and gdbserver.
gdb/
* common/linux_btrace.h: New file.
* common/linux_btrace.c: New file.
* Makefile.in (SFILES): Add btrace.c.
(HFILES_NO_SRCDIR): Add common/linux-btrace.h.
(COMMON_OBS): Add btrace.o.
(linux-btrace.o): New rule.
gdbserver/
* Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
(linux_btrace_h): New variable.
(linux-btrace.o): New rule.
Diffstat (limited to 'gdb/gdbserver/Makefile.in')
-rw-r--r-- | gdb/gdbserver/Makefile.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index ee2c400..67124e1 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -155,7 +155,7 @@ SFILES= $(srcdir)/gdbreplay.c $(srcdir)/inferiors.c $(srcdir)/dll.c \ $(srcdir)/common/vec.c $(srcdir)/common/gdb_vecs.c \ $(srcdir)/common/common-utils.c $(srcdir)/common/xml-utils.c \ $(srcdir)/common/linux-osdata.c $(srcdir)/common/ptid.c \ - $(srcdir)/common/buffer.c + $(srcdir)/common/buffer.c $(srcdir)/common/linux-btrace.c DEPFILES = @GDBSERVER_DEPFILES@ @@ -425,6 +425,8 @@ signals_h = $(srcdir)/../../include/gdb/signals.h $(signals_def) ptid_h = $(srcdir)/../common/ptid.h ax_h = $(srcdir)/ax.h agent_h = $(srcdir)/../common/agent.h +linux_btrace_h = $(srcdir)/../common/linux-btrace.h \ + $(srcdir)/../common/btrace-common.h $(vec_h) $(ptid_h) linux_osdata_h = $(srcdir)/../common/linux-osdata.h vec_h = $(srcdir)/../common/vec.h gdb_vecs_h = $(srcdir)/../common/gdb_vecs.h @@ -544,6 +546,9 @@ agent.o: ../common/agent.c $(COMPILE) $< $(POSTCOMPILE) +linux-btrace.o: ../common/linux-btrace.c $(linux_btrace_h) $(server_h) + $(CC) -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $< + # We build vasprintf with -DHAVE_CONFIG_H because we want that unit to # include our config.h file. Otherwise, some system headers do not get # included, and the compiler emits a warning about implicitly defined |