Add branch trace information to struct thread_info.
authorMarkus Metzger <mmetzger@sourceware.org>
Mon, 11 Mar 2013 08:17:08 +0000 (08:17 +0000)
committerMarkus Metzger <mmetzger@sourceware.org>
Mon, 11 Mar 2013 08:17:08 +0000 (08:17 +0000)
commit02d27625761a91b9ea78ab4048e1171a7b47a603
treeb2ccd263c72cb451d952aca550d8389ce488e6e7
parent7bc0ae020fedff59d2acda93cb9e78b112b350ea
Add branch trace information to struct thread_info.

Add functions to enable, disable, clear, and fetch a thread's branch trace.

gdb/
* target.h: Include btrace.h.
(struct target_ops) <to_supports_btrace, to_enable_btrace,
to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
* target.c (target_supports_btrace): New function.
(target_enable_btrace): New function.
(target_disable_btrace): New function.
(target_teardown_btrace): New function.
(target_read_btrace): New function.
* btrace.h: New file.
* btrace.c: New file.
* Makefile.in: Add btrace.c.
* gdbthread.h: Include btrace.h.
(struct thread_info): Add btrace field.
* thread.c: Include btrace.h.
(clear_thread_inferior_resources): Call target_teardown_btrace.
* common/btrace-common.h: New file.
gdb/ChangeLog
gdb/Makefile.in
gdb/btrace.c [new file with mode: 0644]
gdb/btrace.h [new file with mode: 0644]
gdb/common/btrace-common.h [new file with mode: 0644]
gdb/gdbthread.h
gdb/target.c
gdb/target.h
gdb/thread.c