[lldb-dev] one more question about API

Andrey Zaytsev andrey.zaytsev at jetbrains.com
Sun Jul 10 22:12:08 PDT 2011


On 08.07.2011, at 21:52, Greg Clayton wrote:

> This value with be the actual value of the exception (no matter what index is actually passed in). The integer value will be one of the #define values that starts with EXC_ from /usr/include/mach/exception_types.h on MacOSX. On other platforms it will be something that describes the exception. You really don't need to worry about displaying this at all as the text from the  exception should be enough for you to get by (just show the description) which should be accesssed with:
> 
>    size_t
>    SBThread::GetStopDescription (char *dst, size_t dst_len);
> 
> This enumeration really gives you more of a classification of why the thread stopped:
> 
>        eStopReasonNone,
>        eStopReasonTrace,
>        eStopReasonBreakpoint,
>        eStopReasonWatchpoint,
>        eStopReasonSignal,
>        eStopReasonException,
>        eStopReasonPlanComplete
> 
> eStopReasonException is the most severe of all of the stops and usually signals that you might not be able to continue your program, so you might want to display different icons for each of these and make the "eStopReasonException" icon more red to show it is more of an error case. All of the other values are normal stop reasons that are always easily dealt with.

Displaying different icons on gutter and against threads in list when stopped is great idea. Thank you. Will do it in this way ;-)





More information about the lldb-dev mailing list