This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] [patch 1/2] auto-load safe-path: Permit shell wildcards
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 2 Jul 2012 12:58:03 +0200
- Subject: [commit] [patch 1/2] auto-load safe-path: Permit shell wildcards
- References: <20120617193703.GA5088@host2.jankratochvil.net> <83ehpceh5h.fsf@gnu.org> <20120620184032.GA13928@host2.jankratochvil.net> <83txy5dbdd.fsf@gnu.org> <20120622144110.GA32453@host2.jankratochvil.net>
On Fri, 22 Jun 2012 16:41:10 +0200, Jan Kratochvil wrote:
> gdb/
> 2012-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> 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/
> 2012-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * gdb.texinfo (Auto-loading safe path): Note the shell wildcard
> possibility.
Checked in:
http://sourceware.org/ml/gdb-cvs/2012-07/msg00007.html
Thanks,
Jan