diff options
| author | Eli Zaretskii | 2012-08-20 20:32:31 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-08-20 20:32:31 +0300 |
| commit | 0a05a035f680b0fcd50b5e5201e056ead479511d (patch) | |
| tree | 7b64d6ec32fe0b9dcc12aba4e2383147a331eb8a /src | |
| parent | 72279493cc35c01b488884687fcbe0a0d12beaa5 (diff) | |
| download | emacs-0a05a035f680b0fcd50b5e5201e056ead479511d.tar.gz emacs-0a05a035f680b0fcd50b5e5201e056ead479511d.zip | |
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')
| -rw-r--r-- | src/.gdbinit | 4 | ||||
| -rw-r--r-- | 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 @@ | |||
| 18 | # Boston, MA 02110-1301, USA. | 18 | # Boston, MA 02110-1301, USA. |
| 19 | 19 | ||
| 20 | # Force loading of symbols, enough to give us VALBITS etc. | 20 | # Force loading of symbols, enough to give us VALBITS etc. |
| 21 | set main | 21 | set $dummy = main + 8 |
| 22 | # With some compilers, we need this to give us struct Lisp_Symbol etc.: | 22 | # With some compilers, we need this to give us struct Lisp_Symbol etc.: |
| 23 | set Fmake_symbol | 23 | set $dummy = Fmake_symbol + 8 |
| 24 | 24 | ||
| 25 | # Find lwlib source files too. | 25 | # Find lwlib source files too. |
| 26 | dir ../lwlib | 26 | dir ../lwlib |
diff --git a/src/ChangeLog b/src/ChangeLog index bdfb4e3fcb1..bc18c0eafee 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-08-20 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * .gdbinit: Use "set $dummy = ..." to avoid warnings from GDB 7.5 | ||
| 4 | and later about non-assignments with no effect. See discussion at | ||
| 5 | http://sourceware.org/ml/gdb-patches/2012-08/msg00518.html for | ||
| 6 | details. | ||
| 7 | |||
| 1 | 2012-08-20 Dmitry Antipov <dmantipov@yandex.ru> | 8 | 2012-08-20 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 9 | ||
| 3 | Inline setter functions for Lisp_Objects slots of struct specbinding. | 10 | Inline setter functions for Lisp_Objects slots of struct specbinding. |