emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building Emacs-cvs on Cygwin


From: Angelo Graziosi
Subject: Re: Building Emacs-cvs on Cygwin
Date: Sat, 30 Sep 2006 18:49:05 +0200 (MET DST)


On Sat, 30 Sep 2006, Eli Zaretskii wrote:

> > Date: Sat, 30 Sep 2006 12:16:17 +0200 (MET DST)
> > From: Angelo Graziosi <address@hidden>
> > cc: address@hidden, address@hidden
> > > 
> > > This is somewhat tangential to the real problem at hand, but as long
> > > as we are talking about this: what happens if you remove all that
> > > block from .gdbinit, type "gdb ./emacs.exe" in the src directory, and
> > > then manually type the commands in the offending block, one after the
> >        ^^^^^^^^^^^^^^^^^^^^^^^^^^
> >                 ????
> > 
> > > other?  I'm particularly interested to know whether you see any error
> > > messages from GDB, and if so, which line causes these messages.
> > 
> > 
> > This is not clear:
> > 
> > - I remove the blocks A,B,C from .gdbinit
> > - then start gdb ./emacs...
> > - then add a line at time of the removed blocks: Add to .gdbinit or at GDB
> >   prompt ?
> 
> Type the commands at the GDB prompt one by one, in the order they
> appear in the original .gdbinit.
> 

As I thinked,
---------------------------------------------------------------------
cd /tmp/emacs/.build/src
$ gdb ./emacs.exe 
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i686-pc-cygwin"...
DISPLAY = :0.0
TERM = xterm
(gdb) xgetptr Vsystem_type
(gdb) if ($ptr != 0)
 >set $tem = (struct Lisp_Symbol *) $ptr
 >xgetptr $tem->xname
 >set $tem = (struct Lisp_String *) $ptr
 >set $tem = (char *) $tem->data
 >if $tem[0] == 'w' && $tem[1] == 'i' && $tem[2] == 'n' && $tem[3] == 'd'
  >break w32_abort
  >else
  > break abort
  >end
 >end
Breakpoint 1 at 0x2009e476: file /tmp/emacs/src/emacs.c, line 464.
(gdb) tbreak init_sys_modes
Breakpoint 2 at 0x200b7e89: file /tmp/emacs/src/sysdep.c, line 1395.
(gdb) commands
Type commands for when breakpoint 2 is hit, one per line.
End with a line saying just "end".
>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 $tem[0] == 'x' && $tem[1] == '\0'
 >break x_error_quitter
 >end
>continue
>end
(gdb) 


---------------------------------------------------------------------


Cheers,

    Angelo.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]