[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/emacs-23 r100336: * src/.gdbinit (xgetptr):
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/emacs-23 r100336: * src/.gdbinit (xgetptr): Fix the union+lsb case. |
Date: |
Mon, 27 Dec 2010 10:27:52 -0500 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 100336
committer: Stefan Monnier <address@hidden>
branch nick: emacs-23
timestamp: Mon 2010-12-27 10:27:52 -0500
message:
* src/.gdbinit (xgetptr): Fix the union+lsb case.
(xbacktrace): Fix the union case.
modified:
src/.gdbinit
src/ChangeLog
=== modified file 'src/.gdbinit'
--- a/src/.gdbinit 2010-01-04 05:35:18 +0000
+++ b/src/.gdbinit 2010-12-27 15:27:52 +0000
@@ -1,5 +1,5 @@
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001,
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
# Free Software Foundation, Inc.
#
# This file is part of GNU Emacs.
@@ -49,7 +49,7 @@
# Using a constant runs into GDB bugs sometimes.
define xgetptr
set $bugfix = $arg0
- set $ptr = (gdb_use_union ? $bugfix.u.val : $bugfix & $valmask) |
gdb_data_seg_bits
+ set $ptr = (gdb_use_union ? (gdb_use_lsb ? $bugfix.u.val << gdb_gctypebits :
$bugfix.u.val) : $bugfix & $valmask) | gdb_data_seg_bits
end
define xgetint
@@ -1130,7 +1130,8 @@
xprintsym (*$bt->function)
printf " (0x%x)\n", $bt->args
else
- printf "0x%x ", *$bt->function
+ xgetptr *$bt->function
+ printf "0x%x ", $ptr
if $type == Lisp_Vectorlike
xgetptr (*$bt->function)
set $size = ((struct Lisp_Vector *) $ptr)->size
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-12-26 04:04:58 +0000
+++ b/src/ChangeLog 2010-12-27 15:27:52 +0000
@@ -1,3 +1,8 @@
+2010-12-27 Stefan Monnier <address@hidden>
+
+ * .gdbinit (xgetptr): Fix the union+lsb case.
+ (xbacktrace): Fix the union case.
+
2010-12-26 Stefan Monnier <address@hidden>
* window.c (Fmove_to_window_line): Avoid abort when called in a buffer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/emacs-23 r100336: * src/.gdbinit (xgetptr): Fix the union+lsb case.,
Stefan Monnier <=