[Mesa-dev] [PATCH 1/2] gallium/util: Don't stub u_debug_stack on Android

Stefan Schake stschake at gmail.com
Thu Mar 29 20:03:27 UTC 2018


On Thu, Mar 29, 2018 at 4:38 PM, Eric Engestrom
<eric.engestrom at imgtec.com> wrote:
> On Thursday, 2018-03-29 00:19:00 +0200, Stefan Schake wrote:
>> The fallback path for no libunwind ends up being stubs for Android.
>> Don't compile them in so we can provide our own implementation.
>>
>> Signed-off-by: Stefan Schake <stschake at gmail.com>
>> ---
>>  src/gallium/auxiliary/util/u_debug_stack.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/src/gallium/auxiliary/util/u_debug_stack.c b/src/gallium/auxiliary/util/u_debug_stack.c
>> index 846f648..5cbb54f 100644
>> --- a/src/gallium/auxiliary/util/u_debug_stack.c
>> +++ b/src/gallium/auxiliary/util/u_debug_stack.c
>> @@ -194,7 +194,7 @@ debug_backtrace_print(FILE *f,
>>     }
>>  }
>>
>> -#else /* ! HAVE_LIBUNWIND */
>> +#elif !defined(ANDROID) /* ! HAVE_LIBUNWIND */
>
> I think I would prefer this, which is easier to extend in the future:
>
>   #elif defined(ANDROID)
>      /* Not implemented here; see u_debug_stack_android.cpp */
>   #else /* ! HAVE_LIBUNWIND */
>
> But other than this, the series looks good to me :)
>
> This patch (preferably with the amendment I suggested) is:
> Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
>

Thanks! I like your suggestion a lot more.
I'll let the other patch stew some more, then send a v2.

Thanks,
Stefan


More information about the mesa-dev mailing list