From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs geometry Date: Mon, 31 Jul 2006 23:03:23 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1154376224 14829 80.91.229.2 (31 Jul 2006 20:03:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jul 2006 20:03:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 31 22:03:43 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G7dzD-0004zn-Rw for ged-emacs-devel@m.gmane.org; Mon, 31 Jul 2006 22:03:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7dzD-0006Rw-4u for ged-emacs-devel@m.gmane.org; Mon, 31 Jul 2006 16:03:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7dz2-0006Rj-Ts for emacs-devel@gnu.org; Mon, 31 Jul 2006 16:03:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7dz2-0006RX-Ac for emacs-devel@gnu.org; Mon, 31 Jul 2006 16:03:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7dz2-0006RT-77 for emacs-devel@gnu.org; Mon, 31 Jul 2006 16:03:24 -0400 Original-Received: from [192.114.186.73] (helo=heller.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7e1l-0004Xb-AC for emacs-devel@gnu.org; Mon, 31 Jul 2006 16:06:13 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-39-32.inter.net.il [80.230.39.32]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id ACY65361 (AUTH halo1); Mon, 31 Jul 2006 23:03:20 +0300 (IDT) Original-To: Ralf Angeli In-reply-to: (message from Ralf Angeli on Mon, 31 Jul 2006 21:06:29 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57872 Archived-At: > From: Ralf Angeli > Date: Mon, 31 Jul 2006 21:06:29 +0200 > > >>From the command line: > > > > gdb ../bin/emacs.exe > > > > (or similar, if emacs.exe is not in src/../bin on your system). > > There is not emacs.exe in my source tree after I build Emacs. There > is only one in the target installation directory > (c:/Programme/Emacs/bin in my case) after `make install' was run > (which is actually a bit annoying). Then type "gdb c:/Programme/Emacs/bin/emacs.exe" instead. > * starting Emacs with `emacs -Q' > * changing directory with `C-x C-f c:/Programme/Emacs/bin' > * starting GDB with `M-x gdb RET' and using `emacs.exe' as the > executable to debug > * loading .gdbinit from GDB with `source /path/to/.gdbinit' > * setting a breakpoint with `b w32_createwindow' > * running Emacs with `run -g 80x30+10+20' This is perfectly valid usage, so if you get a Lisp backtrace, I suggest to debug that, or at least post a reproducible recipe. FWIW, I don't see an error when I follow this recipe (as close as my different installation allows). > I don't get a backtrace if I start GDB in the source tree where > .gdbinit resides and then use the `emacs.exe' executable from the > installation directory for GDB. Another sign of a bug, if you ask me. > But the `xtype' and `pr' commands don't seem to work either: `pr' is tricky; I'm guessing that the Windows pipe emulation on the Emacs side and the console output on the GDB side don't work together well enough for `pr' to work from within Emacs. (`pr' does work for me if I invoke GDB from the Command Prompt window outside Emacs.) Use `xtype' to see the type and xint, xsymbol, xcar, etc., according to what xtype prints, to see the value.