From 0a05a035f680b0fcd50b5e5201e056ead479511d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 20 Aug 2012 20:32:31 +0300 Subject: [PATCH] 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. --- src/.gdbinit | 4 ++-- src/ChangeLog | 7 +++++++ 2 files changed, 9 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 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. -- 2.39.5