diff options
author | Markus Metzger <mmetzger@sourceware.org> | 2013-03-11 08:51:58 +0000 |
---|---|---|
committer | Markus Metzger <mmetzger@sourceware.org> | 2013-03-11 08:51:58 +0000 |
commit | afedecd388d5a4db011c51c617daa1e7224b79e4 (patch) | |
tree | 3d300c5049d95f81e47b272d65b41bc988fa8271 /gdb/objfiles.c | |
parent | 15984c13c729e1f05eb789a3883df82994d5a593 (diff) | |
download | gdb-afedecd388d5a4db011c51c617daa1e7224b79e4.zip gdb-afedecd388d5a4db011c51c617daa1e7224b79e4.tar.gz gdb-afedecd388d5a4db011c51c617daa1e7224b79e4.tar.bz2 |
Add a target for branch trace recording.
The target implements the new record sub-commands
"record instruction-history" and
"record function-call-history".
The target does not support reverse execution or navigation in the
recorded execution log.
gdb/
* Makefile.in (SFILES): Add record-btrace.c
(COMMON_OBS): Add record-btrace.o
* record-btrace.c: New.
* objfiles.c: Include btrace.h.
(free_objfile): call btrace_free_objfile.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 8c17c14..3017fdf 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -53,6 +53,7 @@ #include "psymtab.h" #include "solist.h" #include "gdb_bfd.h" +#include "btrace.h" /* Keep a registry of per-objfile data-pointers required by other GDB modules. */ @@ -567,6 +568,7 @@ free_objfile (struct objfile *objfile) forget_cached_source_info_for_objfile (objfile); breakpoint_free_objfile (objfile); + btrace_free_objfile (objfile); /* First do any symbol file specific actions required when we are finished with a particular symbol file. Note that if the objfile |