summaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authormmetzger <mmetzger>2013-03-11 08:51:58 +0000
committermmetzger <mmetzger>2013-03-11 08:51:58 +0000
commit3576f33595d9226c324bd0dc1e5a33e75fc03c73 (patch)
tree045868924b67fdc17a3fdf929ff173c928a33832 /gdb/objfiles.c
parent201e18ad00737a6c18d8f07d040747c9305c4c86 (diff)
downloadgdb-3576f33595d9226c324bd0dc1e5a33e75fc03c73.tar.gz
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 8c17c148de2..3017fdfc7a8 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