summaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-02-19 11:47:16 +0000
committerEli Zaretskii <eliz@gnu.org>2001-02-19 11:47:16 +0000
commit879b11b03ee0b3124e021fb54b62b0f874f8f170 (patch)
treed4ecda5345f9be31a41e123b65e73b2811b14a37 /gdb/tracepoint.c
parentdcb5a0dbb604cbd6f9915020d540ddb47af91366 (diff)
downloadgdb-879b11b03ee0b3124e021fb54b62b0f874f8f170.tar.gz
* demangle.c (demangling_style_names): New variable.
(_initialize_demangler): Fill demangling_style_names with the names of known demangling styles from libiberty_demanglers[]. Use add_set_enum_cmd instead of add_set_cmd, to get completion on demangling style names. * proc-api.c (_initialize_proc_api): Make `procfs-file' use file-name completion. * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'. * solib.c (_initialize_solib): Ditto for `solib-search-path' and `solib-absolute-prefix'. * tracepoint.c (_initialize_tracepoint): Ditto for `save-tracepoints'. * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'. * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use file-name completion. * infcmd.c (_initialize_infcmd): Make the following commands use the file-name completer: `tty', `args', `path', `paths', and `run'.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index f275458dfa2..a1feb18fc2e 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -32,6 +32,7 @@
#include "tracepoint.h"
#include "remote.h"
#include "linespec.h"
+#include "completer.h"
#include "ax.h"
#include "ax-gdb.h"
@@ -2600,6 +2601,8 @@ get_traceframe_number (void)
void
_initialize_tracepoint (void)
{
+ struct cmd_list_element *c;
+
tracepoint_chain = 0;
tracepoint_count = 0;
traceframe_number = -1;
@@ -2651,9 +2654,10 @@ last tracepoint set.");
add_info_alias ("tp", "tracepoints", 1);
- add_com ("save-tracepoints", class_trace, tracepoint_save_command,
- "Save current tracepoint definitions as a script.\n\
+ c = add_com ("save-tracepoints", class_trace, tracepoint_save_command,
+ "Save current tracepoint definitions as a script.\n\
Use the 'source' command in another debug session to restore them.");
+ c->completer = filename_completer;
add_com ("tdump", class_trace, trace_dump_command,
"Print everything collected at the current tracepoint.");