[Top][All Lists]

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

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

From: Eli Zaretskii
Subject: Re: gdb emacs reporting 'Function "x_error_quitter" not defined'
Date: Sat, 22 Jan 2005 11:12:41 +0200

> From: Richard Stallman <address@hidden>
> Date: Fri, 21 Jan 2005 21:53:31 -0500
> Cc: address@hidden, address@hidden
>     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.
> If we put its address into some static variable, will that prevent
> it from disappearing?

Not reliably so, since a static variable not referenced anywhere in
the module in which it is defined can be nuked as well.

Do we really want to prevent x_error_quitter from being
optimized/inlined?  I don't think so, but if we do, the best way is to
declare it extern and perhaps even volatile.

If we don't want to prevent the optimzations, but just to be able to
put a breakpoint there, we could put the breakpoint on the line that
invokes x_error_quitter.

reply via email to

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