Am 15.08.2006 um 14:41 schrieb Richard Stallman:
Does this patch prevent print_output_debug_flag from being
optimized away?
*** print.c 16 Jul 2006 19:22:01 -0400 1.224
--- print.c 15 Aug 2006 08:10:45 -0400
***************
*** 924,929 ****
--- 924,938 ----
return character;
}
+ /* This function is never called. Its purpose is to prevent
+ print_output_debug_flag from being optimized away. */
+
+ int
+ debug_output_compilation_hack (x)
+ int x;
+ {
+ print_output_debug_flag = x;
+ }
#if defined(GNU_LINUX)
With this patch and CFLAGS being "-ggdb -pipe -O0 -fno-inline -fno-
crossjumping" I still get:
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 0xc9550: file xfaces.c, line 1163.
Breakpoint 2 at 0x341bc: file xdisp.c, line 7169.
Breakpoint 3 at 0x11762c: file image.c, line 486.
Breakpoint 4 at 0x1543f0: 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=0xba9090, name=59463403,
w_ptr=0xbf5834, h_ptr=0xbf5838) at xfaces.c:1163
(gdb) p name
$1 = 59463403
(gdb) pr
No symbol "print_output_debug_flag" in current context.
(gdb) cont
Continuing.
Breakpoint 3, x_create_bitmap_from_file (f=0xba9090, file=59463403)
at image.c:486
(gdb) p file
$2 = 59463403
(gdb) xpr
No enum type named Lisp_Type.
(gdb) quit
The program is running. Exit anyway? (y or n) y
Debugger finished
--
Greetings
Pete
Windows, c'est un peu comme le beaujolais nouveau: à chaque nouvelle
cuvée on sait que ce sera dégueulasse, mais on en prend quand même,
par masochisme.
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug