From 3d654fa72d3ab52e3ced87291e41f160544d68b7 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 21 Apr 2023 09:45:30 -0400 Subject: gdb: add interp::on_param_changed method Same idea as previous patches, but for command_param_changed. Change-Id: I7c2196343423360da05f016f8ffa871c064092bb --- gdb/source.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/source.c') diff --git a/gdb/source.c b/gdb/source.c index 98d02d4..9997ccc 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -51,6 +51,7 @@ #include "build-id.h" #include "debuginfod-support.h" #include "gdbsupport/buildargv.h" +#include "interps.h" #define OPEN_MODE (O_RDONLY | O_BINARY) #define FDOPEN_MODE FOPEN_RB @@ -454,8 +455,8 @@ directory_command (const char *dirname, int from_tty) } if (value_changed) { - gdb::observers::command_param_changed.notify ("directories", - source_path.c_str ()); + interps_notify_param_changed ("directories", source_path.c_str ()); + if (from_tty) show_directories_1 (gdb_stdout, (char *) 0, from_tty); } -- cgit v1.1