This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[suspended patch#4 8/8] Warn (but execute) local .gdbinit by default
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 5 Apr 2012 23:08:53 +0200
- Subject: [suspended patch#4 8/8] Warn (but execute) local .gdbinit by default
Hi,
just a re-post.
Jan
gdb/
2012-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
* auto-load.c (auto_load_local_gdbinit_warning): Set it to 1.
gdb/doc/
2012-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.texinfo (Auto-loading): Update the expected output
of "local-gdbinit-warning" to on.
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -92,7 +92,7 @@ int auto_load_local_gdbinit = 1;
/* Print warning on attempted auto-load of .gdbinit file from the current
directory? */
-int auto_load_local_gdbinit_warning = 0;
+int auto_load_local_gdbinit_warning = 1;
/* Absolute pathname to the current directory .gdbinit, if it exists. */
char *auto_load_local_gdbinit_pathname = NULL;
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -20749,7 +20749,7 @@ libthread-db: Auto-loading of inferior specific libthread_db is on.
local-gdbinit: Auto-loading of .gdbinit script from current directory is on.
python-scripts: Auto-loading of Python scripts is on.
local-gdbinit-warning: Printing deprecation warning for attempted auto-loading
- of .gdbinit script from current directory is off.
+ of .gdbinit script from current directory is on.
safe-path: List of directories from which it is safe to auto-load files
is /usr/local.
@end smallexample