From: Eli Zaretskii Date: Mon, 20 Aug 2012 17:32:31 +0000 (+0300) Subject: Avoid GDB 7.5 warnings about "set main" in src/.gdbinit. X-Git-Tag: emacs-24.2.90~587 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0a05a035f680b0fcd50b5e5201e056ead479511d;p=emacs.git 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. --- 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 diff --git a/src/ChangeLog b/src/ChangeLog index bdfb4e3fcb1..bc18c0eafee 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2012-08-20 Eli Zaretskii + + * .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. + 2012-08-20 Dmitry Antipov Inline setter functions for Lisp_Objects slots of struct specbinding.