aboutsummaryrefslogtreecommitdiff
path: root/gdb/NEWS
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2018-04-26 16:21:34 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2021-09-27 11:31:35 +0100
commitfde1a9a3ee8c95bb7bae6c764755bcbffdbb0308 (patch)
tree7a4913567f8c8ede1e6f43d11fa1f2183fe386b1 /gdb/NEWS
parent5cf3b309489d1606ee0fb7e452f467d82fd1b765 (diff)
downloadgdb-fde1a9a3ee8c95bb7bae6c764755bcbffdbb0308.zip
gdb-fde1a9a3ee8c95bb7bae6c764755bcbffdbb0308.tar.gz
gdb-fde1a9a3ee8c95bb7bae6c764755bcbffdbb0308.tar.bz2
gdb: add setting to disable reading source code files
In some situations it is possible that a user might not want GDB to try and access source code files, for example, the source code might be stored on a slow to access network file system. It is almost certainly possible that using some combination of 'set directories' and/or 'set substitute-path' a user can trick GDB into being unable to find the source files, but this feels like a rather crude way to solve the problem. In this commit a new option is add that stops GDB from opening and reading the source files. A user can run with source code reading disabled if this is required, then re-enable later if they decide that they now want to view the source code.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r--gdb/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/NEWS b/gdb/NEWS
index f948552..d7c29c8 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -3,6 +3,8 @@
*** Changes since GDB 11
+* New commands
+
maint set backtrace-on-fatal-signal on|off
maint show backtrace-on-fatal-signal
This setting is 'on' by default. When 'on' GDB will print a limited
@@ -10,6 +12,13 @@ maint show backtrace-on-fatal-signal
fatal signal. This only supported on some platforms where the
backtrace and backtrace_symbols_fd functions are available.
+set source open on|off
+show source open
+ This setting, which is on by default, controls whether GDB will try
+ to open source code files. Switching this off will stop GDB trying
+ to open and read source code files, which can be useful if the files
+ are located over a slow network connection.
+
* Python API
** New function gdb.add_history(), which takes a gdb.Value object