summaryrefslogtreecommitdiff
path: root/src/.gdbinit
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-08-20 20:32:31 +0300
committerEli Zaretskii <eliz@gnu.org>2012-08-20 20:32:31 +0300
commit0a05a035f680b0fcd50b5e5201e056ead479511d (patch)
tree7b64d6ec32fe0b9dcc12aba4e2383147a331eb8a /src/.gdbinit
parent72279493cc35c01b488884687fcbe0a0d12beaa5 (diff)
downloademacs-0a05a035f680b0fcd50b5e5201e056ead479511d.tar.gz
Avoid GDB 7.5 warnings about "set main" in src/.gdbinit.
src/.gdbinit: Use "set $dummy = ..." to avoid warnings from GDB 7.5 and later about non-assignments with no effect. See discussion at http://sourceware.org/ml/gdb-patches/2012-08/msg00518.html for details.
Diffstat (limited to 'src/.gdbinit')
-rw-r--r--src/.gdbinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index b703842f4cf..de980c6345f 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -18,9 +18,9 @@
# Boston, MA 02110-1301, USA.
# Force loading of symbols, enough to give us VALBITS etc.
-set main
+set $dummy = main + 8
# With some compilers, we need this to give us struct Lisp_Symbol etc.:
-set Fmake_symbol
+set $dummy = Fmake_symbol + 8
# Find lwlib source files too.
dir ../lwlib