2006/8/1, Atsushi Nemoto <anemo@xxxxxxxxxxxxx>:
On Tue, 1 Aug 2006 11:27:17 +0200, Franck Bui-Huu <vagabon.xyz@xxxxxxxxx> wrote: > Since get_frame_info() is more robust, unwind_stack() can > returns ra value for leaf functions. I think it is still fragile. The get_frame_info() might misdetect nested function as leaf. For example, I can craft this code:
Considering (wrongly) a nested function as a leaf one is not a big issue. "ra" reg should _always_ store a valid address (nested or not). The only (small) impact would be to skip an entry when showing the backtrace. -- Franck