emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: "Invalid or undefined bitmap" when launched with -Q


From: Nick Roberts
Subject: Re: "Invalid or undefined bitmap" when launched with -Q
Date: Mon, 14 Aug 2006 23:43:22 +1200

 > Although this "inferior emacs" seems to be running ? I see a frame,  
 > although without mode-line ? the debug_print seems to come too early ...
 > 
 >      Breakpoint 1, load_pixmap (f=0x9a8420, name=60552283,  
 > w_ptr=0x9f4d54, h_ptr=0x9f4d58) at xfaces.c:1163
 >      (gdb) p name
 >      $1 = 60552283
 >      (gdb) xpr
 >      No enum type named Lisp_Type.
 >      (gdb) n

There must be something odd about your compilation if GDB can't see that
Lisp_TYPE is an enum.  Even before execution has started you should be able
to do:

    (gdb) p (enum Lisp_Type) 3
    $1 = Lisp_String

and at load_pixmap,

    (gdb) p name
    $1 = 60552283

    (gdb) xtype

should give:

    Lisp_String
    (gdb) 


 >      Breakpoint 3, x_create_bitmap_from_file (f=0x9a8420, file=60552283)  
 > at image.c:486
 >      (gdb) p file
 >      $2 = 60552283
 >      (gdb) pr
 >      No symbol "print_output_debug_flag" in current context.

Even after you compiled it with -O0?

 > Or do I need to set it again and again in *gud-emacs* buffer?
 > 
 > 
 > When GNU Emacs starts in Gdb I also get informed:
 > 
 >      No struct type named Lisp_Symbol.

That's odd too and is presumably caused by the commands after "tbreak
init_sys_modes" in .gdbinit.  I can only suggest you rerun configure with as
few options as possible and do "make bootstrap".

 > Gdb comes with Apple's Mac OS X:
 > 
 >      GNU gdb 6.3.50-20050815 (Apple version gdb-477) (Sun Apr 30 20:06:22  
 > GMT 2006)
 >      Copyright 2004 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 "powerpc-apple-darwin".
 > 
 > 
 > I'm going to re-configure and re-compile without -dead_strip in  
 > LDFLAGS.

I don't know what -dead_strip does but I'd start with simple things first.

 >           Do I need a more up-to-date Gdb, too?

I don't think it would help (more later).

 > > Incidentally if I start "gdb emacs" with "r -Q", it doesn't hit  
 > > load_pixmap.
 > >
 > 
 > The default in my copy of GNU Emacs is:
 > 
 >      gdb --annotate=3 emacs

That doesn't tell me anything about your version of GDB (above does though).
Apple have their own version of GDB and, while I would welcome you testing it
by running GDB in Emacs, it is probably easier to run it from the command line
to debug Emacs.  That way you only have to analyse one bug at a time.

 >...

-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

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