This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[doc patch+7.6 rfc] auto-load setting: Make it even more user-acceptable
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 12 Apr 2013 14:50:46 +0200
- Subject: [doc patch+7.6 rfc] auto-load setting: Make it even more user-acceptable
Hi,
from #gdb irc:
------------------------------------------------------------------------------
andy: hi, i'm trying to run a .gdbinit file, but because of the auto-loading thing I'm unable to do so... please could someone tell me how i can either disable this feature, or run gdb so that it loads .gdbinit?
palves: please take a look at the manual, and let us know if there's anything that could be improved there.
andy: palves: i've alread looked at the documentation, it's not easy to understand.... for example, i've got this page: http://sourceware.org/gdb/onlinedocs/gdb/Auto_002dloading-safe-path.html
[...]
andy: this section: To force gdb to load the files it declined to load in the previous example, you could use one of the following ways:
andy: looks promising
andy: but the example isn't complete as i'm not sure what to put into the command line to achieve this
jankratochvil: andy: IIUC to extend the initial example screen with "the right" commandline?
andy: yes
------------------------------------------------------------------------------
The manual page ia apparently rl;dr (too long, didn't read). While it is not
too correct I would add there this part.
OTOH that one user had a problem reading the manual does not require a change.
Thanks,
Jan
gdb/doc/
2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.texinfo (Auto-loading safe path): Add quick -iex using command
line to the sample output.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index fa37b82..59cd22f 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -21836,6 +21836,9 @@ warning: File "/home/user/gdb/gdb-gdb.gdb" auto-loading has been
warning: File "/home/user/gdb/gdb-gdb.py" auto-loading has been
declined by your `auto-load safe-path' set
to "$debugdir:$datadir/auto-load".
+...
+$ gdb -q -iex "set auto-load safe-path /home/user/gdb" ./gdb
+ - how to quickly get the script files loaded
@end smallexample
The list of trusted directories is controlled by the following commands: