diff options
author | Karoly Lorentey <lorentey@elte.hu> | 2006-01-06 16:13:05 +0000 |
---|---|---|
committer | Karoly Lorentey <lorentey@elte.hu> | 2006-01-06 16:13:05 +0000 |
commit | a8bf7299ee74781dd485c33c5eac20aee0f0ebef (patch) | |
tree | d2bc1c0d3d7a64a19945b5bb5d175cae37088bca /src/.gdbinit | |
parent | e079ecf45241cc5d2904db7ede9592f9861bb9aa (diff) | |
parent | 600bc46cd52fbdedf592158c6b03ccfca88dbade (diff) | |
download | emacs-a8bf7299ee74781dd485c33c5eac20aee0f0ebef.tar.gz |
Merged from miles@gnu.org--gnu-2005 (patch 683-684)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-683
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-684
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-493
Diffstat (limited to 'src/.gdbinit')
-rw-r--r-- | src/.gdbinit | 52 |
1 files changed, 35 insertions, 17 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index 4120b1e10bf..3c77720a49a 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -765,21 +765,39 @@ show environment TERM #set args -geometry 80x40+0+0 # People get bothered when they see messages about non-existent functions... -echo \n -echo If you see messages below about functions not being defined,\n -echo don\'t worry about them. Nothing is wrong.\n -echo \n - -# Don't let abort actually run, as it will make -# stdio stop working and therefore the `pr' command above as well. -break abort - -# The MS-Windows build replaces abort with its own function. -break w32_abort - -# If we are running in synchronous mode, we want a chance to look around -# before Emacs exits. Perhaps we should put the break somewhere else -# instead... -break x_error_quitter - +xgetptr Vsystem_type +set $tem = (struct Lisp_Symbol *) $ptr +xgetptr $tem->xname +set $tem = (struct Lisp_String *) $ptr +set $tem = (char *) $tem->data + +# Don't let abort actually run, as it will make stdio stop working and +# therefore the `pr' command above as well. +if $tem[0] == 'w' && $tem[1] == 'i' && $tem[2] == 'n' && $tem[3] == 'd' + # The windows-nt build replaces abort with its own function. + break w32_abort +else + break abort +end + +# x_error_quitter is defined only on X. But window-system is set up +# only at run time, during Emacs startup, so we need to defer setting +# the breakpoint. init_sys_modes is the first function called on +# every platform after init_display, where window-system is set. +tbreak init_sys_modes +commands + silent + xgetptr Vwindow_system + set $tem = (struct Lisp_Symbol *) $ptr + xgetptr $tem->xname + set $tem = (struct Lisp_String *) $ptr + set $tem = (char *) $tem->data + # If we are running in synchronous mode, we want a chance to look + # around before Emacs exits. Perhaps we should put the break + # somewhere else instead... + if $tem[0] == 'x' && $tem[1] == '\0' + break x_error_quitter + end + continue +end # arch-tag: 12f34321-7bfa-4240-b77a-3cd3a1696dfe |