This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: backtrace semantics


>> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]