aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-09-28 19:38:25 -0600
committerTom Tromey <tom@tromey.com>2020-09-28 19:52:21 -0600
commit8a3ecb79b031d578cbdbac5e70784c157ff6387d (patch)
tree111407603d927f6656f00c9e778e62cf7202c20a /gdb/infrun.c
parent55f6301ac03f8865f486fa2fe8019bd5129f86e3 (diff)
downloadgdb-8a3ecb79b031d578cbdbac5e70784c157ff6387d.zip
gdb-8a3ecb79b031d578cbdbac5e70784c157ff6387d.tar.gz
gdb-8a3ecb79b031d578cbdbac5e70784c157ff6387d.tar.bz2
Turn target_can_lock_scheduler into a function
This changes the object-like macro target_can_lock_scheduler into an inline function. gdb/ChangeLog 2020-09-28 Tom Tromey <tom@tromey.com> * infrun.c (set_schedlock_func): Update. * target.h (target_can_lock_scheduler): Now a function.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 6ff362c..17b406d 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2099,7 +2099,7 @@ show_scheduler_mode (struct ui_file *file, int from_tty,
static void
set_schedlock_func (const char *args, int from_tty, struct cmd_list_element *c)
{
- if (!target_can_lock_scheduler)
+ if (!target_can_lock_scheduler ())
{
scheduler_mode = schedlock_off;
error (_("Target '%s' cannot support this command."), target_shortname);