[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Invalid or undefined bitmap" when launched with -Q
From: |
Peter Dyballa |
Subject: |
Re: "Invalid or undefined bitmap" when launched with -Q |
Date: |
Mon, 14 Aug 2006 17:42:03 +0200 |
Am 14.08.2006 um 13:43 schrieb Nick Roberts:
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
...
Current directory is ~/Quellen/Emacs_CVS/emacs/src/
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"...Reading symbols
for shared libraries ................. done
DISPLAY = :0
TERM = dumb
Breakpoint 1 at 0xc9420: file xfaces.c, line 1163.
Breakpoint 2 at 0x3408c: file xdisp.c, line 7169.
Breakpoint 3 at 0x1174fc: file image.c, line 486.
Breakpoint 4 at 0x1542c0: file sysdep.c, line 1393.
(gdb) p (enum Lisp_Type) 3
No enum type named Lisp_Type.
(gdb) run
Starting program: /Users/pete/Quellen/Emacs_CVS/emacs/src/emacs -Q
Reading symbols for shared libraries ..++++++ done
No struct type named Lisp_Symbol.
(gdb) p (enum Lisp_Type) 3
No enum type named Lisp_Type.
(gdb) cont
Continuing.
Breakpoint 1, load_pixmap (f=0x9a8420, name=60552283,
w_ptr=0x9f4d54, h_ptr=0x9f4d58) at xfaces.c:1163
(gdb) p name
$1 = 60552283
(gdb) xtype
60552283
(gdb) cont
Continuing.
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.
(gdb) quit
The program is running. Exit anyway? (y or n) y
Debugger finished
Even after you compiled it with -O0?
Yes.
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".
The output above is from:
./configure --without-carbon --with-x --without-sound --without-pop
--with-xpm --with-jpeg --with-tiff --with-gif --with-png --enable-
locallisppath=/Library/Application\ Support/Emacs/calendar22:/Library/
Application\ Support/Emacs/preview:/Library/Application\ Support/
Emacs/auctex/images:/Library/Application\ Support/Emacs/auctex:/
Library/Application\ Support/Emacs CFLAGS="-ggdb -pipe -O0 -fno-
crossjumping" CPPFLAGS="-no-cpp-precomp -I/usr/include/openssl -I/usr/
local/include -I/sw/include -DUSE_ATSUI -DSELECT_USE_CFSOCKET"
LDFLAGS="-L/usr/X11R6/lib -L/usr/local/lib -L/sw/lib/ncurses -L/sw/lib"
make bootstrap
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.
-dead_strip (32-bit only)
Remove blocks of code and data that are unreachable by
the entry
point or exported symbols.
pete 161 /\ gcc --version
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.
build 5341)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
pete 163 /\ ld -v
Apple Computer, Inc. version cctools-590.42.1.obj~1
I'll try to re-configure and re-compile with another ld!
This is debug seesion in Terminal:
pete 244 /\ gdb emacs
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"...Reading symbols
for shared libraries ................. done
DISPLAY = :0
TERM = xterm-color
Breakpoint 1 at 0xc9420: file xfaces.c, line 1163.
Breakpoint 2 at 0x3408c: file xdisp.c, line 7169.
Breakpoint 3 at 0x1174fc: file image.c, line 486.
Breakpoint 4 at 0x1542c0: file sysdep.c, line 1393.
(gdb) run
Starting program: /Users/pete/Quellen/Emacs_CVS/emacs/src/emacs -Q
Reading symbols for shared libraries ..++++++ done
No struct type named Lisp_Symbol.
(gdb) cont
Continuing.
Breakpoint 1, load_pixmap (f=0x9a8420, name=60552283,
w_ptr=0x904304, h_ptr=0x904308) at xfaces.c:1163
1163 if (NILP (name))
(gdb) p name
$1 = 60552283
(gdb) xpr
No enum type named Lisp_Type.
(gdb) cont
Continuing.
Breakpoint 3, x_create_bitmap_from_file (f=0x9a8420, file=60552283)
at image.c:486
486 Display_Info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
(gdb) p file
$2 = 60552283
(gdb) pr
No symbol "print_output_debug_flag" in current context.
(gdb) quit
The program is running. Exit anyway? (y or n) y
--
Greetings
Pete
When you meet a master swordsman,
show him your sword.
When you meet a man who is not a poet,
do not show him your poem.
-- Rinzai, ninth century Zen master
- Re: "Invalid or undefined bitmap" when launched with -Q, (continued)
- Re: "Invalid or undefined bitmap" when launched with -Q, Richard Stallman, 2006/08/15
- Re: "Invalid or undefined bitmap" when launched with -Q, Nick Roberts, 2006/08/15
- Re: "Invalid or undefined bitmap" when launched with -Q, Peter Dyballa, 2006/08/15
- Re: "Invalid or undefined bitmap" when launched with -Q, Richard Stallman, 2006/08/16
- Re: "Invalid or undefined bitmap" when launched with -Q, Peter Dyballa, 2006/08/16
- Re: "Invalid or undefined bitmap" when launched with -Q, Peter Dyballa, 2006/08/14
- Re: "Invalid or undefined bitmap" when launched with -Q, Nick Roberts, 2006/08/14
- Re: "Invalid or undefined bitmap" when launched with -Q,
Peter Dyballa <=
- Re: "Invalid or undefined bitmap" when launched with -Q, Nick Roberts, 2006/08/14
- Re: "Invalid or undefined bitmap" when launched with -Q, Peter Dyballa, 2006/08/15
- Re: "Invalid or undefined bitmap" when launched with -Q, Richard Stallman, 2006/08/15
- Re: "Invalid or undefined bitmap" when launched with -Q, Nick Roberts, 2006/08/15
- Re: "Invalid or undefined bitmap" when launched with -Q, Richard Stallman, 2006/08/16
- Re: "Invalid or undefined bitmap" when launched with -Q, Peter Dyballa, 2006/08/16
- Re: "Invalid or undefined bitmap" when launched with -Q, Eli Zaretskii, 2006/08/16
- Re: "Invalid or undefined bitmap" when launched with -Q, Peter Dyballa, 2006/08/16
- Re: "Invalid or undefined bitmap" when launched with -Q, Eli Zaretskii, 2006/08/16
- Re: "Invalid or undefined bitmap" when launched with -Q, Peter Dyballa, 2006/08/17