diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2013-09-30 15:00:16 +0200 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2014-01-16 12:45:10 +0100 |
commit | 864089d2f64c6624aac3f52ece2c31dff6a8f59f (patch) | |
tree | 1bacfaf16aef4e94b337533f14d2b6a9f13e517b /gdb/common | |
parent | ed9edfb5d5edb1dd0b6280ae4acdd9963a12ebe6 (diff) | |
download | gdb-864089d2f64c6624aac3f52ece2c31dff6a8f59f.zip gdb-864089d2f64c6624aac3f52ece2c31dff6a8f59f.tar.gz gdb-864089d2f64c6624aac3f52ece2c31dff6a8f59f.tar.bz2 |
btrace: uppercase btrace_read_type
2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
* common/btrace-common.h (btrace_read_type) <btrace_read_all>:
Change to ...
(btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
(btrace_read_type) <btrace_read_new>: Change to ...
(btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/btrace-common.h | 4 | ||||
-rw-r--r-- | gdb/common/linux-btrace.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/common/btrace-common.h b/gdb/common/btrace-common.h index c7d8116..1d389af 100644 --- a/gdb/common/btrace-common.h +++ b/gdb/common/btrace-common.h @@ -64,10 +64,10 @@ struct btrace_target_info; enum btrace_read_type { /* Send all available trace. */ - btrace_read_all, + BTRACE_READ_ALL, /* Send all available trace, if it changed. */ - btrace_read_new + BTRACE_READ_NEW }; #endif /* BTRACE_COMMON_H */ diff --git a/gdb/common/linux-btrace.c b/gdb/common/linux-btrace.c index 0d36ea5..5474049 100644 --- a/gdb/common/linux-btrace.c +++ b/gdb/common/linux-btrace.c @@ -509,7 +509,7 @@ linux_read_btrace (struct btrace_target_info *tinfo, unsigned long data_head, retries = 5; size_t buffer_size; - if (type == btrace_read_new && !linux_btrace_has_changed (tinfo)) + if (type == BTRACE_READ_NEW && !linux_btrace_has_changed (tinfo)) return NULL; header = perf_event_header (tinfo); |