diff options
author | Tom Tromey <tom@tromey.com> | 2018-06-07 15:34:36 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-06-08 07:05:49 -0600 |
commit | 8dcc53b37f4fe4797825c2a43bb1fb3df56b30d1 (patch) | |
tree | af3cd396cb7b198f651eb45986be87911a01c35b /gdb/btrace.h | |
parent | cb36699271e2f3308b6f1aa40086950111308020 (diff) | |
download | gdb-8dcc53b37f4fe4797825c2a43bb1fb3df56b30d1.zip gdb-8dcc53b37f4fe4797825c2a43bb1fb3df56b30d1.tar.gz gdb-8dcc53b37f4fe4797825c2a43bb1fb3df56b30d1.tar.bz2 |
Remove cleanups from btrace code
This removes some cleanups from the btrace code by minorly C++-ifying
struct btrace_data.
gdb/ChangeLog
2018-06-08 Tom Tromey <tom@tromey.com>
* common/btrace-common.h (struct btrace_data): Add constructor,
destructor, move assignment operator.
<empty, clear, fini>: New methods.
<format>: Initialize.
(btrace_data_init, btrace_data_fini, btrace_data_clear)
(btrace_data_empty): Don't declare.
* common/btrace-common.c (btrace_data_init): Remove.
(btrace_data::fini): Rename from btrace_data_fini.
(btrace_data::empty): Rename from btrace_data_empty.
(btrace_data::clear): Rename from btrace_data_clear. Return
bool.
* btrace.h (make_cleanup_btrace_data): Don't declare.
* btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
(parse_xml_btrace): Update.
(do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
(maint_btrace_clear_packet_history_cmd): Update.
gdb/gdbserver/ChangeLog
2018-06-08 Tom Tromey <tom@tromey.com>
* linux-low.c (linux_low_read_btrace): Update.
Diffstat (limited to 'gdb/btrace.h')
-rw-r--r-- | gdb/btrace.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/btrace.h b/gdb/btrace.h index 4d57edb..bfb0b9f2 100644 --- a/gdb/btrace.h +++ b/gdb/btrace.h @@ -507,7 +507,4 @@ extern int btrace_is_replaying (struct thread_info *tp); /* Return non-zero if the branch trace for TP is empty; zero otherwise. */ extern int btrace_is_empty (struct thread_info *tp); -/* Create a cleanup for DATA. */ -extern struct cleanup *make_cleanup_btrace_data (struct btrace_data *data); - #endif /* BTRACE_H */ |