aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2013-09-30 15:00:16 +0200
committerMarkus Metzger <markus.t.metzger@intel.com>2014-01-16 12:45:10 +0100
commit864089d2f64c6624aac3f52ece2c31dff6a8f59f (patch)
tree1bacfaf16aef4e94b337533f14d2b6a9f13e517b /gdb
parented9edfb5d5edb1dd0b6280ae4acdd9963a12ebe6 (diff)
downloadgdb-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')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/btrace.c2
-rw-r--r--gdb/common/btrace-common.h4
-rw-r--r--gdb/common/linux-btrace.c2
-rw-r--r--gdb/gdbserver/server.c4
-rw-r--r--gdb/remote.c4
6 files changed, 16 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e1e6c74..153c508 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
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.
+
+2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
+
* common/linux-btrace.c (linux_read_btrace): Free trace from
previous iteration.
diff --git a/gdb/btrace.c b/gdb/btrace.c
index 7f26e1e..df62da8 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -401,7 +401,7 @@ btrace_fetch (struct thread_info *tp)
if (btinfo->target == NULL)
return;
- btrace = target_read_btrace (btinfo->target, btrace_read_new);
+ btrace = target_read_btrace (btinfo->target, BTRACE_READ_NEW);
if (VEC_empty (btrace_block_s, btrace))
return;
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);
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index c9d9eec..9ae28f8 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -1377,9 +1377,9 @@ handle_qxfer_btrace (const char *annex,
}
if (strcmp (annex, "all") == 0)
- type = btrace_read_all;
+ type = BTRACE_READ_ALL;
else if (strcmp (annex, "new") == 0)
- type = btrace_read_new;
+ type = BTRACE_READ_NEW;
else
{
strcpy (own_buf, "E.Bad annex.");
diff --git a/gdb/remote.c b/gdb/remote.c
index 563f7b7..fca2250 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -11505,10 +11505,10 @@ remote_read_btrace (struct btrace_target_info *tinfo,
switch (type)
{
- case btrace_read_all:
+ case BTRACE_READ_ALL:
annex = "all";
break;
- case btrace_read_new:
+ case BTRACE_READ_NEW:
annex = "new";
break;
default: