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

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

Re: gdb emacs reporting 'Function "x_error_quitter" not defined'


From: Stefan Monnier
Subject: Re: gdb emacs reporting 'Function "x_error_quitter" not defined'
Date: Fri, 21 Jan 2005 11:20:29 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

> Thanks, Richard & Nick.

> $ cd build/src
> $ nm emacs | grep x_error_quitter
> Exit 1

> $ nm emacs | grep quitter
> 080ca2a0 t x_io_error_quitter

> $ nm xterm.o | grep quitter
> 0000cdc0 t x_io_error_quitter

> This seems to indicate that it's a compilation problem, not GDB.

> I don't understand how xterm.o can have x_io_error_quitter but *not*
> x_error_quitter

Well, x_error_quitter is a static function and is called just once and
directly, so the compiler can inline the function at the call site and
doesn't need to kep the function around because it's static.

On the other hand x_io_error_quitter is passed as a (callback) parameter, so
it can't be inlined everywhere it's used, so even though it's static the
compiler can't so easily get rid of it.

Maybe we should put a breakpoint on x_error_handler instead.


        Stefan "Just a guess"




reply via email to

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