summaryrefslogtreecommitdiff
path: root/src/.gdbinit
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-07-25 15:47:42 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-07-25 15:47:42 -0700
commit71f88e00a23bc38dc6a15bd65bc1e64981546313 (patch)
treec8442f88e3f3c702a9d5bb214aa51fe6a6e19d45 /src/.gdbinit
parent71f32295cef7d059e22d9e3685d11c4c53d5c328 (diff)
downloademacs-71f88e00a23bc38dc6a15bd65bc1e64981546313.tar.gz
Use typedef for EMACS_INT, EMACS_UINT.
* lisp.h, s/ms-w32.h (EMACS_INT, EMACS_UINT): Use typedefs rather than macros. This simplifies debugging in the usual case, since it lets GDB show addresses as 'EMACS_INT *' rather than 'long int *' and it allows expressions involving EMACS_INT casts. * .gdbinit (xreload): Simplify by using EMACS_INT cast.
Diffstat (limited to 'src/.gdbinit')
-rw-r--r--src/.gdbinit4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 1db25324ea0..379a14b2ea5 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -1190,9 +1190,7 @@ end
define xreload
set $tagmask = ((1 << gdb_gctypebits) - 1)
- # The consing_since_gc business widens the 1 to EMACS_INT,
- # a symbol not directly visible to GDB.
- set $valmask = gdb_use_lsb ? ~($tagmask) : ((consing_since_gc - consing_since_gc + 1) << gdb_valbits) - 1
+ set $valmask = gdb_use_lsb ? ~($tagmask) : ((EMACS_INT) 1 << gdb_valbits) - 1
end
document xreload
When starting Emacs a second time in the same gdb session under