diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-04-21 09:45:30 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-05-30 15:07:26 -0400 |
commit | 3d654fa72d3ab52e3ced87291e41f160544d68b7 (patch) | |
tree | a46a3e83616d6e509e4ebff3496343ebaa2fa473 /gdb/source.c | |
parent | 19081eb5f18e9e9c6855935c1149afa9a5edfbe1 (diff) | |
download | gdb-3d654fa72d3ab52e3ced87291e41f160544d68b7.zip gdb-3d654fa72d3ab52e3ced87291e41f160544d68b7.tar.gz gdb-3d654fa72d3ab52e3ced87291e41f160544d68b7.tar.bz2 |
gdb: add interp::on_param_changed method
Same idea as previous patches, but for command_param_changed.
Change-Id: I7c2196343423360da05f016f8ffa871c064092bb
Diffstat (limited to 'gdb/source.c')
-rw-r--r-- | gdb/source.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |