diff options
| author | Stefan Monnier | 2010-12-27 10:27:52 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-12-27 10:27:52 -0500 |
| commit | cf07311b884db06d8b313c057f4832d5693ac2b5 (patch) | |
| tree | b458b0ea6286865f68a84b3792a958b62144786e /src | |
| parent | 7f42ff40b136fa0efbf39172d00e5fe39eac531f (diff) | |
| download | emacs-cf07311b884db06d8b313c057f4832d5693ac2b5.tar.gz emacs-cf07311b884db06d8b313c057f4832d5693ac2b5.zip | |
* src/.gdbinit (xgetptr): Fix the union+lsb case.
(xbacktrace): Fix the union case.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 7 | ||||
| -rw-r--r-- | src/ChangeLog | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index e8a64f5dfe4..f81b99d4f3f 100644 --- a/src/.gdbinit +++ b/src/.gdbinit | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001, | 1 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001, |
| 2 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 | 2 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
| 3 | # Free Software Foundation, Inc. | 3 | # Free Software Foundation, Inc. |
| 4 | # | 4 | # |
| 5 | # This file is part of GNU Emacs. | 5 | # This file is part of GNU Emacs. |
| @@ -49,7 +49,7 @@ handle SIGALRM ignore | |||
| 49 | # Using a constant runs into GDB bugs sometimes. | 49 | # Using a constant runs into GDB bugs sometimes. |
| 50 | define xgetptr | 50 | define xgetptr |
| 51 | set $bugfix = $arg0 | 51 | set $bugfix = $arg0 |
| 52 | set $ptr = (gdb_use_union ? $bugfix.u.val : $bugfix & $valmask) | gdb_data_seg_bits | 52 | set $ptr = (gdb_use_union ? (gdb_use_lsb ? $bugfix.u.val << gdb_gctypebits : $bugfix.u.val) : $bugfix & $valmask) | gdb_data_seg_bits |
| 53 | end | 53 | end |
| 54 | 54 | ||
| 55 | define xgetint | 55 | define xgetint |
| @@ -1130,7 +1130,8 @@ define xbacktrace | |||
| 1130 | xprintsym (*$bt->function) | 1130 | xprintsym (*$bt->function) |
| 1131 | printf " (0x%x)\n", $bt->args | 1131 | printf " (0x%x)\n", $bt->args |
| 1132 | else | 1132 | else |
| 1133 | printf "0x%x ", *$bt->function | 1133 | xgetptr *$bt->function |
| 1134 | printf "0x%x ", $ptr | ||
| 1134 | if $type == Lisp_Vectorlike | 1135 | if $type == Lisp_Vectorlike |
| 1135 | xgetptr (*$bt->function) | 1136 | xgetptr (*$bt->function) |
| 1136 | set $size = ((struct Lisp_Vector *) $ptr)->size | 1137 | set $size = ((struct Lisp_Vector *) $ptr)->size |
diff --git a/src/ChangeLog b/src/ChangeLog index 3478a0cb653..b4bafbce1b3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-12-27 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * .gdbinit (xgetptr): Fix the union+lsb case. | ||
| 4 | (xbacktrace): Fix the union case. | ||
| 5 | |||
| 1 | 2010-12-26 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2010-12-26 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * window.c (Fmove_to_window_line): Avoid abort when called in a buffer | 8 | * window.c (Fmove_to_window_line): Avoid abort when called in a buffer |