backtrace semantics

KOSAKI Motohiro kosaki.motohiro@gmail.com
Mon Jan 21 15:43:00 GMT 2013


>> As a user *I* want to see all the frames from the point
>> at which the function call occurs. It seems most
>> logical to me that the frame I'm in should be included.
>
> You don't know what function you're in when you make the backtrace()
> call? :-)
>
> That's my argument for not including it.

Hm. Interesting discussion. What do you think about python like
strategy? That said,
application always dump backtrace when any unexpected thing was happen and
application user (not app creator) see it. At this time, current frame
is most useful
information.

I'm not sure there is such application in real world. _I_ only uses
backtrace() for debugging.
I only says I'm not sure every people use it for only debugging.

thanks.



More information about the Libc-alpha mailing list