aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index ded03c7..6a77f6b 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -164,7 +164,7 @@ void
vwarning (const char *string, va_list args)
{
if (warning_hook != nullptr)
- warning_hook (string, args);
+ warning_hook->warn (string, args);
else
{
std::optional<target_terminal::scoped_restore_terminal_state> term_state;