From afedecd388d5a4db011c51c617daa1e7224b79e4 Mon Sep 17 00:00:00 2001 From: Markus Metzger Date: Mon, 11 Mar 2013 08:51:58 +0000 Subject: 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. --- gdb/objfiles.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/objfiles.c') 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 -- cgit v1.1