diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2021-11-23 14:59:47 +0100 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2022-01-27 13:31:19 +0100 |
commit | b02b09623dfd4e75a9f172e9d0a917e3b856b471 (patch) | |
tree | 60a477f74396edb396645ad0dc790eec4544ed4a | |
parent | 5fa0c2231c0d748b0862d4d43cb7f4ef63621e8e (diff) | |
download | gdb-b02b09623dfd4e75a9f172e9d0a917e3b856b471.zip gdb-b02b09623dfd4e75a9f172e9d0a917e3b856b471.tar.gz gdb-b02b09623dfd4e75a9f172e9d0a917e3b856b471.tar.bz2 |
gdb, btrace: rename record_btrace_enable_warn()
We use record_btrace_enable_warn() as the new-thread observer callback.
It is not used in other contexts.
Rename it to record_btrace_on_new_thread() to make its role more clear.
-rw-r--r-- | gdb/record-btrace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index c594372..e6542bd 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -279,10 +279,10 @@ require_btrace (void) return &tp->btrace; } -/* Enable branch tracing for one thread. Warn on errors. */ +/* The new thread observer. */ static void -record_btrace_enable_warn (struct thread_info *tp) +record_btrace_on_new_thread (struct thread_info *tp) { /* Ignore this thread if its inferior is not recorded by us. */ target_ops *rec = tp->inf->target_at (record_stratum); @@ -306,7 +306,7 @@ record_btrace_auto_enable (void) { DEBUG ("attach thread observer"); - gdb::observers::new_thread.attach (record_btrace_enable_warn, + gdb::observers::new_thread.attach (record_btrace_on_new_thread, record_btrace_thread_observer_token, "record-btrace"); } |