summaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-07-02 10:57:31 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-07-02 10:57:31 +0000
commit60d0ae2878e05299c23943365270b070371d9900 (patch)
treefd458682f3cf671728dcba91b447ee7d901a4d0c /gdb/defs.h
parentb7734a7b77e439105a6b46c97acae06f31a5aedb (diff)
downloadgdb-60d0ae2878e05299c23943365270b070371d9900.tar.gz
gdb/
Support shell wildcards for 'set auto-load safe-path'. * auto-load.c: Include fnmatch.h. (filename_is_in_dir): Rename to ... (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split it. Update function comment. Rename dir_len to pattern_len. New variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD messages. Use gdb_filename_fnmatch. (filename_is_in_auto_load_safe_path_vec): Rename variable dir to pattern. (_initialize_auto_load): Extend the "set auto-load safe-path" help text. * defs.h (gdb_filename_fnmatch): New declaration. * utils.c: Include fnmatch.h. (gdb_filename_fnmatch): New function. gdb/doc/ * gdb.texinfo (Auto-loading safe path): Note the shell wildcard possibility.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 03092aaf690..1c6fa7941ca 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -388,6 +388,9 @@ extern void substitute_path_component (char **stringp, const char *from,
extern pid_t wait_to_die_with_timeout (pid_t pid, int *status, int timeout);
#endif
+extern int gdb_filename_fnmatch (const char *pattern, const char *string,
+ int flags);
+
/* Annotation stuff. */